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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #c9a961;
    --text-light: #f5f5f5;
    --text-muted: #999999;
    --border-color: #333333;
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'TradeGothicLT', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    display: block;
    width: min(520px, 70vw);
    height: auto;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: loadingBar 2s ease-in-out infinite;
}

@keyframes loadingBar {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-logo a:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition-medium);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition-medium);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.8)),
                url('../images/hero.jpg') center/cover no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-scroll {
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--accent-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--accent-color);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Base Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--secondary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.section-divider {
    width: 80px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-light);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left var(--transition-medium);
    z-index: -1;
}

.btn-primary:hover, .btn-secondary:hover {
    color: var(--primary-color);
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    left: 0;
}

.btn-secondary {
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-secondary::before {
    background: var(--text-light);
}

.btn-secondary:hover {
    color: var(--primary-color);
}

/* Rimadesio Showcase */
.rimadesio-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.showcase-image:hover img {
    transform: scale(1.03);
}

.showcase-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.showcase-content p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Showroom Grid */
.showroom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    min-height: 600px;
}

.showroom-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.showroom-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.showroom-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.showroom-item:hover img {
    transform: scale(1.05);
}

.showroom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.showroom-item:hover .showroom-info {
    transform: translateY(0);
}

.showroom-info h3,
.showroom-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.showroom-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-form {
    background: var(--secondary-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid,
    .rimadesio-showcase,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .showroom-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .showroom-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-medium);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .content-gallery {
        grid-template-columns: 1fr;
    }
    
    .showroom-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .showcase-content h3,
    .about-text h3,
    .contact-info h3 {
        font-size: 2rem;
    }
    
    .content-text p,
    .showcase-content p,
    .about-text p {
        font-size: 1rem;
    }
}

body {
    height: 100vh;
    overflow: hidden;
}

.app {
    position: relative;
    width: 100%;
    height: 100vh;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--primary-color);
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    filter: blur(0px);
    transition:
        opacity 900ms ease,
        transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 1400ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.bg-layer.is-default {
    transform: scale(1.02);
    filter: blur(0px);
}

.bg-layer.is-cinematic {
    transform: scale(1.06);
    filter: blur(6px);
}

.bg-layer.is-cinematic.is-visible {
    transform: scale(1.02);
    filter: blur(0px);
}

.bg-layer.is-visible {
    opacity: 1;
}

.app.is-ueber-uns .bg-layer {
    transform: scale(1.02) !important;
    filter: blur(0px) !important;
    transition: opacity 900ms ease !important;
    transition-property: opacity !important;
}

.app.is-ueber-uns .bg-layer.is-cinematic,
.app.is-ueber-uns .bg-layer.is-default {
    transform: scale(1.02) !important;
    filter: blur(0px) !important;
}



.bg-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.22) 10%,
            rgba(0, 0, 0, 0) 26%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.70) 0%,
            rgba(0, 0, 0, 0.45) 18%,
            rgba(0, 0, 0, 0) 40%
        );
    pointer-events: none;
}

.portrait-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 520ms ease;
}

.portrait-stage.is-visible {
    opacity: 1;
}

.portrait-bg-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(18px) saturate(0.95) brightness(0.72);
    transform: none;
    opacity: 0;
    transition: opacity 520ms ease;
    will-change: opacity;
}

.portrait-bg-layer.is-visible {
    opacity: 1;
}

.portrait-img-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translate3d(0, 0, 0);
    z-index: 1;
    opacity: 0;
    transition: opacity 520ms ease;
    will-change: opacity;
}

.portrait-img-layer.is-visible {
    opacity: 1;
}

.app.is-ueber-uns .portrait-bg-layer,
.app.is-ueber-uns .portrait-img-layer {
    transform: none !important;
    transition-property: opacity !important;
    transition-duration: 650ms !important;
    transition-timing-function: ease !important;
}

.app.is-ueber-uns .portrait-stage {
    transition: none !important;
}

