/* ========================================
           CSS VARIABLES
        ======================================== */
        :root {
            --bg: #FAFAF9;
            --text-primary: #1A1A1A;
            --text-secondary: #6B6B6B;
            --border: #E8E8E7;
            --svg2: #E0E0DF;
            --hover-box: #E0E0DF;
            --font2: "Iowan Old Style", "Georgia", "Times New Roman", serif;
            --font-default: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        /* ========================================
           RESET & BASE
        ======================================== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: var(--font-default);
            background-color: var(--bg);
            color: var(--text-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            background: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* ========================================
           HEADER
        ======================================== */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background-color: var(--bg);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 40px;
            height: 64px;
            border-bottom: #F5F5F5 1px solid;
            /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
            transition: transform 0.35s ease;
            will-change: transform;
        }

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

        .header-logo {
            padding-left: 300px;
        }

        .header-logo img {
            height: 36px;
            width: auto;
        }

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

        .header-nav a {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            transition: opacity 0.2s ease;
        }

        .header-nav a:hover {
            opacity: 0.5;
        }

        .header-cta {
            margin-right: 300px;
        }

        .header-cta a {
            display: inline-block;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            border: 1.5px solid var(--text-primary);
            border-radius: 15px;
            transition: all 0.2s ease;
        }

        .header-cta a:hover {
            opacity: 0.5;
            border-color: rgba(26, 26, 26, 0.5);
        }

        /* ========================================
           HERO SECTION
        ======================================== */
        .hero {
            position: relative;
            min-height: 92svh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 96px 40px;
            overflow: hidden;
        }

        .hero-title {
            font-family: var(--font2);
            font-size: clamp(36px, 5vw, 64px);
            font-weight: 400;
            color: var(--text-primary);
            line-height: 1.15;
            margin-bottom: 20px;
            max-width: 800px;
        }

        .hero-desc {
            font-family: var(--font-default);
            font-size: clamp(16px, 1.5vw, 20px);
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 640px;
            margin: 0 auto 36px;
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .hero-btn-primary {
            padding: 14px 32px;
            font-size: 15px;
            font-weight: 500;
            color: #FAFAF9;
            background-color: var(--text-primary);
            border: 1.5px solid var(--text-primary);
            border-radius: 15px;
            transition: all 0.2s ease;
        }

        .hero-btn-primary:hover {
            opacity: 0.7;
        }

        .hero-btn-secondary {
            padding: 14px 32px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            background: none;
            border: 1.5px solid var(--text-primary);
            border-radius: 15px;
            transition: all 0.2s ease;
        }

        .hero-btn-secondary:hover {
            opacity: 0.5;
            border-color: rgba(26, 26, 26, 0.5);
        }

        /* Grid Spotlight Effect */
        .hero-grid-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            width: min(100%, 860px);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        /* ========================================
           GALILEI SECTION
        ======================================== */
        .galilei-section {
            position: relative;
            /* min-height: 100svh; */
            display: flex;
            align-items: center;
            justify-content: center;
            /* padding: 40px; */
            overflow: hidden;
        }

        .galilei-rectangle {
            position: relative;
            width: 85%;
            height: 65%;
            min-height: 500px;
            background-color: #141414;
            border-radius: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 60px;
            overflow: hidden;
            transition: width 0.1s linear, height 0.1s linear, border-radius 0.1s linear;
        }

        .galilei-title {
            font-family: var(--font2);
            font-size: clamp(32px, 4vw, 52px);
            font-weight: 400;
            color: #FAFAF9;
            margin-bottom: 16px;
            position: relative;
            z-index: 2;
        }

        .galilei-desc {
            font-family: var(--font-default);
            font-size: clamp(15px, 1.3vw, 18px);
            font-weight: 400;
            color: rgba(250, 250, 249, 0.7);
            line-height: 1.6;
            max-width: 560px;
            position: relative;
            z-index: 2;
        }

        .galilei-image {
            position: absolute;
            display: block;
            border-radius: 12px;
            overflow: hidden;
            z-index: 1;
            transition: transform 0.3s ease;
        }

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

        /* ========================================
           FEATURES SECTION
        ======================================== */
        .features-section {
            position: relative;
            min-height: 92svh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 96px;
            /* padding: 96px 40px; */
        }

        .features-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .features-title {
            font-family: var(--font2);
            font-size: clamp(28px, 3.5vw, 44px);
            font-weight: 400;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .features-desc {
            font-family: var(--font-default);
            font-size: clamp(14px, 1.2vw, 17px);
            font-weight: 400;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 560px;
            margin: 0 auto 28px;
        }

        .features-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 32px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .features-tab {
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            background: none;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .features-tab:hover {
            color: var(--text-primary);
        }

        .features-tab.active {
            color: var(--text-primary);
            background-color: var(--hover-box);
        }

        .features-content {
            width: 100%;
            flex: 1;
            min-height: 90vh;
            position: relative;
            overflow: hidden;
        }

        .features-card-wrapper {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .features-card-wrapper.active {
            opacity: 1;
            visibility: visible;
        }

        .features-card {
            width: 65%;
            height: 85%;
            display: flex;
            border-radius: 0;
            overflow: hidden;
            position: relative;
        }

        .features-card-text {
            flex: 1;
            padding: 48px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .features-card-title {
            font-family: var(--font2);
            font-size: clamp(22px, 2.5vw, 32px);
            font-weight: 400;
            margin-bottom: 12px;
        }

        .features-card-desc {
            font-family: var(--font-default);
            font-size: clamp(13px, 1.1vw, 16px);
            font-weight: 400;
            line-height: 1.6;
            opacity: 0.8;
            margin-bottom: auto;
        }

        .features-card-btn {
            display: inline-block;
            padding: 10px 24px;
            font-size: 14px;
            font-weight: 500;
            border: 1.5px solid currentColor;
            border-radius: 15px;
            background: transparent;
            margin-top: 24px;
            transition: opacity 0.2s ease;
            align-self: flex-start;
        }

        .features-card-btn:hover {
            opacity: 0.6;
        }

        .features-card-image {
            width: 75%;
            height: 95%;
            align-self: center;
            margin-right: 16px;
            border-radius: 16px;
            overflow: hidden;
        }

        .features-card-image img,
        .features-card-image video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .features-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(26, 26, 26, 0.08);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;
            z-index: 10;
        }

        .features-nav:hover {
            background: rgba(26, 26, 26, 0.15);
        }

        .features-nav.prev { left: 20px; }
        .features-nav.next { right: 20px; }

        .features-nav svg {
            width: 20px;
            height: 20px;
            stroke: var(--text-primary);
            stroke-width: 2;
            fill: none;
        }

        /* ========================================
           MOTION SECTION
        ======================================== */
        .motion-section {
            width: 100%;
            padding: 80px 0;
            overflow: hidden;
            background-color: var(--bg);
        }

        .motion-title {
            font-family: var(--font2);
            font-size: clamp(28px, 3.5vw, 44px);
            font-weight: 400;
            color: var(--text-primary);
            padding: 0 40px;
            margin-bottom: 40px;
        }

        /* Featured Carousel */
        .featured-carousel {
            position: relative;
            width: 100%;
            margin-bottom: 12px;
            overflow: hidden;
        }

        .featured-track {
            display: flex;
            align-items: center;
            gap: 14px;
            transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: grab;
            will-change: transform;
        }

        .featured-track:active {
            cursor: grabbing;
        }

        .featured-card {
            flex: 0 0 clamp(520px, 62vw, 960px);
            aspect-ratio: 16 / 9;
            position: relative;
            border-radius: 6px;
            overflow: hidden;
            background: #1a1a1a;
        }

        .featured-card.side,
        .featured-card.center {
            width: auto;
            aspect-ratio: 16 / 9;
        }

        .featured-card img,
        .featured-card video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 40%, transparent 60%);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 24px;
            pointer-events: none;
        }

        .featured-card-label {
            font-size: 11px;
            font-weight: 600;
            color: rgba(255,255,255,0.85);
            text-transform: uppercase;
            letter-spacing: 1px;
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(8px);
            padding: 4px 12px;
            border-radius: 20px;
            width: fit-content;
        }

        .featured-card-bottom {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
        }

        .featured-card-title {
            font-size: clamp(16px, 1.8vw, 24px);
            font-weight: 600;
            color: white;
            line-height: 1.3;
            max-width: 70%;
        }

        .featured-card-cta {
            padding: 8px 18px;
            font-size: 13px;
            font-weight: 500;
            color: #1a1a1a;
            background: white;
            border-radius: 20px;
            border: none;
            pointer-events: auto;
            transition: transform 0.2s ease, opacity 0.2s ease;
            white-space: nowrap;
        }

        .featured-card-cta:hover {
            transform: scale(1.05);
            opacity: 0.9;
        }

        /* Small Carousel */
        .small-carousel {
            position: relative;
            width: 100%;
            overflow: hidden;
            margin-bottom: 24px;
        }

        .small-track {
            display: flex;
            align-items: center;
            gap: 10px;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: grab;
            will-change: transform;
        }

        .small-track:active {
            cursor: grabbing;
        }

        .small-card {
            flex: 0 0 clamp(210px, 22vw, 340px);
            aspect-ratio: 2 / 1;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
            background: #1a1a1a;
        }

        .small-card img,
        .small-card video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .small-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 16px;
            pointer-events: none;
        }

        .small-card-label {
            font-size: 10px;
            font-weight: 600;
            color: rgba(255,255,255,0.8);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(6px);
            padding: 3px 10px;
            border-radius: 16px;
            width: fit-content;
        }

        .small-card-bottom {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 8px;
        }

        .small-card-title {
            font-size: 13px;
            font-weight: 500;
            color: white;
            line-height: 1.3;
        }

        .small-card-cta {
            padding: 5px 12px;
            font-size: 11px;
            font-weight: 500;
            color: #1a1a1a;
            background: white;
            border-radius: 14px;
            border: none;
            pointer-events: auto;
            transition: transform 0.2s ease;
            white-space: nowrap;
        }

        .small-card-cta:hover {
            transform: scale(1.05);
        }

        /* Pagination */
        .carousel-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            padding: 0 40px;
        }

        .pagination-dots {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        .pagination-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--svg2);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pagination-dot.active {
            width: 18px;
            border-radius: 3px;
            background: var(--text-primary);
        }

        .pause-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: var(--svg2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .pause-btn:hover {
            background: var(--text-secondary);
        }

        .pause-btn svg {
            width: 10px;
            height: 10px;
            fill: var(--text-primary);
        }

        /* ========================================
           CTA SECTION
        ======================================== */
        .cta-section {
            padding: 80px 40px;
            display: flex;
            justify-content: center;
        }

        .cta-container {
            width: 100%;
            max-width: 1200px;
            background: linear-gradient(135deg, #7A5A45 0%, #8A6650 40%, #9A7660 100%);
            border-radius: 24px;
            padding: 80px 64px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 360px;
            text-align: center;
        }

        .cta-content {
            max-width: 620px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .cta-title {
            font-family: var(--font2);
            font-size: clamp(32px, 4vw, 48px);
            font-weight: 400;
            color: #FAFAF9;
            line-height: 1.15;
            margin-bottom: 16px;
        }

        .cta-desc {
            font-family: var(--font-default);
            font-size: clamp(15px, 1.3vw, 18px);
            font-weight: 400;
            color: rgba(250, 250, 249, 0.8);
            line-height: 1.6;
            margin-bottom: 32px;
        }

        .cta-btn {
            display: inline-block;
            padding: 14px 32px;
            font-size: 15px;
            font-weight: 500;
            color: #FAFAF9;
            background-color: #3D2B1F;
            border: none;
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        .cta-btn:hover {
            background-color: #2A1D15;
            transform: translateY(-1px);
        }

        /* ========================================
           FOOTER
        ======================================== */
        .footer {
            background-color: var(--bg);
            padding: 64px 40px 32px;
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 40px;
        }

        .footer-lanes {
            display: flex;
            gap: 80px;
            flex-wrap: wrap;
        }

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

        .footer-lane a {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-secondary);
            transition: color 0.2s ease;
        }

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

        .footer-socials {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .footer-social {
            width: 22px;
            height: 22px;
            color: var(--text-primary);
            transition: opacity 0.2s ease;
        }

        .footer-social:hover {
            opacity: 0.5;
        }

        .footer-bottom {
            width: 100%;
            text-align: center;
            margin-top: 48px;
            padding-top: 24px;
        }

        .footer-bottom p {
            font-size: 13px;
            color: var(--text-secondary);
        }

        /* ========================================
           RESPONSIVE
        ======================================== */
        @media (max-width: 1024px) {
            .hero { min-height: 92svh; padding: 72px 32px; }
            /* .features-section { min-height: 92svh; padding: 72px 32px; } */
            .header { padding: 16px 32px; }
            .header-logo { padding-left: 16px; }
            .header-cta { margin-right: 16px; }
            /* .galilei-section { padding: 32px; } */
            .galilei-rectangle { width: 90%; height: 60%; min-height: 400px; padding: 40px; }
            .features-card { width: 80%; }
            .cta-container { padding: 60px 48px; }
            .footer { padding: 48px 32px 24px; }
            .motion-title { padding: 0 32px; }
        }

        @media (max-width: 768px) {
            .hero { min-height: 88svh; padding: 48px 20px; }
            /* .features-section { min-height: 88svh; padding: 48px 20px; } */
            .header { padding: 12px 20px; height: 56px; }
            .header-logo { padding-left: 8px; }
            .header-logo img { height: 24px; }
            .header-nav { gap: 20px; }
            .header-nav a { font-size: 13px; }
            .header-cta { margin-right: 8px; }
            .header-cta a { padding: 6px 14px; font-size: 13px; }
            .hero-buttons { gap: 22px; }
            /* .galilei-section { padding: 20px; } */
            .galilei-rectangle { width: 95%; height: 55%; min-height: 350px; padding: 32px; border-radius: 24px; }
            .features-tabs { gap: 6px; }
            .features-tab { padding: 8px 14px; font-size: 13px; }
            .features-card { width: 90%; flex-direction: column; height: auto; }
            .features-card-text { padding: 32px; }
            .features-card-image { width: 100%; height: 200px; margin: 0 0 16px 0; }
            .cta-container { padding: 48px 32px; border-radius: 16px; }
            .footer { padding: 40px 20px 24px; }
            .footer-inner { flex-direction: column; align-items: center; text-align: center; }
            .footer-lanes { justify-content: center; gap: 48px; }
            .motion-title { padding: 0 20px; margin-bottom: 24px; }
            .featured-track, .small-track { padding: 0 20px; }
            .carousel-controls { padding: 0 20px; }
        }

        @media (max-width: 480px) {
            .galilei-rectangle { padding: 24px; }
        }

        @media (max-width: 768px) {
            .featured-card { flex-basis: 82vw; }
            .small-card { flex-basis: 68vw; }
        }

        @media (max-width: 480px) {
            .hero-buttons { width: 100%; }
            .hero-buttons a { min-width: 150px; }
            .featured-card { flex-basis: 88vw; }
            .small-card { flex-basis: 78vw; }
        }

