/* =========================================================
   FONT (disimpan lokal di assets/fonts, bukan dari Google)
========================================================= */

@font-face{
    font-family:'Poppins';
    font-style:normal;
    font-weight:400;
    font-display:swap;
    src:url('assets/fonts/Poppins-Regular.woff') format('woff');
}
@font-face{
    font-family:'Poppins';
    font-style:normal;
    font-weight:500;
    font-display:swap;
    src:url('assets/fonts/Poppins-Medium.woff') format('woff');
}
@font-face{
    font-family:'Poppins';
    font-style:normal;
    font-weight:600 700;
    font-display:swap;
    src:url('assets/fonts/Poppins-Bold.woff') format('woff');
}

/* =========================================================
   MORU ART — Purple theme
   Ganti warna cukup di bagian :root di bawah ini.
========================================================= */

:root{
    --bg-1:#14082e;
    --bg-2:#05020f;
    --surface:#170f2b;
    --surface-2:#231747;
    --line:rgba(196,181,253,.14);

    --primary:#7c3aed;
    --primary-dark:#6d28d9;
    --ink:#4c1d95;
    --accent:#a78bfa;
    --accent-2:#c4b5fd;
    --pink:#e879f9;

    --text:#f5f3ff;
    --text-soft:#d8cff5;
    --text-muted:#a99bd0;

    --glow:124,58,237;
    --ease:cubic-bezier(.22,1,.36,1);
}

html{ scroll-behavior:smooth; }

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

body{
    background:linear-gradient(135deg,var(--bg-1),var(--bg-2));
    background-attachment:fixed;
    color:var(--text);
    font-family:'Poppins',sans-serif;
}

/* Kunci scroll selama intro (hanya kalau JS aktif) */
html.js:not(.ready) body{ overflow:hidden; }

/* Cahaya ungu di background */
body::before,
body::after{
    content:"";
    position:fixed;
    width:520px;
    height:520px;
    border-radius:50%;
    filter:blur(220px);
    opacity:.2;
    z-index:-1;
    pointer-events:none;
}
body::before{ background:var(--primary); top:-200px; left:-200px; }
body::after{ background:var(--pink); bottom:-220px; right:-220px; opacity:.12; }

ul{ list-style:none; }

a{
    color:var(--text);
    text-decoration:none;
    transition:color .3s;
}
a:hover{ color:var(--accent-2); }

:focus-visible{
    outline:2px solid var(--accent-2);
    outline-offset:3px;
}

/* =========================================================
   NAVBAR
========================================================= */

nav{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    max-width:1200px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;
    background:rgba(20,8,46,.55);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid var(--line);
    border-radius:18px;
    transition:all .35s ease;
    z-index:1000;
}

nav.scrolled{
    padding:14px 30px;
    background:rgba(8,3,20,.88);
    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);
    box-shadow:0 20px 50px rgba(0,0,0,.4);
}

.logo{
    display:block;
    line-height:0;
}

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

/* logo di navbar disembunyikan sampai logo intro "mendarat" */
.js:not(.docked) .logo img{ visibility:hidden; }

nav ul{ display:flex; gap:35px; }

nav ul li a{
    font-weight:500;
    color:var(--text);
}
nav ul li a:hover{ color:var(--accent-2); }

/* =========================================================
   BUTTONS (ink effect)
========================================================= */

button{
    position:relative;
    overflow:hidden;
    z-index:1;
    padding:18px 38px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    font-family:inherit;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:transform .35s, box-shadow .35s, color .35s;
    box-shadow:0 10px 30px rgba(var(--glow),.4);
}

button:hover{
    transform:translateY(-5px);
    box-shadow:0 16px 36px rgba(var(--glow),.5);
}

button::before,
.contact-buttons a::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:0;
    height:0;
    border-radius:50%;
    background:var(--ink-color,var(--ink));
    transform:translate(-50%,-50%);
    transition:width .55s var(--ease), height .55s var(--ease);
    z-index:-1;
}

button:hover::before,
.contact-buttons a:hover::before{
    width:340px;
    height:340px;
}

