/* Gravity-rain garden: dusk ground, cloud-paper text, three rains. */
:root {
  --garden: #2f3a37;
  --garden-deep: #232c2a;
  --garden-lift: #3b4744;
  --paper: #e7e8e2;
  --paper-dim: #c9cdc6;
  --stone: #b6bbb7;
  --moss: #8da38d;
  --blue: #6aa7ff;
  --red: #ff6b6b;
  --clear: #e7e8e2;
  --orbit: #0f1113;
  --line: rgba(231, 232, 226, .22);
  --line-strong: rgba(231, 232, 226, .45);
  --display: "Quicksand", "Nunito", system-ui, sans-serif;
  --body: "Nunito", "Quicksand", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--garden);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(141, 163, 141, .10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(106, 167, 255, .08), transparent 60%);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
::selection { background: var(--blue); color: var(--orbit); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
a { color: var(--paper); text-decoration-color: var(--moss); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--paper); }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h3 { font-weight: 500; }
strong, b { font-weight: 700; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--garden-deep); }
::-webkit-scrollbar-thumb { background: var(--garden-lift); border: 3px solid var(--garden-deep); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--moss); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--orbit); padding: 8px 12px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }

/* --- floating headline: each word drifts on its own baseline --- */
.float .w {
  display: inline-block;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transform-origin: 50% 100%;
  position: relative;
}
.float .w::after {
  content: ""; position: absolute; width: .16em; height: .16em; border-radius: 50%;
  right: -.3em; top: -.12em; opacity: 0;
}
.float .w::before {
  content: ""; position: absolute; width: 0; height: .5em; right: -.22em; top: -.62em;
  border-left: 1.5px dashed currentColor; opacity: 0;
}
.float .dot-red::before, .float .dot-blue::before, .float .dot-clear::before { opacity: .55; }
.float .dot-red::after { background: var(--red); opacity: 1; }
.float .dot-blue::after { background: var(--blue); opacity: 1; }
.float .dot-clear::after { background: var(--clear); opacity: 1; }

/* --- icons --- */
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.drop {
  display: inline-block; width: 10px; height: 10px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); flex: none;
}
.drop.blue { background: var(--blue); }
.drop.red { background: var(--red); }
.drop.clear { background: transparent; border: 1.5px solid var(--paper); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--paper);
  transition: transform .5s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn-moon { background: var(--paper); color: var(--orbit); border-color: var(--paper); }
.btn-moon:hover { background: #fff; }
.btn-ghost:hover { border-color: var(--paper); background: rgba(231, 232, 226, .06); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1.05em 2em; font-size: 1.15rem; }

/* --- nav (the only level thing besides the legend) --- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--garden) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 1.1rem; text-decoration: none; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--paper-dim); font-size: .95rem; }
.nav nav a:hover { color: var(--paper); }
@media (max-width: 640px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* --- hero --- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "copy garden" "legend legend";
  gap: 24px var(--pad);
  padding: clamp(40px, 7vh, 96px) var(--pad) 0;
  min-height: calc(100vh - 60px);
  align-items: center;
  background: linear-gradient(180deg, transparent 55%, rgba(35, 44, 42, .85));
}
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; margin-bottom: .45em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--paper-dim); max-width: 48ch; }
.lede strong { color: var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.micro { font-size: .9rem; color: var(--stone); }

.garden { grid-area: garden; position: relative; aspect-ratio: 640 / 520; width: calc(100% + var(--pad)); margin-right: calc(-1 * var(--pad)); }
.garden .scene, .garden .rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.garden .rain { z-index: 2; pointer-events: none; }
.lbl { font-family: var(--display); font-size: 15px; fill: var(--paper); font-weight: 500; letter-spacing: .01em; }
.lbl.sub { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lbl.blue { fill: var(--blue); } .lbl.red { fill: var(--red); } .lbl.clear { fill: var(--stone); }
.ripple { transform-origin: center; animation: ripple 4.2s var(--ease) infinite; }
.ripple.r2 { animation-delay: 2.1s; }
@keyframes ripple { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.cloud { animation: hover 6s ease-in-out infinite; }
.cloud-red { animation-delay: -3s; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.flower { transform-origin: 6px 0; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.legend {
  grid-area: legend;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  border: 1px solid var(--line-strong); border-radius: 18px;
  margin: 8px 0 0; overflow: hidden;
}
.legend > div { display: grid; grid-template-columns: 14px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 20px; border-right: 1px solid var(--line); }
.legend > div > .drop { grid-row: 1 / span 2; width: 12px; height: 12px; }
.legend b { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.legend span { font-size: .85rem; color: var(--stone); grid-column: 2; }
.legend-cta { grid-template-columns: 1fr !important; border-right: 0 !important; text-align: right; }
.legend-cta span { color: var(--paper-dim); grid-column: 1 !important; }
.legend-cta a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--display); font-weight: 600; justify-self: end; }
.legend-cta a:hover .ic { transform: translateX(3px); }
.legend-cta .ic { transition: transform .4s var(--ease); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "garden" "legend"; min-height: 0; padding-top: 36px; }
  .garden { width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); }
  .legend { grid-template-columns: 1fr; }
  .legend > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .legend-cta { text-align: left; border-bottom: 0 !important; }
  .legend-cta a { justify-self: start; }
}

/* --- sections --- */
section { padding: clamp(64px, 10vh, 128px) var(--pad); }
.sect-head { margin-bottom: clamp(32px, 5vh, 56px); }
.sect-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: .5em; }
.sect-head p { color: var(--paper-dim); font-size: 1.05rem; }

