/* -------------------------------------------------------------------------- */
/* LEON BLAKK - PRODUCTION STYLES                                             */
/* Full Tailwind Compatibility + Custom Design                                */
/* -------------------------------------------------------------------------- */

:root {
    --color-bg: #000000;
    --color-text: #EAEAEA;
    --color-accent: #fbbf24; /* Amber-400 */
    --color-glass: rgba(0, 0, 0, 0.3);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-logo: 'Staatliches', cursive;
    
    --transition-base: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* -------------------------------------------------------------------------- */
/* 1. TAILWIND PREFLIGHT (RESET) - CRITICAL FOR NO-CDN                        */
/* -------------------------------------------------------------------------- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
::before, ::after { --tw-content: ''; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-feature-settings: normal; font-variation-settings: normal; }
body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
abbr:where([title]) { text-decoration: underline dotted; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; }
:-moz-focusring { outline: auto; }
:-moz-ui-invalid { box-shadow: none; }
progress { vertical-align: baseline; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type='search'] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
fieldset { margin: 0; padding: 0; }
legend { padding: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
dialog { padding: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none; }

/* -------------------------------------------------------------------------- */
/* 2. BASE STYLES                                                             */
/* -------------------------------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
    background-color: var(--color-bg);
    background-image: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.12), transparent 60%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-body);
    cursor: none !important; 
    overflow-x: hidden;
    line-height: 1.5;
}

/* Restore cursor for inputs/buttons */
a, button, input, select, textarea, label { cursor: pointer !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; cursor: auto !important; }

/* Grainy Texture Overlay */
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency=".8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.15;
}

/* -------------------------------------------------------------------------- */
/* 3. TAILWIND COMPATIBILITY LAYER (Utilities)                                */
/* -------------------------------------------------------------------------- */