.secondary{
    --ink-color:#fff;
    background:transparent;
    border:2px solid var(--accent-2);
    box-shadow:none;
}
.secondary:hover{
    color:#1a0b3a;
    box-shadow:0 14px 30px rgba(var(--glow),.35);
}

/* =========================================================
   HERO
========================================================= */

.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:100vh;
    padding:120px 100px 60px;
}

.left{ width:50%; }
.right{
    position:relative;
    width:40%;
    display:flex;
    justify-content:center;
}

.tag,
.section-tag{
    display:inline-block;
    background:var(--surface-2);
    color:var(--accent-2);
    border:1px solid var(--line);
    padding:10px 20px;
    border-radius:50px;
    margin-bottom:20px;
    font-size:15px;
}

.left h1{
    font-size:72px;
    line-height:1.1;
    margin-bottom:25px;
}

.left h1 span{
    background:linear-gradient(90deg,var(--accent-2),var(--accent),var(--pink));
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

.left p{
    font-size:21px;
    color:var(--text-soft);
    line-height:1.8;
    margin-bottom:35px;
}

.buttons{ display:flex; gap:20px; }

/* Foto hero + glow ungu di belakangnya */
.right::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:380px;
    height:380px;
    border-radius:50%;
    background:var(--primary);
    filter:blur(100px);
    opacity:.4;
    transform:translate(-50%,-50%);
    z-index:0;
}

.right img{
    position:relative;
    z-index:1;
    width:430px;
    max-width:100%;
    border-radius:30px;
    border:4px solid var(--line);
    box-shadow:0 30px 80px rgba(0,0,0,.5);
    transition:transform .5s var(--ease), box-shadow .5s;
}
.right img:hover{
    transform:translateY(-12px) scale(1.02) rotate(-1deg);
    box-shadow:0 40px 90px rgba(var(--glow),.4);
}

/* =========================================================
   ABOUT
========================================================= */

.about{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:120px 100px;
    gap:80px;
}

.about-image{ flex:1; }
.about-content{ flex:1; }

.about-image img{
    width:100%;
    border-radius:25px;
    box-shadow:0 20px 50px rgba(0,0,0,.4);
    transition:transform .5s var(--ease), box-shadow .5s;
}
.about-image img:hover{
    transform:translateY(-10px);
    box-shadow:0 30px 60px rgba(var(--glow),.35);
}

.about-content h2{
    font-size:48px;
    margin-bottom:25px;
}

.about-content p{
    color:var(--text-soft);
    line-height:1.8;
    margin-bottom:20px;
    font-size:18px;
}

/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio{ padding:100px; }

.portfolio h2{
    text-align:center;
    font-size:48px;
    font-weight:700;
    margin-bottom:15px;
}

.gallery-sub{
    text-align:center;
    color:var(--text-muted);
    font-size:18px;
    margin-bottom:60px;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
}

.card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    background:var(--surface);
    cursor:pointer;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    transition:transform .6s var(--ease), box-shadow .6s;
}

.card img{
    width:100%;
    height:400px;
    object-fit:cover;
    display:block;
    transition:transform .7s var(--ease);
}

.card:hover{
    transform:translateY(-15px);
    box-shadow:0 30px 80px rgba(var(--glow),.35);
}
.card:hover img{ transform:scale(1.08); }

.overlay{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:25px;
    background:linear-gradient(transparent,rgba(12,4,30,.95));
    transform:translateY(100%);
    transition:transform .5s var(--ease);
}
.card:hover .overlay{ transform:translateY(0); }

.overlay h3{ font-size:26px; margin-bottom:6px; }
.overlay p{ color:var(--text-soft); }

/* =========================================================
   COMMISSION
========================================================= */

.commission{
    padding:120px 100px;
    text-align:center;
}

.commission h2{
    font-size:48px;
    margin-bottom:14px;
}

.commission-sub{
    max-width:620px;
    margin:0 auto 44px;
    color:var(--text-muted);
    font-size:18px;
    line-height:1.7;
}

/* --- toggle gaya & ukuran --- */
.c-controls{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
}

