*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-dark: #050505;
    --color-bg-light: #111111;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-dim: #444444;
    --color-ferrari-red: #dc0000;
    --color-ferrari-red-dark: #a50000;
    --color-ferrari-yellow: #ffcc00;
    --color-accent: #dc0000;
    --color-overlay: rgba(10, 10, 10, 0.85);
    
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    
    --nav-height: 80px;
}

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
    text-rendering: optimizeSpeed;
}

body[data-loading="hard"] {
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; font-family: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; content-visibility: auto; }
video { max-width: 100%; display: block; }

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    overflow: hidden;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(20, 20, 20, 1) 0%, rgba(8, 8, 8, 1) 100%);
}

.preloader-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-ferrari-red);
    transform: scaleY(0);
    transform-origin: bottom;
}

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
}

.preloader-logo {
    width: 140px;
    height: auto;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: logoReveal 1s var(--ease-out) 0.2s forwards, logoGlow 3s ease-in-out 1.2s infinite;
}

.ferrari-logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 204, 0, 0.4));
}

@keyframes logoReveal {
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 204, 0, 0.4)); }
    50% { filter: drop-shadow(0 0 60px rgba(255, 204, 0, 0.7)); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(220, 0, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(220, 0, 0, 0.6)); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.preloader-text-reveal {
    overflow: hidden;
}

.preloader-title {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.preloader-title .char {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text);
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: charReveal 0.6s var(--ease-out) forwards;
}

.preloader-title .char:nth-child(1) { animation-delay: 0.4s; }
.preloader-title .char:nth-child(2) { animation-delay: 0.45s; }
.preloader-title .char:nth-child(3) { animation-delay: 0.5s; }
.preloader-title .char:nth-child(4) { animation-delay: 0.55s; }
.preloader-title .char:nth-child(5) { animation-delay: 0.6s; }
.preloader-title .char:nth-child(6) { animation-delay: 0.65s; }
.preloader-title .char:nth-child(7) { animation-delay: 0.7s; }

@keyframes charReveal {
    to { opacity: 1; transform: translateY(0); }
}

.preloader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 280px;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    transition: width 0.1s linear;
    position: relative;
    z-index: 1;
}

.progress-text {
    font-family: var(--font-display);
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
}

.progress-number {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.progress-percent {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.4;
    color: var(--color-text);
}

.preloader-tagline {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.35em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s var(--ease-out) 0.8s forwards;
    margin-top: -8px;
}

.preloader-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.preloader-lines span {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.025);
}

.preloader-lines span:last-child {
    border-right: none;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

#smoke-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    mix-blend-mode: soft-light;
}

#smoke-canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: blur(8px);
}

#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-smooth), opacity 0.15s, width 0.3s, height 0.3s;
}

.cursor-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s var(--ease-out), opacity 0.3s, width 0.4s, height 0.4s, border-color 0.3s;
    opacity: 0.5;
}

.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.cursor-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

body.cursor-hover .cursor-circle {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    border-color: var(--color-ferrari-red);
}

body.cursor-text-visible .cursor-text {
    opacity: 1;
}

body.cursor-text-visible .cursor-dot {
    opacity: 0;
}

body.cursor-magnetic .cursor-circle {
    transform: translate(-50%, -50%) scale(2.5);
    border-color: var(--color-ferrari-yellow);
}

#magnetic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
}

#navbar.hidden {
    transform: translateY(-100%);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: none;
}

.nav-logo-img {
    width: 36px;
    height: auto;
    transition: transform 0.4s var(--ease-out), filter 0.4s;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.5));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.1em;
    line-height: 1;
}

