/*
 * Lumio CMS Public Frontend – Tailwind CSS Fallback
 * Hand-written utility classes matching all section templates.
 * Replace with Tailwind CLI output when available.
 */

/* === Reset / Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { margin: 0; line-height: inherit; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; padding: 0; }
button { cursor: pointer; background: transparent; border: none; }
table { border-collapse: collapse; border-spacing: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; }

/* === Display === */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.grid { display: grid; }
.hidden { display: none; }

/* === Position === */
.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; }
.left-5 { left: 1.25rem; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.top-12 { top: 3rem; }

/* === Flexbox === */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.self-start { align-self: flex-start; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* === Grid === */
.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)); }
.col-span-3 { grid-column: span 3 / span 3; }

/* === Width === */
.w-full { width: 100%; }
.w-0\.5 { width: 0.125rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-auto { width: auto; }

/* === Height === */
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }

/* === Min/Max dimensions === */
.min-h-screen { min-height: 100vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[300px\] { min-height: 300px; }
.min-w-0 { min-width: 0; }
.max-w-none { max-width: none; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[160px\] { max-width: 160px; }
.max-h-96 { max-height: 24rem; }

/* === Aspect Ratio === */
.aspect-video { aspect-ratio: 16 / 9; }

/* === Spacing – Padding === */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.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-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.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; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pl-1 { padding-left: 0.25rem; }

/* === Spacing – Margin === */
.m-0 { margin: 0; }
.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; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === Typography – Size === */
.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; }

/* === Typography – Weight === */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* === Typography – Style === */
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }

