/* ===================================================================
   Aurora Plus theme - Generative art with palette-aware tinted bg
   Version: 1.0.1
   Author: Reveloni
   For: CMS 6.0.2+
   
   Based on Aurora, with three key improvements:
   1. Background now uses color-mix(in oklch, var(--primary), ...) so
      it tints with the admin palette (each palette = different bg).
   2. Light/Dark mode toggle works as unified tinted scale - both modes
      react to palette, just at different luminance points.
      Requires CMS 6.0.2+ for working toggle (script.js sets data-theme
      to "light" instead of removing the attribute).
   3. Footer uses grid auto-fit instead of flex justify-between, so
      it never breaks when section count changes (kontakt always stays
      on the left, regardless of whether information/social are present).
   
   Same CSS showcase: @property, oklch(), scroll-driven animations,
   container queries, :has(), View Transitions, linear() spring easing.
   
   Changelog:
     1.0.1 - Fixed descender cutoff in hero h1 and global headers.
             Increased line-height from 0.95 to 1.1 (hero) and 1.05 to
             1.15 (global). Added padding-bottom 0.1em to hero h1 to
             prevent gradient text background-clip from cropping glyphs.
             Day/night toggle now works (requires CMS 6.0.2+).
     1.0.0 - Initial release.
   =================================================================== */