.nav-sub {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-progress {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.nav-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    transition: width 0.3s var(--ease-smooth);
}

.nav-chapter {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.chapter-current {
    color: var(--color-text);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: none;
    position: relative;
    border: 1px solid transparent;
    border-radius: 30px;
    transition: all 0.4s var(--ease-out);
}

.nav-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.menu-text {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu-btn:hover .menu-text {
    color: var(--color-ferrari-red);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all 0.4s var(--ease-out);
    transform-origin: center;
}

.nav-menu-btn:hover .menu-icon span {
    background: var(--color-ferrari-red);
}

.nav-menu-btn.active .menu-icon span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.nav-menu-btn.active .menu-icon span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open .menu-icon span:first-child {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .menu-icon span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

#fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

#fullscreen-menu.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

body.menu-open #fullscreen-menu {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    transform: translateY(-100%);
}

.menu-bg-layer:nth-child(1) { z-index: 3; }
.menu-bg-layer:nth-child(2) { z-index: 2; background: rgba(220, 0, 0, 0.95); }
.menu-bg-layer:nth-child(3) { z-index: 1; }

body.menu-open .menu-bg-layer {
    transform: translateY(0);
}

.menu-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 120px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.menu-main {
    flex: 1;
    display: flex;
    align-items: center;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(60px);
    cursor: none;
    position: relative;
    padding: 6px 0;
}

.menu-link .link-text {
    position: relative;
    transition: transform 0.4s var(--ease-out);
}

.menu-link:hover .link-text {
    transform: translateX(20px);
}

.menu-link::after {
    content: '';
    position: absolute;
    left: 60px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-ferrari-red);
    transition: width 0.4s var(--ease-out);
}

.menu-link:hover::after {
    width: calc(100% - 60px);
}

body.menu-open .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-link:hover {
    color: var(--color-ferrari-red);
}

.menu-link:hover .link-index {
    color: var(--color-ferrari-yellow);
    transform: scale(1.2);
}

.link-index {
    font-size: 14px;
    color: var(--color-text-dim);
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    transition: all 0.3s var(--ease-out);
    min-width: 30px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.menu-social {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.menu-social .social-link {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
    cursor: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.menu-social .social-link:hover {
    color: #ffffff;
    border-color: rgba(220, 0, 0, 0.6);
    background: rgba(220, 0, 0, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(220, 0, 0, 0.2);
}

.menu-social .social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    transition: all 0.3s var(--ease-out);
}

.menu-social .social-link:hover .social-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.menu-social .social-icon svg {
    width: 16px;
    height: 16px;
}

.menu-info {
    display: flex;
    gap: 32px;
    font-size: 12px;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.section {
    position: relative;
    min-height: 100vh;
}

.section-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.section-label-center {
    justify-content: center;
}

.section-label-light {
    color: rgba(255, 255, 255, 0.6);
}

.label-number {
    color: var(--color-ferrari-yellow);
    font-family: var(--font-display);
    font-size: 14px;
}

.label-line {
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.label-text {
    opacity: 0.8;
}

.reveal-text {
    overflow: hidden;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    filter: brightness(0.9) contrast(1.1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.2) 40%,
        rgba(10, 10, 10, 0.3) 60%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.hero-parallax-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.parallax-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    filter: blur(80px);
    display: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-ferrari-red);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-ferrari-yellow);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-ferrari-red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.parallax-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
}

.line-1 {
    width: 1px;
    height: 100%;
    left: 20%;
}

.line-2 {
    width: 1px;
    height: 100%;
    right: 20%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 60px 60px;
}

.hero-top {
    display: flex;
    justify-content: center;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.location-line {
    width: 40px;
    height: 1px;
    background: var(--color-text-muted);
}

.location-text {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.hero-title-container {
    position: relative;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(120px, 25vw, 350px);
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    user-select: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(70px, 18vw, 200px);
    line-height: 0.85;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.title-line {
    display: block;
}

.title-overflow {
    overflow: hidden;
}

.title-word {
    display: inline-block;
    transform: translateY(120%);
    opacity: 0;
}

.title-word.title-accent {
    color: var(--color-ferrari-red);
    text-shadow: none;
    background: transparent;
    box-shadow: none;
    mix-blend-mode: normal;
}

.hero-title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.decoration-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
}

.decoration-year {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.3em;
    color: var(--color-ferrari-yellow);
}

.hero-subtitle {
    max-width: 500px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(30px);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

.hero-quote {
    max-width: 280px;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(20px);
}

body.animations-ready .hero-quote {
    opacity: 1;
    transform: translateY(0);
}

.quote-decoration {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-ferrari-red), transparent);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 60px;
    color: var(--color-ferrari-red);
    line-height: 0.5;
    display: block;
    margin-bottom: 8px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.quote-author {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-scroll-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-text);
    border-radius: 3px;
    animation: scrollWheel 1.5s var(--ease-in-out) infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0; }
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

    align-items: center;
    width: 20px;
    gap: 6px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    height: 20px;
    animation: scrollArrow 1.5s var(--ease-in-out) infinite;
}

    min-width: 72px;
    width: 100%;
    height: 100%;
    stroke: var(--color-text-muted);
}
    font-size: 18px;
    opacity: 0.6;
    transform: translateY(2px);
    50% { transform: translateY(5px); opacity: 1; }
}

.hero-year {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
}

.year-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.year-number {
    font-family: var(--font-display);
    font-size: 56px;
    letter-spacing: 0.05em;
    display: flex;
}

.year-digit {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-scroll-progress {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress-bar {
    width: 100%;
    height: 0%;
    background: var(--color-ferrari-red);
    transition: height 0.1s linear;
}

.section-intro {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 120px 60px;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.intro-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.intro-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
}

.intro-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-ferrari-red);
    top: -100px;
    right: -100px;
}

.intro-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-ferrari-yellow);
    bottom: -150px;
    left: 20%;
}

.intro-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.intro-header {
    margin-bottom: 80px;
}

.intro-origin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.intro-origin-media {
    width: 100%;
    max-width: 640px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-origin-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.5s ease;
}

.intro-origin-media:hover img {
    filter: grayscale(0) contrast(1.1);
}

.intro-origin-text {
    padding-right: 40px;
}

.intro-origin-text .intro-text {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.intro-left {
    position: relative;
}

.intro-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 90px);
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 60px;
}

.intro-title-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
}

.intro-title em {
    font-style: normal;
    color: var(--color-ferrari-red);
    position: relative;
}

.intro-title em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-ferrari-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
}

.intro-title:hover em::after {
    transform: scaleX(1);
}

.intro-image-reveal {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-mask {
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 1s var(--ease-out);
}

.image-mask img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 1.5s var(--ease-out);
}

.intro-image-reveal:hover .image-mask img {
    transform: scale(1);
}

.intro-right {
    padding-top: 20px;
}

.intro-text {
    font-size: 20px;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(40px);
}

