/* Fonts are loaded from index.html <head> via <link> (faster than @import) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #000000;
    --bg-dark-gray: #0a0a0a;
    --accent-white: #ffffff;
    --text-gray: #888888;
    --border-gray: #222222;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Luxury gold palette (muted champagne — premium, not gaudy) */
    --gold: #C9A962;
    --gold-bright: #E6C87A;
    --gold-soft: #D9C58F;
    --gold-deep: #A8894E;
    --gold-dim: rgba(201, 169, 98, 0.35);
    --gold-faint: rgba(201, 169, 98, 0.14);
    --gold-text-dark: #171106;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--accent-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 10px;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-style: normal;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    /* nowrap clipped the longer English headline off-screen; wrap naturally
       (the Chinese headline still fits on one line) with balanced lines */
    white-space: normal;
    text-wrap: balance;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-white);
    color: var(--bg-black);
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px; /* pill buttons — softer, more premium than squares */
    transition: transform 0.3s, opacity 0.3s;
}

.step-card:hover .step-number {
    color: var(--accent-white);
}

.floating-icon {
    animation: float 6s infinite ease-in-out;
    display: inline-block;
}

.feature-card:hover .floating-icon,
.why-card:hover .floating-icon {
    animation-duration: 3s;
}

.feature-card {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Stepper / Workflow */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 5rem;
    position: relative;
}

@media (max-width: 992px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 1.5rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 360px;
    overflow: hidden;
    backdrop-filter: blur(25px);
}


.step-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255,255,255,0.05);
}


.step-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.8;
}

.step-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.step-content {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}

.step-content p {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0px;
}

.immutable-tag {
    display: block;
    width: 100%;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    padding: 8px 8px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    margin-top: auto;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-item h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 4rem auto 0;
    text-align: left;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gray);
    color: var(--accent-white);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-white);
    color: var(--bg-black);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Why Us Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    padding: 3.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.03);
}

.why-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.why-card:hover .icon-wrapper {
    background: var(--accent-white);
    color: var(--bg-black);
    transform: rotate(5deg) scale(1.1);
}

.why-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-white);
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.why-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

.why-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.why-card:hover::after {
    opacity: 1;
}

/* Footer Links */
.footer-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    transition: opacity 1.2s cubic-bezier(0.2, 0, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0, 0.2, 1), filter 1.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .logo {
        font-size: clamp(0.95rem, 5vw, 1.3rem) !important;
    }
    .logo img {
        height: clamp(20px, 6vw, 26px) !important;
        margin-right: clamp(4px, 2vw, 8px) !important;
    }
    /* Let the hero grow with its content on small screens instead of clipping
       (fixed 100vh + overflow:hidden cut the headline off on short viewports) */
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 120px 0 80px;
    }
    .hero h1 {
        font-size: 1.8rem;
        white-space: normal;
        line-height: 1.3;
        letter-spacing: 0;
        margin-bottom: 1.8rem !important;
    }
    .hero h1 span {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem) !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        display: block !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.6;
    }
    .hero-slogan {
        font-size: clamp(0.9rem, 4.5vw, 1.05rem) !important;
        line-height: 1.7 !important;
        padding: 0 1.25rem !important;
        margin-bottom: 2.5rem !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        display: block !important;
    }
    .hero-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        gap: 0.8rem !important;
    }
    .hero-btns .btn, 
    .hero-btns .btn-line-outline {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.9rem 1.5rem !important;
        text-align: center !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
        display: block !important;
    }
    .container {
        padding: 0 1.25rem;
    }
    section {
        padding: 80px 0;
    }
    .grid-content {
        grid-template-columns: 1fr !important;
    }
    .step-card {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }
    .step-card h3 {
        font-size: 1.3rem;
    }
    .step-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }
}
/* Floating LINE Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floating-contact:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 25px rgba(255,255,255,0.1);
}

.floating-line svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: -2px; /* Visual centering adjustment */
}

