:root {
    --bg: #050705;
    --panel: #0d120f;
    --panel-2: #141a16;
    --green: #9cff1f;
    --green-2: #4fb400;
    --gold: #d3a449;
    --blue: #15a8ff;
    --text: #f4f7ee;
    --muted: #aeb8a7;
    --line: rgba(255,255,255,.12);
    --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 64px);
    background: rgba(5, 7, 5, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.brand-mark { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 1px; }
.brand-logo-wrap { gap: 14px; min-width: 0; }
.header-logo { display: block; object-fit: contain; filter: drop-shadow(0 0 14px rgba(156,255,31,.12)); }
.header-logo-hxy { width: 172px; height: 52px; object-position: center; border-radius: 10px; }
.header-logo-monster { width: 150px; height: 52px; object-position: center; border-radius: 10px; }
.brand-divider { width: 1px; height: 38px; background: linear-gradient(180deg, transparent, rgba(156,255,31,.6), transparent); }

.brand-claw { color: var(--green); transform: skew(-12deg); font-weight: 900; }
.site-nav { display: flex; align-items: center; gap: 24px; color: #d8e2d4; font-size: 15px; }
.site-nav a:hover { color: var(--green); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(156,255,31,.45); border-radius: 999px; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

.monster-page { overflow: hidden; }
.hero-section {
    position: relative;
    min-height: 88vh;
    padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 82px);
    background:
        radial-gradient(circle at 70% 20%, rgba(156,255,31,.16), transparent 35%),
        linear-gradient(135deg, #050705 0%, #0a100b 50%, #050705 100%);
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: linear-gradient(120deg, transparent 0 48%, rgba(156,255,31,.45) 49%, transparent 50% 100%);
    background-size: 54px 54px;
}
.hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
}
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: 2px; font-size: 13px; }
.hero-copy h1 {
    margin: 16px 0 20px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.05;
    letter-spacing: -2px;
}
.hero-lead { max-width: 620px; color: #d8dfd4; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg, var(--green), #57c300); color: #071006; box-shadow: 0 12px 40px rgba(156,255,31,.25); }
.btn-outline { border: 1px solid rgba(255,255,255,.22); color: #fff; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tags span { padding: 8px 12px; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; color: #dce7d8; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 4/4.6; object-fit: contain; border-radius: 34px; border: 1px solid rgba(156,255,31,.25); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.claw-bg { position: absolute; top: -28px; right: -18px; font-size: clamp(48px, 8vw, 120px); font-weight: 1000; color: rgba(156,255,31,.12); transform: rotate(-8deg); }
.hero-card { position: absolute; left: -24px; bottom: 34px; padding: 18px 22px; background: rgba(5,7,5,.82); border: 1px solid rgba(156,255,31,.32); border-radius: 20px; backdrop-filter: blur(14px); }
.hero-card strong { display: block; color: var(--green); font-size: 32px; }
.hero-card span { color: #d5ded0; }

.logo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #090d0a;
}
.logo-strip > div { padding: 22px clamp(18px, 4vw, 60px); border-right: 1px solid var(--line); }
.strip-title { display: block; color: var(--green); font-weight: 900; margin-bottom: 6px; }
.logo-strip span:last-child { color: var(--muted); }
.brand-showcase { grid-template-columns: .95fr .95fr 1.1fr; align-items: stretch; }
.brand-showcase-card { min-height: 150px; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.brand-showcase-card img { width: 100%; height: 120px; object-fit: contain; border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.brand-showcase-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.brand-showcase-text small { color: #dfe9d8; opacity: .78; margin-top: 6px; }
.company-logo-card { background: radial-gradient(circle at center, rgba(211,164,73,.16), transparent 55%); }
.monster-logo-card { background: radial-gradient(circle at center, rgba(156,255,31,.16), transparent 55%); }


.section-block { max-width: 1220px; margin: auto; padding: 96px 18px; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-heading h2, .application-copy h2, .color-copy h2, .contact-section h2 { font-size: clamp(32px, 4vw, 54px); margin: 10px 0; }
.section-heading p, .application-copy p, .color-copy p, .contact-section p { color: var(--muted); line-height: 1.8; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #121812, #090d0a); }
.product-card.green { border-color: rgba(156,255,31,.32); }
.product-card.gold { border-color: rgba(211,164,73,.32); }
.product-card.blue { border-color: rgba(21,168,255,.32); }
.product-image { height: 260px; overflow: hidden; background: #111; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-content { padding: 26px; }
.product-code { font-size: 46px; font-weight: 1000; color: var(--green); line-height: 1; }
.gold .product-code { color: var(--gold); }
.blue .product-code { color: var(--blue); }
.product-content h3 { margin: 12px 0 4px; font-size: 22px; }
.english { color: #fff; opacity: .65; font-size: 13px; margin: 0 0 12px; }
.tagline { color: #e9f4e3; font-weight: 800; }
.product-content p { color: var(--muted); line-height: 1.7; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-pills span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: #dfe8d9; font-size: 13px; }

.feature-section { padding: 96px 18px; background: radial-gradient(circle at top, rgba(156,255,31,.13), transparent 34%), #090d0a; }
.light { color: #fff; }
.advantage-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.advantage-card { padding: 26px; border-radius: 24px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.advantage-icon { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(156,255,31,.14); color: var(--green); border-radius: 14px; font-weight: 900; }
.advantage-card h3 { margin-bottom: 8px; }
.advantage-card p { color: var(--muted); line-height: 1.7; }

.application-section { max-width: 1220px; margin: auto; padding: 96px 18px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; }
.application-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.application-list > div { padding: 24px; border-radius: 22px; background: #101610; border: 1px solid var(--line); }
.application-list h3 { margin: 0 0 8px; color: var(--green); }
.application-list p { color: var(--muted); margin: 0; line-height: 1.7; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { overflow: hidden; border-radius: var(--radius); background: #101610; border: 1px solid var(--line); }
.case-card img { width: 100%; height: 360px; object-fit: contain; }
.case-card div { padding: 22px; }
.case-card p { color: var(--muted); line-height: 1.7; }

.color-section { max-width: 1220px; margin: auto; padding: 96px 18px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 36px; align-items: center; }
.note { font-size: 14px; }
.color-panel { padding: 18px; border-radius: var(--radius); background: #101610; border: 1px solid var(--line); }
.color-panel img { border-radius: 18px; width: 100%; max-height: 560px; object-fit: contain; }
.color-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 20px; }
.color-chip { text-align: center; color: #d8dfd4; }
.color-chip span { display: block; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); margin-bottom: 7px; }
.color-chip small { font-size: 12px; }

.contact-section { margin-top: 52px; padding: 86px clamp(18px,5vw,82px); display: grid; grid-template-columns: 1fr .82fr; gap: 42px; align-items: center; background: linear-gradient(135deg, #101610, #050705); border-top: 1px solid var(--line); }
.contact-card { padding: 30px; border-radius: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(156,255,31,.28); }
.contact-card h3 { font-size: 28px; margin-top: 0; }
.contact-card a { display: block; padding: 12px 0; color: #e8f5e0; border-bottom: 1px solid var(--line); }
.contact-card small { display: block; color: var(--muted); margin-top: 16px; }
.site-footer { padding: 26px 18px; text-align: center; color: var(--muted); background: #050705; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 65px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 18px; background: rgba(5,7,5,.96); border: 1px solid var(--line); border-radius: 18px; }
    .site-nav.open { display: flex; }
    .hero-grid, .application-section, .color-section, .contact-section { grid-template-columns: 1fr; }
    .product-grid, .case-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-strip { grid-template-columns: 1fr; }
    .hero-card { left: 16px; bottom: 18px; }
}

@media (max-width: 620px) {
    .site-header { padding: 14px 16px; }
    .hero-section { min-height: auto; padding-top: 54px; }
    .hero-copy h1 { font-size: 42px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .advantage-grid, .application-list { grid-template-columns: 1fr; }
    .color-chips { grid-template-columns: repeat(4, 1fr); }
    .case-card img { height: 280px; }
    .product-image { height: 230px; }
}


/* Logo responsive adjustments */
@media (max-width: 980px) {
    .brand-logo-wrap { gap: 8px; }
    .header-logo-hxy { width: 132px; height: 42px; }
    .header-logo-monster { width: 118px; height: 42px; }
    .brand-divider { height: 30px; }
    .brand-showcase { grid-template-columns: 1fr; }
    .brand-showcase-card img { height: 150px; }
}

@media (max-width: 620px) {
    .site-header { padding: 12px 14px; }
    .header-logo-hxy { width: 104px; height: 36px; }
    .header-logo-monster { width: 96px; height: 36px; }
    .brand-divider { display: none; }
    .site-nav { top: 65px; }
    .brand-showcase-card { min-height: 120px; }
    .brand-showcase-card img { height: 105px; }
}


/* ===== Header single logo override ===== */
.single-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-logo-main {
    width: 130px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 0 22px rgba(156,255,31,.16);
}

.header-company-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .12em;
    font-size: 48px;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(211,164,73,.22);
}

.brand-divider,
.header-logo-hxy,
.header-logo-monster {
    display: none !important;
}

@media (max-width: 980px) {
    .header-logo-main {
        width: 96px;
        height: 48px;
    }

    .header-company-name {
        font-size: 36px;
        letter-spacing: .08em;
    }
}

@media (max-width: 560px) {
    .single-brand {
        gap: 10px;
    }

    .header-logo-main {
        width: 76px;
        height: 40px;
        border-radius: 9px;
    }

    .header-company-name {
        font-size: 36px;
        letter-spacing: .04em;
    }
}


/* ===== Product color cards ===== */
#page-top-anchor {
    position: absolute;
    top: 0;
    left: 0;
}

.color-section {
    position: relative;
    padding: 110px 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(132, 255, 64, .10), transparent 30%),
        linear-gradient(180deg, #090909 0%, #050505 100%);
    overflow: hidden;
}

.color-card-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr .875fr .875fr;
    gap: 24px;
}

.color-card {
    position: relative;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    overflow: hidden;
}

.color-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(132,255,64,.10), transparent 42%);
    pointer-events: none;
}

.color-card-head {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.color-product-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(132,255,64,.14);
    border: 1px solid rgba(132,255,64,.35);
    color: #9cff1f;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.color-card h3 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #fff;
}

.color-card p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.8;
}

.color-image-wrap {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
}

.color-image-wrap img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: center;
}

.color-image-wrap.compact img {
    height: 180px;
}

.swatch-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.swatch-row.single {
    grid-template-columns: 1fr;
    max-width: 110px;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

.swatch {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.22), 0 8px 20px rgba(0,0,0,.22);
}

.swatch-clear {
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.10)),
        repeating-linear-gradient(45deg, #d8d8d8 0 6px, #f8f8f8 6px 12px);
}

.swatch-black {
    background: #050505;
}

.swatch-white {
    background: #f5f1e8;
}

.swatch-darkgray {
    background: #4a4a46;
}

@media (max-width: 980px) {
    .color-card-grid {
        grid-template-columns: 1fr;
    }

    .color-image-wrap img,
    .color-image-wrap.compact img {
        height: auto;
        max-height: 420px;
        object-fit: contain;
    }
}

@media (max-width: 560px) {
    .color-section {
        padding: 80px 16px;
    }

    .color-card {
        padding: 18px;
        border-radius: 22px;
    }

    .swatch-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .swatch-row.single {
        grid-template-columns: 1fr;
    }
}


/* ===== Fix uploaded color card display + LINE contact ===== */
.color-image-wrap {
    background: rgba(255,255,255,.035);
}

.color-image-wrap img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

.color-image-wrap.compact img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

.color-card-main .color-image-wrap img {
    max-height: 620px !important;
}

.contact-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 999px;
    background: #06C755;
    color: #041008 !important;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: 0 14px 35px rgba(6,199,85,.28);
    transition: transform .25s ease, box-shadow .25s ease;
}

.line-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(6,199,85,.38);
}

@media (max-width: 560px) {
    .line-button {
        width: 100%;
        max-width: 260px;
    }
}


/* ===== Expanded color card layout override ===== */
.color-card-grid,
.color-card,
.swatch-row {
    display: none !important;
}

.color-expanded-list {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.color-expanded-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at top left, rgba(132,255,64,.10), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

.color-expanded-card.b200 {
    background:
        radial-gradient(circle at top left, rgba(255,196,86,.10), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}

.color-expanded-card.w100 {
    background:
        radial-gradient(circle at top left, rgba(80,160,255,.10), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}

.color-expanded-info h3 {
    font-size: 34px;
    margin: 12px 0 14px;
    color: #fff;
}

.color-expanded-info p {
    color: rgba(255,255,255,.72);
    line-height: 1.9;
    margin-bottom: 22px;
}

.color-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    font-size: 14px;
}

.color-expanded-image {
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    padding: 18px;
    overflow: hidden;
}

.color-expanded-image img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 18px;
}

.color-expanded-card.b300 .color-expanded-image img {
    max-height: 760px !important;
}

.color-expanded-card.b200 .color-expanded-image img,
.color-expanded-card.w100 .color-expanded-image img {
    max-height: 520px !important;
}

@media (max-width: 980px) {
    .color-expanded-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .color-expanded-info h3 {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .color-expanded-card {
        padding: 18px;
        border-radius: 24px;
    }

    .color-expanded-image {
        padding: 10px;
        border-radius: 18px;
    }

    .color-expanded-image img {
        border-radius: 12px;
    }

    .color-tags span {
        font-size: 13px;
        padding: 6px 10px;
    }
}


/* ===== Floating Contact ===== */

.floating-contact{
    position:fixed;
    right:24px;
    bottom:24px;
    display:flex;
    flex-direction:column;
    gap:16px;
    z-index:99999;
}

.float-btn{
    width:68px;
    height:68px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:900;
    transition:.25s;
    box-shadow:0 18px 40px rgba(0,0,0,.35);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
}

.float-btn:hover{
    transform:translateY(-4px) scale(1.05);
}

.float-btn.line{
    background:#06C755;
    color:#fff;
}

.float-btn.phone{
    background:#111;
    color:#7dff57;
    border:1px solid rgba(125,255,87,.35);
}

.float-icon{
    font-size:14px;
    letter-spacing:.08em;
}

@media(max-width:560px){

    .floating-contact{
        right:16px;
        bottom:16px;
        gap:12px;
    }

    .float-btn{
        width:58px;
        height:58px;
    }

    .float-icon{
        font-size:12px;
    }
}

/* ===== Case Photos Multi Gallery - in original CASE PHOTOS section ===== */
#cases .case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

#cases .case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#cases .case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(156,255,31,.35);
    box-shadow: 0 24px 70px rgba(0,0,0,.38);
}

#cases .case-card img {
    height: 310px;
    object-fit: cover;
    background: #050805;
    transition: transform .4s ease;
}

#cases .case-card:hover img {
    transform: scale(1.035);
}

#cases .case-card:first-child,
#cases .case-card:nth-child(3),
#cases .case-card:nth-child(6) {
    grid-column: span 2;
}

#cases .case-card:first-child img,
#cases .case-card:nth-child(3) img,
#cases .case-card:nth-child(6) img {
    height: 390px;
}

@media (max-width: 1200px) {
    #cases .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #cases .case-card:first-child,
    #cases .case-card:nth-child(3),
    #cases .case-card:nth-child(6) { grid-column: span 1; }
    #cases .case-card img,
    #cases .case-card:first-child img,
    #cases .case-card:nth-child(3) img,
    #cases .case-card:nth-child(6) img { height: 330px; }
}

@media (max-width: 640px) {
    #cases .case-grid { grid-template-columns: 1fr; }
    #cases .case-card img,
    #cases .case-card:first-child img,
    #cases .case-card:nth-child(3) img,
    #cases .case-card:nth-child(6) img { height: 260px; }
}


/* ===== CASE PHOTOS horizontal slider ===== */
#cases.case-slider-section {
    overflow: hidden;
}

.case-slider-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.case-slider-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.case-slider-hint {
    color: rgba(255,255,255,.58);
    font-size: 14px;
    letter-spacing: .08em;
}

.case-slider-actions {
    display: flex;
    gap: 12px;
}

.case-slide-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(156,255,31,.42);
    background: rgba(156,255,31,.09);
    color: #9cff1f;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.case-slide-btn:hover {
    transform: translateY(-2px);
    background: rgba(156,255,31,.18);
    box-shadow: 0 10px 28px rgba(156,255,31,.14);
}

#cases .case-slider {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 2px 24px;
    -webkit-overflow-scrolling: touch;
}

#cases .case-slider::-webkit-scrollbar {
    height: 8px;
}

#cases .case-slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
    border-radius: 999px;
}

#cases .case-slider::-webkit-scrollbar-thumb {
    background: rgba(156,255,31,.42);
    border-radius: 999px;
}

#cases .slide-card {
    flex: 0 0 min(380px, 82vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

#cases .slide-card img,
#cases .case-card:first-child img,
#cases .case-card:nth-child(3) img,
#cases .case-card:nth-child(6) img {
    width: 100%;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
}

#cases .slide-card:first-child,
#cases .slide-card:nth-child(3),
#cases .slide-card:nth-child(6) {
    grid-column: auto !important;
}

#cases .slide-card div {
    flex: 1;
}

@media (min-width: 1100px) {
    #cases .slide-card {
        flex-basis: 360px;
    }
}

@media (max-width: 768px) {
    .case-slider-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .case-slider-actions {
        width: 100%;
        justify-content: flex-end;
    }

    #cases .slide-card {
        flex-basis: 82vw;
    }

    #cases .slide-card img,
    #cases .case-card:first-child img,
    #cases .case-card:nth-child(3) img,
    #cases .case-card:nth-child(6) img {
        height: 260px !important;
    }
}