.intro-text-secondary {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(40px);
}

.intro-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.stat-number-wrapper {
    display: flex;
    align-items: flex-start;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 72px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-ferrari-yellow), var(--color-ferrari-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-ferrari-yellow);
    margin-left: 4px;
}

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

.stat-line {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-ferrari-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out) 0.3s;
}

.stat-item:hover .stat-line {
    transform: scaleX(1);
}

.horizontal-text-scroll {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.scroll-text-track {
    display: flex;
    gap: 100px;
    animation: textScroll 20s linear infinite;
}

.scroll-text-track span {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 200px);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-transform: uppercase;
}

@keyframes textScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.quote-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quote-image-parallax {
    width: 100%;
    height: 120%;
    position: absolute;
    top: -10%;
}

.quote-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: grayscale(30%);
    will-change: transform;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(220, 0, 0, 0.2) 100%);
}

.quote-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
}

.quote-lines span {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 60px;
}

.quote-decoration-top,
.quote-decoration-bottom {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--color-ferrari-red), transparent);
    margin: 0 auto 30px;
}

.quote-decoration-bottom {
    margin: 30px auto 0;
}

.quote-icon {
    font-family: var(--font-serif);
    font-size: 140px;
    color: var(--color-ferrari-red);
    line-height: 0.4;
    display: block;
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
}

.quote-main {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 80px);
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 50px;
}

.quote-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.quote-word.highlight {
    color: var(--color-ferrari-red);
}

.quote-author-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-ferrari-yellow);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.author-line {
    width: 40px;
    height: 1px;
    background: var(--color-ferrari-red);
}

.author-name {
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.author-years {
    font-size: 12px;
    color: var(--color-text-muted);
}

.quote-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-90deg);
}

.float-1 { left: 40px; top: 50%; }
.float-2 { right: 40px; top: 30%; }
.float-3 { right: 100px; bottom: 20%; }

.section-timeline {
    min-height: 100vh;
    padding: 160px 0;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1200px 1200px;
}

.timeline-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.timeline-year-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(150px, 25vw, 400px);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.timeline-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg-dark) 70%);
}

.timeline-header {
    text-align: center;
    padding: 0 60px;
    margin-bottom: 80px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1;
    margin-top: 24px;
}

.timeline-title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-title em {
    font-style: normal;
    color: var(--color-ferrari-red);
}

.timeline-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.timeline-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 60px;
}

.timeline-nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
    cursor: none;
}

.timeline-nav-btn:hover {
    background: var(--color-ferrari-red);
    border-color: var(--color-ferrari-red);
    transform: scale(1.1);
}

.timeline-nav-btn svg {
    width: 20px;
    height: 20px;
}

.timeline-nav-years {
    display: flex;
    gap: 24px;
}

.nav-year {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    cursor: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-year::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-ferrari-red);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out);
}

.nav-year:hover,
.nav-year.active {
    color: var(--color-text);
}

.nav-year.active::after {
    transform: scaleX(1);
}

.timeline-track {
    position: relative;
    padding: 40px 60px 80px;
}

.timeline-progress {
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    transition: width 0.5s var(--ease-smooth);
}

.timeline-progress-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: var(--color-ferrari-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.5s var(--ease-smooth);
    box-shadow: 0 0 20px var(--color-ferrari-yellow);
}

.timeline-items {
    display: flex;
    gap: 40px;
    padding-top: 60px;
    width: max-content;
    transition: transform 0.6s var(--ease-out);
}

.timeline-item {
    width: 400px;
    flex-shrink: 0;
    opacity: 0.4;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s var(--ease-out);
    contain: layout style;
    will-change: transform, opacity;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.marker-year {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.1em;
    color: var(--color-ferrari-yellow);
    margin-bottom: 12px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--color-ferrari-red);
    border-radius: 50%;
    position: relative;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-ferrari-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulse 2s var(--ease-out) infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.timeline-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out);
}

.timeline-item.active .timeline-card {
    border-color: rgba(220, 0, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.timeline-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.8) 100%);
}

.card-year-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: var(--color-ferrari-red);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.card-content {
    padding: 28px;
}

.card-header {
    margin-bottom: 16px;
}

.card-category {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-ferrari-yellow);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.02em;
}

.card-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-location {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.timeline-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.deco-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.deco-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.deco-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
}

.deco-line-1 {
    width: 1px;
    height: 200px;
    top: 20%;
    right: 100px;
}

.section-supercars {
    min-height: 100vh;
    padding: 160px 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0a0a0a 50%, var(--color-bg-dark) 100%);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1200px 1200px;
}

.supercars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    display: none;
}

.supercars-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(220, 0, 0, 0.03) 0%, transparent 35%);
    opacity: 0;
}

.supercars-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.5) 100px,
            rgba(255, 255, 255, 0.5) 101px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.5) 100px,
            rgba(255, 255, 255, 0.5) 101px
        );
}

.supercars-floating-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 200px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.supercars-floating-text:nth-child(2) {
    top: 20%;
    left: -10%;
}

.supercars-floating-text:nth-child(3) {
    bottom: 20%;
    right: -10%;
}

.supercars-header {
    text-align: center;
    padding: 0 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.supercars-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1;
    margin-top: 24px;
}

.supercars-title em {
    font-style: normal;
    color: var(--color-ferrari-yellow);
}