@keyframes pulse-border {
    0% { border-color: #333; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    70% { border-color: #555; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { border-color: #333; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (max-width: 768px) {
    .floating-line {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
/* Contact Buttons */
.contact-btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.line-btn:hover {
    border-color: #00B900;
    color: #00B900;
}

.email-btn:hover {
    border-color: var(--accent-white);
}

/* Portfolio Redesign */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    position: relative;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}

@media (max-width: 1400px) {
    .workflow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.portfolio-grid .portfolio-card {
    width: 100%;
}

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    border: 1px solid var(--border-gray);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: block;
    background: #000;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.05);
    z-index: 10;
}

.portfolio-card.shorts {
    aspect-ratio: 9 / 16;
    max-width: 280px;
}

.portfolio-thumb {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    z-index: 1;
}

.portfolio-card:hover .portfolio-thumb {
    object-fit: cover;
    filter: brightness(0.6) blur(1px);
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Tech Shimmer Sweep Effect */
@keyframes shimmer-sweep {
    0% { transform: translateX(-150%) rotate(10deg); }
    100% { transform: translateX(250%) rotate(10deg); }
}

@keyframes text-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}


@keyframes scan-line {
    0% { transform: scaleX(0); opacity: 0; left: 0; }
    20% { transform: scaleX(1); opacity: 1; left: 0; }
    80% { transform: scaleX(1); opacity: 1; left: 0; }
    100% { transform: scaleX(0); opacity: 0; left: 0; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.section-header {
    position: relative;
    display: inline-block;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    transform: scaleX(0);
    animation: scan-line 4s infinite ease-in-out;
}

.shimmer-text {
    background: linear-gradient(110deg,
        rgba(255,255,255,0.4) 45%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,0.4) 55%);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 8s linear infinite;
}

/* Section headers shimmer in champagne gold (hero headline stays white) */
.section-header.shimmer-text {
    background: linear-gradient(110deg,
        rgba(217, 197, 143, 0.5) 45%,
        #F2E2B3 50%,
        rgba(217, 197, 143, 0.5) 55%);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gold editorial eyebrow labels above section titles */
.section-eyebrow {
    display: block;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
    text-indent: 5px; /* visually offset the trailing letter-spacing */
}

/* Unboxed eyebrow: quiet gold lettering, no frame — cleaner, Apple-like */
.hero-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    text-indent: 6px; /* visually offset trailing letter-spacing */
}

/* Calm hero: static white headline and soft gray slogan (no sweeping shimmer) */
.hero h1 span.shimmer-text {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    animation: none;
}

.hero-slogan.sweep-text {
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.68);
    color: rgba(255, 255, 255, 0.68);
    animation: none;
}

@media (max-width: 768px) {
    .hero-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 3.5px;
        padding: 7px 14px 7px 17px;
        margin-bottom: 1.2rem;
    }
    .section-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 3.5px;
    }
}

.shimmer-box {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shimmer-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
}

.shimmer-box::after {
    content: "";
    position: absolute;
    top: -75%;
    left: 0;
    width: 80%;
    height: 250%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.08) 45%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.08) 55%,
        rgba(255, 255, 255, 0.02) 75%,
        rgba(255, 255, 255, 0) 90%,
        transparent 100%
    );
    transform: translateX(-150%) rotate(10deg);
    animation: shimmer-sweep 8s infinite cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(2px) brightness(1.15) contrast(1.1);
}

/* Stats & Branding */
.number-glow {
    animation: number-glow 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes number-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.2);
        opacity: 1;
        transform: scale(1.02);
    }
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 0.5rem;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .play-icon {
    transform: scale(1);
}

.watch-label {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 4px;
}

