@import url('lustile.css');

:root {
    --primary-black: #181818;
    --primary-white: #f4ede9;
    --primary-color: #323030;
    --secondary-color: #434343;
    --gray-light: #f5f5f5;
    --gray-dark: #2f2f2f;
    --gray-medium: #4c4c4c;
    --red: #bd3200;
    --summary-bg: var(--primary-white);
    --summary-border: var(--primary-black);
    --summary-accent: var(--accent-soft);
    --accent-warm: #ffae00;
    --resume: #ff7524;
    --accent-warm-rgb: rgba(255, 174, 0, 0.181);
    --accent-soft: #00e1ff;
    --accent-muted: #5c5c5c;
    --accent-success: #6aff00;
    --accent-success-rgb: 106, 255, 0;
    --accent-soft-rgb: 0, 225, 255;
    --bg: #f5f5f5;
    --dark: #1a1a1a;
    --wire: #1a1a1a;
    --text-dark: #000000;
    --text-light: #fff5cb;
    --accent-warm-trans: #2a2a2878;
    --accent-cold-trans: rgba(255, 255, 255, 0.471);
    --inner-shadow-light: inset 0 100px 7px rgba(255, 255, 255, 0.146);
    --inner-shadow-dark: inset 0 4px 15px rgba(255, 255, 255, 0.15);
    --inner-gradient-light: linear-gradient(to bottom, #00e1ff5e, transparent 50%);
    --inner-gradient: linear-gradient(to left, #00e1ff5e 10%, #8400ff5e 100%, transparent 100%, transparent 100%);

    --font-fallback: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";
    --font-main: 'Moderat-Regular', var(--font-fallback);
    --font-sec: 'Oswald-light';
    
    --text-base-size: 0.75rem;
    --text-scale-ratio: 1.25;

    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 1080;
    --z-index-max: 9999;

    --text-xxs: calc(var(--text-base-size) / var(--text-scale-ratio) / var(--text-scale-ratio));
    --text-xs: calc(var(--text-base-size) / var(--text-scale-ratio));
    --text-sm: calc(var(--text-base-size));
    --text-md: calc(var(--text-sm) * var(--text-scale-ratio));
    --text-lg: calc(var(--text-md) * var(--text-scale-ratio));
    --text-xl: calc(var(--text-lg) * var(--text-scale-ratio));
    --text-xxl: calc(var(--text-xl) * var(--text-scale-ratio));
    --text-xxxl: calc(var(--text-xxl) * var(--text-scale-ratio));
    
    --title-giant: 2.8rem;
    --title-md: 2.2rem;
    --title-sm: 1.8rem;

    --internal-spacing: var(--space-xl);
    --space-unit: 0.75rem;
    --space-xxs: calc(0.25 * var(--space-unit));
    --space-xs: calc(0.5 * var(--space-unit));
    --space-sm: calc(0.75 * var(--space-unit));
    --space-md: calc(1.25 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3.25 * var(--space-unit));
    --space-xxl: calc(5.25 * var(--space-unit));
    
    --header-height-mobile: 200vh;
    --transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}



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

.hero-storia .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.hero-storia .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.4) 100%
    );
}

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