.portrait-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(18px) saturate(0.95) brightness(0.72);
    transform: scale(1.08);
    opacity: 1;
    transition: opacity 520ms ease, transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translate3d(0, 0, 0);
    z-index: 1;
    opacity: 1;
    transition: opacity 520ms ease, transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-caption {
    position: absolute;
    right: 40px;
    top: 28px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    max-width: min(520px, calc(100vw - 80px));
    text-align: right;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 480ms ease, transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-stage.is-switching .portrait-img {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.portrait-stage.is-switching .portrait-bg {
    opacity: 0.55;
    transform: scale(1.11);
}

.portrait-stage.is-switching .portrait-caption {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
}

.portrait-name {
    font-family: "TradeGothicLT", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.92);
    margin-bottom: 6px;
}

.portrait-role {
    color: rgba(245, 245, 245, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.panel-map {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.panel-map iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
    filter: grayscale(1) contrast(0.95) brightness(0.98);
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    column-gap: 10px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    opacity: 0.95;
    margin-top: 2px;
}

.contact-link {
    color: rgba(245, 245, 245, 0.78);
    text-decoration: none;
    line-height: 1.45;
    transition: color 180ms ease;
}

.contact-link:hover {
    color: rgba(245, 245, 245, 0.95);
}

.contact-actions {
    margin-top: 8px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0,0,0,0.12);
    color: rgba(245, 245, 245, 0.82);
    text-decoration: none;
    letter-spacing: 0.10rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    transition: border-color 200ms ease, transform 200ms ease, color 200ms ease, background 200ms ease;
}

.contact-button:hover {
    border-color: rgba(201, 169, 97, 0.65);
    color: rgba(245, 245, 245, 0.95);
    background: rgba(201, 169, 97, 0.10);
    transform: translateY(-1px);
}

.contact-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(245, 245, 245, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.legal-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: rgba(245, 245, 245, 0.62);
    font: inherit;
    cursor: pointer;
    transition: color 180ms ease;
}

.legal-link:hover {
    color: var(--accent-color);
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.legal-modal.is-hidden {
    display: none;
}

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
}

.legal-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(860px, calc(100vw - 40px));
    max-height: min(82vh, 760px);
    overflow: auto;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.legal-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.legal-modal__title {
    font-family: "TradeGothicLT", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.0rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.92);
}

.legal-modal__close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0,0,0,0.14);
    cursor: pointer;
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0;
    flex: 0 0 auto;
}

.legal-modal__close::before,
.legal-modal__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1.6px;
    background: rgba(245, 245, 245, 0.9);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
}

.legal-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.legal-modal__body {
    padding: 16px 18px 20px;
    color: rgba(245, 245, 245, 0.72);
    font-size: 0.95rem;
    line-height: 1.55;
}

.legal-modal__body h4 {
    margin: 18px 0 8px;
    font-family: "TradeGothicLT", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.90);
}

.legal-modal__body p {
    margin: 0 0 10px;
}

.legal-modal__body a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-modal__body a:hover {
    text-decoration: underline;
}

.ui {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.logo {
    position: fixed;
    top: 28px;
    left: 40px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 34px;
    width: auto;
}

.home {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 500ms ease, transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.home.is-leaving {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(4px);
}

.home.is-hidden {
    opacity: 0;
    transform: translateY(10px);
}

.home-inner {
    text-align: center;
    max-width: 740px;
    padding: 0 22px;
}

.home-logo {
    display: block;
    width: min(520px, 78vw);
    height: auto;
    margin: 0 auto 22px;
}

.home-text {
    color: rgba(245, 245, 245, 0.90);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.85;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.02rem;
}

.menu {
    position: fixed;
    left: 40px;
    bottom: 34px;
    display: flex;
    gap: 22px;
    align-items: center;
    z-index: 3;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    will-change: transform, opacity, filter;
}

.menu-fab {
    display: none;
}

.app.is-transitioning .slider-controls {
    backdrop-filter: none;
}

.menu-item {
    color: rgba(245, 245, 245, 0.78);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    transition: color var(--transition-fast), transform 220ms ease, opacity 220ms ease;
    position: relative;
}

.menu:hover .menu-item {
    opacity: 1;
}

.menu-item:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
}

.menu-item.is-active {
    color: var(--accent-color);
}

.menu-item.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.9;
}

.panel {
position: fixed;
left: 40px;
bottom: 92px;
width: var(--menu-width, min(520px, calc(100vw - 80px)));
max-height: calc(100vh - 170px);
overflow: hidden;
padding: 18px 18px 20px;
background: rgba(0,0,0,0.22);
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
transform: translate3d(0, 12px, 0);
opacity: 1;
transition: opacity 400ms ease, transform 500ms ease, padding-bottom 700ms cubic-bezier(0.16, 1, 0.3, 1);
will-change: transform, opacity, filter;
}

.panel.is-reveal {
    animation: panelReveal 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 90px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 12px, 0);
    }
}


.panel.is-text-hidden {
    padding-bottom: 12px;
}


.panel.is-hidden {
    opacity: 0;
    transform: translate3d(0, 90px, 0);
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.panel-title {
    font-family: "TradeGothicLT", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12rem;
    color: rgba(245, 245, 245, 0.90);
    text-transform: uppercase;
}

.panel-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0,0,0,0.14);
    cursor: pointer;
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0;
    flex: 0 0 auto;
    transition: border-color 220ms ease, transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.panel-toggle:hover {
    border-color: rgba(201, 169, 97, 0.85);
    transform: translateY(-1px);
    background: rgba(201, 169, 97, 0.10);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}

.panel-toggle::before,
.panel-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1.6px;
    background: rgba(245, 245, 245, 0.9);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: background 220ms ease;
}

.panel-toggle:hover::before,
.panel-toggle:hover::after {
    background: rgba(201, 169, 97, 0.95);
}

.panel-toggle::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.panel.is-text-hidden .panel-toggle::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

.panel.is-text-hidden .panel-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.panel-body p {
    color: rgba(245, 245, 245, 0.70);
    font-size: 0.98rem;
    line-height: 1.42;
    margin-bottom: 5px;
}