/* === @PROPERTY: animated custom properties === */
@property --grad-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Aurora Plus palette - tinted dark using color-mix with --primary */
    --au-bg: color-mix(in oklch, var(--primary, #4a5cb8) 12%, #0a0a0f);
    --au-bg-elevated: color-mix(in oklch, var(--primary, #4a5cb8) 8%, #13131a);
    --au-bg-card: color-mix(in oklch, var(--primary, #4a5cb8) 6%, #16161f);
    --au-text: color-mix(in oklch, var(--primary, #4a5cb8) 4%, #e8e8f0);
    --au-text-secondary: color-mix(in oklch, var(--primary, #4a5cb8) 8%, #a0a0b0);
    --au-text-muted: color-mix(in oklch, var(--primary, #4a5cb8) 10%, #6a6a7a);
    --au-border: rgba(232, 232, 240, 0.06);
    --au-border-strong: rgba(232, 232, 240, 0.12);
    
    --text: var(--au-text);
    --text-secondary: var(--au-text-secondary);
    --text-muted: var(--au-text-muted);
    --bg: var(--au-bg);
    --bg-elevated: var(--au-bg-elevated);
    --bg-card: var(--au-bg-card);
    --border: var(--au-border);
    --border-strong: var(--au-border-strong);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    
    --ease-spring: linear(
        0, 0.005, 0.022, 0.05, 0.092, 0.151, 0.232, 0.339, 0.474, 0.638,
        0.823, 1.011, 1.171, 1.281, 1.341, 1.36, 1.353, 1.331, 1.302,
        1.272, 1.244, 1.222, 1.205, 1.196, 1.193 75.59%, 1.196, 1.202,
        1.207, 1.207, 1.205, 1.202, 1.198, 1.195, 1.193 96.21%, 1.197, 1.2
    );
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.5, 0, 0, 1);
    
    --transition: 0.5s var(--ease-out);
    --transition-fast: 0.25s var(--ease-out);
    --transition-spring: 0.7s var(--ease-spring);
    
    --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
    --au-bg: color-mix(in oklch, var(--primary, #4a5cb8) 8%, #fafafa);
    --au-bg-elevated: color-mix(in oklch, var(--primary, #4a5cb8) 5%, #f0f0f3);
    --au-bg-card: color-mix(in oklch, var(--primary, #4a5cb8) 3%, #ffffff);
    --au-text: color-mix(in oklch, var(--primary, #4a5cb8) 8%, #0a0a0f);
    --au-text-secondary: color-mix(in oklch, var(--primary, #4a5cb8) 12%, #4a4a5a);
    --au-text-muted: color-mix(in oklch, var(--primary, #4a5cb8) 15%, #8a8a9a);
    --au-border: rgba(10, 10, 15, 0.08);
    --au-border-strong: rgba(10, 10, 15, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(10, 10, 15, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 10, 15, 0.08), 0 2px 6px rgba(10, 10, 15, 0.04);
    --shadow-lg: 0 20px 48px rgba(10, 10, 15, 0.12), 0 4px 12px rgba(10, 10, 15, 0.06);
}

/* === ANIMATIONS === */
@keyframes mesh-drift {
    0%, 100% { background-position: 20% 30%, 80% 70%, 50% 50%; }
    33% { background-position: 60% 20%, 30% 80%, 70% 40%; }
    66% { background-position: 40% 70%, 70% 30%, 30% 60%; }
}

@keyframes gradient-text-flow { to { --grad-angle: 360deg; } }
@keyframes border-rotate { to { --grad-angle: 360deg; } }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30%, -20%) scale(1.1); }
    66% { transform: translate(-20%, 25%) scale(0.95); }
}

/* === VIEW TRANSITIONS === */
@view-transition { navigation: auto; }

::view-transition-old(root) {
    animation: 250ms var(--ease-snap) both fade-out-aurora;
}

::view-transition-new(root) {
    animation: 400ms var(--ease-out) both fade-in-aurora;
}

@keyframes fade-out-aurora { to { opacity: 0; transform: scale(0.99); } }
@keyframes fade-in-aurora {
    from { opacity: 0; transform: scale(1.01); }
    to { opacity: 1; transform: scale(1); }
}

/* === BASE === */
html { scroll-behavior: smooth; color-scheme: dark; }
[data-theme="light"] html, html[data-theme="light"] { color-scheme: light; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* === ANIMATED MESH GRADIENT BACKGROUND === */
body::before {
    content: '';
    position: fixed;
    inset: -10%;
    z-index: -1;
    background: 
        radial-gradient(ellipse 50% 40% at 20% 30%, oklch(70% 0.20 250 / 0.18), transparent 70%),
        radial-gradient(ellipse 45% 35% at 80% 70%, oklch(65% 0.22 320 / 0.15), transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 50%, oklch(72% 0.20 30 / 0.12), transparent 70%);
    background-position: 20% 30%, 80% 70%, 50% 50%;
    filter: blur(60px);
    animation: mesh-drift 90s ease-in-out infinite;
    pointer-events: none;
    will-change: background-position;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(ellipse 50% 40% at 20% 30%, oklch(70% 0.20 250 / 0.10), transparent 70%),
        radial-gradient(ellipse 45% 35% at 80% 70%, oklch(65% 0.22 320 / 0.08), transparent 70%),
        radial-gradient(ellipse 40% 35% at 50% 50%, oklch(72% 0.20 30 / 0.06), transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

body.js-ready[data-animations-enabled="true"] .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

body:not([data-animations-enabled="true"]) .animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.25rem; margin-top: 2.5rem; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: 0.85rem; margin-top: 2rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.6rem; font-weight: 500; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    text-wrap: pretty;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

a:hover { color: var(--text); border-bottom-color: currentColor; }
strong { font-weight: 600; color: var(--text); }
em { font-family: var(--font-display); font-style: italic; }

code, pre {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

code {
    background: var(--bg-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--text);
}

pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    line-height: 1.6;
}

pre code { background: none; padding: 0; }

/* === DARK MODE TOGGLE === */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    z-index: 50;
    transition: all var(--transition);
}

.dark-mode-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--text);
}

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in oklch, var(--bg) 70%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

[data-theme="light"] header { background: color-mix(in oklch, var(--bg) 80%, transparent); }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    gap: 2rem;
}

.logo-container { display: flex; align-items: center; gap: 1rem; }
.logo-container img { height: 80px; width: auto; }
.logo-container a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-container a:hover { border-bottom: none; }

.site-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
    font-style: italic;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 1.25rem 0 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { margin: 0 0.5rem; color: var(--text-muted); opacity: 0.5; }

/* === NAVIGATION === */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.hamburger-menu { position: relative; }

.hamburger-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-fast);
}

.hamburger-btn:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.active { display: block; animation: fade-up 0.3s var(--ease-out); }
.dropdown-menu ul { display: block; list-style: none; padding: 0; margin: 0; }
.dropdown-menu li { margin: 0; }

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: none;
    transition: background var(--transition-fast), color var(--transition-fast), padding var(--transition-fast);
}

.dropdown-menu a:hover, .dropdown-menu a.active {
    background: var(--bg-elevated);
    color: var(--text);
    padding-left: 2rem;
    border-bottom: none;
}

.dropdown-submenu { padding-left: 1rem; font-size: 0.85rem; list-style: none; margin: 0; }
.dropdown-submenu a { padding: 0.5rem 1.5rem; }
.dropdown-subsubmenu { padding-left: 2rem; font-size: 0.8rem; list-style: none; margin: 0; }
.dropdown-subsubmenu a { padding: 0.45rem 1.5rem; }

/* === HERO === */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem;
    overflow: hidden;
    counter-reset: section;
}

.hero .container::before {
    content: 'N° 01 — INDEX';
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.1em;
    max-width: 90%;
    text-wrap: balance;
    background: linear-gradient(
        var(--grad-angle),
        oklch(75% 0.18 250),
        oklch(72% 0.20 320),
        oklch(78% 0.15 30),
        oklch(75% 0.18 250)
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient-text-flow 12s linear infinite;
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(
        var(--grad-angle),
        oklch(50% 0.20 250),
        oklch(45% 0.22 320),
        oklch(55% 0.18 30),
        oklch(50% 0.20 250)
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

/* === CONTENT SECTIONS === */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
    margin: 3rem auto;
    box-shadow: var(--shadow-sm);
    max-width: 880px;
    position: relative;
    container-type: inline-size;
    counter-increment: section;
}

.content-section::before {
    content: 'N° ' counter(section, decimal-leading-zero);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.content-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.content-section h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--text);
}

.content-section h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-secondary);
}

.content-section ul, .content-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}
.content-section li { margin-bottom: 0.5rem; }

.content-section a:not(.cta-button):not(.price-tag):not(.btn) {
    color: var(--text);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    border-bottom: none;
    transition: background-size var(--transition-fast);
    padding-bottom: 0.05em;
}

.content-section a:not(.cta-button):not(.price-tag):not(.btn):hover {
    background-size: 100% 2px;
}

/* === ASYMMETRIC PAGE CARDS GRID === */
.page-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    container-type: inline-size;
}

.page-card:nth-child(even) { margin-top: 4rem; }

.page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s var(--ease-out), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform;
}

.page-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: conic-gradient(
        from var(--grad-angle),
        oklch(70% 0.20 250 / 0.5),
        oklch(72% 0.20 320 / 0.5),
        oklch(75% 0.18 30 / 0.5),
        oklch(70% 0.20 250 / 0.5)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    animation: border-rotate 8s linear infinite;
}

.page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    filter: drop-shadow(2px 0 0 oklch(70% 0.30 30 / 0.3))
            drop-shadow(-2px 0 0 oklch(70% 0.30 250 / 0.3));
}

.page-card:hover::before { opacity: 1; }

.page-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-elevated);
}

.page-card-placeholder {
    position: relative;
    height: 240px;
    background: 
        radial-gradient(circle at 30% 40%, oklch(70% 0.20 250 / 0.4), transparent 50%),
        radial-gradient(circle at 70% 60%, oklch(72% 0.20 320 / 0.35), transparent 50%),
        var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-card-placeholder::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle, oklch(75% 0.20 30 / 0.3), transparent 60%);
    border-radius: 50%;
    filter: blur(20px);
    animation: orb-drift 15s ease-in-out infinite;
}

.page-card-placeholder span { display: none; }

.page-card-placeholder::after {
    content: '✦';
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--text);
    opacity: 0.7;
    transition: opacity var(--transition), transform var(--transition-spring), color var(--transition);
    text-shadow: 0 4px 24px oklch(70% 0.20 250 / 0.4);
}

.page-card:nth-child(2) .page-card-placeholder::before { animation-delay: 3s; }
.page-card:nth-child(3) .page-card-placeholder::before { animation-delay: 6s; }
.page-card:nth-child(4) .page-card-placeholder::before { animation-delay: 9s; }
.page-card:nth-child(5) .page-card-placeholder::before { animation-delay: 12s; }
.page-card:nth-child(6) .page-card-placeholder::before { animation-delay: 1.5s; }

.page-card:hover .page-card-placeholder::after {
    opacity: 1;
    transform: scale(1.15) rotate(45deg);
    color: oklch(85% 0.15 250);
}

.page-card-content {
    padding: 1.75rem 1.75rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-card h3, .page-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0.65rem;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-card-link {
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    align-self: flex-start;
    transition: color var(--transition-fast), letter-spacing var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 0.15em;
}

.page-card-link::after {
    content: '→';
    transition: transform var(--transition);
    display: inline-block;
}

.page-card:hover .page-card-link { letter-spacing: 0.18em; }
.page-card:hover .page-card-link::after { transform: translateX(6px); }

.page-card:has(.page-card-image) .page-card-content { padding-top: 1.5rem; }
.page-card:has(.page-card-placeholder) .page-card-content { padding-top: 1.75rem; }

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.08); }

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    background: color-mix(in oklch, var(--bg) 95%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(232, 232, 240, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(232, 232, 240, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all var(--transition);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(232, 232, 240, 0.18);
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 3rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: var(--font-display);
    font-size: 6rem;
    font-style: italic;
    color: var(--text);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text);
    font-weight: 400;
    text-wrap: pretty;
}

.testimonial-author {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.testimonial-author::before { content: '— '; color: inherit; }

/* === CONTACT FORM === */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 3rem auto;
}

.contact-form h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    font-weight: 400;
}

.form-group { margin-bottom: 2rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.65rem 0;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-bottom-color: var(--text);
    border-bottom-width: 2px;
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    text-shadow: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--text);
    color: var(--bg);
    border-bottom: none;
}

.btn:active { transform: translateY(0); }

/* === CTA BUTTON & PRICE TAG === */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-body);
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: var(--shadow-md), 0 0 40px oklch(70% 0.20 250 / 0.2);
    transition: all var(--transition);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 60px oklch(70% 0.20 250 / 0.35);
    color: #fff;
    border-bottom: none;
}

.cta-button:active { transform: translateY(0); }

.price-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-body);
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin-top: 0.5rem;
    border: none;
}

