/* ============================================
   Alex Etchart Website - Main Stylesheet
   Base/layout styles only. Responsive overrides in mobile.css.
   Order: Variables → Reset/Base → Nav → Page title/Submenu → Impact →
   Sections (subsection, CV, map, reviews, services, pipeline, etc.) →
   Footer → Case studies → Book → Tools.
   ============================================ */

/* CSS Variables - Color System */
:root {
    /* Strategise Section - Blues and Turquoises (Three-tone) */
    --strategise-primary-light: #5A8BB8;  /* Light blue */
    --strategise-primary: #2E5C8A;        /* Professional blue */
    --strategise-primary-dark: #1A3A5C;   /* Deep blue */
    --strategise-secondary: #4ECDC4;       /* Warm turquoise */
    --strategise-accent: #1A3A5C;         /* Deep blue accent */
    
    /* Facilitation Section - Greens and Dark Purples (Three-tone) */
    --facilitation-primary-light: #4FA875; /* Light green */
    --facilitation-primary: #2D8659;       /* Primary green */
    --facilitation-primary-dark: #1E5A3E;  /* Deep green */
    --facilitation-secondary: #4A2C5A;      /* Dark purple */
    --facilitation-accent: #1E5A3E;        /* Deep green accent */
    
    /* Create Section - Fiery Reds, Oranges, and Golds (Three-tone) */
    --create-primary-light: #FF7043;     /* Light red-orange */
    --create-primary: #D84315;           /* Fiery red-orange */
    --create-primary-dark: #BF360C;      /* Deep red */
    --create-secondary: #F9A825;          /* Gold */
    --create-accent: #BF360C;             /* Deep red accent */
    
    /* Neutral Colors - About Section */
    --neutral-white: #FFFFFF;
    --neutral-black: #000000;
    --neutral-grey: #666666;
    --neutral-light-grey: #c0c0c0;
    --neutral-dark-grey: #303030;
    
    /* Typography */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-serif: 'PT Serif', Georgia, serif;
    --font-heading: 'Josefin Sans', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    --line-height-relaxed: 1.8;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--neutral-black);
    background-color: var(--neutral-white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--neutral-white);
    border-bottom: 1px solid var(--neutral-light-grey);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-container .logo {
    flex-shrink: 0;
}

/* About button wrapper - hidden on desktop, shown on mobile */
.nav-about-wrapper-mobile {
    display: none;
}

/* About in nav list - shown on desktop, hidden on mobile */
.nav-about-desktop {
    display: list-item;
}

.nav-link.nav-about {
    display: inline-block;
    min-width: 10.5em;
    text-align: center;
    transition: opacity 0.4s ease;
}

.nav-link.nav-about.nav-about-fade-out {
    opacity: 0;
}

.nav-link.nav-about.nav-about-coming-soon {
    color: #6288ab;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: var(--spacing-xs);
}

/* Original logo (thumbnail) - circular */
.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* New responsive logo */
.logo picture,
.logo picture img {
    max-width: 350px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-black);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.nav-link .nav-primary,