.seg{
    position:relative;
    display:inline-flex;
    padding:6px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--line);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.seg-ind{
    position:absolute;
    top:6px;
    bottom:6px;
    left:0;
    width:0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:0 8px 24px rgba(var(--glow),.45);
    transition:transform .5s var(--ease), width .5s var(--ease);
    z-index:0;
}

.seg button{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:12px 30px;
    border-radius:999px;
    background:transparent;
    box-shadow:none;
    color:var(--text-muted);
    font-size:16px;
    font-weight:600;
    line-height:1.2;
    overflow:visible;
}
.seg button::before{ display:none; }
.seg button:hover{
    transform:none;
    box-shadow:none;
    color:var(--text);
}
.seg button.active{ color:#fff; }
.seg button small{
    margin-top:3px;
    font-size:11px;
    font-weight:400;
    opacity:.75;
}

.c-hint{
    min-height:1.5em;
    margin:20px 0 48px;
    color:var(--text-muted);
    font-size:15px;
}

/* --- kartu --- */
.c-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
    max-width:1200px;
    margin:0 auto;
    text-align:left;
}

.c-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:26px;
    background:linear-gradient(165deg,rgba(35,23,71,.82),rgba(20,12,40,.94));
    border:1px solid var(--line);
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    transition:transform .45s var(--ease), border-color .4s, box-shadow .45s;
}
.c-card.enter{ animation:cardIn .85s var(--ease) backwards; }
.c-card:hover{
    transform:translateY(-10px);
    border-color:rgba(167,139,250,.55);
    box-shadow:0 30px 70px rgba(var(--glow),.32);
}

@keyframes cardIn{
    from{ opacity:0; transform:translateY(40px) scale(.97); }
}

/* --- area foto --- */
.c-photo{
    position:relative;
    aspect-ratio:4/5;
    overflow:hidden;
    background:radial-gradient(circle at 30% 20%,#3b1d7a 0%,#1b0f3a 60%,#120a28 100%);
}

.c-photo img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    cursor:zoom-in;
    opacity:0;
    transform:scale(1.06);
    transition:opacity .7s ease, transform .9s var(--ease);
}
.c-photo img.in{ opacity:1; transform:scale(1); }
.c-card:hover .c-photo img.in{ transform:scale(1.06); }

/* placeholder kalau foto belum ada */
.c-ph{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    color:var(--accent-2);
    background-image:radial-gradient(rgba(196,181,253,.14) 1px,transparent 1.6px);
    background-size:22px 22px;
    transition:opacity .5s;
}
.c-ph svg{ width:46px; height:46px; opacity:.85; }
.c-ph span{
    font-size:12px;
    letter-spacing:2.5px;
    text-transform:uppercase;
    color:var(--text-muted);
}
.c-photo:not(.has-photo)::after{
    content:"";
    position:absolute;
    inset:14px;
    border:1px dashed rgba(196,181,253,.25);
    border-radius:18px;
    pointer-events:none;
}
.c-photo.has-photo .c-ph{ opacity:0; }

.c-badge{
    position:absolute;
    top:16px;
    left:16px;
    z-index:2;
    padding:6px 14px;
    border-radius:999px;
    background:rgba(12,4,30,.65);
    border:1px solid var(--line);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    color:var(--accent-2);
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
}

/* --- isi kartu --- */
.c-body{
    display:flex;
    flex-direction:column;
    flex:1;
    gap:18px;
    padding:26px 26px 28px;
}

.c-head h3{
    font-size:26px;
    font-weight:600;
}
.c-head p{
    margin-top:2px;
    color:var(--text-muted);
    font-size:14px;
}

/* pilihan Black & White / Coloring */
.vt{
    display:inline-flex;
    align-self:flex-start;
    padding:4px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--line);
}
.vt button{
    padding:8px 16px;
    border-radius:999px;
    background:transparent;
    box-shadow:none;
    color:var(--text-muted);
    font-size:13px;
    font-weight:500;
}
.vt button::before{ display:none; }
.vt button:hover{
    transform:none;
    box-shadow:none;
    color:var(--text);
}
.vt button.active{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:0 6px 18px rgba(var(--glow),.4);
    color:#fff;
}
.vt.single span{
    padding:8px 16px;
    color:var(--accent-2);
    font-size:13px;
}