.hero-storia h1 {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-storia .subtitle {
    font-family: var(--font-sec);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-storia .scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    animation: storia-bounce 2s infinite;
}

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

.story-block {
    display: grid;
    min-height: 100vh;
    align-items: center;
}

.story-block.image-left,
.story-block.image-right {
    grid-template-columns: 1fr;
}

.story-block .image-wrapper {
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.story-block .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.story-block:hover .image-wrapper img {
    transform: scale(1.03);
}

.story-block .text-content {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-block.image-right .image-wrapper {
    order: 0;
}

.story-block .chapter-number {
    font-family: var(--font-main);
    font-size: 6rem;
    font-weight: 300;
    color: rgba(0,0,0,0.1);
    line-height: 1;
    margin-bottom: -2rem;
}

.story-block h2 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.story-block p {
    font-family: var(--font-sec);
    font-size: 1rem;
    line-height: 1.9;
    color: #4a4a4a;
    max-width: 450px;
}

.sg-title {
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    position: relative;
    z-index: 1;
}

.sg-title h2 {
    font-family: var(--font-sec);
    font-size: var(--title-sm);
    color: var(--primary-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.staff-section {
    padding: 8rem 2rem;
    background: #1a1a1a;
    color: #fff;
}

.staff-section .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.staff-section h2 {
    font-family: var(--font-main);
    font-size: var(--text-xxxl);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.staff-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.staff-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.staff-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.staff-card .staff-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.staff-card:hover .staff-info {
    transform: translateY(0);
    opacity: 1;
}

.staff-info h3 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #fff;
}

.staff-info span {
    font-family: var(--font-sec);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    color: #fff;
}

.locations-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.location-story {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.location-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.location-story:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}

.location-story .location-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;
}

.location-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background 0.3s ease;
}

.location-story:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.location-story h3 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.location-story span {
    font-family: var(--font-sec);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
}

@media screen and (max-width: 280px) {
}

@media screen and (min-width: 576px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
    
    .story-block.image-left,
    .story-block.image-right {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-block .image-wrapper {
        height: 100vh;
    }
    
    .story-block .text-content {
        padding: 4rem 6rem;
    }
    
    .story-block.image-right .image-wrapper {
        order: 2;
    }

    
    
    
    .locations-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-card .location-content {
        padding: 0;
    }
}

@media screen and (min-width: 768px) {
    .staff-section {
        padding: 8rem 4rem;
    }
    
    .staff-grid {
        gap: 2rem;
    }
    
    .story-block .chapter-number {
        font-size: 6rem;
    }
    
    .story-block h2 {
        font-size: 2.5rem;
    }
    
    .story-block p {
        font-size: 1rem;
    }

    
    
    
    .location-card h3 {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 992px) {
    .staff-section {
        padding: 8rem 4rem;
    }
    
    .staff-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 1200px;
    }
    
    .staff-card .staff-info {
        padding: 2rem;
    }
    
    .staff-info h3 {
        font-size: 1.5rem;
    }

    
    
    
    .location-card {
        height: 80vh;
    }
    
    .location-card h3 {
        font-size: 2.5rem;
    }
}

@media screen and (min-width: 1200px) {
    .hero-storia .hero-content {
        max-width: 800px;
    }
    
    .story-block .text-content {
        max-width: 450px;
        margin: 0 auto;
    }
    
    
}

@media screen and (min-width: 1400px) {
    

}

@media screen and (min-width: 2001px) {
    
    
}

@media screen and (orientation: landscape) and (max-width: 992px) {
    .staff-card {
        aspect-ratio: 16/9;
    }

    
    
    
    .location-card {
        height: 100vh;
    }
}

@media screen and (max-width: 380px) {
    .hero-storia h1 {
        font-size: 2.5rem;
    }
    
    .staff-section {
        padding: 4rem 1rem;
    }
    
    .story-block .chapter-number {
        font-size: 4rem;
    }
    
    .story-block h2 {
        font-size: 2rem;
    }
    
    .story-block .text-content {
        padding: 2rem 1rem;
    }

    
    
    
    .location-card h3 {
        font-size: 2rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .staff-card:hover .staff-info {
        transform: translateY(30px);
        opacity: 0;
    }
    
    .staff-card .staff-info {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
    }
    
    .staff-card:hover img {
        filter: grayscale(100%);
        transform: none;
    }

    
    
    .location-card:hover img {
        transform: none;
    }
    
    .story-block:hover .image-wrapper img {
        transform: none;
    }
}

@media print {
    .hero-storia {
        height: auto;
        min-height: 50vh;
    }
    
    .hero-storia .scroll-indicator {
        display: none;
    }
    
    .story-block {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .staff-card .staff-info {
        position: relative;
        transform: none;
        opacity: 1;
        background: none;
        color: #000;
    }
    
    .staff-info h3,
    .staff-info span {
        color: #000;
    }
    
    .location-card::before {
        display: none;
    }
    
    .location-card .location-content {
        color: #000;
    }
}