.supercars-gallery-wrapper {
    position: relative;
    padding: 0 60px;
}

.gallery-progress-wrapper {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 10;
}

.gallery-progress-bar {
    width: 3px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.gallery-counter {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.1em;
}

.supercars-gallery {
    overflow: hidden;
    position: relative;
    padding: 0 60px;
    z-index: 1;
}

.gallery-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 32px;
    transition: transform 0.6s var(--ease-out);
    width: max-content;
}

.supercar-card {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out);
    contain: layout style;
    will-change: transform;
}

.supercar-card:hover {
    border-color: rgba(220, 0, 0, 0.3);
    transform: translateY(-10px);
}

.card-inner {
    position: relative;
}

.supercar-card .card-media {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.supercar-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.supercar-card:hover .card-media img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.95) 100%);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s var(--ease-out);
}

.supercar-card:hover .card-shine {
    left: 100%;
}

.card-info {
    padding: 28px;
}

.car-year {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--color-ferrari-yellow);
    display: block;
    margin-bottom: 8px;
}

.car-name {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.car-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.car-specs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.car-specs .spec {
    display: flex;
    flex-direction: column;
}

.car-specs .spec-value {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-text);
}

.car-specs .spec-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-line {
    width: 30px;
    height: 1px;
    background: var(--color-ferrari-red);
    transition: width 0.3s var(--ease-out);
}

.supercar-card:hover .cta-line {
    width: 50px;
}

.cta-text {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--color-ferrari-red);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 60px;
}

.gallery-btn {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
    cursor: none;
}

.gallery-btn:hover {
    background: var(--color-ferrari-red);
    border-color: var(--color-ferrari-red);
}

.gallery-btn svg {
    width: 22px;
    height: 22px;
}

.gallery-counter {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.1em;
}

.counter-current {
    color: var(--color-text);
}

.counter-sep {
    color: var(--color-text-dim);
    margin: 0 8px;
}

.counter-total {
    color: var(--color-text-muted);
}

.gallery-progress {
    margin-top: 40px;
    padding: 0 60px;
}

.gallery-progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.gallery-progress-fill {
    width: 14%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    transition: width 0.5s var(--ease-out);
}

.supercars-marquee {
    margin-top: 100px;
    overflow: hidden;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-item::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-ferrari-red);
    border-radius: 50%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.section-racing {
    min-height: auto;
    padding: 160px 0 100px;
    background: var(--color-bg-dark);
    position: relative;
    overflow: visible;
    content-visibility: auto;
    contain-intrinsic-size: 1000px 1000px;
}

.racing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.racing-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(200px, 40vw, 600px);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    pointer-events: none;
}

.racing-checkered-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: 
        linear-gradient(45deg, #fff 25%, transparent 25%),
        linear-gradient(-45deg, #fff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fff 75%),
        linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

.racing-red-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center bottom, rgba(220, 0, 0, 0.15) 0%, transparent 70%);
}

.racing-header {
    text-align: center;
    padding: 0 60px;
    margin-bottom: 100px;
}

.racing-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1;
    margin-top: 24px;
}

.racing-title em {
    font-style: normal;
    color: var(--color-ferrari-red);
}

.racing-content {
    padding: 0 60px;
}

.racing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.racing-enzo-quote {
    position: relative;
    padding: 30px 0;
    margin-bottom: 40px;
    border-left: 3px solid var(--color-ferrari-red);
    padding-left: 24px;
}

.enzo-quote-mark {
    font-family: var(--font-serif);
    font-size: 80px;
    color: var(--color-ferrari-red);
    line-height: 0.5;
    display: block;
    margin-bottom: 16px;
    opacity: 0.8;
}

.enzo-quote-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.enzo-quote-author {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-ferrari-yellow);
}

.racing-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.racing-floating-stats {
    position: absolute;
    bottom: 60px;
    right: 60px;
}

.floating-stat {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.floating-stat .stat-value {
    font-family: var(--font-display);
    font-size: 36px;
    display: block;
    color: var(--color-ferrari-yellow);
}

.floating-stat .stat-desc {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.racing-image-stack {
    position: relative;
    height: 600px;
}

.stack-item {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

.stack-item-1 {
    width: 70%;
    height: 350px;
    top: 0;
    left: 0;
    z-index: 3;
}

.stack-item-2 {
    width: 60%;
    height: 300px;
    top: 30%;
    right: 0;
    z-index: 2;
}

.stack-item-3 {
    width: 50%;
    height: 250px;
    bottom: 0;
    left: 15%;
    z-index: 1;
}

.stack-item:hover {
    z-index: 10;
    transform: scale(1.05) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), z-index 0s;
}

.racing-driver-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: auto;
    max-width: 90%;
}

.driver-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.driver-name {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.driver-number {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-ferrari-red);
    text-shadow: 0 0 30px rgba(220, 0, 0, 0.5);
}

.stack-image {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: all 0.6s var(--ease-out);
}

.stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-1 {
    width: 70%;
    height: 350px;
    top: 0;
    left: 0;
    z-index: 3;
}

.stack-2 {
    width: 60%;
    height: 300px;
    top: 30%;
    right: 0;
    z-index: 2;
}

.stack-3 {
    width: 50%;
    height: 250px;
    bottom: 0;
    left: 15%;
    z-index: 1;
}

.stack-image:hover {
    z-index: 10;
    transform: scale(1.05);
}

.racing-achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.achievement {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.achievement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.achievement:hover {
    border-color: rgba(220, 0, 0, 0.3);
    transform: translateY(-5px);
}

.achievement:hover::before {
    transform: scaleX(1);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 0, 0, 0.1);
    border-radius: 10px;
}

.achievement-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-ferrari-red);
}