.nav-link .nav-secondary {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link .nav-secondary {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.nav-link:hover .nav-primary,
.nav-link.active .nav-primary {
    opacity: 0;
    transform: translateY(10px);
}

.nav-link:hover .nav-secondary,
.nav-link.active .nav-secondary {
    opacity: 1;
    transform: translateY(0);
}

/* Splash effect */
.nav-splash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: splash 0.6s ease-out;
    pointer-events: none;
}

@keyframes splash {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Page Title Section */
.page-title-section {
    padding: calc(140px + var(--spacing-lg)) var(--spacing-md) var(--spacing-md);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.page-tagline {
    font-size: var(--font-size-xl);
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

/* Submenu Navigation */
.submenu-nav {
    position: sticky;
    top: 80px; /* Default, will be overridden by JS for mobile */
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 0 6px 0; /* 1% top, 6px bottom - tiny bit */
}


.submenu-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.submenu-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.submenu-track {
    display: flex;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
    white-space: nowrap;
    justify-content: center; /* Center on desktop */
}

.submenu-link {
    padding: var(--spacing-xs) var(--spacing-md);
    text-decoration: none;
    color: var(--neutral-black);
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.submenu-link:hover,
.submenu-link.active {
    background: var(--neutral-light-grey);
    color: var(--neutral-black);
}

/* Page-specific submenu colors */
.page-facilitate .submenu-nav {
    background: rgba(45, 134, 89, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.page-facilitate .submenu-link {
    color: var(--neutral-white);
}

.page-facilitate .submenu-link:hover,
.page-facilitate .submenu-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--neutral-white);
}

.page-strategise .submenu-nav {
    background: rgba(46, 92, 138, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.page-strategise .submenu-link {
    color: var(--neutral-white);
}

.page-strategise .submenu-link:hover,
.page-strategise .submenu-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--neutral-white);
}

.page-create .submenu-nav {
    background: rgba(216, 67, 21, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.page-create .submenu-link {
    color: var(--neutral-white);
}

.page-create .submenu-link:hover,
.page-create .submenu-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--neutral-white);
}

/* Page Section Styles - Shorter sections */
.page-section {
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: auto;
}

/* Impact section: flush with submenu and bottom of section (no top/bottom padding) - all pages, desktop and mobile */
.page-section.content-block:has(.impact-section) {
    padding-top: 0;
    padding-bottom: 0;
}

.page-section.content-block:has(.impact-section) .section-container,
.page-section.content-block:has(.impact-section) .section-content {
    padding-top: 0;
    padding-bottom: 0;
}

.page-section.content-block:has(.impact-section) .section-content {
    margin-top: 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    font-weight: 700;
}

p {
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-sm);
}

.section-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    text-align:center;
}

.section-content {
    margin-top: var(--spacing-lg);
}

/* Page-specific colors - Two-tone system with gradients */
/* Facilitate: Primary = Green, Secondary = Dark Purple */
.page-facilitate {
    background: linear-gradient(135deg, var(--facilitation-primary) 0%, var(--facilitation-primary-dark) 100%);
    color: var(--neutral-white);
}

.page-facilitate .section-tagline {
    color: rgba(255, 255, 255, 0.9);
}

.page-facilitate .content-block:nth-child(odd) {
    background: linear-gradient(135deg, var(--facilitation-primary) 0%, var(--facilitation-primary-dark) 50%, var(--facilitation-primary) 100%);
}

.page-facilitate .content-block:nth-child(even) {
    background: linear-gradient(135deg, var(--facilitation-secondary) 0%, #3A1F45 50%, var(--facilitation-secondary) 100%);
}

/* Strategise: Primary = Blue, Secondary = Turquoise */
.page-strategise {
    background: linear-gradient(135deg, var(--strategise-primary) 0%, var(--strategise-primary-dark) 100%);
    color: var(--neutral-white);
}

.page-strategise .section-tagline {
    color: rgba(255, 255, 255, 0.9);
}

.page-strategise .content-block:nth-child(odd) {
    background: linear-gradient(135deg, var(--strategise-primary) 0%, var(--strategise-primary-dark) 50%, var(--strategise-primary) 100%);
}

.page-strategise .content-block:nth-child(even) {
    background: linear-gradient(135deg, var(--strategise-secondary) 0%, #3BB5AD 50%, var(--strategise-secondary) 100%);
}

/* Create: Primary = Fiery Red-Orange, Secondary = Gold */
.page-create {
    background: linear-gradient(135deg, var(--create-primary) 0%, var(--create-primary-dark) 100%);
    color: var(--neutral-white);
}

.page-create .section-tagline {
    color: rgba(255, 255, 255, 0.9);
}

.page-create .content-block:nth-child(odd) {
    background: linear-gradient(135deg, var(--create-primary) 0%, var(--create-primary-dark) 50%, var(--create-primary) 100%);
}

.page-create .content-block:nth-child(even) {
    background: linear-gradient(135deg, var(--create-secondary) 0%, #FFB74D 50%, var(--create-secondary) 100%);
    color: var(--create-primary); /* Orange text on yellow background */
}

/* Even sections (yellow background) - orange text for all text elements */
.page-create .content-block:nth-child(even) .subsection-title,
.page-create .content-block:nth-child(even) .section-tagline,
.page-create .content-block:nth-child(even) p,
.page-create .content-block:nth-child(even) h3,
.page-create .content-block:nth-child(even) h4,
.page-create .content-block:nth-child(even) .album-stars-label,
.page-create .content-block:nth-child(even) .album-quote,
.page-create .content-block:nth-child(even) .album-quote-label,
.page-create .content-block:nth-child(even) .album-blurb,
.page-create .content-block:nth-child(even) .composition-intro,
.page-create .content-block:nth-child(even) .composition-intro-card,
.page-create .content-block:nth-child(even) .composition-summary,
.page-create .content-block:nth-child(even) .film-overview,
.page-create .content-block:nth-child(even) .film-box-stat,
.page-create .content-block:nth-child(even) .film-box-list,
.page-create .content-block:nth-child(even) .fire-choir-subtitle,
.page-create .content-block:nth-child(even) .fire-choir-weekday {
    color: var(--create-primary-dark); /* Darker orange for contrast on light background */
}

.page-create .content-block:nth-child(even) .performance-content h3,
.page-create .content-block:nth-child(even) .performance-content p {
    color: #000;
}

/* Create page: CTA buttons on the seam between sections (overlap, no extra height) */
.page-create .content-block:has(.create-section-cta) {
    padding-bottom: 0;
}

.create-section-cta {
    padding-top: var(--spacing-md);
    padding-bottom: 0;
    margin-bottom: -50px; /* pull next section up so button sits on seam, no extra doc height */
    text-align: center;
}

.page-create .create-section-cta .create-cta-button-odd,
.page-create .create-section-cta .create-cta-button-even {
    position: relative;
    top: -10px; /* sit on the intersection: overlaps into next section’s top */

}

.page-create .create-section-cta .create-cta-button-odd {
    background: var(--create-secondary);
    color: var(--create-primary);
}

.page-create .create-section-cta .create-cta-button-even {
    background: var(--create-primary);
    color: var(--neutral-white);
}

.page-create .create-section-cta .create-cta-button:hover {
    background: var(--create-primary-dark);
}

/* Facilitate & Strategise: same seam positioning for final CTA */
.page-facilitate .content-block:has(.create-section-cta),
.page-strategise .content-block:has(.create-section-cta) {
    padding-bottom: 0;
}

.page-facilitate .create-section-cta .book-button,
.page-strategise .create-section-cta .book-button {
    position: relative;
    top: -10px;
}

/* Last CTA on page: pull footer up so button overlaps it (no dead gap from footer margin-top) */
main > section:last-child .create-section-cta {
    margin-bottom: calc(-50px - var(--spacing-xl));
    position: relative;
    z-index: 2;
}

.page-about {
    position: relative;
    background: 
        /* Silver texture - EXAGGERATED visibility */
        url('assets/images/texture-silver-1.jpg'),
        /* Diagonal gradient layer 1 - 10% more subtle, wider */
        linear-gradient(135deg, rgba(255, 255, 255, 0.54) 0%, rgba(180, 200, 220, 0.72) 30%, rgba(220, 240, 255, 0.63) 60%, rgba(160, 190, 210, 0.81) 100%),
        /* Diagonal gradient layer 2 - 10% more subtle, wider */
        linear-gradient(225deg, rgba(200, 220, 240, 0.63) 0%, rgba(140, 170, 200, 0.72) 50%, rgba(240, 250, 255, 0.54) 100%),
        /* Vertical gradient - 10% more subtle, wider */
        linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(200, 220, 240, 0.63) 25%, rgba(150, 180, 210, 0.72) 50%, rgba(200, 220, 240, 0.63) 75%, rgba(240, 250, 255, 0.45) 100%),
        /* Radial highlight top-left - 10% more subtle, wider */
        radial-gradient(ellipse 120% 100% at top left, rgba(255, 255, 255, 0.72) 0%, transparent 40%),
        /* Radial highlight bottom-right - 10% more subtle, wider */
        radial-gradient(ellipse 110% 90% at bottom right, rgba(150, 180, 210, 0.63) 0%, transparent 40%),
        /* Radial highlight center - 10% more subtle, wider */
        radial-gradient(ellipse 100% 80% at center, rgba(240, 250, 255, 0.54) 0%, transparent 50%),
        /* Diagonal highlight streaks - 10% more subtle, wider */
        linear-gradient(45deg, transparent 5%, rgba(255, 255, 255, 0.54) 25%, rgba(240, 250, 255, 0.72) 50%, rgba(255, 255, 255, 0.54) 75%, transparent 95%),
        /* Horizontal gradient variation - 10% more subtle, wider */
        linear-gradient(90deg, rgba(200, 220, 240, 0.63) 0%, rgba(255, 255, 255, 0.54) 25%, rgba(180, 200, 220, 0.72) 50%, rgba(255, 255, 255, 0.54) 75%, rgba(200, 220, 240, 0.63) 100%),
        /* Base silver layer */
        linear-gradient(180deg, #e8f0f8 0%, #e0ecf8 50%, #d8e8f8 100%);
    background-size: cover, 200% 450%, 180% 400%, 150% 500%, 120% 140%, 110% 130%, 100% 120%, 600% 700%, 200% 400%, 100% 200%;
    background-position: center, 0% 0%, 10% 10%, 0% 0%, -15% -15%, 115% 115%, 50% 50%, 0% 0%, 0% 0%, 0% 0%;
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed;
    background-blend-mode: overlay, normal, normal, normal, normal, normal, normal, normal, normal, normal;
    color: var(--neutral-black);
    animation: silverShimmer 15s linear infinite;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated silver sheen effect - slower, continuous, wider area */
@keyframes silverShimmer {
    0% {
        background-position: center, 0% 0%, 10% 10%, 0% 0%, -15% -15%, 115% 115%, 50% 50%, 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        background-position: center, 8% 8%, 18% 18%, 0% 12%, -7% -7%, 107% 107%, 58% 58%, -25% 25%, 8% 8%, 0% 0%;
    }
    50% {
        background-position: center, 15% 15%, 25% 25%, 0% 25%, 0% 0%, 100% 100%, 65% 65%, -50% 50%, 15% 15%, 0% 0%;
    }
    75% {
        background-position: center, 8% 8%, 18% 18%, 0% 12%, -7% -7%, 107% 107%, 58% 58%, -25% 25%, 8% 8%, 0% 0%;
    }
    100% {
        background-position: center, 0% 0%, 10% 10%, 0% 0%, -15% -15%, 115% 115%, 50% 50%, 0% 0%, 0% 0%, 0% 0%;
    }
}

/* Periodic shine sweep - 10% more subtle, slower, continuous */
.page-about::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.63) 25%,
        rgba(240, 250, 255, 0.81) 50%,
        rgba(255, 255, 255, 0.63) 75%,
        transparent
    );
    animation: shineSweep 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Scroll parallax overlay - EXAGGERATED for more scroll change */
.page-about::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 400%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(240, 250, 255, 0.6) 5%,
        rgba(220, 240, 255, 0.4) 10%,
        transparent 15%,
        transparent 85%,
        rgba(200, 220, 240, 0.4) 90%,
        rgba(180, 200, 220, 0.6) 95%,
        rgba(150, 180, 210, 0.8) 100%
    );
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above the animated background */
.page-about .main-content {
    position: relative;
    z-index: 1;
}

.page-about .section-tagline {
    color: var(--neutral-grey);
}

/* Navigation link colors based on page */
.nav-facilitate:hover,
.nav-facilitate.active {
    color: var(--facilitation-primary);
}

.nav-strategise:hover,
.nav-strategise.active {
    color: var(--strategise-secondary);
}

.nav-create:hover,
.nav-create.active {
    color: var(--create-primary-dark);
}

/* ============================================
   Impact Section (create, facilitate, strategise)
   Theme from body .page-create / .page-facilitate / .page-strategise.
   Responsive: see mobile.css
   ============================================ */

.impact-section {
    min-height: 510px; /* 15% less tall (was 600px) */
    position: relative;
}

.impact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.impact-portrait {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.create-impact .impact-portrait {
    z-index: 4;
}

.portrait-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.impact-section .quote-text span {
    font-size: 1.3em;
    font-weight: 800;
}

.impact-section .impact-stat {
    background: none !important;
    box-shadow: none !important;
    padding: var(--spacing-sm) 0;
    text-align: left;
}
.impact-section .impact-stat .impact-stat-number {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    font-size: 4rem;
    font-family: 'Times New Roman', Times, serif !important;
    letter-spacing: -0.02em;
    line-height: 1.2em;
}
.impact-section .impact-stat .impact-stat-label {
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    font-size: 1.3rem;
    font-family: 'Times New Roman', Times, serif !important;
    text-transform: uppercase;
}

.impact-section .impact-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: grayscale(20%);
}
.impact-section .impact-portrait {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 350px;
}
.impact-section .impact-overlay {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    padding: var(--spacing-xl);
    z-index: 4 !important;
    position: relative;
}
.impact-section .impact-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.impact-section .impact-quotes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 5;
}
.impact-section .impact-quote.alex-quote {
    position: relative;
    z-index: 1;
    margin-left: -100px;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.create-impact .impact-overlay {
    z-index: auto !important;
}
.create-impact .impact-stats {
    position: relative;
    z-index: 4;
}
.create-impact .impact-stat .impact-stat-number,
.create-impact .impact-stat .impact-stat-label {
    opacity: 1;
}
.create-impact .impact-quotes {
    z-index: auto !important;
}
.create-impact .impact-quote.alex-quote {
    z-index: 1;
}
.create-impact .impact-quote.client-quote {
    z-index: 5;
}

.impact-section .impact-quote.alex-quote .quote-text {
    font-size: 1.6rem;
    color: #ffffff !important;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    font-weight: 700;
    font-family: 'Lato', system-ui, sans-serif;
    font-style: italic;
}
.impact-section .impact-quote.alex-quote .quote-author {
    color: #ffffff !important;
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.6);
    font-weight: 700;
    font-family: 'Open Sans', system-ui, sans-serif !important;
}

.impact-section .impact-quote.client-quote {
    position: relative !important;
    z-index: 5 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    padding: var(--spacing-lg) !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.impact-section .impact-quote.client-quote .quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #1e40af;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    /* Font set only in the block below - single source of truth */
}
.impact-section .impact-quote.client-quote .quote-author {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    font-weight: 700;
    font-family: 'Open Sans', system-ui, sans-serif !important;
}
.impact-section .impact-quote.client-quote .quote-author + .quote-text {
    margin-top: var(--spacing-lg);
}
.page-create .impact-section .impact-quote.client-quote .quote-text {
    color: var(--create-primary-dark) !important;
}
.page-create .impact-section .impact-quote.client-quote .quote-author {
    color: var(--create-primary) !important;
}
.page-facilitate .impact-section .impact-quote.client-quote .quote-text {
    color: var(--facilitation-primary-dark) !important;
}
.page-facilitate .impact-section .impact-quote.client-quote .quote-author {
    color: var(--facilitation-primary) !important;
}

body .impact-section .impact-quote.client-quote .quote-text,
body .impact-section .impact-quote.client-quote .quote-author + .quote-text {
    font-family: 'Merriweather', Georgia, serif !important;
}

/* Strategise: 10% smaller quote text to help impact section height */
.page-strategise .impact-section .impact-quote.alex-quote .quote-text {
    font-size: 1.44rem;
}
.page-strategise .impact-section .impact-quote.client-quote .quote-text {
    font-size: 1.17rem;
}

/* Impact mobile carousel (shown only on mobile via mobile.css) */
.impact-carousel-wrap {
    display: none;
}
.impact-carousel-wrap .impact-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.impact-carousel-wrap .impact-carousel-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
    pointer-events: none;
}
.impact-carousel-wrap .impact-carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.impact-carousel-wrap .impact-carousel-slide.leave-left {
    opacity: 0;
    transform: translateX(-40px);
}
.impact-carousel-wrap .impact-carousel-slide .impact-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}
.impact-carousel-wrap .impact-carousel-slide .impact-stat {
    text-align: center;
}
.impact-carousel-wrap .impact-carousel-slide .impact-quote.alex-quote {
    text-align: center;
    margin: 0;
}
.impact-carousel-wrap .impact-carousel-slide .impact-quote.client-quote {
    text-align: left;
    max-width: 100%;
}
.impact-carousel-wrap .impact-carousel-paused::after {
    content: 'Paused — tap to resume';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Subsection Titles */
.subsection-title {
    font-size: var(--font-size-2xl);
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    font-weight: 600;
    text-align: center;
}

/* CV Items - Match project-item styling */
.cv-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.cv-item {
    background: var(--neutral-light-grey);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cv-item h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-black);
}

.cv-item > p:first-of-type {
    color: var(--neutral-grey);
    margin-bottom: var(--spacing-sm);
}

.cv-item > p:last-of-type {
    color: var(--neutral-black);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* Skills grid items */
.cv-section .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.cv-section .skills-grid > div {
    background: var(--neutral-light-grey);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-section .skills-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cv-section .skills-grid h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-black);
}

.cv-section .skills-grid p {
    color: var(--neutral-grey);
    margin: 0;
}

/* Facilitate Grid */
.facilitate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.facilitate-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    min-height: 200px;
}