a.price-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
    border-bottom: none;
}

/* === MESSAGES === */
.error, .success {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.error {
    background: oklch(50% 0.20 25 / 0.1);
    color: oklch(75% 0.18 25);
    border-color: oklch(50% 0.20 25 / 0.3);
}

.success {
    background: oklch(60% 0.18 145 / 0.1);
    color: oklch(75% 0.18 145);
    border-color: oklch(60% 0.18 145 / 0.3);
}

[data-theme="light"] .error {
    background: oklch(95% 0.05 25);
    color: oklch(40% 0.20 25);
    border-color: oklch(85% 0.10 25);
}

[data-theme="light"] .success {
    background: oklch(95% 0.05 145);
    color: oklch(35% 0.18 145);
    border-color: oklch(85% 0.10 145);
}

/* === FOOTER === */
footer {
    background: var(--footer-bg, var(--bg-elevated));
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 1.5rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem 3rem;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 3rem;
}

.footer-section { min-width: 0; }

.footer-section h3 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-section p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.footer-section ul, .footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-section li, .footer-menu li { margin: 0.5rem 0; }

.footer-section a, .footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
    font-size: 0.9rem;
    font-family: var(--font-body);
    border-bottom: none;
}

.footer-section a:hover, .footer-menu a:hover {
    color: #fff;
    border-bottom-color: transparent;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.copyright {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    letter-spacing: 0.1em;
}

.copyright p { margin: 0.3rem 0; color: inherit; font-family: var(--font-body); }

.copyright a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    border-bottom: none;
}

