@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --bg-color: #FAFAFA;
    --text-main: #222222;
    --accent: #1A237E; 
    --accent-vibrant: #2979FF; 
}

html, body {
    width: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent-vibrant);
    outline-offset: 2px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

section { padding: 5rem 1rem; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header h2 { font-size: 2rem; color: var(--text-main); }

.section-header .underline { 
    width: 4rem; 
    height: 4px; 
    background-color: var(--accent); 
    margin: 0.5rem auto 0 auto; 
}

header {
    position: fixed;
    top: -150px; 
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease, background 0.3s ease;
}

header.header-scrolled {
    top: 0; 
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.9);
}

.g1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    transition: height 0.3s ease;
}

.g1 a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.g1 img {
    height: 5rem;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

header.header-scrolled .g1 img {
    height: 3.5rem;
}

.g1 div {
    display: flex;
    flex-direction: column;
}

.g1 h1, .g1 h2 {
    margin: 0;
    line-height: 1.2;
}

.g1 h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
}

.g1 h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.hero-fullscreen {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero-parallax-wrapper { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; z-index: 1; will-change: transform; }

.hero-bg { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); transform: scale(1.05); animation: slowZoom 15s linear infinite alternate; transition: object-position 0.6s ease; }

.hero-content-main { text-align: center; color: white; z-index: 2; animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; padding: 0 2rem; }

.hero-content-main h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.5rem; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.hero-content-main p { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.9; }

.hero-text-fullscreen {
    height: 100vh; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f3f4f6; 
}

.dynamic-text-container { will-change: transform, opacity; }

.dynamic-text-container h1 { font-size: clamp(4rem, 10vw, 8rem); color: #1a237e; font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.04em; }

.dynamic-text-container p { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #4b5563; max-width: 700px; margin: 0 auto; font-weight: 500; }

.heritage-melt { background: linear-gradient(180deg, #ffffff 0%, #f9fafb 15%, #f9fafb 100%); }

@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

#page-loader {
    position: fixed; inset: 0; z-index: 99999; 
    background: #000000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 1s cubic-bezier(0.75, 0, 0.25, 1), opacity 1s ease;
}

#page-loader.loader-hidden { 
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; 
}

.loader-inner { 
    display: flex; flex-direction: column; align-items: center; 
}

.loader-logo { 
    width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; 
    opacity: 0;
    margin-bottom: 2rem; 
    animation: 
        premiumReveal 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards,
        logoBreathe 3s ease-in-out infinite 1.8s; 
}

.loader-wordmark { 
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem; 
}

.loader-title { 
    font-size: clamp(1rem, 2.5vw, 1.6rem); 
    font-weight: 500; 
    letter-spacing: 0.5em; 
    color: #ffffff; 
    text-transform: uppercase; 
    display: flex; 
    justify-content: center; 
    margin-right: -0.5em; 
}

.loader-title .letter {
    display: inline-block;
    opacity: 0;
    animation: cinematicLetterWave 4.5s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.loader-title .letter.space { 
    width: 0.4em; 
}

.loader-sub { 
    font-size: 0.9rem; 
    font-weight: 400; 
    letter-spacing: 0.4em; 
    color: rgba(255, 255, 255, 0.6); 
    text-transform: uppercase; 
    margin-top: 1rem; 
    opacity: 0; 
    animation: 
        textFadeIn 2s ease 1.5s forwards,
        textPulse 3s ease-in-out infinite 3.5s; 
}

@keyframes premiumReveal {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(15px); box-shadow: 0 0 0 rgba(255,255,255,0); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08); }
}

@keyframes logoBreathe {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 10px 50px rgba(255, 255, 255, 0.25); }
}

@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes cinematicLetterWave {
    0% { opacity: 0; filter: blur(8px); transform: translateY(8px) scale(0.95); }
    15%, 65% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
    80%, 100% { opacity: 0; filter: blur(8px); transform: translateY(-8px) scale(0.95); }
}

footer { background-color: var(--text-main); color: #ffffff; text-align: center; padding: 3rem 1rem; }

footer p { font-size: 0.9rem; opacity: 0.8; color: #ffffff; margin-bottom: 0.5rem; }

footer a { color: #ffffff; text-decoration: underline; }

@media (max-width: 48rem) {
    header { padding: 0.8rem 1.2rem; }
    header .g1 img { height: 48px; border-radius: 6px; }
    header .g1 h1 { font-size: 1.3rem; }
    header .g1 h2 { font-size: 0.85rem; }
    .hero-bg { object-position: 75% center; } 
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation-play-state: paused !important; }
    .bento-card, .card, .marquee-track img { transition: none !important; transform: none !important; }
    .hero-bg { animation: none !important; }
}

.scroll-cascade {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
    will-change: opacity;
    backface-visibility: hidden;
}

.scroll-cascade:hover { opacity: 1; }

.scroll-cascade .chevron { width: 2.5rem; height: 2.5rem; opacity: 0; animation: cascade-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }

.scroll-cascade .chevron + .chevron { margin-top: -1.5rem; }

.scroll-cascade .c1 { animation-delay: 0s; }

.scroll-cascade .c2 { animation-delay: 0.15s; }

.scroll-cascade .c3 { animation-delay: 0.3s; }

@keyframes cascade-pulse {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

#featured-content { scroll-margin-top: 4.5rem; }