.facilitate-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Green overlay ON TOP of the image */
.facilitate-card-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 78, 46, 0.8); /* ADJUST THIS: higher = more green, less image */
    transition: background 0.4s ease;
}

.facilitate-card:hover .facilitate-card-background::after {
    background: rgba(15, 78, 46, 0.55); /* Less green on hover = more image visible */
}

.facilitate-card-content {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.facilitate-card.expanded .facilitate-card-content {
    opacity: 0;
    pointer-events: none;
}

.facilitate-expand-icon {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--facilitation-primary);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.facilitate-card:hover .facilitate-expand-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.facilitate-expanded-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 3;
    display: none;
}

.facilitate-card.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    border-radius: 0;
    padding: 0;
    background: var(--neutral-white);
    overflow-y: auto;
}

/* Expanded card background - hidden when expanded (replaced by facilitate-expanded-background) */
.facilitate-card.expanded .facilitate-card-background {
    display: none;
}

/* Expanded-specific background image */
.facilitate-expanded-background {
    display: none;
}

.facilitate-card.expanded .facilitate-expanded-background {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hide the ::before overlay when expanded - we use a different one */
.facilitate-card.expanded::before {
    display: none;
}

/* Black overlay for expanded state - distinct from card overlay */
.facilitate-card.expanded .facilitate-expanded-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
    pointer-events: none;
}

/* Scroll hint - hidden on desktop, shown on mobile */
.facilitate-scroll-hint {
    display: none;
}

/* Hide the old placeholder featured image */
.facilitate-card.expanded .facilitate-featured-image {
    display: none;
}

.facilitate-card.expanded .facilitate-expanded-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    min-height: 100vh;
    padding: var(--spacing-xl);
    padding-top: 20vh;
}

/* 3-column grid layout for expanded cards - content starts from top */
.facilitate-expanded-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    min-height: 0;
    align-items: start;
    position: relative;
    z-index: 2;
    padding-right: var(--spacing-lg);
}

.facilitate-expanded-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.facilitate-expanded-col-1,
.facilitate-expanded-col-2 {
    align-self: start;
    padding-top: 0;
}

.facilitate-expanded-col-3 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: start;
    padding-top: 0;
    height: auto;
}

/* Typography for expanded cards */
.facilitate-expanded-col h3 {
    font-size: calc(var(--font-size-3xl) * 1.1);
    margin-bottom: var(--spacing-md);
}

.facilitate-expanded-col .facilitate-tagline {
    font-size: calc(var(--font-size-lg) * 1.1);
    margin-bottom: var(--spacing-md);
    font-style: normal;
}

.facilitate-expanded-col .facilitate-description {
    font-size: calc(var(--font-size-base) * 1.1);
    line-height: var(--line-height-relaxed);
}

.facilitate-expanded-col .facilitate-additional {
    font-size: calc(var(--font-size-base) * 1.1);
    line-height: var(--line-height-relaxed);
    margin-top: 0;
}

/* Additional section list styling */
.facilitate-expanded-col .facilitate-additional h4 {
    font-size: calc(var(--font-size-lg) * 1.1);
    margin-bottom: var(--spacing-sm);
}

.facilitate-expanded-col .facilitate-additional ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facilitate-expanded-col .facilitate-additional li {
    font-size: calc(var(--font-size-base) * 1.1);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.7);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    margin-right: var(--spacing-xs);
}

.facilitate-additional {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-top: var(--spacing-lg);
}