/* harga Rupiah + Dollar */
.c-price{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px 12px;
    margin-top:auto;
    padding-top:18px;
    border-top:1px solid var(--line);
}
.c-idr{
    font-size:34px;
    font-weight:700;
    line-height:1.1;
    background:linear-gradient(90deg,var(--accent-2),var(--accent));
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}
.c-usd{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border-radius:999px;
    background:var(--surface-2);
    border:1px solid var(--line);
    color:var(--accent-2);
    font-size:14px;
    font-weight:600;
}
.c-usd i{
    font-style:normal;
    font-weight:400;
    color:var(--text-muted);
}
.c-price.swap .c-idr,
.c-price.swap .c-usd{ animation:pricePop .5s var(--ease) backwards; }
.c-price.swap .c-usd{ animation-delay:.06s; }

@keyframes pricePop{
    from{ opacity:0; transform:translateY(10px); }
}

.c-order{
    width:100%;
    padding:15px 30px;
    font-size:16px;
}

.c-note{
    margin-top:46px;
    color:var(--text-muted);
    font-size:13px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact{
    padding:120px 25px;
    text-align:center;
}

.contact h2{
    font-size:48px;
    margin:20px 0;
}

.contact-text{
    max-width:650px;
    margin:0 auto 50px;
    color:var(--text-muted);
    line-height:1.8;
}

.contact-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.contact-buttons a{
    position:relative;
    overflow:hidden;
    z-index:1;
    display:inline-block;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    padding:16px 32px;
    border-radius:999px;
    font-weight:600;
    transition:transform .3s, box-shadow .3s;
}
.contact-buttons a:hover{
    color:#fff;
    transform:translateY(-5px);
    box-shadow:0 15px 30px rgba(var(--glow),.45);
}

/* =========================================================
   FOOTER
========================================================= */

footer{
    padding:50px;
    text-align:center;
    border-top:1px solid var(--line);
}
footer h2{ margin-bottom:15px; }
footer p{ color:var(--text-muted); }

/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(8,3,20,.92);
    backdrop-filter:blur(6px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9000;
    opacity:0;
    visibility:hidden;
    transition:opacity .35s, visibility .35s;
}
.lightbox.open{ opacity:1; visibility:visible; }

.lightbox img{
    max-width:85%;
    max-height:85%;
    border-radius:20px;
    box-shadow:0 30px 80px rgba(var(--glow),.35);
    transform:scale(.92);
    transition:transform .5s var(--ease);
}
.lightbox.open img{ transform:scale(1); }

#close{
    position:absolute;
    top:40px;
    right:60px;
    font-size:60px;
    line-height:1;
    cursor:pointer;
    color:#fff;
    transition:color .3s, transform .3s;
}
#close:hover{ color:var(--accent-2); transform:rotate(90deg); }

/* =========================================================
   SCROLL REVEAL (section lain, setelah hero)
========================================================= */

.js .hidden:not(.show){ opacity:0; }

.hidden.show{
    animation:rise .9s var(--ease) backwards;
}

@keyframes rise{
    from{ opacity:0; transform:translateY(50px); }
}

/* =========================================================
   INTRO
   1) tulisan "Moru Art" digambar
   2) logo muncul (M digambar, pensil, garis)
   3) logo terbang & nempel ke navbar, tirai turun
========================================================= */

/* Latar intro */
.intro{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;
    cursor:pointer;
    background:radial-gradient(circle at 50% 45%,#2b1266 0%,#0b0518 68%);
    clip-path:inset(0 0 0 0);
    transition:clip-path 1.1s cubic-bezier(.76,0,.24,1);
}
.js .intro{ display:block; }

/* tirai turun ke bawah -> navbar & hero kebuka dari atas */
.intro.exit{
    clip-path:inset(100% 0 0 0);
    pointer-events:none;
}

.intro::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:420px;
    height:420px;
    margin:-210px 0 0 -210px;
    border-radius:50%;
    background:var(--primary);
    filter:blur(140px);
    opacity:.35;
    animation:pulse 3.2s ease-in-out infinite;
}

