@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

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

        :root {
            --black: #000000;
            --white: #ffffff;
            --gray-dark: #1d1d1f;
            --gray-medium: #86868b;
            --gray-light: #f5f5f7;
            --accent: #0066cc;
        }

        body {
            font-family: 'Barlow', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--white);
            color: var(--gray-dark);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 20px 5%;
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: saturate(180%) blur(20px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        nav.scrolled {
            padding: 12px 5%;
            box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
        }

        .nav-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.5px;
            color: var(--black);
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .logo:hover {
            opacity: 0.7;
        }

        .nav-links {
            display: flex;
            gap: 40px;
            list-style: none;
        }

        .nav-links li {
            position: relative;
        }

        .nav-links a {
            color: var(--gray-dark);
            text-decoration: none;
            font-size: 15px;
            font-weight: 400;
            letter-spacing: 0.3px;
            transition: opacity 0.2s;
        }

        .nav-links a:hover {
            opacity: 0.6;
        }

        /* Projects Dropdown */
        .projects-dropdown {
            position: absolute;
            top: 100%;
            left: -200px;
            margin-top: 20px;
            background: var(--white);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 1001;
        }

        .nav-links li:hover .projects-dropdown,
        .projects-dropdown:hover {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
            margin-top: 12px;
        }

        .dropdown-grid {
            display: flex;
            gap: 16px;
            flex-wrap: nowrap;
            overflow-x: auto;
            max-width: 90vw;
            padding-bottom: 4px;
        }

        .dropdown-grid::-webkit-scrollbar {
            height: 6px;
        }

        .dropdown-grid::-webkit-scrollbar-track {
            background: var(--gray-light);
            border-radius: 3px;
        }

        .dropdown-grid::-webkit-scrollbar-thumb {
            background: var(--gray-medium);
            border-radius: 3px;
        }

        .dropdown-item {
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 12px;
            border-radius: 12px;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .dropdown-item:hover {
            background: var(--gray-light);
            transform: translateY(-2px);
        }

        .dropdown-item-image {
            width: 120px;
            height: 75px;
            border-radius: 8px;
            overflow: hidden;
            background: var(--gray-light);
        }

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

        .dropdown-item-title {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-dark);
            text-align: center;
            line-height: 1.3;
            max-width: 120px;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 5% 80px;
            position: relative;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 25%;
            background: linear-gradient(to bottom, transparent, var(--white));
            z-index: 1;
            pointer-events: none;
        }

        .hero-content {
            max-width: 980px;
            text-align: center;
            z-index: 2;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease-out 0.3s forwards;
        }

        h1 {
            font-size: clamp(48px, 8vw, 96px);
            font-weight: 700;
            letter-spacing: -2px;
            line-height: 1.05;
            margin-bottom: 24px;
            color: var(--black);
        }

        h1 .chinese {
            font-weight: 600;
            color: var(--gray-medium);
        }

        .hero-description {
            font-size: clamp(20px, 2.5vw, 28px);
            line-height: 1.5;
            color: var(--gray-medium);
            font-weight: 400;
            margin-bottom: 40px;
            max-width: 720px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            padding: 16px 40px;
            background: var(--black);
            color: var(--white);
            text-decoration: none;
            border-radius: 980px;
            font-size: 17px;
            font-weight: 500;
            letter-spacing: 0.3px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid var(--black);
        }

        .cta-button:hover {
            background: var(--white);
            color: var(--black);
            transform: scale(1.02);
        }

        /* Section Styles */
        section {
            padding: clamp(60px, 10vw, 120px) 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: clamp(60px, 8vw, 100px);
        }

        .section-tag {
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 1px;
            color: var(--gray-medium);
            text-transform: uppercase;
            margin-bottom: 12px;
        }

        h2 {
            font-size: clamp(40px, 5vw, 64px);
            font-weight: 700;
            letter-spacing: -1.5px;
            color: var(--black);
        }

        /* Projects Grid */
        .projects-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: clamp(40px, 8vw, 120px);
        }

        .project-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .project-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .project-card:nth-child(even) {
            grid-template-columns: 1fr 1fr;
            direction: rtl;
        }

        .project-card:nth-child(even) > * {
            direction: ltr;
        }

        .project-image {
            position: relative;
            width: 100%;
            aspect-ratio: 16/10;
            border-radius: 20px;
            overflow: hidden;
            background: var(--gray-light);
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Special styling for RAEN project image */
        .project-card:nth-child(8) .project-image img {
            object-position: center 35%;
        }

        .project-card:hover .project-image img {
            transform: scale(1.05);
        }

        .project-info {
            padding: 20px 0;
        }

        .project-category {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.8px;
            color: var(--accent);
            text-transform: uppercase;
            margin-bottom: 12px;
        }

        .project-title {
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 700;
            letter-spacing: -1px;
            margin-bottom: 8px;
            color: var(--black);
        }

        .project-subtitle {
            font-size: 18px;
            color: var(--gray-medium);
            margin-bottom: 16px;
            font-weight: 400;
        }

        .project-description {
            font-size: 17px;
            line-height: 1.6;
            color: var(--gray-medium);
            font-weight: 400;
            margin-bottom: 24px;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            background: var(--black);
            color: var(--white);
            text-decoration: none;
            border-radius: 980px;
            font-size: 15px;
            font-weight: 500;
            letter-spacing: 0.3px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid var(--black);
        }

        .project-link:hover {
            background: var(--white);
            color: var(--black);
            transform: translateX(4px);
        }

        .project-link svg {
            width: 16px;
            height: 16px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .project-link:hover svg {
            transform: translateX(4px);
        }

        /* Clients Section */
        .clients-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: clamp(40px, 6vw, 80px);
            flex-wrap: wrap;
            padding: 40px 0;
        }

        .client-logo {
            width: 140px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.3s ease;
            filter: grayscale(100%);
        }

        .client-logo:hover {
            opacity: 1;
            filter: grayscale(0%);
            transform: scale(1.05);
        }

        .client-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        /* Contact Section */
        .contact-section {
            background: var(--gray-dark);
            color: var(--white);
            padding: clamp(80px, 12vw, 160px) 5%;
            text-align: center;
            margin: 0;
            max-width: 100%;
        }

        .contact-section h2 {
            color: var(--white);
            margin-bottom: 24px;
        }

        .contact-description {
            font-size: 21px;
            line-height: 1.6;
            color: var(--gray-light);
            max-width: 640px;
            margin: 0 auto 40px;
            font-weight: 400;
        }

        .contact-button {
            display: inline-block;
            padding: 16px 48px;
            background: var(--white);
            color: var(--black);
            text-decoration: none;
            border-radius: 980px;
            font-size: 17px;
            font-weight: 600;
            letter-spacing: 0.3px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .contact-button:hover {
            background: var(--gray-light);
            transform: scale(1.05);
        }

        /* Footer */
        footer {
            background: var(--black);
            color: var(--gray-medium);
            padding: 40px 5%;
            text-align: center;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .footer-links a {
            color: var(--gray-medium);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }

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

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

        /* Responsive Design */
        @media (max-width: 1024px) {
            .project-card,
            .project-card:nth-child(even) {
                grid-template-columns: 1fr;
                gap: 30px;
                direction: ltr;
            }

            .clients-grid {
                justify-content: center;
                gap: 30px;
            }
        }

        @media (max-width: 768px) {
            nav {
                padding: 16px 5%;
            }

            .nav-links {
                gap: 24px;
            }

            .nav-links a {
                font-size: 14px;
            }

            .hero {
                padding: 100px 5% 60px;
            }

            h1 {
                font-size: clamp(36px, 10vw, 56px);
                letter-spacing: -1.5px;
            }

            .hero-description {
                font-size: 16px;
                line-height: 1.5;
            }

            .cta-button {
                font-size: 15px;
                padding: 14px 32px;
            }

            section {
                padding: 60px 5%;
            }

            .section-header {
                margin-bottom: 50px;
            }

            .section-tag {
                font-size: 13px;
            }

            h2 {
                font-size: clamp(32px, 8vw, 48px);
                letter-spacing: -1px;
            }

            .projects-grid {
                gap: 60px;
            }

            .project-card {
                gap: 24px;
            }

            .project-category {
                font-size: 12px;
            }

            .project-title {
                font-size: clamp(22px, 6vw, 32px);
            }

            .project-subtitle {
                font-size: 15px;
            }

            .project-description {
                font-size: 15px;
                line-height: 1.5;
            }

            .project-link {
                font-size: 14px;
                padding: 10px 24px;
            }

            .contact-section {
                padding: clamp(60px, 10vw, 100px) 5%;
            }

            .contact-description {
                font-size: 16px;
            }

            .contact-button {
                font-size: 15px;
                padding: 14px 36px;
            }

            .footer-content {
                flex-direction: column;
                text-align: center;
                font-size: 13px;
            }

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

        /* Smooth Scroll */
        html {
            scroll-behavior: smooth;
        }

        /* Selection */
        ::selection {
            background: var(--black);
            color: var(--white);
        }

/* ===== oors additions ===== */
:root { --gray-text: #6e6e73; }

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

/* Hero: logo + poem */
.hero-logo { display: block; width: clamp(230px, 32vw, 380px); height: auto; margin: 0 auto 20px; }
.hero-tagline { font-size: 17px; color: var(--gray-text); letter-spacing: 0.4px; margin-bottom: 44px; }
.hero-poem { font-size: clamp(14.5px, 1.65vw, 18px); line-height: 1.95; color: var(--gray-dark); font-weight: 300; margin: 0 auto 28px; max-width: 640px; }
.hero-poem.zh { margin-bottom: 44px; }

/* Featured story (home) */
.story-feature { margin-bottom: clamp(70px, 10vw, 140px); }
.story-feature a.story-feature-link { display: block; color: inherit; text-decoration: none; }
.story-feature-info { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 36px; align-items: start; }
.story-feature-info h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.8px; color: var(--black); line-height: 1.15; margin-bottom: 6px; }
.story-feature-info .project-description { margin-bottom: 24px; }

/* "More work" divider */
.more-work-header { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.more-work-header h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.6px; color: var(--black); margin-bottom: 6px; }
.more-work-header p { color: var(--gray-text); font-size: 17px; }

/* Story page */
.story-page { padding-top: 84px; }
.story-head { max-width: 1400px; margin: 0 auto; padding: clamp(28px, 3.5vw, 44px) 5% 0; }
.story-head .project-category { margin-bottom: 14px; }
.story-head h1 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -1.2px; margin-bottom: 8px; }
.story-head .project-subtitle { font-size: clamp(17px, 2vw, 22px); }
.story-body { max-width: 1400px; margin: 0 auto; padding: clamp(24px, 3vw, 36px) 5% clamp(60px, 10vw, 120px); display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.story-meta { list-style: none; display: grid; gap: 22px; align-content: start; }
.story-meta .k { display: block; font-size: 13px; color: var(--gray-text); margin-bottom: 2px; }
.story-meta .v { font-size: 17px; font-weight: 500; color: var(--gray-dark); }
.story-text p { font-size: clamp(18px, 2vw, 21px); line-height: 1.75; color: var(--gray-dark); margin-bottom: 1.2em; max-width: 680px; }
.story-text p.zh { color: var(--gray-text); font-weight: 300; line-height: 2; margin-top: 2em; }
.story-back { max-width: 1400px; margin: 0 auto; padding: 0 5% clamp(40px, 6vw, 70px); }
.story-back a { color: var(--gray-dark); text-decoration: none; font-size: 15px; }
.story-back a:hover { opacity: 0.6; }

@media (max-width: 768px) {
    .logo img { height: 28px; }
    .hero-poem { line-height: 1.85; }
    .story-feature-info, .story-body { grid-template-columns: 1fr; gap: 24px; }
    .story-feature-image { border-radius: 16px; }
    .story-page { padding-top: 76px; }
}

/* Photo carousel */
.carousel { --ch: clamp(220px, 28vw, 380px); position: relative; }
.carousel-track { display: flex; align-items: center; gap: 16px; height: calc(var(--ch) + 8px); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.carousel-slide { flex: 0 0 auto; height: var(--ch); scroll-snap-align: center; border-radius: 14px; overflow: hidden; background: var(--gray-light); cursor: pointer; will-change: transform, opacity; transition: transform 0.15s linear, opacity 0.15s linear; }
.carousel-slide img { display: block; height: 100%; width: auto; user-select: none; -webkit-user-drag: none; }
.carousel::before, .carousel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.carousel::before { left: 0; background: linear-gradient(to right, var(--white), rgba(255,255,255,0)); }
.carousel::after { right: 0; background: linear-gradient(to left, var(--white), rgba(255,255,255,0)); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.9); box-shadow: 0 2px 14px rgba(0,0,0,0.14); color: var(--gray-dark); cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.carousel-btn:hover { background: #fff; }
.carousel-btn:focus-visible, .carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-prev { left: 3%; }
.carousel-next { right: 3%; }
.story-feature .carousel { margin: 0 -5%; }
.story-feature-info { text-decoration: none; color: inherit; }
.story-page .carousel { --ch: clamp(260px, 32vw, 470px); }
@media (prefers-reduced-motion: reduce) { .carousel-slide { transition: none; } .carousel-track { scroll-behavior: auto; } }
@media (max-width: 768px) {
  .carousel { --ch: clamp(170px, 46vw, 260px); }
  .story-page .carousel { --ch: clamp(170px, 46vw, 260px); }
  .carousel-btn { display: none; }
  .carousel::before, .carousel::after { width: 8%; }
  .story-feature .carousel { margin: 0 -5%; }
}

/* tighter home layout so cover + intro share one screen */
#stories .section-header { margin-bottom: clamp(24px, 3vw, 40px); }
.story-feature .carousel { --ch: clamp(230px, 28vw, 380px); }
@media (max-width: 768px) { .story-feature .carousel { --ch: clamp(170px, 46vw, 260px); } }

/* story page: buttons + film */
.story-btn { margin-top: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; margin: 8px 0 32px; max-width: 900px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#stories { padding-top: clamp(36px, 4vw, 56px); }

/* story page: film on top, photos at the bottom */
.story-video { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.story-video .video-frame { max-width: 900px; margin: 0 auto; }
.story-photos { padding: 0 0 clamp(24px, 4vw, 48px); }
.story-photos-cta { display: flex; justify-content: center; margin-top: 28px; }
.story-photos-cta .story-btn { margin-top: 0; }
.story-body { padding-bottom: clamp(36px, 6vw, 72px); }

/* Hero: showreel flush left (soft right edge), centred intro on the right */
.hero { display: block; min-height: 0; padding: 74px 0 0; overflow: hidden; max-width: none; width: 100%; margin: 0; }
.hero::after { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); max-width: none; margin: 0; }
.hero-video { grid-column: 1; grid-row: 1; width: 104%; height: calc(100vh - 74px); height: calc(100svh - 74px); min-height: 440px; border-radius: 0; background: transparent; overflow: hidden; opacity: 0; animation: fadeInUp 1s ease-out 0.15s forwards;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; display: block; }
.hero-content { grid-column: 2; grid-row: 1; align-self: center; position: relative; z-index: 2; max-width: 600px; margin: 0 auto; text-align: center; padding: 0 5% 0 5%; transform: translateX(clamp(10px, 1.8vw, 28px)); }
.hero-logo { width: clamp(190px, 21vw, 300px); margin: 0 auto 14px; }
.hero-tagline { margin-bottom: 30px; }
.hero-poem { margin: 0 auto 20px; max-width: none; font-size: clamp(12.5px, 0.98vw, 14.5px); line-height: 1.9; }
.hero-poem.zh { margin-bottom: 32px; }
@media (max-width: 900px) {
    .hero { padding-top: 64px; }
    .hero-inner { display: block; min-height: 0; }
    .hero-video { width: 100%; height: 62svh; min-height: 340px; -webkit-mask-image: none; mask-image: none; }
    .hero-video video { object-position: 50% 40%; }
    .hero-content { max-width: 560px; margin: 0 auto; text-align: center; padding: 36px 6% 56px; transform: none; }
    .hero-logo { margin: 0 auto 12px; width: clamp(190px, 52vw, 260px); }
    .hero-poem { margin-left: auto; margin-right: auto; font-size: 14.5px; }
}

/* Video slide inside a carousel */
.carousel-slide.carousel-video { width: calc(var(--ch) * 4 / 3); background: #000; }
.carousel-slide video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.story-video .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Collage: rows justified by each photo's own aspect ratio */
.story-collage { max-width: 1400px; margin: 0 auto; padding: 0 5% clamp(40px, 6vw, 80px); }
.collage { display: flex; flex-wrap: wrap; gap: 8px; }
.collage::after { content: ''; flex-grow: 999999; }
.collage-item { --h: 300px; margin: 0; flex: var(--r) 1 calc(var(--r) * var(--h)); min-width: 0; border-radius: 6px; overflow: hidden; background: var(--gray-light); }
.collage-item img { display: block; width: 100%; height: auto; }
@media (max-width: 768px) { .collage { gap: 5px; } .collage-item { --h: 170px; border-radius: 4px; } }