/* Carousel in non-expanded cards */
.facilitate-image-carousel {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

/* Carousel in expanded cards - full width of column 3, vertically centered */
.facilitate-card.expanded .facilitate-image-carousel {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    top: auto;
    right: auto;
    transform: none;
}

.facilitate-carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    /* Animation now handled by JavaScript for dynamic slide count */
}

.facilitate-carousel-slide {
    position: relative;
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

/* Expanded carousel - slides fill container, track animates */
.facilitate-card.expanded .facilitate-carousel-track {
    width: 300%;
    height: 100%;
}

.facilitate-card.expanded .facilitate-carousel-slide {
    width: calc(100% / 3);
    height: 100%;
    flex-shrink: 0;
}

.facilitate-card.expanded .facilitate-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.facilitate-carousel-caption {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    width: fit-content;
    max-width: calc(100% - var(--spacing-sm) * 2);
    background: rgba(0, 0, 0, 0.7);
    color: var(--neutral-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    z-index: 2;
    opacity: 0;
}

/* First slide caption: visible 0-30% and 96.66-100% */
.facilitate-carousel-slide:first-child .facilitate-carousel-caption {
    animation: workshopCarouselCaption1 9s infinite;
}

/* Second slide caption: visible 33.33-63.33% */
.facilitate-carousel-slide:nth-child(2) .facilitate-carousel-caption {
    animation: workshopCarouselCaption2 9s infinite;
}

/* Third slide caption: visible 66.66-96.66% */
.facilitate-carousel-slide:nth-child(3) .facilitate-carousel-caption {
    animation: workshopCarouselCaption3 9s infinite;
}

@keyframes workshopCarouselCaption1 {
    0%, 30% { opacity: 1; }
    33.33%, 96.66% { opacity: 0; }
    96.66%, 100% { opacity: 1; }
}

@keyframes workshopCarouselCaption2 {
    0%, 33.33% { opacity: 0; }
    33.33%, 63.33% { opacity: 1; }
    63.33%, 100% { opacity: 0; }
}

@keyframes workshopCarouselCaption3 {
    0%, 66.66% { opacity: 0; }
    66.66%, 96.66% { opacity: 1; }
    96.66%, 100% { opacity: 0; }
}

@keyframes workshopCarousel {
    0%, 30% { transform: translateX(0); }
    33.33%, 63.33% { transform: translateX(-33.33%); }
    66.66%, 96.66% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

@keyframes workshopCarouselCaption {
    /* Caption 1: visible during image 1 (0-30% and 96.66-100%) */
    0%, 30% { opacity: 1; }
    33.33%, 96.66% { opacity: 0; }
    96.66%, 100% { opacity: 1; }
}

.facilitate-featured-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 400px);
    min-height: 400px;
    z-index: 0;
}

.facilitate-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption removed from featured image - now only on carousel images */
.facilitate-featured-image .facilitate-image-caption {
    display: none;
}

.facilitate-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.facilitate-tagline {
    font-style: italic;
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

/* Composition Cards - Reuse flip card styles */
.composition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.composition-card {
    position: relative;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.composition-card.flip-animating {
    animation: compositionFlip 0.8s ease;
}

.composition-card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.composition-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.composition-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.8));
    z-index: 1;
}

.composition-card-front h3 {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
    margin: auto 0 0 0;
    font-size: var(--font-size-2xl);
    color: var(--neutral-white);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.composition-card-front .composition-summary {
    position: relative;
    z-index: 2;
    padding: 0 var(--spacing-md) var(--spacing-md);
    margin: 0;
    color: var(--neutral-white);
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Composition Play Button - Triangular corner with peel effect */
.composition-play-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: #000;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    border-radius: 0 12px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 10px 0 0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    /* No transitions on the button itself - only icon animates */
}

/* Sheen effect that sweeps across periodically - wider to span whole corner */
.composition-play-button::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 65%,
        transparent 100%
    );
    transform: translateX(100%) translateY(-100%) rotate(45deg);
    animation: sheenSweep 4s ease-in-out infinite;
    animation-delay: var(--sheen-delay, 0s);
    pointer-events: none;
    z-index: 2;
}

.composition-play-button:hover::before {
    animation: sheenSweep 2s ease-in-out infinite;
    animation-delay: 0s;
}

.composition-play-button .play-icon {
    width: 22px;
    height: 22px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3;
    animation: playIconBounce 3s ease-in-out infinite;
    animation-delay: var(--bounce-delay, 0s);
    transform-origin: center;
}

.composition-play-button:hover .play-icon {
    transform: scale(1.25);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.5));
    color: #ffffff;
    animation: playIconBounceHover 0.6s ease-in-out infinite;
    animation-delay: 0s;
}

.composition-play-button:active .play-icon {
    transform: scale(1.1);
    transition: all 0.1s ease;
}

/* Hide button when card is flipped */
.composition-card.flipped .composition-play-button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Composition Audio Player - Full player with progress */
.composition-audio-player {
    width: 100%;
    max-width: 600px;
    margin: var(--spacing-lg) 0;
    background: rgba(249, 168, 37, 0.5); /* --create-secondary at 50% opacity */
    padding: var(--spacing-lg);
    border-radius: 12px;
    position: relative;
    z-index: 10; /* Ensure it's above the card click handler */
}

.comp-player-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.comp-player-play-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--create-primary); /* Orange */
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 11; /* Above the player container */
}

.comp-player-play-button:hover {
    background: var(--create-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.comp-player-play-button .play-icon,
.comp-player-play-button .pause-icon {
    width: 20px;
    height: 20px;
}

.comp-player-info {
    flex: 1;
    min-width: 0;
}

.comp-player-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--neutral-white);
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.comp-player-time {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.comp-player-progress-container {
    margin-bottom: 0;
}

.comp-player-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    z-index: 11; /* Above the player container */
}

.comp-player-progress-bar:hover {
    background: rgba(255, 255, 255, 0.4);
}

.comp-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--create-primary); /* Orange */
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(216, 67, 21, 0.5);
}

.comp-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--create-primary); /* Orange */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
    opacity: 0;
}

.comp-player-progress-bar:hover .comp-progress-handle {
    opacity: 1;
}

.comp-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.composition-card.flipped .composition-play-button .play-icon {
    animation: none;
}

/* Playlist Player Styles */
.playlist-player {
    background: rgba(249, 168, 37, 0.5); /* --create-secondary at 50% opacity */
}

.playlist-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.playlist-prev-button,
.playlist-next-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.playlist-prev-button:hover,
.playlist-next-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.playlist-prev-button svg,
.playlist-next-button svg {
    width: 18px;
    height: 18px;
}

.playlist-play-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--create-primary); /* Orange */
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 11;
}