.copyright a:hover { color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .content-section { padding: 3rem 2.5rem; }
    .hero { min-height: 60vh; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .header-content { padding: 16px 0; }
    .logo-container img { height: 56px; }
    
    .hero { min-height: 50vh; padding: 3rem 0 2rem; }
    .hero h1 { font-size: clamp(2.25rem, 12vw, 4.5rem); }
    
    .content-section { padding: 2rem 1.5rem; border-radius: var(--radius-md); }
    .content-section::before { top: 1rem; right: 1.25rem; }
    .content-section h1 { font-size: 1.85rem; }
    
    .page-cards-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
    .page-card:nth-child(even) { margin-top: 0; }
    
    .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
    
    .testimonial-card { padding: 2.5rem 1.75rem 2rem; }
    .testimonial-card p { font-size: 1.1rem; }
    
    .contact-form { padding: 2rem 1.5rem; }
    
    .dark-mode-toggle {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .footer-content { gap: 2.5rem; }
}

@media (max-width: 480px) {
    .logo-container img { height: 48px; }
    .header-content { padding: 12px 0; }
    .hero h1 { font-size: clamp(2rem, 14vw, 3.5rem); }
    .testimonial-card::before { font-size: 4rem; }
    .page-card-placeholder::after { font-size: 3rem; }
}

@container (max-width: 500px) {
    .content-section h2 { font-size: 1.35rem; }
    .content-section h3 { font-size: 1.15rem; }
}

/* === SCROLL-DRIVEN ANIMATIONS === */
@supports (animation-timeline: scroll()) {
    .content-section {
        animation: fade-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 50%;
    }
    
    .page-card:nth-child(odd) {
        animation: fade-in-left linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 50%;
    }
    
    .page-card:nth-child(even) {
        animation: fade-in-right linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 50%;
    }
    
    .testimonial-card {
        animation: fade-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 50%;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none !important; }
    .hero h1 { animation: none !important; }
    .page-card::before { animation: none !important; }
    .page-card-placeholder::before { animation: none !important; }
    .page-card:hover { filter: none !important; }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT === */
@media print {
    body { background: #fff; color: #000; }
    body::before { display: none; }
    header, footer, .dark-mode-toggle, .hamburger-btn, .hamburger-menu { display: none !important; }
    .hero { padding: 1rem 0; min-height: auto; }
    .hero h1 {
        background: none !important;
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
    }
    .hero .container::before { display: none; }
    .content-section, .page-card, .testimonial-card, .contact-form {
        background: #fff;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    .content-section::before { display: none; }
    .page-card::before { display: none; }
    .page-card:nth-child(even) { margin-top: 0; }
}