.portfolio-card:hover .watch-label {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Video Modal Lightbox */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal.active .video-container {
    transform: scale(1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3100;
}

.close-modal:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .section-header, h2.section-header {
        font-size: 1.8rem !important;
        white-space: nowrap;
        letter-spacing: 0;
    }
    
    .why-card {
        padding: 2.5rem 1.5rem !important;
        text-align: center;
    }
    
    .why-card h4 {
        font-size: 1.2rem;
        white-space: normal;
        line-height: 1.4;
    }

    .why-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .section-header, h2.section-header {
        font-size: 1.45rem !important;
        white-space: nowrap;
        word-break: keep-all;
    }
}
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .header-container {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .video-modal {
        padding: 1rem;
    }
    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

.reveal-step {
    opacity: 0 !important;
    transform: translateY(80px) scale(0.95) perspective(1000px) rotateX(5deg);
    filter: blur(20px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity, filter;
}

.reveal-step.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) perspective(1000px) rotateX(0deg);
    filter: blur(0);
    will-change: auto; /* release the compositor layer once the entrance is done */
}

/* Premium Reveal Animations */
.reveal {
    opacity: 0 !important;
    transform: translateY(60px) scale(0.95) perspective(1000px) rotateX(5deg);
    filter: blur(20px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity, filter;
}

.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) perspective(1000px) rotateX(0deg);
    filter: blur(0);
    will-change: auto; /* release the compositor layer once the entrance is done */
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.5s; }


/* Premium Form Styling - light card framed in gold on the dark page */
.contact-form-wrapper {
    background: #fff !important;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    max-width: 850px;
    margin: 4rem auto 0;
    border: 1px solid var(--gold-dim);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65),
                0 0 24px rgba(201, 169, 98, 0.12);
}

.contact-form-wrapper:hover {
    border-color: var(--gold);
}

.contact-form-wrapper iframe {
    width: 100% !important;
    margin-left: 0 !important;
    opacity: 1;
    transition: all 0.5s ease;
    background: #fff !important;
    display: block;
    transform-origin: top center;
}

/* Zoom-crop the Google Form edges only on wide screens; on tablets (769-999px) it overflowed the viewport */
@media (min-width: 1000px) {
    .contact-form-wrapper iframe {
        width: 130% !important;
        margin-left: -15% !important;
        transform: scale(1.02);
    }
}

.contact-form-wrapper:hover iframe {
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        max-width: 100%;
        margin: 2rem 1rem 0;
        border-radius: 20px;
    }

    .contact-form-wrapper iframe {
        width: 100% !important;
        margin-left: 0 !important;
        transform: scale(1);
        /* Narrow screens make the form taller; extra height prevents the submit button being trapped in an inner scroll */
        height: 1350px;
    }
}

/* Masterclass Minimalist Floating CTA */
.floating-cta {
    position: fixed !important;
    bottom: 35px !important;
    right: 35px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 100px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: floating-minimalist 4s infinite ease-in-out;
}

.cta-minimalist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
}

.floating-cta:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(20, 20, 20, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
                0 0 20px rgba(255, 255, 255, 0.1);
}

.floating-cta:hover .cta-minimalist-icon {
    transform: rotate(-10deg) scale(1.1);
}

@keyframes floating-minimalist {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 30px !important;
        right: 20px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2222222222 !important; /* Force front in all mobile stack */
        padding: 10px 22px;
        font-size: 0.95rem;
        gap: 10px;
        /* The button background is 95% opaque, so backdrop blur was invisible
           anyway — but re-blurring every frame of the float animation caused
           jank on mobile. Solid background instead. */
        background: rgba(10, 10, 10, 0.97) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}
@keyframes premium-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sweep-text {
    background: linear-gradient(110deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0.4) 35%, 
        rgba(255,255,255,1) 50%, 
        rgba(255,255,255,0.4) 65%, 
        rgba(255,255,255,0.4) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: premium-sweep 4s infinite linear;
}

.hero-slogan {
    font-size: 1.4rem;
}

/* Hero Trust Points (factual reassurance under CTA buttons) */
.hero-trust {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    margin: 2.2rem auto 0;
    padding: 0;
    max-width: 900px;
}

.hero-trust li {
    color: var(--gold-soft);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.8rem;
    }
    .hero-trust li {
        font-size: 0.82rem;
        white-space: normal;
    }
}