.playlist-play-button:hover {
    background: var(--create-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.playlist-play-button .play-icon,
.playlist-play-button .pause-icon {
    width: 24px;
    height: 24px;
}

.playlist-info {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.playlist-track-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--neutral-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    width: 100%;
    container-type: inline-size;
}

.playlist-title-text {
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.playlist-track-number-pill,
.playlist-time-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: clamp(0.65rem, 1.2cqw, var(--font-size-sm));
    font-weight: 600;
    color: var(--neutral-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Fallback for browsers without container query support */
@supports not (container-type: inline-size) {
    .playlist-track-number-pill,
    .playlist-time-pill {
        font-size: clamp(0.65rem, 2vw, var(--font-size-sm));
    }
}

.playlist-track-number-pill {
    background: rgba(255, 112, 67, 0.4); /* create-primary-light pastel */
}

.playlist-time-pill {
    background: rgba(249, 168, 37, 0.4); /* create-secondary pastel */
}

.playlist-track-number {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.playlist-time {
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.playlist-progress-container {
    margin-bottom: 0;
}

.playlist-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    z-index: 11;
}

.playlist-progress-bar:hover {
    background: rgba(255, 255, 255, 0.4);
}

.playlist-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--create-primary); /* Orange */
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(216, 67, 21, 0.5);
}

.playlist-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--create-primary); /* Orange */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
    opacity: 0;
}

.playlist-progress-bar:hover .playlist-progress-handle {
    opacity: 1;
}

.playlist-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Sheen sweep animation - wider sweep */
@keyframes sheenSweep {
    0% {
        transform: translateX(150%) translateY(-150%) rotate(45deg);
    }
    50% {
        transform: translateX(-150%) translateY(150%) rotate(45deg);
    }
    100% {
        transform: translateX(150%) translateY(-150%) rotate(45deg);
    }
}

/* Play icon bounce animation - periodic attention grabber */
@keyframes playIconBounce {
    0%, 90%, 100% {
        transform: translateY(0) scale(1);
    }
    92% {
        transform: translateY(-4px) scale(1.05);
    }
    94% {
        transform: translateY(0) scale(1);
    }
    96% {
        transform: translateY(-2px) scale(1.02);
    }
    98% {
        transform: translateY(0) scale(1);
    }
}

/* More energetic bounce on hover - no rotation */
@keyframes playIconBounceHover {
    0%, 100% {
        transform: scale(1.25) translateY(0);
    }
    50% {
        transform: scale(1.3) translateY(-3px);
    }
}

/* ============================================
   Audio Player Test Styles
   ============================================ */

/* 1. Simple Play Button */
.audio-player-simple {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 400px;
}

.audio-play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--create-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-play-button:hover {
    background: var(--create-primary-dark);
    transform: scale(1.1);
}

.audio-play-button .play-icon,
.audio-play-button .pause-icon {
    width: 24px;
    height: 24px;
}

.audio-title {
    font-weight: 600;
    color: var(--neutral-white);
}

/* 2. Full Player with Progress */
.audio-player-full {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: var(--spacing-lg);
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.player-play-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--create-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.player-play-button:hover {
    background: var(--create-primary-dark);
    transform: scale(1.05);
}

.player-play-button .play-icon,
.player-play-button .pause-icon {
    width: 20px;
    height: 20px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--neutral-black);
    margin-bottom: var(--spacing-xs);
}

.player-time {
    font-size: var(--font-size-sm);
    color: var(--neutral-grey);
}

.player-progress-container {
    margin-bottom: var(--spacing-md);
}

.player-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--create-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--create-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.player-volume-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.volume-icon {
    width: 20px;
    height: 20px;
    color: var(--neutral-grey);
    flex-shrink: 0;
}

.volume-slider-container {
    flex: 1;
}

.volume-slider {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--create-primary);
    border-radius: 2px;
    width: 70%;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    width: 12px;
    height: 12px;
    background: var(--create-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.volume-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 3. Card-Style Player */
.audio-player-card {
    display: flex;
    gap: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: var(--spacing-lg);
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-player-artwork {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--create-primary) 0%, var(--create-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-artwork-placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.card-player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-player-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--neutral-black);
    margin-bottom: var(--spacing-xs);
}

.card-player-subtitle {
    font-size: var(--font-size-base);
    color: var(--neutral-grey);
    margin-bottom: var(--spacing-md);
}

.card-player-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.card-play-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--create-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-play-button:hover {
    background: var(--create-primary-dark);
    transform: scale(1.1);
}

.card-play-button .play-icon,
.card-play-button .pause-icon {
    width: 18px;
    height: 18px;
}

.card-progress-container {
    flex: 1;
}

.card-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-bottom: var(--spacing-xs);
}

.card-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--create-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.card-time {
    font-size: var(--font-size-sm);
    color: var(--neutral-grey);
}

/* 4. Minimalist Inline Player */
.audio-player-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 400px;
}

.inline-play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--create-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.inline-play-button:hover {
    background: var(--create-primary-dark);
    transform: scale(1.1);
}

.inline-play-button .play-icon,
.inline-play-button .pause-icon {
    width: 16px;
    height: 16px;
}