/* Arbitrary Value Support */
.text-\[\#EAEAEA\] { color: #EAEAEA; }
.min-h-\[40vh\] { min-height: 40vh; }
.gap-\[0\.3rem\] { gap: 0.3rem; }
.max-w-\[180px\] { max-width: 180px; }
.tracking-\[0\.5em\] { letter-spacing: 0.5em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.duration-\[1\.5s\] { transition-duration: 1.5s; }
.z-\[100\] { z-index: 100; }
.z-\[90\] { z-index: 90; }
.z-\[70\] { z-index: 70; }
.z-\[60\] { z-index: 60; }
.ease-\[cubic-bezier\(0\.23\,1\,0\.32\,1\)\] { transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.object-\[50\%_30\%\] { object-position: 50% 30%; }
.object-\[50\%_55\%\] { object-position: 50% 55%; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-w-\[95vw\] { max-width: 95vw; }
.max-h-\[95vh\] { max-height: 95vh; }
.text-\[10px\] { font-size: 10px; }
.text-\[40vh\] { font-size: 40vh; }
.text-\[25vw\] { font-size: 25vw; }

/* Display & Position */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; } .left-0 { left: 0; } .right-0 { right: 0; } .bottom-0 { bottom: 0; }
.top-1\/2 { top: 50%; } .left-1\/2 { left: 50%; } 
.right-12 { right: 3rem; } .right-4 { right: 1rem; } .right-6 { right: 1.5rem; } .right-8 { right: 2rem; }
.bottom-6 { bottom: 1.5rem; } .bottom-8 { bottom: 2rem; } .bottom-full { bottom: 100%; }
.left-4 { left: 1rem; } .left-6 { left: 1.5rem; } .left-1\.5 { left: 0.375rem; }

.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-50 { z-index: 50; } .z-\[-1\] { z-index: -1; }

/* Flexbox & Alignment */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid Template Columns (ADDED MISSING MOBILE CLASSES) */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Grid Spans (ADDED MISSING MOBILE CLASSES) */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.row-span-1 { grid-row: span 1 / span 1; }
.row-span-2 { grid-row: span 2 / span 2; }
.row-span-3 { grid-row: span 3 / span 3; }

/* Spacing (Gap) */
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; } .gap-y-8 { row-gap: 2rem; } .gap-x-8 { column-gap: 2rem; }
/* ADDED MISSING GAPS FOR LOGO WALL */
.gap-x-12 { column-gap: 3rem; }
.gap-y-12 { row-gap: 3rem; }

/* Space Between Children */
.space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.375rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-5 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.25rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* Sizing */
.w-full { width: 100%; } .h-full { height: 100%; } .w-screen { width: 100vw; } .h-screen { height: 100vh; } .min-h-screen { min-height: 100vh; }
.w-fit { width: fit-content; } .w-px { width: 1px; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-32 { width: 8rem; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 24rem; }

/* Margin & Padding */
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; } .mt-32 { margin-top: 8rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; } .mb-20 { margin-bottom: 5rem; }
.ml-1 { margin-left: 0.25rem; } .ml-2 { margin-left: 0.5rem; } .ml-4 { margin-left: 1rem; } .mr-2 { margin-right: 0.5rem; } .mr-3 { margin-right: 0.75rem; }

.p-1\.5 { padding: 0.375rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-0\.5 { padding-top: 0.125rem; } .pt-px { padding-top: 1px; }
.pt-2 { padding-top: 0.5rem; } .pt-6 { padding-top: 1.5rem; } .pt-8 { padding-top: 2rem; } .pt-16 { padding-top: 4rem; } .pt-24 { padding-top: 6rem; } .pt-32 { padding-top: 8rem; }
.pb-0\.5 { padding-bottom: 0.125rem; } .pb-1 { padding-bottom: 0.25rem; } .pb-4 { padding-bottom: 1rem; } .pb-6 { padding-bottom: 1.5rem; } .pb-20 { padding-bottom: 5rem; }
.pl-1 { padding-left: 0.25rem; } .pl-3 { padding-left: 0.75rem; }

/* Typography */
.font-title { font-family: var(--font-title); }
.font-logo { font-family: var(--font-logo); }
.font-body { font-family: var(--font-body); }
.font-inter { font-family: var(--font-inter); }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.underline { text-decoration: underline; }
.decoration-amber-400\/30 { text-decoration-color: rgba(251, 191, 36, 0.3); }
.align-middle { vertical-align: middle; }

/* Colors & Opacity */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-amber-400 { color: var(--color-accent); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-transparent { color: transparent; }
.text-red-500 { color: #ef4444; }

.text-white\/10 { color: rgba(255, 255, 255, 0.1); }
.text-white\/20 { color: rgba(255, 255, 255, 0.2); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }

.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

/* Borders & Rounded */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-white { border-color: #fff; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-transparent { border-color: transparent; }
.border-amber-400 { border-color: var(--color-accent); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Effects & Filters */
.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-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.blur-sm { filter: blur(4px); }
.mix-blend-difference { mix-blend-mode: difference; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top { object-position: top; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-y-hidden { overflow-y: hidden; }

/* Transforms */
.transform { transform: var(--tw-transform); }
.-rotate-90 { transform: rotate(-90deg); }
.rotate-45 { transform: rotate(45deg); }
.rotate-180 { transform: rotate(180deg); }
.-rotate-180 { transform: rotate(-180deg); }
.-rotate-45 { transform: rotate(-45deg); }
.translate-x-full { transform: translateX(100%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-0 { transform: translateY(0); }
.translate-y-4 { transform: translateY(1rem); }
.translate-y-20 { transform: translateY(5rem); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.scaleX-0 { transform: scaleX(0); }
.scaleX-1 { transform: scaleX(1); }
.origin-bottom-right { transform-origin: bottom right; }
.origin-bottom-left { transform-origin: bottom left; }

/* Transitions */
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-opacity { transition-property: opacity; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

/* Interactivity */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-wait { cursor: wait; }
.cursor-zoom-in { cursor: zoom-in; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.select-none { user-select: none; }
.resize-none { resize: none; }
.appearance-none { -webkit-appearance: none; appearance: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* -------------------------------------------------------------------------- */
/* 4. STATES (Hover, Focus, Group)                                            */
/* -------------------------------------------------------------------------- */
.hover\:text-white:hover { color: #fff; }
.hover\:text-amber-400:hover { color: var(--color-accent); }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-black:hover { color: #000; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-gray-200:hover { background-color: #e5e5e5; }
.hover\:bg-black\/60:hover { background-color: rgba(0, 0, 0, 0.6); }
.hover\:border-white:hover { border-color: #fff; }
.hover\:border-white\/30:hover { border-color: rgba(255, 255, 255, 0.3); }
.hover\:border-amber-400:hover { border-color: var(--color-accent); }
.hover\:border-amber-400\/50:hover { border-color: rgba(251, 191, 36, 0.5); }
.hover\:opacity-70:hover { opacity: 0.7; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:scale-105:hover { transform: scale(1.05); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-amber-400:focus { border-color: var(--color-accent); }
.focus\:ring-0:focus { box-shadow: none; }
.focus\:placeholder-gray-600:focus::placeholder { color: #4b5563; }
.placeholder-gray-800::placeholder { color: #1f2937; }

/* Group Hover Logic */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:text-amber-400 { color: var(--color-accent); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg); }
.group:hover .group-hover\:-rotate-180 { transform: rotate(-180deg); }

/* Details/Summary Open State */
details.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* -------------------------------------------------------------------------- */
/* 5. RESPONSIVE QUERIES                                                      */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-end { align-items: flex-end; }
    .md\:justify-end { justify-content: flex-end; }
    .md\:justify-start { justify-content: flex-start; }
    
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:row-span-2 { grid-row: span 2 / span 2; }
    .md\:row-span-3 { grid-row: span 3 / span 3; }
    
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:p-16 { padding: 4rem; }
    .md\:pt-32 { padding-top: 8rem; }
    .md\:pt-40 { padding-top: 10rem; }
    .md\:pb-32 { padding-bottom: 8rem; }
    .md\:mt-0 { margin-top: 0; }
    .md\:mt-16 { margin-top: 4rem; }
    .md\:mb-10 { margin-bottom: 2.5rem; }
    .md\:gap-16 { gap: 4rem; }
    .md\:gap-x-16 { column-gap: 4rem; }
    
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-8xl { font-size: 6rem; line-height: 1; }
    
    .md\:leading-\[0\.9\] { line-height: 0.9; }
    .md\:text-right { text-align: right; }
    .md\:order-first { order: -1; }
    
    .md\:max-w-sm { max-width: 24rem; }
    .md\:bottom-16 { bottom: 4rem; }
    .md\:left-16 { left: 4rem; }
    
    .md\:opacity-0 { opacity: 0; }
    .md\:pointer-events-auto { pointer-events: auto; }
    
    .md\:columns-2 { columns: 2; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hidden.lg\:flex { display: flex; }
    .lg\:gap-20 { gap: 5rem; }
    .lg\:columns-3 { columns: 3; }
    .lg\:block { display: block; }
}

@media (min-width: 1280px) {
    .xl\:gap-8 { gap: 2rem; }
    .xl\:p-8 { padding: 2rem; }
    .xl\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* -------------------------------------------------------------------------- */
/* 6. CUSTOM COMPONENT STYLES                                                 */
/* -------------------------------------------------------------------------- */

/* Navigation Components */
#main-nav {
    background-color: var(--color-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.scrolled-header #main-nav,
.scrolled-header .mobile-nav-bar {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.mobile-nav-bar {
    background-color: var(--color-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Glowing Button */
.glowing-btn {
    box-shadow: 0 0 5px #fff, 0 0 10px #fff; 
    animation: glow-animation 2.5s infinite ease-in-out;
    transition: all 0.3s ease;
}
@keyframes glow-animation {
    0%, 100% { box-shadow: 0 0 5px #fff, 0 0 10px #fff; }
    50% { box-shadow: 0 0 15px #fff, 0 0 20px #fff; }
}

/* Footer Link Underline */
.footer-link::after { 
    content: ''; position: absolute; width: 100%; transform: scaleX(0); 
    height: 1px; bottom: -2px; left: 0; background-color: var(--color-text); 
    transform-origin: bottom right; transition: transform 0.25s ease-out; 
}
.footer-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }

/* Menu Link Hover Slide */
.menu-link { transition: transform 0.3s ease; }
.menu-link:hover { transform: translateX(10px); }

/* Text Stroke */
.stroke-text { 
    -webkit-text-stroke: 1px rgba(255,255,255,0.5); 
    color: transparent; 
}
.stroke-text:hover { color: #fff; }

/* Grid & Overlay Animations */
.grid-item { position: relative; }
.grid-item img, .grid-item video { transition: transform 0.8s var(--transition-smooth); will-change: transform; }
.grid-item:hover img, .grid-item:hover video { transform: scale(1.05); }
.grid-item .overlay { 
    transition: opacity 0.5s ease; 
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}
/* IMPORTANT: Show overlay on hover for desktop */
.grid-item:hover .overlay { opacity: 1; }

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: #ffffff;
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 20;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.like-button { 
    position: absolute; 
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 20;
}

/* Masonry Layout Fixes */
.break-inside-avoid { break-inside: avoid; page-break-inside: avoid; }

/* Preloader */
#preloader { 
    position: fixed; inset: 0; background-color: #000; z-index: 10000; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    transition: opacity 0.7s ease-in-out, transform 0.8s cubic-bezier(0.87, 0, 0.13, 1);
    will-change: transform, opacity;
}
#preloader.slide-out { transform: translateX(-100%); pointer-events: none; opacity: 1; }
#preloader.loaded { opacity: 0; pointer-events: none; }
#preloader-text-container.visible { opacity: 1; }
#preloader-text-container p.visible { opacity: 1; transform: translateY(0); }

/* Spinner */
.spinner { position: relative; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.spinner span { position: absolute; top: 50%; left: var(--left); width: 35px; height: 7px; background: #ffff; animation: dominos 1s ease infinite; box-shadow: 2px 2px 3px 0px black; }
.spinner span:nth-child(1) { --left: 40px; animation-delay: 0.125s; }
.spinner span:nth-child(2) { --left: 30px; animation-delay: 0.3s; }
.spinner span:nth-child(3) { left: 20px; animation-delay: 0.425s; }
.spinner span:nth-child(4) { animation-delay: 0.54s; left: 10px; }
.spinner span:nth-child(5) { animation-delay: 0.665s; left: 0px; }
.spinner span:nth-child(6) { animation-delay: 0.79s; left: -10px; }
.spinner span:nth-child(7) { animation-delay: 0.915s; left: -20px; }
.spinner span:nth-child(8) { left: -30px; }
@keyframes dominos { 50% { opacity: 0.7; } 75% { transform: rotate(90deg); } 80% { opacity: 1; } }

/* Custom Cursor */
.custom-cursor { 
    position: fixed; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; 
    background-color: #ffffff; mix-blend-mode: difference; pointer-events: none; 
    transform: translate(-50%, -50%); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0;
    transition: width 0.4s var(--transition-smooth), height 0.4s var(--transition-smooth), opacity 0.2s ease-out; 
}
.custom-cursor.view-state { width: 90px; height: 90px; background-color: transparent; border: 1px solid #ffffff; }
.custom-cursor-hidden { opacity: 0 !important; width: 10px; height: 10px; }
.cursor-text-inner { 
    color: #ffffff; font-family: var(--font-body); font-size: 14px; font-weight: 300; opacity: 0; 
    transform: translateY(5px); transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s; 
}
.view-state .cursor-text-inner { opacity: 1; transform: translateY(0); }

/* Image Viewer & Animations */
#image-viewer, #terms-backdrop, #modal-backdrop { transition: opacity 0.4s ease-in-out; }
#viewer-image { transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-image-item, #viewer-image.zoom-in, img.cursor-zoom-in { cursor: zoom-in !important; }
#viewer-image.zoom-out { cursor: zoom-out !important; }
#viewer-image.grabbing { cursor: grabbing !important; }
#viewer-image.grab { cursor: grab !important; }

/* Scroll Animations */
.scroll-animate { opacity: 0; transition: opacity 0.6s ease-out; }
.scroll-animate.is-visible { opacity: 1; }

@keyframes fly-up {
    0% { transform: translateY(0) scale(0.8); opacity: 1; }
    100% { transform: translateY(-60px) scale(1.5); opacity: 0; }
}
.flying-heart { position: absolute; top: 0; left: 0; pointer-events: none; animation: fly-up 0.6s cubic-bezier(0.17, 0.84, 0.44, 1) forwards; fill: currentColor; }

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}
.animate-subtle-pulse { animation: subtle-pulse 4s ease-in-out infinite; }

/* Logo Wall Filters */
.logo-item { transition: all 0.3s var(--transition-smooth); }
.logo-item:hover { transform: scale(1.1); }
.logo-item img { opacity: 0.6; transition: all 0.3s var(--transition-smooth); filter: brightness(0) invert(1); }
.logo-item:hover img { opacity: 1; }
.logo-item .dark-icon { filter: brightness(1) invert(0); }

/* Page Transition */
.page-transition-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000000; z-index: 10001; opacity: 0; pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
body.page-exit-active .page-transition-overlay { opacity: 1; pointer-events: auto; }

/* Back to Top */
#back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 3rem; height: 3rem;
    background-color: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text); cursor: pointer; z-index: 100;
    opacity: 0; pointer-events: none; transform: translateY(20px);
    transition: all 0.4s var(--transition-smooth);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background-color: var(--color-text); color: var(--color-bg); transform: translateY(-5px); box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); border-color: var(--color-text); }

/* Custom Scrollbar */
.gallery-scrollbar::-webkit-scrollbar { height: 4px; width: 6px; }
.gallery-scrollbar::-webkit-scrollbar-track { background: #1a1a1a; }
.gallery-scrollbar::-webkit-scrollbar-thumb { background-color: #ffffff; border-radius: 20px; }

/* Grid Flow Dense Fix */
.grid-flow-row-dense { grid-auto-flow: row dense; }

/* -------------------------------------------------------------------------- */
/* 7. MARQUEE ANIMATION                                                       */
/* -------------------------------------------------------------------------- */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 40s linear infinite;
}

/* Pause on hover for readability */
.animate-marquee:hover {
    animation-play-state: paused;
}

/* -------------------------------------------------------------------------- */
/* 8. PREMIUM COMPONENTS (Added for Story.html)                               */
/* -------------------------------------------------------------------------- */
.story-description-premium {
    font-family: var(--font-body);
    font-weight: 300; /* Light weight for elegance */
    color: #e5e5e5;
    line-height: 1.75;
    letter-spacing: 0.025em;
    
    margin-top: 1.5rem;
    max-width: 42rem; /* approx max-w-2xl */
    
    /* The Noir/Premium Look */
    border-left: 1px solid var(--color-accent);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    
    /* Subtle gradient fade + blur for readability */
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    transition: all 0.5s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .story-description-premium {
        font-size: 0.875rem; /* text-sm */
        padding-left: 1rem;
        padding-right: 0.5rem;
        margin-top: 1rem;
        background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%); /* Darker on mobile for better text contrast */
        border-left-width: 2px; /* Thicker accent on small screens */
    }
}

/* -------------------------------------------------------------------------- */
/* 9. JOURNAL / BLOG STYLES (Added for blog.html)                             */
/* -------------------------------------------------------------------------- */

/* List Layout */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 6rem; /* Increased gap for split layout breathing room */
    padding-bottom: 8rem;
}

.journal-entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
    transition: border-color 0.3s ease;
    align-items: center; /* Vertically center image and text */
}

/* Desktop Split Layout */
@media (min-width: 1024px) {
    .journal-entry {
        grid-template-columns: 1fr 1fr; /* Image Left, Text Right */
        gap: 4rem;
    }
    
    /* Alternate Layout: Even items have Image Right, Text Left */
    .journal-entry:nth-child(even) {
        direction: rtl; /* Quick flip */
    }
    .journal-entry:nth-child(even) .journal-content-wrapper {
        direction: ltr; /* Restore text direction */
        text-align: left; /* Ensure text alignment is consistent */
    }
}

.journal-entry:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Image Styles */
.journal-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3; /* Standard editorial ratio */
    overflow: hidden;
    border-radius: 4px; /* Slight rounding */
    cursor: pointer;
}

.journal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    filter: grayscale(100%); /* Noir Style: Start B&W */
}

.journal-entry:hover .journal-image {
    transform: scale(1.05);
    filter: grayscale(0%); /* Reveal color on hover */
}

/* Content Styles */
.journal-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journal-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.journal-title {
    font-family: var(--font-title);
    font-size: 2.5rem; /* Slightly smaller for split layout */
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.journal-entry:hover .journal-title {
    color: #d1d5db; 
}

.journal-excerpt {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 60ch; /* Optimal reading width */
    margin-bottom: 2rem;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.3s ease;
    gap: 0.5rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    width: fit-content;
}

.read-btn:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Reader View (Overlay) */
.reader-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    z-index: 100; 
    overflow-y: auto;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

.reader-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

.reader-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

/* Typography for Article Content */
.article-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

.article-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.article-date {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-body {
    font-family: var(--font-title); 
    font-size: 1.35rem;
    line-height: 1.8;
    color: #d1d5db;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-family: var(--font-logo); 
    font-size: 2.5rem;
    color: #fff;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.article-body blockquote {
    border-left: 2px solid var(--color-accent);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.4;
}

.close-reader-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 110;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-reader-btn:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .journal-title {
        font-size: 3.5rem; /* Adjusted for split layout balance */
    }
    .article-title {
        font-size: 5rem;
    }
    .article-body {
        font-size: 1.5rem;
    }
}