.panel-body {
    overflow: hidden;
    max-height: 280px;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    transition:
        max-height 900ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 650ms ease,
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.panel.is-text-hidden .panel-body {
    max-height: 0;
    opacity: 0;
    transform: translate3d(0, 6px, 0);
}

.slider-controls {
    position: fixed;
    right: 40px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .logo {
        left: 18px;
        top: 18px;
        width: 96px;
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 6;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .app.is-menu-open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .menu {
        left: auto;
        right: 18px;
        bottom: 86px;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
        width: max-content;
        max-width: calc(100vw - 118px);
        padding: 12px 14px;
        transform: translate3d(0, 14px, 0);
        opacity: 0;
        pointer-events: none;
        z-index: 7;
        transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, opacity;
    }

    .menu.is-open {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    .menu.is-closing {
        pointer-events: none;
        opacity: 1;
        transform: translate3d(0, 0, 0);
        animation: menuContainerOut 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
        animation-delay: 600ms;
    }

    @keyframes menuContainerOut {
        from {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
        to {
            opacity: 0;
            transform: translate3d(0, 14px, 0);
        }
    }

    .menu:hover .menu-item {
        opacity: 1;
    }

    .menu-item {
        font-size: 0.85rem;
        padding: 6px 4px;
        transform: none;
    }

    .menu-item:hover {
        transform: none;
    }

    .menu .menu-item {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
        transition: opacity 180ms ease;
        will-change: transform, opacity;
    }

    .menu.is-open .menu-item {
        opacity: 1;
        animation: menuItemIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .menu.is-open .menu-item:nth-child(1) { animation-delay: 40ms; }
    .menu.is-open .menu-item:nth-child(2) { animation-delay: 90ms; }
    .menu.is-open .menu-item:nth-child(3) { animation-delay: 140ms; }
    .menu.is-open .menu-item:nth-child(4) { animation-delay: 190ms; }
    .menu.is-open .menu-item:nth-child(5) { animation-delay: 240ms; }

    .menu.is-closing .menu-item {
        opacity: 1;
        animation: menuItemOut 360ms cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .menu.is-closing .menu-item:nth-child(1) { animation-delay: 240ms; }
    .menu.is-closing .menu-item:nth-child(2) { animation-delay: 190ms; }
    .menu.is-closing .menu-item:nth-child(3) { animation-delay: 140ms; }
    .menu.is-closing .menu-item:nth-child(4) { animation-delay: 90ms; }
    .menu.is-closing .menu-item:nth-child(5) { animation-delay: 40ms; }

    .menu-fab {
        display: block;
        position: fixed;
        right: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(10px);
        z-index: 8;
        cursor: pointer;
        padding: 0;
        transition: border-color 220ms ease, transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
    }

    .menu-fab:hover {
        border-color: rgba(201, 169, 97, 0.85);
        background: rgba(201, 169, 97, 0.10);
        box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
        transform: translateY(-1px);
    }

    .menu-fab::before,
    .menu-fab::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        height: 2px;
        background: rgba(245, 245, 245, 0.92);
        transform-origin: center;
        transition: transform 220ms ease, background 220ms ease;
    }

    .menu-fab::before {
        transform: translate(-50%, -50%) translateY(-5px);
    }

    .menu-fab::after {
        transform: translate(-50%, -50%) translateY(5px);
    }

    .menu.is-open + .menu-fab::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .menu.is-open + .menu-fab::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .menu-fab:hover::before,
    .menu-fab:hover::after {
        background: rgba(201, 169, 97, 0.95);
    }

    .slider-controls {
        right: 82px;
        bottom: 18px;
        padding: 8px 10px;
        gap: 10px;
        z-index: 6;
    }

    .arrow {
        width: 40px;
        height: 40px;
    }

    .panel {
        left: 18px;
        bottom: 112px;
        width: calc(100vw - 36px);
        max-height: calc(100vh - 170px);
        overflow: auto;
    }

    .portrait-caption {
        right: 18px;
        top: 62px;
        max-width: calc(100vw - 36px);
    }

    @keyframes menuItemIn {
        from {
            transform: translate3d(0, 14px, 0) scale(0.98);
        }
        70% {
            transform: translate3d(0, -2px, 0) scale(1.01);
        }
        to {
            transform: translate3d(0, 0, 0) scale(1);
        }
    }

    @keyframes menuItemOut {
        from {
            transform: translate3d(0, 0, 0) scale(1);
            opacity: 1;
        }
        to {
            transform: translate3d(0, 10px, 0) scale(0.98);
            opacity: 0;
        }
    }
}

.slider-controls.is-hidden {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    pointer-events: none;
}

.arrow {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0,0,0,0.12);
    color: rgba(245, 245, 245, 0.85);
    width: 42px;
    height: 38px;
    cursor: pointer;
    transition: border-color 200ms ease, transform 200ms ease;
}

.arrow:hover {
    border-color: rgba(201, 169, 97, 0.65);
    transform: translateY(-1px);
}

.toolbar-container {
    display: none !important;
}

.counter {
    color: rgba(245, 245, 245, 0.65);
    font-size: 0.8rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    min-width: 92px;
    text-align: center;
}