.inline-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.inline-progress-bar {
    flex: 1;
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.inline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--create-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.inline-time {
    font-size: var(--font-size-sm);
    color: var(--neutral-white);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.composition-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.composition-card.flipped .composition-card-front {
    opacity: 0;
    pointer-events: none;
}

.composition-card.flipped .composition-detail {
    opacity: 1;
    pointer-events: auto;
}

.composition-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.composition-detail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.composition-card .composition-card-front h3,
.composition-card .composition-card-front .composition-summary {
    color: #000 !important;
}

.composition-card .composition-detail-content,
.composition-card .composition-detail-content * {
    color: #FFF !important;
}

@keyframes compositionFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.composition-detail h4 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.composition-detail-content .composition-audio-player {
    margin-top: 0;
}

.soundcloud-embed {
    width: 100%;
    margin-top: var(--spacing-md);
}

.soundcloud-embed iframe {
    border-radius: 8px;
}

/* Pricing Section */
.pricing-section {
    margin: var(--spacing-xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.pricing-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.pricing-details {
    margin: var(--spacing-md) 0;
}

.pricing-details p {
    margin-bottom: var(--spacing-xs);
}

.pricing-note {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* Map Section */
.map-section {
    margin: var(--spacing-xl) 0;
}

.map-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 500px;
    width: 100%;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.map-container .leaflet-container {
    border-radius: 12px;
    height: 500px;
    width: 100%;
}

.map-note {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Map Popup Styling */
.map-popup {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
}

.map-popup strong {
    font-weight: 600;
    display: block;
    margin-top: var(--spacing-xs);
}

.map-popup strong:first-child {
    margin-top: 0;
    font-size: var(--font-size-base);
}

/* Reviews Section */
.reviews-section {
    margin: var(--spacing-xl) 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}


.review-author {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    font-weight: 500;
    text-align: right;
}

/* Pricing Stipulations */
.pricing-stipulation {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tools Section */
.tools-section {
    margin: var(--spacing-xl) 0;
}

.tools-intro {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.tool-item {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.service-tagline {
    font-style: italic;
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

/* Service Counter */
.service-counter {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.service-card:hover .service-counter {
    opacity: 1;
    transform: scale(1);
}

.service-counter-emoji {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--strategise-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.service-counter-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--strategise-primary);
    font-family: var(--font-heading);
}

/* Pipelining Visual */
.pipelining-section {
    margin: var(--spacing-xl) 0;
}

.pipelining-intro {
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

/* Pipeline Tabs - Flowchart Style */
.pipeline-tabs {
    margin-top: var(--spacing-lg);
}

.pipeline-tab-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pipelining-section:hover .pipeline-tab-buttons {
    opacity: 1;
}

.pipeline-tab-button {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--neutral-black);
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.pipeline-tab-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pipeline-tab-button.active {
    background: linear-gradient(135deg, rgba(46, 92, 138, 0.4) 0%, rgba(46, 92, 138, 0.3) 100%);
    border-color: var(--strategise-primary);
    color: var(--neutral-white);
    font-weight: 700;
}

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--strategise-primary);
    font-weight: bold;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.pipelining-section:hover .pipeline-arrow {
    opacity: 1;
}

.pipeline-tab-content {
    margin-top: var(--spacing-lg);
}

.pipeline-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pipeline-tab-pane.active {
    display: block;
}

.pipeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: var(--spacing-xl);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.pipeline-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--strategise-primary-dark);
}

.pipeline-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-relaxed);
}

.pipeline-content ul {
    list-style: none;
    padding: 0;
}

.pipeline-content li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.pipeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--strategise-primary);
    font-weight: bold;
}

/* Relationship Visualization */
.relationships-section {
    margin: var(--spacing-xl) 0;
}

.relationships-intro {
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.relationships-visual {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
}

.relationship-node {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.relationship-node.center-node {
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.relationship-node:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.node-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.relationship-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.relationship-line {
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2px;
    transition: all 0.3s ease;
}

/* Organisations Carousel */
.organisations-section {
    margin: var(--spacing-xl) 0;
}

.carousel-container {
    overflow: hidden;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    will-change: transform;
}

.carousel-item {
    flex: 0 0 200px;
    text-align: center;
    background: none;
    padding: var(--spacing-md);
    border-radius: 0;
    backdrop-filter: none;
    position: relative;
}

.org-logo {
    max-width: 150px;
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.org-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--neutral-white);
}

/* Organisations carousel - no fader sides, flush to section left and right */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + 2 * var(--spacing-md));
}

/* Fade in/out for logos as they scroll */
.carousel-track {
    position: relative;
}

.carousel-item {
    transition: opacity 0.3s ease;
}

/* Apply opacity gradient based on position - handled by JavaScript */

/* Content Blocks - Alternating Backgrounds */
.content-block {
    padding: var(--spacing-xl) var(--spacing-md);
    margin: 0;
}

/* Box/Overlay matching - Gentle gradients on overlays */
.page-facilitate .content-block:nth-child(odd) .facilitate-card,
.page-facilitate .content-block:nth-child(odd) .pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.page-facilitate .content-block:nth-child(even) .facilitate-card,
.page-facilitate .content-block:nth-child(even) .pricing-card {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.3) 0%, rgba(45, 134, 89, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-facilitate .content-block:nth-child(even) .facilitate-card {
    background: transparent !important; /* Green overlay now handled by .facilitate-card-background::after */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


.page-strategise .content-block:nth-child(odd) .service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.page-strategise .content-block:nth-child(even) .service-card {
    background: linear-gradient(135deg, rgba(46, 92, 138, 0.3) 0%, rgba(46, 92, 138, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-create .content-block:nth-child(odd) .performance-item,
/* Removed secondary color backgrounds - sections inherit from content-block */

/* Performance Section */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.performance-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    padding: var(--spacing-lg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    min-height: 250px;
}

.performance-item.revealed {
    background: transparent; /* Remove overlay when revealed */
    backdrop-filter: none;
}

.performance-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.performance-item:hover .performance-background {
    opacity: 0.4;
}

.performance-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.performance-item.revealed .performance-gif {
    display: none; /* Hide GIF completely */
}

.performance-item.revealed .performance-background {
    opacity: 1; /* Show background image at full opacity */
}

.gif-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performance-content {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.performance-item.revealed .performance-content {
    opacity: 0;
    pointer-events: none;
}

/* Button that appears when revealed */
.performance-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--create-primary);
    color: var(--neutral-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 0 0 12px 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: none;
    z-index: 3;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.performance-item.revealed .performance-button {
    display: block;
}

.performance-button:hover {
    background: var(--create-primary-dark);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.4);
}

.performance-item:hover:not(.revealed) {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.performance-item h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.performance-tagline {
    font-style: italic;
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

/* Album Section */
.album-section {
    display: grid;
    grid-template-columns: 1fr 1.15fr; /* flipping album 15% bigger */
    gap: var(--spacing-xl);
    align-items: center;
}

.album-content-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.album-reviews-container {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.album-review-box {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.album-stars-box {
    flex: 0 0 40%;
}

.album-quote-box {
    flex: 0 0 60%;
}

.album-stars {
    font-size: 2.5rem;
    color: var(--create-secondary);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    font-family: 'Times New Roman', Times, serif; /* Classical font */
    font-weight: 400;
}

.album-stars-label {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 900;
    font-family: 'Times New Roman', Times, serif !important;
    text-transform:uppercase;
    letter-spacing: 2px;
}

.album-quote {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--neutral-white);
    opacity: 0.95;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-sm);
}

.album-quote-label {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 900;
    font-family: 'Times New Roman', Times, serif !important;
    text-transform:uppercase;
    letter-spacing: 2px;
}

.album-blurb {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--neutral-white);
}

/* Duplicate removed - using definition above */

.album-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
    margin-top: 0; /* remove 25px top margin */
}

.album-flip-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: albumFlip 9.6s infinite;
}

.album-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    backface-visibility: hidden;
}

.album-image-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.album-image-back {
    z-index: 1;
    transform: rotateY(180deg);
}

@keyframes albumFlip {
    /* Show front for 4 seconds (0% to 41.67%) */
    0%, 41.67% {
        transform: rotateY(0deg);
    }
    /* Flip to back over 0.8 seconds (41.67% to 50%) */
    50% {
        transform: rotateY(180deg);
    }
    /* Show back for 4 seconds (50% to 91.67%) */
    50%, 91.67% {
        transform: rotateY(180deg);
    }
    /* Flip back to front over 0.8 seconds (91.67% to 100%) */
    100% {
        transform: rotateY(360deg);
    }
}

.album-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.album-rating {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

/* Duplicate removed - using the main .album-quote rule above */

/* Composition Section - layout only, no background/padding to avoid nested colored boxes */
.composition-note {
    font-style: italic;
    opacity: 0.9;
    margin-top: var(--spacing-md);
    color: var(--neutral-white);
}

/* Composition intro: one card with horizontal tabs (Intro / Genres / Instruments) */
.composition-intro-tabs {
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(249, 168, 37, 0.15) 0%, rgba(255, 183, 77, 0.2) 50%, rgba(249, 168, 37, 0.15) 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.composition-intro-tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0 var(--spacing-sm);
}

.composition-intro-tab-button {
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--neutral-white);
    font-weight: 600;
    font-size: calc(var(--font-size-base) * 0.9); /* 10% smaller */
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.composition-intro-tab-button[data-tab="instruments"] {
    font-size: calc(var(--font-size-base) * 0.72); /* 20% smaller */
}

.composition-intro-tab-button:hover {
    opacity: 1;
}

.composition-intro-tab-button.active {
    opacity: 1;
    color: var(--create-primary);
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.composition-intro-tab-button.active:first-child {
    border-radius: 12px 0 0 0;
}

.composition-intro-tab-button.active:last-child {
    border-radius: 0 12px 0 0;
}

.composition-intro-tab-panes {
    position: relative;
    min-height: 180px;
}

.composition-intro-tab-pane {
    display: none;
    padding: var(--spacing-lg);
}

.composition-intro-tab-pane.active {
    display: block;
}

.composition-intro-cards {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.composition-intro-card {
    flex: 1 1 300px;
    min-width: 250px;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(249, 168, 37, 0.15) 0%, rgba(255, 183, 77, 0.2) 50%, rgba(249, 168, 37, 0.15) 100%);
    backdrop-filter: blur(5px);
}

.composition-intro-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(249, 168, 37, 0.12) 0%, rgba(255, 183, 77, 0.18) 50%, rgba(249, 168, 37, 0.12) 100%);
}

.composition-intro-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.15) 0%, rgba(255, 193, 97, 0.22) 50%, rgba(255, 183, 77, 0.15) 100%);
}

.composition-intro-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(249, 168, 37, 0.18) 0%, rgba(255, 183, 77, 0.25) 50%, rgba(249, 168, 37, 0.18) 100%);
}

.composition-intro {
    color: var(--neutral-white);
    margin: 0;
    line-height: var(--line-height-base);
}

/* Pastel highlights for instruments and genres using nth-of-type */
.composition-intro span {
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 0 2px;
}

.composition-intro span:nth-of-type(10n+1) {
    background: rgba(255, 182, 193, 0.4); /* Light pink */
}

.composition-intro span:nth-of-type(10n+2) {
    background: rgba(173, 216, 230, 0.4); /* Light blue */
}

.composition-intro span:nth-of-type(10n+3) {
    background: rgba(255, 218, 185, 0.4); /* Peach */
}

.composition-intro span:nth-of-type(10n+4) {
    background: rgba(221, 160, 221, 0.4); /* Plum */
}

.composition-intro span:nth-of-type(10n+5) {
    background: rgba(144, 238, 144, 0.4); /* Light green */
}

.composition-intro span:nth-of-type(10n+6) {
    background: rgba(255, 228, 196, 0.4); /* Bisque */
}

.composition-intro span:nth-of-type(10n+7) {
    background: rgba(176, 224, 230, 0.4); /* Powder blue */
}

.composition-intro span:nth-of-type(10n+8) {
    background: rgba(255, 192, 203, 0.4); /* Pink */
}

.composition-intro span:nth-of-type(10n+9) {
    background: rgba(230, 230, 250, 0.4); /* Lavender */
}

.composition-intro span:nth-of-type(10n+10) {
    background: rgba(255, 250, 205, 0.4); /* Lemon chiffon */
}

/* Fire Choir Section */
.fire-choir-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin: var(--spacing-lg) 0;
}

.fire-choir-section .fire-choir-left ul {
    padding-left: 1.5em;
    list-style-position: outside;
}

.fire-choir-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Removed unused fire-choir-title - using subsection-title instead */

.fire-choir-subtitle {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
    color: var(--neutral-white);
}

.fire-choir-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.fire-choir-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
}

.fire-choir-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.fire-choir-carousel img.active {
    opacity: 1;
}

.fire-choir-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fire-choir-time {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.fire-choir-weekday {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--create-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fire-choir-time-detail {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--neutral-black);
    line-height: 1.2;
}

.fire-choir-location {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--neutral-grey);
    font-style: italic;
}

.fire-choir-logo {
    width: 30%;
    flex-shrink: 0;
}

.fire-choir-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Film Section */
.film-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: var(--spacing-md); /* Much smaller row gap */
    column-gap: var(--spacing-xl);
    align-items: start;
}

