/* 
  Curious Planet Productions CSS
  Focus: Gallery-like, human, immersive, cinematic
*/

:root {
    /* Color Palette */
    --color-white: #FFFFFF;
    --color-earthy-cream: #F5EFEB;
    --color-earthy-cream-dark: #EAE3DD;
    --color-deep-navy: #151A22;
    --color-icy-blue: #D0E4EF;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --transition-slow: 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.6s ease;
}

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

body {
    background-color: var(--color-deep-navy);
    color: var(--color-deep-navy);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scroll Behavior (Native CSS Smooth Scroll) */
.scroll-smooth {
    scroll-behavior: smooth;
}

html {
    /* Required for sticky to work correctly inside body */
    height: 100%;
}

/* Typography Classes */
.font-playfair {
    font-family: var(--font-serif);
}

.font-inter {
    font-family: var(--font-sans);
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.not-italic {
    font-style: normal;
}

.font-semibold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-relaxed {
    line-height: 1.75;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.text-8xl {
    font-size: 6rem;
}

.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .lg\:text-8xl {
        font-size: 5rem;
    }

    .lg\:text-7xl {
        font-size: 4rem;
    }

    .lg\:text-6xl {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .md\:text-7xl {
        font-size: 4rem;
    }

    .md\:text-6xl {
        font-size: 3rem;
    }

    .md\:text-5xl {
        font-size: 2.5rem;
    }

    .md\:text-4xl {
        font-size: 2rem;
    }
}

/* Colors */
.bg-earthy-cream {
    background-color: var(--color-earthy-cream);
}

.bg-earthy-cream-dark {
    background-color: var(--color-earthy-cream-dark);
}

.bg-deep-navy {
    background-color: var(--color-deep-navy);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-black {
    background-color: #000;
}

.bg-transparent {
    background-color: transparent;
}

.text-earthy-cream {
    color: var(--color-earthy-cream);
}

.text-deep-navy {
    color: var(--color-deep-navy);
}

.text-white {
    color: var(--color-white);
}

/* Layout Utilities */
.container {
    width: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-sm {
    max-width: 24rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:w-1/2 {
        width: 50%;
    }
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.-bottom-12 {
    bottom: -3rem;
}

.-right-4 {
    right: -1rem;
}

@media (min-width: 768px) {
    .-right-12 {
        right: -3rem;
    }
}

/* Z-Index */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

/* Spacing Components */
.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

@media (min-width: 768px) {
    .md\:p-12 {
        padding: 3rem;
    }

    .md\:p-16 {
        padding: 4rem;
    }
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}

@media (min-width: 768px) {
    .md\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .md\:px-16 {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-24 {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.pt-24 {
    padding-top: 6rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mb-32 {
    margin-bottom: 8rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-24 {
    margin-top: 6rem;
}

.-mt-\[10vh\] {
    margin-top: -10vh;
}

@media (min-width: 768px) {
    .md\:mt-0 {
        margin-top: 0;
    }

    .md\:mt-24 {
        margin-top: 6rem;
    }
}

/* Gap */
.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-16 {
    gap: 4rem;
}

@media (min-width: 768px) {
    .md\:gap-24 {
        gap: 6rem;
    }
}

/* Visual treatments */
.opacity-0 {
    opacity: 0;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-100 {
    opacity: 1;
}

.text-white\/30 {
    color: rgba(255, 255, 255, 0.3);
}

.text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/30 {
    background-color: rgba(255, 255, 255, 0.3);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.text-deep-navy\/50 {
    color: rgba(21, 26, 34, 0.5);
}

.text-deep-navy\/60 {
    color: rgba(21, 26, 34, 0.6);
}

.text-deep-navy\/80 {
    color: rgba(21, 26, 34, 0.8);
}

.text-deep-navy\/90 {
    color: rgba(21, 26, 34, 0.9);
}

.bg-deep-navy\/30 {
    background-color: rgba(21, 26, 34, 0.3);
}

.border-deep-navy\/10 {
    border-color: rgba(21, 26, 34, 0.1);
}

.border-deep-navy\/20 {
    border-color: rgba(21, 26, 34, 0.2);
}

.object-cover {
    object-fit: cover;
}

.rounded-sm {
    justify-content: center;
    border-radius: 0.125rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-t-\[3rem\] {
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
}

.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

.mix-blend-difference {
    mix-blend-mode: difference;
}

.mix-blend-overlay {
    mix-blend-mode: overlay;
}

.mix-blend-screen {
    mix-blend-mode: screen;
}

.text-shadow-sm {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.filter {
    filter: drop-shadow(0 0 0 transparent);
}

.contrast-125 {
    filter: contrast(1.25);
}

.grayscale {
    filter: grayscale(1);
}

.group:hover .group-hover\:grayscale-0 {
    filter: grayscale(0);
}

/* Borders & Lines */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l {
    border-left-width: 1px;
}

.border-deep-navy {
    border-color: var(--color-deep-navy);
}

.border-white {
    border-color: var(--color-white);
}

.border-none {
    border-style: none;
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Transitions & Transforms */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.duration-\[1\.5s\] {
    transition-duration: 1.5s;
}

.duration-\[20s\] {
    transition-duration: 20s;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-105 {
    transform: scale(1.05);
}

.translate-y-4 {
    transform: translateY(1rem);
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

/* Hover States */
.hover\:opacity-50:hover {
    opacity: 0.5;
}

.hover\:opacity-70:hover {
    opacity: 0.7;
}

.hover\:opacity-100:hover {
    opacity: 1;
}

.hover\:bg-deep-navy:hover {
    background-color: var(--color-deep-navy);
}

.hover\:bg-earthy-cream:hover {
    background-color: var(--color-earthy-cream);
}

.hover\:bg-white:hover {
    background-color: var(--color-white);
}

.hover\:text-white:hover {
    color: var(--color-white);
}

.hover\:text-deep-navy:hover {
    color: var(--color-deep-navy);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Forms & Inputs */
.whitespace-nowrap {
    white-space: nowrap;
}

.w-full {
    width: 100%;
}

.flex-grow {
    flex-grow: 1;
}

.resize-none {
    resize: none;
}

.focus\:border-white:focus {
    border-color: rgba(255, 255, 255, 1);
}

/* Floating Labels (Tailwind Peer equivalent) */
.peer:placeholder-shown~label.peer-placeholder-shown\:text-sm {
    font-size: 0.875rem;
}

.peer:placeholder-shown~label.peer-placeholder-shown\:top-2 {
    top: 0.5rem;
}

.peer:focus~label.peer-focus\:-top-4 {
    top: -1rem;
}

.peer:focus~label.peer-focus\:text-xs {
    font-size: 0.75rem;
}

.peer:focus~label.peer-focus\:text-white {
    color: rgba(255, 255, 255, 1);
}


/* Hide scrollbar for carousel */
.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-hidden {
    overflow-y: hidden;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-mandatory {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .md\:w-\[60vw\] {
        width: 60vw;
    }
}

@media (min-width: 1024px) {
    .lg\:w-\[45vw\] {
        width: 45vw;
    }
}

.w-\[85vw\] {
    width: 85vw;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations & Interactivity */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Reveal Animations (Controlled by JS) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

.fade-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.float-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 0.4s;
    will-change: opacity, transform;
}

.is-revealed .float-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 200ms;
}

/* Clip Path for the Interstitial Image */
.clip-path-full {
    clip-path: inset(0 0 0 0);
}

/* Force hide Safari video controls on background videos */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}