/* --- FAQ: questions are clouds, answers fall out --- */
.tanya { border-top: 1px solid var(--line); }
.faq { max-width: 860px; border-top: 1px solid var(--line-strong); }
.q { border-bottom: 1px solid var(--line-strong); }
.q summary {
  display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 14px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.3;
  transition: color .3s;
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: #fff; }
.qn { display: inline-flex; gap: 3px; align-items: center; }
.qn .drop { width: 8px; height: 8px; }
.chev { width: 22px; height: 22px; fill: none; stroke: var(--stone); stroke-width: 1.6; stroke-linecap: round; transition: transform .5s var(--ease); }
.q[open] .chev { transform: rotate(180deg); }
.a { padding: 0 4px 26px 58px; color: var(--paper-dim); animation: fall .7s var(--ease); }
.a b { color: var(--paper); }
@keyframes fall { from { opacity: 0; transform: translateY(-10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; margin-top: 8px; }
.stack li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.stack b { display: block; color: var(--paper); font-family: var(--display); }
.bukti { font-size: .95rem; padding-top: 8px; border-top: 1px dashed var(--line); }
@media (max-width: 640px) { .q summary { grid-template-columns: 30px 1fr 22px; gap: 10px; } .a { padding-left: 0; } }

/* --- portfolio --- */
.proyek { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(35, 44, 42, .6)); }
.feat-solo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px var(--pad); align-items: center; padding: 24px 0 40px; border-top: 1px solid var(--line-strong); }
.motif { width: min(100%, 460px); height: auto; display: block; justify-self: center; }
.cl { opacity: .95; } .cl-blue { fill: var(--blue); } .cl-red { fill: var(--red); } .cl-clear { fill: var(--paper); }
.tr { fill: none; stroke-width: 1.5; stroke-dasharray: 3 5; stroke-linecap: round; }
.tr-blue { stroke: var(--blue); } .tr-red { stroke: var(--red); }
.orb { fill: none; stroke: var(--paper); stroke-opacity: .35; stroke-dasharray: 2 5; }
.feat-body { display: flex; flex-direction: column; gap: 12px; }
.feat h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.feat p { font-size: .97rem; color: var(--paper-dim); margin: 0; }
.rains { display: flex; gap: 6px; }
.tech { font-family: var(--display); font-size: .85rem !important; color: #a9bda9 !important; margin-top: auto !important; padding-top: 12px; }

.lain { border-top: 1px solid var(--line-strong); }
.lain li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 300px); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lain h3 { font-size: 1.2rem; margin-bottom: 4px; }
.lain p { margin: 0; font-size: .95rem; color: var(--paper-dim); }
.lain .tech { margin-top: 4px !important; padding-top: 0; text-align: right; }
.lain .rains { padding-top: 8px; }
.catatan { color: var(--stone); font-size: .9rem; margin-top: 18px; }
@media (max-width: 900px) {
  .feat-solo { grid-template-columns: 1fr; }
  .motif { width: min(100%, 360px); }
  .lain li { grid-template-columns: 40px 1fr; }
  .lain .tech { grid-column: 2; text-align: left; }
}

/* --- process: a dotted trajectory through four stones --- */
.jalur { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: langkah; }
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 0;
  border-top: 1.5px dashed var(--line-strong);
}
.steps li { position: relative; padding-top: 68px; }
.sic {
  position: absolute; top: 0; left: 0; width: 50px; height: 50px; padding: 12px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--garden);
  fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; }
.steps p { font-size: .95rem; color: var(--paper-dim); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 24px; right: auto; top: 24px; bottom: 24px; height: auto; border-top: 0; border-left: 1.5px dashed var(--line-strong); }
  .steps li { padding: 0 0 0 72px; min-height: 50px; }
}

/* --- close --- */
.tutup { border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 80px; }
.orbit-big { width: min(420px, 90%); height: auto; margin-bottom: 8px; }
.orb-dots { animation: orbit 14s linear infinite; transform-origin: 160px 120px; transform-box: view-box; }
@keyframes orbit { to { transform: rotate(360deg); } }
.tutup h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; margin-bottom: .4em; }
.tutup p { color: var(--paper-dim); font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }
.kontak-lain { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-top: 32px; font-size: .95rem; }
.kontak-lain a { color: var(--paper-dim); }

.kaki { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--pad) 32px; border-top: 1px solid var(--line); color: var(--stone); font-size: .85rem; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripple, .cloud, .flower, .orb-dots { animation: none; }
  .a { animation: none; }
  .btn, .chev, .legend-cta .ic { transition: none; }
}
