:root { color-scheme: light; }
        html { scroll-behavior: smooth; scroll-padding-top: 88px; }
        body { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; background: #f7f8f4; color: #17231e; }
        .dot-grid { background-image: radial-gradient(#167a5b 1px, transparent 1px); background-size: 18px 18px; }
        .home-hero { background-image: url('../../storage/bg.webp'); background-position: 58% center; background-size: cover; }
        .home-hero-overlay { background-image: linear-gradient(to top, #fff 0%, rgb(255 255 255 / .92) 8%, transparent 40%), linear-gradient(to bottom, rgb(248 249 244) 0%, rgb(247 248 244 / .85) 12%, rgb(247 248 244 / .55) 28%, rgb(247 248 244 / .2) 42%, transparent 54%), linear-gradient(to right, rgb(247 248 244 / .82) 0%, rgb(247 248 244 / .72) 42%, rgb(247 248 244 / .26) 60%, rgb(247 248 244 / .22) 100%), linear-gradient(rgb(247 248 244 / .22), rgb(247 248 244 / .22)); }
        .hero-visual-card { border: 1px solid rgb(255 255 255 / .12); background: linear-gradient(145deg, #17231e, #263b30); box-shadow: 0 24px 55px rgb(23 35 30 / .25); }
        .animate-pulse-ring { animation: pulse-ring 4s ease-in-out infinite; }
        .animate-orbit, .animate-orbit-reverse { animation: orbit 14s linear infinite; }
        .animate-orbit-reverse { animation-direction: reverse; }
        .animate-float-fast { animation: float-fast 4s ease-in-out infinite; }
        .animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
        .code-line { animation: code-reveal .45s ease both; }
        @keyframes pulse-ring { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
        @keyframes orbit { from { transform: translate(-50%, -50%) rotate(0deg) translateX(190px) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg) translateX(190px) rotate(-360deg); } }
        @keyframes float-fast { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
        @keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
        @keyframes code-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        @media (max-width: 767px) { .my-work-home-section { padding: 48px 0; } .my-work-home-grid { grid-template-columns: 1fr; gap: 13px; } .my-work-home-card { aspect-ratio: 16 / 9; } }
        @media (max-width: 640px) { .home-hero { background-position: 62% center; } }
        .feature-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
        .feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(23,35,30,.09); border-color: #b8d9c5; }
        .work-card img { transition: transform .5s ease; }
        .work-card:hover img { transform: scale(1.04); }
        .my-work-home-section { border-block: 1px solid rgb(23 35 30 / .05); background: #fff; padding: 64px 0; }
        .my-work-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
        .my-work-home-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e9eee8; color: #fff; text-decoration: none; }
        .my-work-home-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(15 28 22 / .78)); content: ''; }
        .my-work-home-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
        .my-work-home-card:hover img { transform: scale(1.035); }
        .my-work-home-card-label { position: absolute; z-index: 1; right: 16px; bottom: 14px; left: 16px; display: grid; gap: 5px; }
        .my-work-home-card-label span { color: rgb(255 255 255 / .78); font-size: 10px; font-weight: 700; }
        .my-work-home-card-label strong { font-size: 16px; line-height: 1.4; }
        .portfolio-carousel { min-width: 0; }
        .portfolio-carousel-viewport { overflow: hidden; }
        .portfolio-card-grid.is-carousel { display: flex; gap: 20px; will-change: transform; }
        .portfolio-card-grid.is-carousel.is-moving { transition: transform .55s cubic-bezier(.22,.72,.2,1); }
        .portfolio-card-grid.is-carousel > .portfolio-slide { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; }
        .portfolio-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
        .portfolio-carousel-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid #dfe4dc; border-radius: 50%; background: #fff; color: #17231e; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
        .portfolio-carousel-button:hover { border-color: #167a5b; background: #167a5b; color: #fff; }
        .portfolio-carousel-button:focus-visible, .portfolio-carousel-indicator:focus-visible { outline: 2px solid #167a5b; outline-offset: 3px; }
        .portfolio-carousel-indicators { display: flex; align-items: center; justify-content: center; gap: 7px; }
        .portfolio-carousel-indicator { width: 8px; height: 8px; border: 0; border-radius: 999px; background: #cbd4cc; padding: 0; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
        .portfolio-carousel-indicator[aria-current="true"] { width: 22px; background: #167a5b; }
        @media (max-width: 1023px) { .portfolio-card-grid.is-carousel > .portfolio-slide { flex-basis: calc((100% - 20px) / 2); } }
        @media (max-width: 639px) { .portfolio-card-grid.is-carousel { gap: 14px; } .portfolio-card-grid.is-carousel > .portfolio-slide { flex-basis: 100%; } }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
            .animate-pulse-ring, .animate-orbit, .animate-orbit-reverse, .animate-float-fast, .animate-float-slow, .code-line { animation: none !important; }
            .portfolio-card-grid.is-carousel.is-moving { transition-duration: .01ms !important; }
            .portfolio-carousel-button, .portfolio-carousel-indicator { transition: none !important; }
        }