.achievement-number {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.achievement-block {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.achievement-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.achievement-block:hover {
    border-color: rgba(220, 0, 0, 0.3);
    transform: translateX(10px);
}

.achievement-block:hover::before {
    opacity: 1;
}

.achievement-number {
    font-family: var(--font-display);
    font-size: 72px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.achievement-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-dim);
    margin-top: 16px;
}

.racing-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.5s var(--ease-out);
    cursor: none;
    position: relative;
    overflow: hidden;
}

.racing-cta .cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-ferrari-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}

.racing-cta:hover .cta-bg {
    transform: scaleX(1);
}

.racing-cta:hover {
    border-color: var(--color-ferrari-red);
}

.racing-cta .cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out);
}

.racing-cta:hover .cta-icon {
    transform: translateX(5px);
}

.racing-stats-strip {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.racing-stat {
    padding: 50px 40px;
    background: var(--color-bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.racing-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(220, 0, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.racing-stat:hover::before {
    opacity: 1;
}

.racing-stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    display: block;
}

.racing-stat-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 12px;
    display: block;
}

.racing-stat-year {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
    margin-top: 8px;
    display: block;
}

.section-moments {
    min-height: 100vh;
    padding: 160px 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #050505 50%, var(--color-bg-dark) 100%);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1200px 1200px;
}

.moments-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.moments-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-ferrari-red);
    border-radius: 50%;
    opacity: 0.3;
}

.moments-ambient-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(220, 0, 0, 0.05) 0%, transparent 60%);
}

.moments-header {
    text-align: center;
    padding: 0 60px;
    margin-bottom: 100px;
}

.moments-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1;
    margin-top: 24px;
}

.moments-title em {
    font-style: normal;
    color: var(--color-ferrari-yellow);
}

.moments-container {
    padding: 0 60px;
}

.moments-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
    padding: 0 60px;
}

.moment-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: none;
}

.moment-1 { grid-column: span 7; grid-row: span 2; }
.moment-2 { grid-column: span 5; }
.moment-3 { grid-column: span 5; }
.moment-4 { grid-column: span 4; }
.moment-5 { grid-column: span 4; }
.moment-6 { grid-column: span 4; }

.moment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.moment-item:hover .moment-image {
    transform: scale(1.1);
}

.moment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.moment-item:hover .moment-overlay {
    opacity: 1;
}

.moment-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
}

.moment-item:hover .moment-content {
    transform: translateY(0);
    opacity: 1;
}

.moment-year {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--color-ferrari-yellow);
    margin-bottom: 8px;
}

.moment-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.moment-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.moment-corner-deco {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-ferrari-red);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    transform: translate(-10px, -10px);
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    transform: translate(10px, 10px);
}

.moment-item:hover .moment-corner-deco {
    opacity: 1;
    transform: translate(0, 0);
}

.moment-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: none;
    min-height: 400px;
    background: var(--color-bg-light);
    contain: layout style;
    will-change: transform;
}

.moment-card.moment-large {
    grid-row: span 2;
    min-height: 100%;
}

.moment-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.moment-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.moment-card:hover .moment-media img {
    transform: scale(1.1);
}

.moment-card .moment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.9) 100%);
    opacity: 1;
    transition: opacity 0.5s var(--ease-out);
}

.moment-card .moment-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
}

.moment-location {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--color-ferrari-yellow);
    margin-bottom: 8px;
    display: block;
}

.moment-card .moment-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.moment-card .moment-year {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.moment-hover-content {
    max-height: 140px;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
    margin-top: 12px;
}

.moment-card:hover .moment-hover-content {
    max-height: 100px;
    margin-top: 16px;
}

.moment-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.moment-frame {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.moment-card:hover .moment-frame {
    opacity: 1;
}

.moments-decorative {
    position: absolute;
    left: 0;
    bottom: 100px;
    pointer-events: none;
}

.deco-text {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 120px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    letter-spacing: 0.2em;
}

.moments-cta {
    margin-top: 80px;
    text-align: center;
}

.moments-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.5s var(--ease-out);
    cursor: none;
}

.moments-cta-btn:hover {
    background: var(--color-ferrari-red);
    border-color: var(--color-ferrari-red);
}

.moments-cta-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out);
}

.moments-cta-btn:hover svg {
    transform: translateX(5px);
}

.section-legacy {
    min-height: 100vh;
    padding: 160px 0;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.legacy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.legacy-smoke {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.legacy-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(220, 0, 0, 0.1) 0%, transparent 50%);
}

.legacy-content {
    position: relative;
    z-index: 1;
    padding: 0 60px;
    text-align: center;
}

.legacy-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 180px);
    line-height: 0.9;
    margin-bottom: 60px;
}

.legacy-title-line {
    display: block;
    opacity: 0;
    transform: translateY(80px);
}