@keyframes pulse{
    0%,100%{ transform:scale(1);   opacity:.22; }
    50%    { transform:scale(1.5); opacity:.5;  }
}

/* Layer logo (di atas latar, supaya nggak ikut ke-clip tirai) */
.stage{
    display:none;
    position:fixed;
    inset:0;
    z-index:10000;
    justify-content:center;
    align-items:center;
    pointer-events:none;
}
.js .stage{ display:flex; }

.stage-inner{ text-align:center; }

.intro-logo{
    display:block;
    width:min(560px,86vw);
    margin:0 auto;
    overflow:visible;
    transform-origin:0 0;
}

/* --- kondisi awal (belum digambar) --- */
.intro-logo .tx{
    fill-opacity:0;
    stroke:#c4b5fd;
    stroke-width:1.4;
    stroke-linejoin:round;
    stroke-dasharray:1 1;
    stroke-dashoffset:1;
}
.intro-logo .tx-moru{ fill:#f5f3ff; }
.intro-logo .tx-art { fill:#c4b5fd; }

.intro-logo .m-tile{
    opacity:0;
    transform-box:fill-box;
    transform-origin:center;
    transform:scale(.6) rotate(-8deg);
}
.intro-logo .m-m,
.intro-logo .m-line{
    stroke-dasharray:1 1;
    stroke-dashoffset:1;
}
.intro-logo .m-tip{ opacity:0; }

/* --- urutan animasi --- */
.stage.play .tx-moru{
    animation:
        draw   1s  cubic-bezier(.65,0,.35,1) 0s    forwards,
        fillIn .7s ease                       1.2s  forwards;
}
.stage.play .tx-art{
    animation:
        draw   .8s cubic-bezier(.65,0,.35,1) .7s   forwards,
        fillIn .7s ease                       1.2s  forwards;
}

.stage.play .m-tile{ animation:tileIn .7s var(--ease) 1.55s forwards; }
.stage.play .m-m   { animation:draw   .6s cubic-bezier(.65,0,.35,1) 1.8s forwards; }
.stage.play .m-tip { animation:tipIn  .35s ease 2.35s forwards; }
.stage.play .m-line{ animation:draw   .6s cubic-bezier(.65,0,.35,1) 2.45s forwards; }

@keyframes draw  { to{ stroke-dashoffset:0; } }
@keyframes fillIn{ to{ fill-opacity:1; stroke-opacity:0; } }
@keyframes tileIn{ to{ opacity:1; transform:scale(1) rotate(0); } }
@keyframes tipIn { to{ opacity:1; } }

/* Klik untuk skip: langsung ke kondisi selesai */
.stage.complete .tx{
    animation:none !important;
    stroke-dashoffset:0 !important;
    fill-opacity:1 !important;
    stroke-opacity:0 !important;
}
.stage.complete .m-tile{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
}
.stage.complete .m-m,
.stage.complete .m-line{
    animation:none !important;
    stroke-dashoffset:0 !important;
}
.stage.complete .m-tip{
    animation:none !important;
    opacity:1 !important;
}

/* Tagline + progress bar */
#typing{
    min-height:1.6em;
    margin-top:18px;
    color:var(--accent-2);
    font-size:20px;
    letter-spacing:5px;
}
#typing::after{
    content:"";
    display:inline-block;
    width:2px;
    height:1em;
    margin-left:4px;
    vertical-align:-.15em;
    background:var(--accent-2);
    animation:blink .8s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.intro-bar{
    width:min(260px,60vw);
    height:2px;
    margin:26px auto 0;
    border-radius:2px;
    background:rgba(196,181,253,.15);
    overflow:hidden;
}
.intro-bar i{
    display:block;
    height:100%;
    background:linear-gradient(90deg,var(--primary),var(--accent-2));
    transform:scaleX(0);
    transform-origin:left;
}
.stage.play .intro-bar i{
    animation:bar 3.1s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes bar{ to{ transform:scaleX(1); } }

/* Tagline & bar hilang saat logo mulai terbang */
#typing,
.intro-bar{ transition:opacity .35s ease; }
.stage.leaving #typing,
.stage.leaving .intro-bar{ opacity:0; }

/* =========================================================
   HERO ENTRANCE  (mulai setelah tirai intro terangkat)
   Pakai fill-mode "backwards" supaya hover tetap jalan
========================================================= */

.js:not(.ready) .hero .tag,
.js:not(.ready) .hero h1,
.js:not(.ready) .hero .left p,
.js:not(.ready) .hero .buttons,
.js:not(.ready) .hero .right img,
.js:not(.ready) .hero .right::before,
.js:not(.ready) nav{
    opacity:0;
}

.ready .hero .tag{     animation:rise   .9s var(--ease) .10s backwards; }
.ready .hero h1{       animation:headIn 1.1s var(--ease) .22s backwards; }
.ready .hero .left p{  animation:rise   .9s var(--ease) .42s backwards; }
.ready .hero .buttons{ animation:rise   .9s var(--ease) .56s backwards; }
.ready .hero .right img{
    animation:imgIn 1.4s var(--ease) .25s backwards;
}
.ready .hero .right::before{
    animation:glowIn 1.8s ease .2s backwards;
}
.ready nav{
    animation:navIn .8s var(--ease) .15s backwards;
}

@keyframes headIn{
    from{ opacity:0; transform:translateY(46px); filter:blur(12px); }
}
@keyframes imgIn{
    from{ opacity:0; transform:translateY(70px) scale(.92) rotate(4deg); filter:blur(10px); }
}
@keyframes glowIn{
    from{ opacity:0; }
}
@keyframes navIn{
    from{ opacity:0; transform:translateX(-50%) translateY(-40px); }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px){

    nav{ width:95%; padding:15px 20px; }
    .logo img{ height:30px; }
    nav ul{ gap:14px; font-size:13px; }

    .hero{
        flex-direction:column;
        text-align:center;
        min-height:auto;
        padding:140px 25px 60px;
    }

    .left, .right{ width:100%; }

    .left h1{ font-size:42px; }
    .left p{ font-size:17px; }

    .buttons{ justify-content:center; flex-wrap:wrap; }

    .right{ margin-top:40px; }
    .right img{ width:280px; }
    .right::before{ width:260px; height:260px; }

    .about{
        flex-direction:column;
        padding:80px 25px;
        text-align:center;
        gap:50px;
    }
    .about-image, .about-content{ width:100%; }
    .about-content h2{ font-size:36px; }

    .portfolio{ padding:80px 25px; }
    .portfolio h2, .commission h2, .contact h2{ font-size:36px; }

    .commission{ padding:80px 25px; }
    .commission-sub{ font-size:16px; }
    .c-controls{ flex-direction:column; align-items:center; gap:12px; }
    .seg button{ padding:10px 22px; }
    .c-idr{ font-size:30px; }

    footer{ padding:40px 20px; }

    #close{ top:20px; right:25px; }
}

@media (max-width:1000px){
    .c-grid{
        grid-template-columns:1fr;
        max-width:440px;
    }
}

/* HP kecil: logo dikecilkan, "Home" disembunyikan (logo = tombol Home) */
@media (max-width:520px){
    nav{ padding:12px 14px; }
    .logo img{ height:26px; }
    nav ul{ gap:11px; font-size:12.5px; }
    nav ul li:first-child{ display:none; }
}

@media (max-width:340px){
    nav{ padding:10px 12px; }
    .logo img{ height:22px; }
    nav ul{ gap:8px; font-size:12px; }
}

/* Hormati pengaturan "reduce motion" dari perangkat */
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:.01ms !important;
        animation-delay:0s !important;
        transition-duration:.01ms !important;
        transition-delay:0s !important;
    }
}
.hero{ justify-content:center; text-align:center; }
.left{ width:100%; max-width:760px; }
.buttons{ justify-content:center; }