/* === Text Colors === */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-800 { color: #3730a3; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-yellow-600 { color: #ca8a04; }
.text-yellow-700 { color: #a16207; }
.text-red-500 { color: #ef4444; }

/* === Background Colors === */
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.bg-transparent { background-color: transparent; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }

/* === Background Opacity (slash notation fallback) === */
.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }
.text-white\/90 { color: rgb(255 255 255 / 0.9); }

/* === Borders === */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-600 { border-color: #2563eb; }
.border-indigo-200 { border-color: #c7d2fe; }
.border-indigo-500 { border-color: #6366f1; }
.border-white { border-color: #fff; }
.border-transparent { border-color: transparent; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-l-md { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* === Ring (outline ring) === */
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, #3b82f6); }
.ring-blue-600 { --tw-ring-color: #2563eb; }
.ring-offset-2 { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tw-ring-color, #3b82f6); }

/* === Shadows === */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* === Opacity === */
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

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

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

/* === Transform === */
.scale-105 { transform: scale(1.05); }

/* === Filters === */
.grayscale { filter: grayscale(100%); }

/* === Transitions === */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* === Misc === */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.cursor-pointer { cursor: pointer; }

/* === Z-index === */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* === Hover States === */
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:text-indigo-800:hover { color: #3730a3; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:opacity-100:hover { opacity: 1; }
.group:hover .group-hover\:text-indigo-600 { color: #4f46e5; }

/* === Focus === */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #6366f1; }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 2px #6366f1; }

/* === Details/Summary (FAQ) === */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; }
.group-open\:rotate-180 { transition: transform 200ms; }
details[open] .group-open\:rotate-180,
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* === Responsive: sm (640px) === */
@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* === Responsive: md (768px) === */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:min-h-\[80vh\] { min-height: 80vh; }
    .md\:gap-8 { gap: 2rem; }
    .md\:gap-10 { gap: 2.5rem; }
    .md\:gap-12 { gap: 3rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:pb-12 { padding-bottom: 3rem; }
    .md\:h-12 { height: 3rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .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; }
}

/* === Responsive: lg (1024px) === */
@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)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:gap-14 { gap: 3.5rem; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* === Prose (rich text / article content) === */
.prose { color: #374151; }
.prose h1 { font-size: 2.25rem; font-weight: 800; margin-top: 0; margin-bottom: 0.8888889em; line-height: 1.1111111; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2em; margin-bottom: 1em; line-height: 1.3333333; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; margin-bottom: 0.6em; line-height: 1.6; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose a { color: #4f46e5; text-decoration: underline; }
.prose a:hover { color: #4338ca; }
.prose strong { font-weight: 600; }
.prose ul { list-style-type: disc; margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose ol { list-style-type: decimal; margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose blockquote { font-weight: 500; font-style: italic; border-left: 4px solid #e5e7eb; padding-left: 1em; margin: 1.6em 0; }
.prose pre { background: #1f2937; color: #e5e7eb; border-radius: 0.375rem; padding: 1rem; overflow-x: auto; margin: 1.5em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; }
.prose img { margin-top: 2em; margin-bottom: 2em; border-radius: 0.5rem; }
.prose-lg { font-size: 1.125rem; line-height: 1.7777778; }
.prose-sm { font-size: 0.875rem; line-height: 1.7142857; }

/* === Media Credit Overlay === */
.media-credit { position: absolute; bottom: 4px; right: 6px; color: #fff; opacity: .2; font-size: .625rem; line-height: 1; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* === Screen Reader Only === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* === Mobile Off-Canvas Menu === */

/* Burger button: hidden on desktop */
.nav-burger {
    display: none;
    position: relative;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #374151;
    flex-shrink: 0;
}

/* SVG icon cross-fade: burger ↔ X */
.nav-burger .burger-icon,
.nav-burger .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-burger .close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
}
.nav-burger.open .burger-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.7);
}
.nav-burger.open .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Open state: white icon on dark overlay */
.nav-burger.open { color: #fff; }

/* Header becomes transparent when overlay open */
.site-header.menu-open {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.site-header.menu-open .nav-logo {
    opacity: 0;
    pointer-events: none;
}
.site-header .nav-logo {
    transition: opacity 0.2s ease;
}

/* Fullscreen overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: linear-gradient(150deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}
.mobile-overlay.open {
    clip-path: inset(0 0 0% 0);
    pointer-events: all;
}

/* Decorative background watermark */
.mobile-overlay-deco {
    position: absolute;
    font-weight: 900;
    font-size: clamp(80px, 30vw, 200px);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    user-select: none;
    pointer-events: none;
    right: -5%;
    top: -2%;
    line-height: 1;
    letter-spacing: 0.04em;
}

/* Inner content area */
.mobile-overlay-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    max-width: 460px;
    padding: 24px 36px 88px;
}

/* Nav links in overlay */
.mobile-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.overlay-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-weight: 800;
    font-size: clamp(32px, 9vw, 52px);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.02em;
    line-height: 1.15;
    padding: 6px 0;
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(-28px);
    transition: color 0.2s ease;
}
.overlay-link:last-child { border-bottom: none; }
.overlay-link:hover { color: #fff; }

/* Accent bar on hover (uses --color-primary) */
.overlay-link::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-primary, #2563eb);
    transition: height 0.2s ease;
}
.overlay-link:hover::before { height: 60%; }

/* Link numbering */
.overlay-link-num {
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 400;
    color: var(--color-primary, #2563eb);
    opacity: 0.7;
    letter-spacing: 0.12em;
    flex-shrink: 0;
}

/* Staggered link entry animation */
.mobile-overlay.open .overlay-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s ease;
}
.mobile-overlay.open .overlay-link:nth-child(1) { transition-delay: 0.12s; }
.mobile-overlay.open .overlay-link:nth-child(2) { transition-delay: 0.19s; }
.mobile-overlay.open .overlay-link:nth-child(3) { transition-delay: 0.26s; }
.mobile-overlay.open .overlay-link:nth-child(4) { transition-delay: 0.33s; }
.mobile-overlay.open .overlay-link:nth-child(5) { transition-delay: 0.40s; }
.mobile-overlay.open .overlay-link:nth-child(6) { transition-delay: 0.47s; }

/* Contact info at bottom */
.overlay-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    transition: none;
}
.overlay-contact-item {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: color 0.2s;
}
.overlay-contact-item:hover { color: rgba(255, 255, 255, 0.6); }
.overlay-contact-sep { color: rgba(255, 255, 255, 0.15); font-size: 10px; }
.mobile-overlay.open .overlay-contact {
    opacity: 1;
    transition: opacity 0.4s ease 0.5s;
}

/* Mobile: show burger + activate overlay */
@media (max-width: 639px) {
    .nav-burger { display: flex; }
    .mobile-overlay { display: flex; }
    .mobile-overlay-inner { padding: 0 28px 68px; gap: 24px; }
    .overlay-link { font-size: clamp(26px, 8vw, 36px); }
}
