html {
    scroll-behavior: smooth !important;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: #E6E3D6;
    /* Warm beige matching the reference */
    color: #262624;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom serrated edge for the ticket */
.ticket-bottom {
    background-image: radial-gradient(circle, transparent 50%, #9EA08F 50%);
    background-size: 20px 20px;
    background-position: -10px -10px;
    height: 10px;
    width: 100%;
    transform: rotate(180deg);
}

/* Entrance Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-600 {
    animation-delay: 0.6s;
}

.animate-delay-800 {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper for scroll trigger */
.wait-reveal {
    animation-play-state: paused !important;
}

.wait-reveal.revealed {
    animation-play-state: running !important;
}


/* Design System Navigation */
.ds-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(230, 227, 214, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(38, 38, 36, 0.1);
}

.ds-nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.ds-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #57534e;
    text-decoration: none;
    transition: color 0.2s;
}

.ds-nav-links a:hover {
    color: #1c1917;
}

/* Section anchors */
.ds-section {
    scroll-margin-top: 80px;
}

/* Typography spec table */
.typography-spec {
    width: 100%;
    border-collapse: collapse;
}

.typography-spec tr {
    border-bottom: 1px solid rgba(38, 38, 36, 0.1);
}

.typography-spec td {
    padding: 1.5rem 0;
    vertical-align: baseline;
}

.typography-spec td:first-child {
    width: 200px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #57534e;
    font-family: 'Instrument Sans', sans-serif;
}

.typography-spec td:nth-child(2) {
    flex: 1;
}

.typography-spec td:last-child {
    width: 150px;
    text-align: right;
    font-size: 0.75rem;
    color: #78716c;
    font-family: 'Instrument Sans', sans-serif;
}

/* Color swatches */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.color-swatch {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(38, 38, 36, 0.1);
}

.color-swatch-preview {
    height: 120px;
    width: 100%;
}

.color-swatch-info {
    padding: 1rem;
    background: white;
}

.color-swatch-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #1c1917;
}

.color-swatch-value {
    font-size: 0.75rem;
    color: #78716c;
    font-family: monospace;
}

/* Component showcase */
.component-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.component-state {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.component-state-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #57534e;
}

/* --- Extracted Inline Styles --- */

/* Scroll fixes for offline viewing */
html,
body {
    overflow: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100% !important;
    scroll-behavior: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force visibility - many sites use JS animations for initial display */
body,
.wrapper,
main,
#__next,
#app,
.page,
.content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Disable loader/preloader overlays */
.loader,
.preloader,
.loading,
[class*="loader"],
[class*="preloader"] {
    display: none !important;
    opacity: 0 !important;
}

/* Show elements that might be hidden for animation */
.word-inner,
.char,
.line,
[data-aos],
[data-scroll],
.hero-text span,
.hero-fade,
[class*="hero"] span {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Reset Tailwind animation utility classes */
.translate-y-full,
.translate-x-full,
.-translate-y-full,
.-translate-x-full,
.translate-y-1\/2,
.-translate-y-1\/2,
.translate-y-\[100\%\],
.translate-y-\[110\%\] {
    transform: none !important;
}

/* Force visibility on common hidden-for-animation patterns */
.opacity-0,
[class*="opacity-0"] {
    opacity: 1 !important;
}

/* Reset scale transforms used for animations */
.scale-0,
.scale-50,
.scale-75 {
    transform: none !important;
}

html.lenis,
html.lenis-smooth,
body.lenis,
body.lenis-smooth,
.lenis-wrapper,
.lenis-content,
[data-lenis-prevent],
[data-scroll-container] {
    overflow: visible !important;
    height: auto !important;
}

/* Fix flex containers that might cut off content */
body.flex.items-center,
body.flex.justify-center {
    align-items: flex-start !important;
    min-height: 100vh;
    height: auto !important;
}

/* Ensure main content scrolls */
main,
#__next,
#__nuxt,
#app,
.main-content {
    overflow: visible !important;
    height: auto !important;
}

/* Card Stack Cycle Animation for 9 Cards */
@keyframes cardStackCycle9 {

    0%,
    9% {
        transform: translateY(0) scale(1);
        z-index: 30;
        opacity: 1;
        filter: blur(0px);
        pointer-events: auto;
    }

    11.11%,
    75% {
        transform: translateY(-40px) scale(0.8);
        z-index: 0;
        opacity: 0;
        filter: blur(4px);
        pointer-events: none;
    }

    77.77%,
    86% {
        transform: translateY(-30px) scale(0.85);
        z-index: 10;
        opacity: 0.5;
        filter: blur(2px);
        pointer-events: none;
    }

    88.88%,
    97% {
        transform: translateY(-15px) scale(0.92);
        z-index: 20;
        opacity: 0.75;
        filter: blur(1px);
        pointer-events: none;
    }

    100% {
        transform: translateY(0) scale(1);
        z-index: 30;
        opacity: 1;
        filter: blur(0px);
        pointer-events: auto;
    }
}

@media (min-width: 768px) {
    @keyframes cardStackCycle9 {

        0%,
        9% {
            transform: translateY(0) scale(1);
            z-index: 30;
            opacity: 1;
            filter: blur(0px);
            pointer-events: auto;
        }

        11.11%,
        75% {
            transform: translateY(-60px) scale(0.8);
            z-index: 0;
            opacity: 0;
            filter: blur(4px);
            pointer-events: none;
        }

        77.77%,
        86% {
            transform: translateY(-50px) scale(0.85);
            z-index: 10;
            opacity: 0.5;
            filter: blur(2px);
            pointer-events: none;
        }

        88.88%,
        97% {
            transform: translateY(-25px) scale(0.92);
            z-index: 20;
            opacity: 0.75;
            filter: blur(1px);
            pointer-events: none;
        }

        100% {
            transform: translateY(0) scale(1);
            z-index: 30;
            opacity: 1;
            filter: blur(0px);
            pointer-events: auto;
        }
    }
}