.legacy-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-ferrari-red), var(--color-ferrari-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legacy-description {
    max-width: 800px;
    margin: 0 auto 80px;
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.8;
    color: var(--color-text-muted);
}

.legacy-cta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 50px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 20px 48px;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid var(--color-ferrari-red);
    background: var(--color-ferrari-red);
    color: #ffffff;
    overflow: hidden;
    cursor: none;
    transition: all 0.5s var(--ease-out);
}

.cta-primary .cta-text {
    color: inherit;
}

.cta-primary .cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
    z-index: 1;
}

.cta-primary:hover .cta-bg {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-primary .cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-primary .cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease-out);
}

.cta-primary:hover .cta-icon {
    transform: translateX(5px);
}

.legacy-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.5s var(--ease-out);
    cursor: none;
}

.legacy-btn-primary {
    background: var(--color-ferrari-red);
    border: 1px solid var(--color-ferrari-red);
}

.legacy-btn-primary:hover {
    background: transparent;
}

.legacy-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.legacy-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.legacy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.legacy-stat {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out);
}

.legacy-stat:hover {
    border-color: rgba(220, 0, 0, 0.3);
    transform: translateY(-10px);
}

.legacy-stat-number {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-text), var(--color-ferrari-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legacy-stat-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 12px;
}

.legacy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    padding: 0 60px;
}

.legacy-quote {
    max-width: 400px;
}

.legacy-quote .quote-mark {
    font-family: var(--font-serif);
    font-size: 60px;
    color: var(--color-ferrari-red);
    line-height: 0.5;
    display: block;
    margin-bottom: 16px;
}

.legacy-quote .quote-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.legacy-quote .quote-author {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-ferrari-yellow);
}

.legacy-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legacy-logo .footer-ferrari-logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 30px rgba(255, 204, 0, 0.2));
}

.legacy-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.legacy-scroll-indicator .scroll-text {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.legacy-scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-ferrari-red), transparent);
}

.legacy-header {
    text-align: center;
    margin-bottom: 60px;
}

.legacy-main {
    text-align: center;
}

.legacy-subtitle {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-style: italic;
}

.legacy-title-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-text);
}

.legacy-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.legacy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, transparent 30%, transparent 70%, var(--color-bg-dark) 100%);
}

.legacy-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.legacy-parallax-text {
    position: absolute;
    bottom: 200px;
    left: 0;
    white-space: nowrap;
    display: flex;
    gap: 100px;
    animation: scrollText 30s linear infinite;
}

.legacy-parallax-text span {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    letter-spacing: 0.3em;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#footer {
    padding: 80px 60px 40px;
    background: #030303;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    width: 50px;
    height: auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.1em;
}

.brand-tagline {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-link {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    transition: color 0.3s var(--ease-out);
}

.footer-link:hover {
    color: var(--color-ferrari-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy,
.footer-location {
    font-size: 12px;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.footer-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ferrari-red), var(--color-ferrari-yellow), var(--color-ferrari-red));
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 24px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social .social-link {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
    cursor: none;
}

.footer-social .social-link:hover {
    background: var(--color-ferrari-red);
    border-color: var(--color-ferrari-red);
    transform: translateY(-4px);
}

.footer-social .social-link svg {
    width: 20px;
    height: 20px;
}

.footer-column-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: all 0.3s var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-ferrari-red);
    transform: translateX(5px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 12px;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    text-transform: uppercase;
    transition: color 0.3s var(--ease-out);
}

.footer-legal a:hover {
    color: var(--color-text);
}

.footer-back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: var(--color-ferrari-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out);
    cursor: none;
    z-index: 100;
}

.footer-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-back-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 0, 0, 0.4);
}

