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

@font-face {
    font-family: 'Tomato Grotesk';
    src: url('assets/fonts/TomatoGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Tomato Grotesk';
    src: url('assets/fonts/TomatoGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Tomato Grotesk';
    src: url('assets/fonts/TomatoGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Tomato Grotesk';
    src: url('assets/fonts/TomatoGrotesk-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Tomato Grotesk';
    src: url('assets/fonts/TomatoGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Tomato Grotesk';
    src: url('assets/fonts/TomatoGrotesk-Black.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}

:root {
    --font-title: 'Tomato Grotesk', sans-serif;
    --font-body: 'Oxygen', 'PingFang SC', -apple-system, sans-serif;
    --font-zh: 'PingFang SC', -apple-system, sans-serif;
    --font-nav: 'Oxygen', sans-serif;
    --color-black: #000;
    --color-white: #fff;
    --color-gray: #666;
    --color-bg: #ffffff;
    --nav-height: 72px;
    --section-padding: 120px;
    --container-max: 1440px;
}

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

body {
    font-family: var(--font-zh);
    color: var(--color-black);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 38px;
    width: auto;
}

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

.nav-link {
    font-family: var(--font-nav);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    color: var(--color-black);
    border: 2px solid transparent;
    transition: border-color 0.2s, color 0.3s;
}

.nav-link:hover {
    border-color: var(--color-black);
}

.nav-light .nav-link {
    color: var(--color-white);
}

.nav-light .nav-link:hover {
    border-color: var(--color-white);
}

.nav-light .nav-logo img {
    filter: brightness(0) invert(1);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(72px, 14vw, 200px);
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    opacity: 0.4;
    letter-spacing: 1px;
}

/* ========== Sections ========== */
.section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) 24px;
}

.section-heading {
    font-family: var(--font-title);
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 32px;
}

.section-num {
    font-size: clamp(80px, 12vw, 112px);
    font-weight: 300;
    letter-spacing: -2px;
    margin-top: -100px;
}

.section-heading-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: -150px;
    margin-bottom: 60px;
}

.section-heading-en {
    font-family: var(--font-title);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.section-heading-zh {
    font-family: 'PingFang SC', -apple-system, sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    opacity: 0.45;
    letter-spacing: 0.1em;
}

.section-heading-sub {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.55;
    margin-bottom: 16px;
    display: none;
}

.section-divider {
    display: none;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 60px;
}

/* ========== Cards Grid (01 BRAND) ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 32px;
}

.card a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-image {
    aspect-ratio: 16/10;
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
}

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

.card-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-text h3 {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-text h3 .card-title-en {
    font-size: 15px;
    font-weight: 500;
}

.card-text h3 .card-title-zh {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

.card-year {
    font-size: 14px;
    opacity: 0.6;
}

/* ========== Feature Cards (02 PRACTICE) ========== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

a.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card-image {
    aspect-ratio: 1/1;
    background: #ccc;
    border-radius: 16px;
    overflow: hidden;
}

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

.feature-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card-body h3 {
    font-size: 18px;
    font-weight: 600;
}

.feature-card-body p {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.6;
}

.cta-link {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.cta-link:hover {
    opacity: 0.6;
}

/* ========== Feature Full Width (03 EXPLORE) ========== */
a.feature-full,
a.feature-row,
a.bento-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-full {
    margin-bottom: 80px;
}

.feature-full-image {
    width: 100%;
    aspect-ratio: 2.2/1;
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

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

.feature-full-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-full-text p {
    font-size: 16px;
    opacity: 0.6;
    line-height: 1.6;
}

/* ========== Feature Row ========== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-full-divider {
    display: none;
}

.feature-title-en {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 500;
    opacity: 1;
    margin-top: 2px;
}

.feature-row-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-row-content h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.feature-row-content p {
    font-size: 15px;
    opacity: 0.6;
    line-height: 1.7;
}

.feature-row-image {
    aspect-ratio: 4/3;
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-nav);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 100px;
    transition: opacity 0.2s;
    align-self: flex-start;
    margin-top: 8px;
}

.btn:hover {
    opacity: 0.8;
}

/* ========== Bento Card ========== */
.bento-card {
    margin-bottom: 80px;
}

.bento-image {
    width: 100%;
    aspect-ratio: 2/1;
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.bento-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-text p {
    font-size: 15px;
    opacity: 0.6;
    line-height: 1.6;
    max-width: 600px;
}

/* ========== Gallery (04 OTHERS) ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

a.gallery-item {
    display: block;
    text-decoration: none;
}

.gallery-item {
    background: #ccc;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item.tall {
    aspect-ratio: 3/4;
}

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

/* ========== Footer ========== */
.footer {
    padding: 80px 24px;
    border-top: 1px solid #e0e0e0;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-name {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.5;
    margin-top: 8px;
    max-width: 280px;
}

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

.social-icon {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 1;
}

.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 1;
}

/* ========== Responsive: iPad (768–1024px) ========== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .cards-grid {
        gap: 28px 24px;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .feature-row,
    a.feature-row {
        gap: 32px;
    }

    .feature-row-content h3 {
        font-size: 22px;
    }

    .footer-nav {
        gap: 32px;
    }
}

/* ========== Responsive: Mobile (≤768px) ========== */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --nav-height: 60px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .nav-logo img {
        height: 26px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        font-size: 32px;
    }

    .hero-title {
        font-size: 56px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row,
    a.feature-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-row-content h3 {
        font-size: 20px;
    }

    .bento-image {
        aspect-ratio: 3/2;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item.tall {
        aspect-ratio: 1/1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        gap: 32px;
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    a, button, .btn, .nav-link {
        cursor: auto;
    }
}

/* ========== Responsive: Small phone (≤480px) ========== */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-heading {
        font-size: 26px;
    }

    .section-heading-sub {
        font-size: 15px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .card-image {
        aspect-ratio: 3/2;
    }

    .feature-full-image {
        aspect-ratio: 4/3;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 24px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-link {
        font-size: 11px;
        padding: 4px 8px;
        letter-spacing: 0;
    }
}

/* ========== Custom Cursor ========== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, opacity 0.3s;
}

.custom-cursor.cursor-hover {
    width: 56px;
    height: 56px;
    border-color: rgba(0, 0, 0, 0.5);
}

.custom-cursor-dot {
    display: none;
}

body {
    cursor: none;
}

a, button, .btn, .nav-link {
    cursor: none;
}

/* ========== Animations ========== */

/* Hero title - letter split animation */
.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(-40deg);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title.animate-in .char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle.animate-in {
    opacity: 0.5;
    transform: translateY(0);
}

/* Section heading reveal */
.section-heading {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-heading.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-heading-sub {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.section-heading-sub.revealed {
    opacity: 0.55;
    transform: translateY(0);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger cards */
.cards-grid .card.reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .card.reveal:nth-child(3) { transition-delay: 0.15s; }
.cards-grid .card.reveal:nth-child(4) { transition-delay: 0.2s; }
.cards-grid .card.reveal:nth-child(5) { transition-delay: 0.25s; }

/* Section 03 — diverse reveal animations */
a.feature-full.reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a.feature-full.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

a.feature-row.reveal:nth-child(odd) {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

a.feature-row.reveal:nth-child(even) {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

a.feature-row.reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

a.bento-card.reveal {
    opacity: 0;
    transform: translateY(40px) rotate(1deg);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

a.bento-card.reveal.revealed {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Feature cards slide in from left */
.feature-cards a.feature-card.reveal {
    opacity: 0;
    transform: translateX(-70px);
}

.feature-cards a.feature-card.reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

.feature-cards a.feature-card.reveal:nth-child(1) { transition-delay: 0s; }
.feature-cards a.feature-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.feature-cards a.feature-card.reveal:nth-child(3) { transition-delay: 0.3s; }

/* Card hover — white overlay */
.card-image,
.feature-card-image,
.feature-row-image,
.feature-full-image,
.bento-image {
    position: relative;
}

.card-image::after,
.feature-card-image::after,
.feature-row-image::after,
.feature-full-image::after,
.bento-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.card a:hover .card-image::after,
a.feature-card:hover .feature-card-image::after,
a.feature-row:hover .feature-row-image::after,
a.feature-full:hover .feature-full-image::after,
a.bento-card:hover .bento-image::after {
    opacity: 1;
}