.impact-desc {
    font-size: 1.3rem;
    max-width: 1200px;
    margin: 0 auto;
    word-break: keep-all; /* Prevent sub-optimal character-level breaking in CJK */
}


@media (max-width: 768px) {
    .hero-slogan {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        white-space: normal !important;
        word-break: normal !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
    }
    .impact-desc {
        font-size: 0.78rem !important;
        line-height: 1.8 !important;
        max-width: 100% !important;
        padding: 0 30px;
        word-break: normal !important;
    }
    .mobile-br {
        display: block;
    }
}

/* Hidden on desktop only; must not override the mobile rule above */
@media (min-width: 769px) {
    .mobile-br {
        display: none;
    }
}

/* ==========================================================================
   New Interactive Workflow & Stepper Styles
   ========================================================================== */

/* Workflow Tabs */
.workflow-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 100px;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
}

.workflow-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.workflow-tab-btn .tab-num {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: 0.85rem;
    opacity: 0.6;
}

.workflow-tab-btn:hover {
    color: var(--accent-white);
}

.workflow-tab-btn.active {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
    color: var(--gold-text-dark);
}

.workflow-tab-btn.active .tab-num {
    opacity: 0.9;
    font-weight: 700;
}

/* Tab Content Transitions */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Consult Workflow Cards */
.consult-workflow-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.consult-step-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem;
    align-items: center;
    text-align: left;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.consult-step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.consult-step-card:hover::before {
    opacity: 1;
}

.consult-step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.02);
}

.step-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gold-faint);
    border: 1px solid var(--gold-dim);
    color: var(--gold-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.consult-step-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.consult-step-info p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.consult-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 2px dashed var(--gold-dim);
    padding-bottom: 4px;
    text-shadow: 0 0 6px rgba(230, 200, 122, 0.35);
    transition: all 0.3s ease;
    animation: linkPulse 2.2s infinite ease-in-out;
    transform-origin: left center;
}

.consult-btn-link svg {
    width: 20px;
    height: 20px;
    animation: arrowBounce 1.5s infinite ease-in-out;
}

.consult-btn-link:hover {
    color: #fff;
    border-color: var(--gold-bright);
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(230, 200, 122, 0.8);
    animation-play-state: paused;
}

/* Transform-only pulse (text-shadow/border-color animation repainted every frame) */
@keyframes linkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

/* QR Code Scan Animation */
.qr-code-frame {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    max-width: 260px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.qr-code-frame:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 20px rgba(255, 255, 255, 0.05);
}

.qr-code-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: white;
    padding: 10px;
}

.qr-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.qr-scan-line {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(230, 200, 122, 0.9), transparent);
    box-shadow: 0 0 8px rgba(230, 200, 122, 0.8);
    animation: scanMove 3s infinite ease-in-out;
    pointer-events: none;
}

/* Animate transform instead of `top` — `top` triggered layout every frame */
@keyframes scanMove {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(196px); opacity: 1; }
}

/* Script Elements List */
.script-elements-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.script-elements-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.script-elements-list .icon-wrap {
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.script-elements-list li strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}