.footer-back-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1200px) {
    .hero-container { padding: 0 40px; }
    .intro-container { padding: 0 40px; }
    .quote-container { padding: 0 40px; }
    .timeline-header { padding: 0 40px; }
    .timeline-track { padding: 40px 40px 80px; }
    .timeline-navigation { padding: 0 40px; }
    .supercars-header { padding: 0 40px; }
    .supercars-gallery-wrapper { padding: 0 40px; }
    .racing-header { padding: 0 40px; }
    .racing-content { padding: 0 40px; }
    .moments-header { padding: 0 40px; }
    .moments-container { padding: 0 40px; }
    .legacy-content { padding: 0 40px; }
    #footer { padding: 80px 40px 40px; }
    
    .intro-grid { grid-template-columns: 1fr; gap: 60px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .legacy-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .navbar { padding: 20px 30px; }
    .nav-links { display: none; }
    .nav-menu-toggle { display: flex; }
    .nav-center { display: none; }
    
    .hero-title { font-size: clamp(48px, 12vw, 90px); }
    .hero-subtitle { font-size: 16px; }
    .hero-content { padding: 100px 40px 40px; }
    .hero-quote { display: none; }
    .hero-year { display: none; }
    
    .racing-grid { grid-template-columns: 1fr; gap: 60px; }
    .racing-image-stack { height: 450px; }
    .racing-visual { order: -1; }
    
    .moments-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 40px;
    }
    
    .moment-card {
        min-height: 350px;
    }
    
    .moment-card.moment-large {
        grid-column: span 2;
        grid-row: auto;
        min-height: 400px;
    }
    
    .racing-stats-strip { grid-template-columns: repeat(2, 1fr); }
    
    .intro-origin-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    #cursor { display: none !important; }
    #magnetic-cursor { display: none !important; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
    
    :root {
        --nav-height: 60px;
    }
    
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    #navbar {
        padding: 12px 20px;
        height: auto;
        min-height: 60px;
    }
    
    .nav-logo-img { width: 32px; }
    .nav-logo-text { display: none; }
    .nav-center { display: none; }
    .menu-text { display: none; }
    
    .nav-menu-btn {
        padding: 10px;
        border: none;
    }
    
    .hero-content { 
        padding: 80px 24px 30px;
        justify-content: center;
    }
    
    .hero-top { display: none; }
    .hero-quote { display: none; }
    .hero-year { display: none; }
    .hero-scroll { display: none; }
    
    .hero-bottom {
        justify-content: center;
        margin-top: 30px;
    }
    
    .hero-title { 
        font-size: clamp(42px, 14vw, 80px);
        text-align: center;
    }
    
    .hero-subtitle { 
        font-size: 14px;
        text-align: center;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-title-decoration {
        margin-top: 16px;
    }
    
    .decoration-year { font-size: 14px; }
    .decoration-line { width: 30px; }
    
    .section-intro { 
        padding: 60px 0;
        min-height: auto;
    }
    
    .intro-container { padding: 0 20px; }
    .intro-header { margin-bottom: 24px; }
    
    .intro-origin-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .intro-origin-media {
        border-radius: 12px;
    }
    
    .intro-origin-text {
        padding-right: 0;
    }
    
    .intro-origin-text .intro-text {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .intro-image-reveal {
        display: none;
    }
    
    .intro-title {
        font-size: clamp(32px, 9vw, 48px);
        margin-bottom: 20px;
    }
    
    .intro-text { font-size: 16px; }
    .intro-text-secondary { 
        font-size: 14px;
        margin-bottom: 40px;
    }
    
    .intro-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-number { font-size: 56px; }
    
    .horizontal-text-scroll { display: none; }
    
    .section-quote {
        height: auto;
        min-height: 80vh;
        padding: 80px 0;
    }
    
    .quote-content { padding: 30px 20px; }
    .quote-icon { font-size: 80px; }
    .quote-main { 
        font-size: clamp(24px, 6vw, 40px);
        margin-bottom: 30px;
    }
    
    .quote-author-block {
        flex-direction: column;
        gap: 16px;
    }
    
    .author-info { align-items: center; }
    
    .quote-floating-elements { display: none; }
    .quote-decoration-top,
    .quote-decoration-bottom { height: 30px; }
    
    .section-timeline {
        padding: 80px 0;
        min-height: auto;
    }
    
    .timeline-header { 
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .timeline-title {
        font-size: clamp(32px, 8vw, 50px);
    }
    
    .timeline-navigation {
        padding: 0 20px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .timeline-nav-btn { 
        width: 40px; 
        height: 40px;
    }
    
    .timeline-nav-years {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav-year { font-size: 12px; }
    
    .timeline-track { 
        padding: 20px 20px 40px;
    }
    
    .timeline-items { gap: 20px; }
    
    .timeline-item { 
        width: 280px;
    }
    
    .card-media { height: 180px; }
    .card-content { padding: 20px; }
    .card-title { font-size: 20px; }
    .card-text { font-size: 13px; }
    
    .timeline-year-bg { display: none; }
    
    .section-supercars {
        padding: 80px 0;
        min-height: auto;
    }
    
    .supercars-header { 
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .supercars-title {
        font-size: clamp(32px, 8vw, 50px);
    }
    
    .supercars-description {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .supercars-gallery { padding: 0 20px; }
    
    .supercar-card { 
        width: 280px;
    }
    
    .supercar-card .card-media { height: 200px; }
    .card-info { padding: 20px; }
    .car-name { font-size: 24px; }
    .car-desc { font-size: 13px; }
    
    .car-specs { gap: 16px; }
    .car-specs .spec-value { font-size: 20px; }
    
    .gallery-nav { 
        margin-top: 30px;
        gap: 20px;
    }
    
    .gallery-btn { 
        width: 44px; 
        height: 44px;
    }
    
    .gallery-progress { 
        padding: 0 20px;
        margin-top: 20px;
    }
    
    .section-racing {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .racing-header { 
        padding: 0 20px;
        margin-bottom: 50px;
    }
    
    .racing-title {
        font-size: clamp(32px, 8vw, 50px);
    }
    
    .racing-content { padding: 0 20px; }
    
    .racing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .racing-visual { order: -1; }
    
    .racing-image-stack { 
        height: 350px;
        margin-bottom: 20px;
    }
    
    .stack-item-1 { 
        width: 75%; 
        height: 220px;
    }
    
    .stack-item-2 { 
        width: 65%; 
        height: 180px;
        top: 35%;
    }
    
    .stack-item-3 { 
        width: 55%; 
        height: 150px;
    }
    
    .racing-driver-info {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 20px;
        flex-wrap: wrap;
    }
    
    .driver-badge {
        padding: 10px 16px;
    }
    
    .driver-name { font-size: 10px; }
    .driver-number { 
        font-size: 36px;
    }
    
    .racing-enzo-quote {
        padding: 20px 0;
        padding-left: 16px;
        margin-bottom: 24px;
    }
    
    .enzo-quote-mark { font-size: 50px; }
    .enzo-quote-text { font-size: 16px; }
    
    .racing-text { 
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .racing-achievements {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .achievement {
        padding: 16px;
        gap: 8px;
    }
    
    .achievement-icon {
        width: 32px;
        height: 32px;
    }
    
    .achievement-number { font-size: 36px; }
    .achievement-label { font-size: 9px; }
    
    .racing-cta {
        padding: 14px 24px;
        font-size: 11px;
        width: 100%;
        justify-content: center;
    }
    
    .racing-floating-stats { display: none; }
    .racing-bg-text { display: none; }
    
    .section-moments {
        padding: 80px 0;
        min-height: auto;
    }
    
    .moments-header { 
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .moments-title {
        font-size: clamp(32px, 8vw, 50px);
    }
    
    .moments-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }
    
    .moment-card {
        min-height: 280px;
    }
    
    .moment-card.moment-large {
        grid-column: span 1;
        min-height: 320px;
    }
    
    .moment-card .moment-overlay {
        opacity: 1;
    }
    
    .moment-card .moment-content {
        transform: translateY(0);
        opacity: 1;
        padding: 20px;
    }
    
    .moment-hover-content {
        max-height: 100px;
        margin-top: 12px;
    }
    
    .moment-card .moment-title { font-size: 22px; }
    .moment-location { font-size: 10px; }
    .moment-description { font-size: 12px; }
    
    .moments-decorative { display: none; }
    
    .section-legacy {
        padding: 80px 0;
        min-height: auto;
    }
    
    .legacy-content { 
        padding: 0 20px;
    }
    
    .legacy-title {
        font-size: clamp(48px, 14vw, 100px);
        margin-bottom: 30px;
    }
    
    .legacy-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .legacy-cta { 
        margin-top: 30px;
    }
    
    .cta-primary {
        padding: 16px 32px;
        font-size: 12px;
    }
    
    .legacy-footer {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        margin-top: 60px;
        padding: 0;
    }
    
    .legacy-quote {
        order: 1;
        max-width: 100%;
    }
    
    .legacy-logo {
        order: 2;
    }
    
    .legacy-quote .quote-mark { 
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .legacy-quote .quote-text { font-size: 16px; }
    
    .legacy-logo .footer-ferrari-logo {
        width: 80px;
    }
    
    .legacy-parallax-text { display: none; }
    .legacy-scroll-indicator { display: none; }
    
    #footer { 
        padding: 50px 20px 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-logo-img { width: 40px; }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-back-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .menu-content {
        padding: 100px 24px 40px;
    }
    
    .menu-link {
        font-size: clamp(28px, 8vw, 48px);
        padding: 4px 0;
    }
    
    .menu-footer {
        flex-direction: column;
        gap: 24px;
        padding-top: 24px;
    }
    
    .menu-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .menu-social .social-link {
        padding: 8px 12px;
        font-size: 10px;
    }
    
    .menu-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .preloader-logo { width: 100px; }
    .preloader-title .char { font-size: 36px; }
    .progress-number { font-size: 40px; }
    .preloader-tagline { font-size: 9px; }
}

@media (max-width: 480px) {
    .hero-title { 
        font-size: clamp(36px, 13vw, 60px);
    }
    
    .intro-title { 
        font-size: clamp(32px, 9vw, 48px);
    }
    
    .quote-main { 
        font-size: clamp(20px, 5.5vw, 32px);
    }
    
    .timeline-title,
    .supercars-title,
    .racing-title,
    .moments-title {
        font-size: clamp(28px, 7vw, 42px);
    }
    
    .legacy-title {
        font-size: clamp(40px, 12vw, 80px);
    }
    
    .timeline-item { width: 260px; }
    .supercar-card { width: 260px; }
    
    .racing-achievements {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .achievement { padding: 14px; }
    .achievement-number { font-size: 32px; }
    
    .stat-number { font-size: 48px; }
    
    .moment-card { min-height: 250px; }
    .moment-card.moment-large { min-height: 280px; }
}

@media (max-width: 360px) {
    .hero-title { 
        font-size: clamp(32px, 12vw, 50px);
    }
    
    .timeline-item { width: 240px; }
    .supercar-card { width: 240px; }
    
    .racing-achievements {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .achievement { padding: 12px; }
    .achievement-number { font-size: 28px; }
    .achievement-label { font-size: 8px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .section-hero {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        padding: 70px 30px 30px;
    }
    
    .hero-title {
        font-size: clamp(36px, 8vw, 60px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .moment-card .moment-overlay {
        opacity: 1;
    }
    
    .moment-card .moment-content {
        transform: translateY(0);
        opacity: 1;
    }
    
    .moment-hover-content {
        max-height: 100px;
        margin-top: 12px;
    }
    
    .supercar-card:hover {
        transform: none;
    }
    
    .supercar-card:hover .card-media img {
        transform: none;
    }
    
    .timeline-card:hover .card-image-wrapper img {
        transform: none;
    }
    
    .moment-card:hover .moment-media img {
        transform: none;
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    #navbar {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    #footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
    
    .footer-back-top {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
    }
}