.film-left {
    position: relative;
    width: 100%;
    aspect-ratio: 1205 / 512;
    overflow: hidden;
    border-radius: 12px;
}

/* When containing YouTube, use the container's aspect ratio instead */
.film-left:has(.youtube-overlay-container) {
    aspect-ratio: auto;
    height: fit-content;
}

.youtube-overlay-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1205 / 512; /* Adjust this ratio to match your video - change to your preferred ratio */
    margin: 0 auto; /* Center horizontally if narrower than parent */
}

.youtube-overlay-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent all interaction with iframe */
}

.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent;
    display: block;
}

.youtube-overlay:hover {
    background: rgba(0, 0, 0, 0.05); /* Subtle hover feedback */
}

.film-gif-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.film-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    grid-column: 2;
    grid-row: 1;
}

.film-boxes {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: start;
}

.film-overview {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
    color: var(--neutral-white);
}

.film-overview p {
    color: var(--neutral-white);
}

.film-box {
    padding: var(--spacing-lg);
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.film-box-1 {
    background: rgba(255, 112, 67, 0.3); /* Lighter create-primary-light */
}

.film-box-2 {
    background: rgba(249, 168, 37, 0.3); /* Lighter create-secondary */
}

.film-box-3 {
    background: rgba(191, 54, 12, 0.25); /* Lighter create-primary-dark */
}

.film-box-4 {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.3) 0%, rgba(216, 67, 21, 0.25) 100%); /* Gradient from create-primary-light to create-primary */
}

.film-box h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-white);
    font-weight: 700;
}

.film-box-stat {
    font-size: var(--font-size-lg);
    font-weight: 700;
    padding: 0;
    margin-bottom: var(--spacing-xs);
    color: var(--neutral-white);
}

.film-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.film-box-list li {
    padding-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.film-box-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neutral-white);
    opacity: 0.9;
}

.film-box p,
.film-box li {
    color: var(--neutral-white);
}

.film-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