.script-elements-list li span {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Media Tabs (Step 2 Right Side) */
.media-tabs-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.media-tabs-headers {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.media-tab-header-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.media-tab-header-btn:hover {
    color: #fff;
}

.media-tab-header-btn.active {
    color: var(--gold-soft);
    background: var(--gold-faint);
    border-bottom: 2px solid var(--gold);
}

.media-tabs-body {
    padding: 24px;
}

.media-tab-pane {
    display: none;
}

.media-tab-pane.active {
    display: block;
}

/* Script Example Box */
.script-example-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.script-scene {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scene-time {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    color: var(--gold-soft);
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 6px;
}

.scene-detail {
    font-size: 0.88rem;
    line-height: 1.6;
}

.scene-detail p {
    margin: 4px 0;
}

.scene-detail p strong {
    color: var(--text-gray);
}

/* AI Script Guide */
.ai-script-guide {
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
}

.ai-steps {
    padding-left: 20px;
    color: var(--text-gray);
}

.ai-steps li {
    margin-bottom: 1rem;
}

.ai-steps li strong {
    color: #fff;
}

.prompt-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

#ai-prompt-text {
    font-size: 0.8rem;
    color: #eee;
    line-height: 1.6;
    word-break: break-all;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.copy-btn:hover {
    background: #fff;
    color: #000;
}

/* Quote Card Mockup */
.quote-card-mockup {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.mockup-header {
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold-soft);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 8px;
}

.mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
}

.status-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mockup-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.mockup-list div {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.mockup-footer {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-gray);
    opacity: 0.8;
}

/* Tab 2: Produce Timeline */
.produce-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.timeline-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.timeline-num {
    width: 44px;
    height: 44px;
    background: var(--gold-faint);
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bodoni Moda', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-soft);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-num {
    background: var(--gold);
    color: var(--gold-text-dark);
    transform: scale(1.1);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.lock-tag {
    display: inline-block;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-gray);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

/* Timeline Item Animations */
.timeline-item.reveal-step,
.consult-step-card.reveal-step {
    opacity: 0 !important;
    transform: translateY(40px) scale(0.98);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.reveal-step.visible,
.consult-step-card.reveal-step.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .produce-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .consult-step-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }
}

@media (max-width: 600px) {
    .produce-timeline {
        grid-template-columns: 1fr;
    }
    .workflow-tabs {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
        max-width: 280px;
    }
    .workflow-tab-btn {
        justify-content: center;
    }
}


/* ==========================================================================
   Mobile Performance & Visual Smoothness Optimizations
   ========================================================================== */

/* 1. Set background poster image by default for the hero background video container */
.hero-video-bg {
    background-image: url('圖片/hero_poster.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 2. Optimize padding on small devices to give text more breathing room */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem !important;
    }
}

/* 3. Prevent text overflow in headers and allow clean wrapping */
@media (max-width: 768px) {
    .section-header, h2.section-header {
        white-space: normal !important;
        word-break: normal !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
}
@media (max-width: 480px) {
    .section-header, h2.section-header {
        white-space: normal !important;
        word-break: normal !important;
        font-size: 1.5rem !important;
    }
}

/* 4. Segmented Control style for Workflow Tabs on mobile (extremely premium row style) */
@media (max-width: 600px) {
    .workflow-tabs {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 100px !important;
        padding: 4px !important;
        gap: 2px !important;
    }
    .workflow-tab-btn {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    .workflow-tab-btn .tab-num {
        font-size: 0.75rem !important;
    }
}

/* 5. Optimize media tabs inside Step 2 for mobile compatibility */
@media (max-width: 600px) {
    .media-tab-header-btn {
        padding: 12px 6px !important;
        font-size: 0.8rem !important;
    }
    .media-tabs-body {
        padding: 18px 12px !important;
    }
    .media-tab-pane li {
        font-size: 0.85rem !important;
        margin-bottom: 0.6rem !important;
    }
}

/* 6. Optimize timeline layout and card heights on mobile */
@media (max-width: 600px) {
    .timeline-item {
        padding: 2rem 1.25rem !important;
        min-height: auto !important;
        text-align: left !important;
        align-items: flex-start !important;
    }
    .timeline-num {
        margin-bottom: 1rem !important;
    }
}

/* 7. Ensure video portfolio cards play icons are always visible on touch screens */
@media (max-width: 768px) {
    .portfolio-overlay {
        opacity: 0.95 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 80%) !important;
    }
    .play-icon {
        transform: scale(0.9) !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
    .watch-label {
        font-size: 0.8rem !important;
        opacity: 0.9 !important;
    }
}


/* ==========================================================================
   Line Outline Button Styles
   ========================================================================== */
.btn-line-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gold-dim);
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    transition: transform 0.3s, opacity 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-line-outline:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--gold-text-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   Mobile-Optimized Scroll Animations (Buttery Smooth 60fps)
   ========================================================================== */
@media (max-width: 768px) {
    .reveal, .reveal-step, .fade-in {
        transform: translate3d(0, 20px, 0) !important;
        filter: none !important;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    .reveal.visible, .reveal-step.visible, .fade-in.visible {
        transform: translate3d(0, 0, 0) !important;
        filter: none !important;
    }
}

/* ==========================================================================
   Language Switcher Button Styles
   ========================================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.lang-switch-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* ==========================================================================
   Pulsing Call-To-Action (CTA) Form Button Styles
   ========================================================================== */
/* Transform-only pulse: animating box-shadow forced a full repaint every frame
   and caused scroll jank on mobile; a static glow + GPU-composited scale looks
   the same but costs almost nothing. */
@keyframes pulseGrow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.pulse-cta-btn {
    animation: pulseGrow 2.2s infinite ease-in-out;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%) !important;
    color: var(--gold-text-dark) !important;
    font-size: 1.12rem !important; /* Slightly larger, premium font size */
    font-weight: 800 !important;
    border: 1px solid rgba(255, 235, 190, 0.55);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.30);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
}

.pulse-cta-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 15px 35px rgba(201, 169, 98, 0.5) !important;
    animation-play-state: paused;
}



/* ==========================================================================
   Reduced Motion: show everything instantly for users/devices that ask for it
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .fade-in, .reveal-step {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==========================================================================
   Mobile Layout Refinement: shorter page, easier to scan
   ========================================================================== */
@media (max-width: 768px) {
    /* Tighter section rhythm on mobile */
    section {
        padding: 64px 0;
    }

    /* Vertical shorts in 2 columns — halves the scroll length of the portfolio */
    .portfolio-shorts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.9rem !important;
    }
    .portfolio-card.shorts {
        max-width: none !important;
    }
    .portfolio-grid {
        gap: 1.25rem !important;
    }
}