.film-year {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.film-image-container {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.film-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* About Hero Section */
.about-hero {
    padding-top: 200px;
    padding-bottom: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 200px var(--spacing-lg) var(--spacing-xl);
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-photo-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

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

.about-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.about-hero-text .hero-title {
    color: var(--neutral-white);
    margin-bottom: var(--spacing-sm);
}

.about-hero-text .hero-tagline {
    color: var(--neutral-white);
    opacity: 0.95;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--neutral-black);
}

.hero-tagline {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    color: var(--neutral-grey);
    font-style: italic;
}

.section-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    perspective: 2000px;
    perspective-origin: center center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: transparent;
    position: relative;
    transform-style: preserve-3d;
    min-height: 480px;
    width: 100%;
}

.section-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* White border creates the "dissected" gap effect - will be overridden by button-specific colors */
    border: 4px solid rgba(255, 255, 255, 0.9);
    position: absolute;
    width: 288px;
    height: 288px;
    /* Square shape for cube faces - 20% bigger than 240px (240px * 1.2 = 288px) */
    clip-path: none;
    /* 3D transform properties */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Cube face positioning - Based on interactive test results */

/* Create - Left face (inside wall) */
.button-create {
    left: calc(50% - 163px);
    top: 50%;
    transform: translate(-50%, -50%) perspective(2000px) rotateY(46deg) rotateX(-16deg) rotateZ(-17deg);
    transform-origin: center center;
    transform-style: preserve-3d;
}

/* Strategise - Back face (inside wall) */
.button-strategise {
    left: calc(50% + 125px);
    top: 50%;
    transform: translate(-50%, -50%) perspective(2000px) rotateY(-46deg) rotateX(-16deg) rotateZ(17deg);
    transform-origin: center center;
    transform-style: preserve-3d;
}

/* Facilitate - Bottom face (inside wall) */
.button-facilitate {
    left: calc(50% - 14px);
    top: calc(50% + 192px);
    transform: translate(-50%, -50%) perspective(2000px) rotateY(8deg) rotateX(62deg) rotateZ(52deg);
    transform-origin: center center;
    transform-style: preserve-3d;
}

/* Text content - warped to match plane but readable */
.section-button .button-title,
.section-button .button-summary {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Create and Strategise: Normal text orientation */
.button-create .button-title,
.button-create .button-summary,
.button-strategise .button-title,
.button-strategise .button-summary {
    transform: translateZ(10px);
}

/* Text pops out more on hover for 3D depth effect */
/* Button lifts 40px on hover, text lifts 50px to pop out slightly more */
.section-button:hover .button-title {
    transform: translateZ(20px);
}

.section-button:hover .button-summary {
    transform: translateZ(30px);
}

/* Facilitate: Normal text with rotation */
.button-facilitate .button-title {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    /* Rotate whole text box 47 degrees counterclockwise and warp to match plane */
    /* Using !important to ensure it overrides any other transforms */
    transform: translateZ(10px) rotateZ(-49deg) !important;
    top:40px;
    left:10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-facilitate .button-summary {
    margin-top: var(--spacing-sm);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    /* Rotate subtitle 47 degrees counterclockwise */
    transform: translateZ(10px) rotateZ(-49deg) !important;
    top:10px;
    left:50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Facilitate text pops out more on hover */
/* Button lifts 40px on hover, text lifts 50px to pop out slightly more */
.button-facilitate:hover .button-title {
    transform: translateZ(25px) rotateZ(-49deg) !important;
}

.button-facilitate:hover .button-summary {
    transform: translateZ(35px) rotateZ(-49deg) !important;
}

.section-button:hover {
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 1);
}

/* Maintain 3D position on hover - lift forward */
.button-create:hover {
    transform: translate(-50%, -50%) perspective(2000px) rotateY(46deg) rotateX(-16deg) rotateZ(-17deg) translateZ(40px) scale(1.05);
}

.button-strategise:hover {
    transform: translate(-50%, -50%) perspective(2000px) rotateY(-46deg) rotateX(-16deg) rotateZ(17deg) translateZ(40px) scale(1.05);
}

.button-facilitate:hover {
    transform: translate(-50%, -50%) perspective(2000px) rotateY(8deg) rotateX(62deg) rotateZ(52deg) translateZ(40px) scale(1.05);
}

.button-title {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.button-summary {
    display: block;
    font-size: var(--font-size-base);
    opacity: 0.8;
    font-weight: 400;
}

.button-create {
    background: linear-gradient(135deg, var(--create-primary-light) 0%, var(--create-primary) 100%);
    color: var(--neutral-white);
    border-color: var(--create-secondary);
}

.button-create:hover {
    background: linear-gradient(135deg, var(--create-primary) 0%, var(--create-primary-dark) 100%);
}

.button-strategise {
    background: linear-gradient(135deg, var(--strategise-primary-light) 0%, var(--strategise-primary) 100%);
    color: var(--neutral-white);
    border-color: var(--strategise-secondary);
}

.button-strategise:hover {
    background: linear-gradient(135deg, var(--strategise-primary) 0%, var(--strategise-primary-dark) 100%);
}

.button-facilitate {
    background: linear-gradient(135deg, var(--facilitation-primary-light) 0%, var(--facilitation-primary) 100%);
    color: var(--neutral-white);
    border-color: var(--facilitation-secondary);
}

.button-facilitate:hover {
    background: linear-gradient(135deg, var(--facilitation-primary) 0%, var(--facilitation-primary-dark) 100%);
}

/* About Section */
.about-intro {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    align-items: start;
    background: rgba(255, 255, 255, 0.5);
    padding: var(--spacing-xl);
    border-radius: 12px;
}

.about-portrait {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.about-text {
    font-size: var(--font-size-lg);
}

.about-lead {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

/* Projects Grid */
.projects-section {
    margin: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.3);
    padding: var(--spacing-xl);
    border-radius: 12px;
}

/* CV Sections - alternating backgrounds */
.cv-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl);
    border-radius: 12px;
}

.cv-section:nth-of-type(1) {
    background: rgba(255, 255, 255, 0.5);
}

.cv-section:nth-of-type(2) {
    background: rgba(255, 255, 255, 0.3);
}

.cv-section:nth-of-type(3) {
    background: rgba(255, 255, 255, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.project-item {
    background: var(--neutral-light-grey);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--neutral-light-grey);
}

.project-item h3 {
    font-size: var(--font-size-xl);
    margin: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--neutral-black);
}

.project-tagline {
    font-style: italic;
    font-size: var(--font-size-sm);
    color: var(--neutral-grey);
    margin: 0 var(--spacing-md) var(--spacing-sm);
}

.project-item p {
    margin: 0 var(--spacing-md) var(--spacing-md);
    color: var(--neutral-black);
    line-height: var(--line-height-relaxed);
}

/* Site Footer */
.site-footer {
    position: relative;
    padding: calc(var(--spacing-xl) + 50px) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    background: #000;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-xl);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/texture/footer_cracked.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--neutral-white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--neutral-black);
}

/* ============================================
   Case Studies Interactive Styles
   ============================================ */

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.case-study-card {
    position: relative;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.case-study-card:hover:not(.flipped) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.case-study-card.flip-animating {
    animation: compositionFlip 0.8s ease;
}

/* Front of card */
.case-study-card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.case-study-card .case-study-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
}

.case-study-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.case-study-card-front h3 {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
    margin: auto 0 0 0;
    font-size: var(--font-size-2xl);
    color: var(--neutral-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.case-study-card-front .case-study-summary {
    position: relative;
    z-index: 2;
    padding: 0 var(--spacing-md) var(--spacing-md);
    margin: 0;
    color: var(--neutral-white);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

/* Back of card - opacity cross-fade (no 3D rotate so text stays readable) */
.case-study-card .case-study-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.case-study-card.flipped .case-study-card-front {
    opacity: 0;
    pointer-events: none;
}

.case-study-card.flipped .case-study-detail {
    opacity: 1;
    pointer-events: auto;
}

.case-study-card .case-study-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

.case-study-detail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.case-study-card .case-study-detail-content,
.case-study-card .case-study-detail-content * {
    position: relative;
    color: var(--neutral-white);
}

.case-study-card .case-study-detail-content h4 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.case-study-card .case-study-detail-content .case-study-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.case-study-card .case-study-detail-content .case-study-blurb {
    margin-bottom: var(--spacing-md);
    line-height: 0.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.case-study-card .case-study-detail-content .case-study-impact {
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.case-study-card .case-study-detail-content .case-study-achievements {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    padding-left: 0;
    list-style-position: inside;
    font-size: 0.9em;
}

.case-study-card .case-study-detail-content .case-study-achievements li {
    margin-bottom: var(--spacing-xs);
}

/* Desktop: Modal */
.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.case-study-modal.active {
    opacity: 1;
    visibility: visible;
}

.case-study-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.case-study-modal-content {
    position: relative;
    background: var(--neutral-white);
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.case-study-modal.active .case-study-modal-content {
    transform: scale(1);
}

.case-study-modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.5);
    color: var(--neutral-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease;
}

.case-study-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.case-study-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.case-study-modal-content h3 {
    padding: var(--spacing-md);
    margin: 0;
    font-size: var(--font-size-2xl);
}

.case-study-modal-summary {
    padding: 0 var(--spacing-md);
    margin: 0 0 var(--spacing-md);
    color: var(--neutral-grey);
    font-style: italic;
}

.case-study-modal-detail {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* ============================================
   Booking Page Styles
   ============================================ */

.page-booking {
    background: linear-gradient(135deg, var(--neutral-light-grey) 0%, #e8e8e8 100%);
}

/* Flashy Words Animation */
/* Booking Hero Section */
.book-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) 0;
    min-height: 400px;
    position: relative;
}

.book-words-left,
.book-words-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: center;
}

.book-word {
    font-weight: 700;
    color: var(--strategise-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: gentleBob 3s ease-in-out infinite;
    white-space: nowrap;
}

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

.book-hero-photo {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Booking Process Steps */
.book-process {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    position: relative;
}

.process-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--neutral-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.process-steps-alternative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    position: relative;
}

.process-steps-alternative::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--strategise-primary);
}

.process-steps-alternative::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--strategise-primary);
}

.process-step-alternative {
    margin: 0;
}

.process-step-return {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(46, 92, 138, 0.1) 0%, rgba(46, 92, 138, 0.05) 100%);
    border: 2px dashed var(--strategise-primary);
}

.step-arrow {
    font-size: 2rem;
    color: var(--strategise-primary);
    font-weight: bold;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--strategise-primary);
    color: var(--neutral-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.step-content h3 {
    margin: 0 0 var(--spacing-xs);
    font-size: var(--font-size-xl);
}

.step-content p {
    margin: 0;
    color: var(--neutral-grey);
}

/* Rate Justification */
.rate-justification {
    background: var(--neutral-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-lg);
}

.justification-content .emphasis-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--strategise-primary);
    margin-bottom: var(--spacing-md);
}

/* Calendly Container */
.calendly-container {
    background: var(--neutral-white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.calendly-placeholder {
    padding: var(--spacing-xl);
}

.book-email-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--strategise-primary);
    color: var(--neutral-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.book-email-link:hover {
    background: var(--strategise-primary-dark);
}

/* Booking CTA Button */
.book-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.book-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--strategise-primary);
    color: var(--neutral-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.book-button:hover {
    background: var(--strategise-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.page-facilitate .book-button {
    background: var(--facilitation-primary);
}

.page-facilitate .book-button:hover {
    background: var(--facilitation-primary-dark);
}

/* ============================================
   Reviews Carousel Styles
   ============================================ */

/* Reviews Carousel - 60% width with preview cards */
.reviews-carousel-wrapper {
    width: 60%;
    margin: var(--spacing-xl) auto;
    position: relative;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

.reviews-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.45s ease-out;
    will-change: transform;
}

.review-slide {
    flex: 0 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.review-slide.active {
    z-index: 2;
    pointer-events: auto;
}

.review-slide.prev,
.review-slide.next {
    z-index: 1;
}

.review-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.review-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 92, 138, 0.5); /* Theme color at 50% opacity */
    z-index: 1;
}

.review-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    min-height: 400px;
    align-items: center;
}

.review-content {
    color: var(--neutral-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.review-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-quote {
    font-size: var(--font-size-xl);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--neutral-white);
    line-height: var(--line-height-relaxed);
    font-weight: 600;
}

.review-project,
.review-impact,
.review-paragraph {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
    line-height: var(--line-height-base);
}

.review-author {
    margin-top: var(--spacing-md);
    font-weight: 700;
    color: var(--neutral-white);
    font-size: var(--font-size-lg);
}

/* Slide visibility: track + overflow hidden shows one at a time; prev/next kept for semantics */

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.carousel-prev,
.carousel-next {
    background: var(--strategise-primary);
    color: var(--neutral-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--strategise-primary-dark);
}

.carousel-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neutral-light-grey);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--strategise-primary);
}

.reviews-swipe-hint {
    display: none;
}

.review-tap-hint {
    display: none;
}

/* ============================================
   Tools Tabs Styles
   ============================================ */

.tools-tabs {
    margin-top: var(--spacing-lg);
}

.tools-tab-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    border-bottom: 2px solid var(--neutral-light-grey);
}

.tool-tab-button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--neutral-light-grey);
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tool-tab-button:hover {
    color: var(--facilitation-secondary);
}

.tool-tab-button.active {
    color: var(--neutral-white);
    border-bottom-color: var(--neutral-white);
}

/* Mobile-only line breaks in tab labels - hidden on desktop */
.tool-tab-break-mobile {
    display: none;
}

.tool-tab-pane {
    display: none;
    padding: var(--spacing-md) 0;
}

.tool-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Error pages: neutral theme, vertically centred, header/footer retained */
.error-page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px - 120px);
    padding: calc(140px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    box-sizing: border-box;
}

.error-page-content {
    text-align: center;
    max-width: 28rem;
}

.error-page-code {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--neutral-dark-grey);
    margin: 0 0 var(--spacing-md);
}

.error-page-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--neutral-black);
    margin: 0 0 var(--spacing-sm);
}

.error-page-message {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--neutral-grey);
    margin: 0 0 var(--spacing-lg);
    line-height: var(--line-height-base);
}

.error-page-link a {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--neutral-black);
    text-decoration: underline;
}

.error-page-link a:hover {
    color: var(--neutral-dark-grey);
}

@media (max-width: 768px) {
    .error-page-wrap {
        min-height: calc(100vh - 120px - 100px);
        padding: calc(100px + var(--spacing-lg)) var(--spacing-md) var(--spacing-xl);
    }
}