/* ==========================================================================
   Trust Bar: quiet gold strip under the hero
   ========================================================================== */
.trust-bar {
    padding: 34px 0;
    background: #050505;
    border-top: 1px solid var(--gold-faint);
    border-bottom: 1px solid var(--gold-faint);
}

.trust-bar .hero-trust {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .trust-bar {
        padding: 26px 0;
    }
    /* Hide the detailed service list on mobile — the headline says enough;
       the full list still shows on desktop */
    .slogan-detail {
        display: none !important;
    }
}

/* Mobile CTA pills: always one line, sized to fit */
@media (max-width: 768px) {
    .btn,
    .btn-line-outline {
        white-space: nowrap;
        font-size: 0.95rem !important;
        padding: 0.95rem 1.4rem !important;
        max-width: 100%;
    }
}

/* ==========================================================================
   Flow Strip: the 3-step commission flow under the hero
   ========================================================================== */
.flow-strip-label {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    text-indent: 5px;
    margin-bottom: 1.6rem;
}

.flow-strip {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.flow-strip li {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.flow-strip strong {
    display: block;
    color: var(--gold-soft);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.flow-strip span {
    display: block;
    color: var(--text-gray);
    font-size: 0.82rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .flow-strip {
        flex-direction: column;
        align-items: center;
        gap: 1.4rem;
    }
    .flow-strip li {
        max-width: 100%;
    }
    .flow-strip-label {
        font-size: 0.62rem;
        letter-spacing: 3.5px;
        margin-bottom: 1.2rem;
    }
    .trust-bar {
        padding: 36px 0 !important;
    }
}

/* ==========================================================================
   Workflow: linear layout (tabs removed — everything readable by scrolling)
   ========================================================================== */
.workflow-subhead {
    text-align: center;
    margin-bottom: 2.5rem;
}

.workflow-subtitle {
    color: var(--gold-soft);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-dim);
}

.workflow-subnote {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

/* Stacked info blocks inside STEP 02 (was hidden behind inner tabs) */
.media-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.media-stack-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
}

.media-stack-title {
    color: var(--gold-soft);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-faint);
}

@media (max-width: 600px) {
    .media-stack-block {
        padding: 16px 12px;
    }
    .workflow-subtitle {
        font-size: 1.2rem;
    }
}
