/* ==========================================================================
   Serbuk & Sinar — Bengkel kecil terbuka di halaman rumah
   Emotion: "oiya juga" (pengakuan diri, bukan excitement)
   Collision: konten sosmed x keterampilan tangan dunia nyata
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Caveat:wght@600&display=swap');

:root {
  /* Palette */
  --dark: #2B2420;
  --wood: #C08A52;
  --bg: #F3EAD9;
  --bg-warm: #EFE2C9;
  --accent: #C1442C;
  --accent-soft: rgba(193, 68, 44, 0.14);
  --sage: #7D8A5D;
  --paper: #FBF6EC;
  --ink: #4a3f36;
  --ink-muted: #6b5e51;

  /* Type */
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body: 'Plus Jakarta Sans', sans-serif;
  --f-hand: 'Caveat', cursive;

  /* Layout */
  --container: 1100px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-solid: 7px 7px 0 rgba(43, 36, 32, 0.14);
  --shadow-soft: 4px 4px 0 rgba(43, 36, 32, 0.10);

  /* Motion */
  --settle: 0.7s cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Type utilities
   ========================================================================== */
.f-display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; }
.f-body { font-family: var(--f-body); }
.f-hand { font-family: var(--f-hand); }

.text-accent { color: var(--accent); }
.text-sage { color: var(--sage); }
.text-wood { color: var(--wood); }
.text-paper { color: var(--paper); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-muted); }

.hl-mark {
  background: linear-gradient(180deg, transparent 55%, var(--accent-soft) 55%);
  padding: 0 4px;
}
.hl-mark-accent { color: var(--accent); }

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.min-h-screen { min-height: 100vh; }
.flex-center { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.text-center { text-align: center; }
.relative { position: relative; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 28rem; }
.max-w-md { max-width: 36rem; }
.max-w-lg { max-width: 44rem; }
.max-w-xl { max-width: 52rem; }

/* ==========================================================================
   Pegboard texture (signature surface)
   ========================================================================== */
.pegboard {
  background-color: var(--bg-warm);
  background-image: radial-gradient(circle, rgba(43, 36, 32, 0.22) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
}
.pegboard-dense {
  background-image: radial-gradient(circle, rgba(43, 36, 32, 0.30) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}
.serbuk-bg {
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(43, 36, 32, 0.07) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}

/* ==========================================================================
   Hung card (digantung pin di pegboard)
   ========================================================================== */
.hung-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-solid);
}
.hung-card .pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hung-card .pin-corner {
  position: absolute;
  top: -8px;
  left: 18px;
  z-index: 2;
}

.play-badge {
  position: absolute;
  top: -14px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--paper);
}

/* ==========================================================================
   Hand-drawn tool icons (sketsa spidol, stroke-only)
   ========================================================================== */
.tool-sketch {
  stroke: var(--dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.tool-sketch .fill-wood { fill: var(--wood); }
.tool-sketch .fill-accent { fill: var(--accent); }
.tool-sketch .fill-sage { fill: var(--sage); }

/* ==========================================================================
   Section base — full screen + scroll snap (1 scroll = 1 section)
   ========================================================================== */
section, .snap-footer {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
}
.section-dark { background: var(--dark); color: var(--paper); }
.section-dark .tool-sketch { stroke: var(--paper); }

/* Parallax target gets GPU layer */
section .container, .snap-footer .container { will-change: transform; }

/* ==========================================================================
   Hand-drawn background tools (decorative, stroke-only)
   ========================================================================== */
.bg-tools {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.bg-tools.is-visible { opacity: 1; }
.bg-tool {
  position: absolute;
  height: auto;
  translate: 0 var(--py, 0px);
  animation: toolFloat 6s ease-in-out infinite, toolRotate 8s ease-in-out infinite;
  will-change: transform, translate;
}
.section-dark .bg-tool { opacity: 0.10; }

@keyframes toolFloat {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0px) scale(1); }
  33% { transform: rotate(var(--r, 0deg)) translateY(-14px) scale(1.04); }
  66% { transform: rotate(var(--r, 0deg)) translateY(10px) scale(0.97); }
}
@keyframes toolRotate {
  0%, 100% { transform: rotate(calc(var(--r, 0deg) - 3deg)); }
  50% { transform: rotate(calc(var(--r, 0deg) + 3deg)); }
}
.hero .container { position: relative; z-index: 1; }
section .container, .snap-footer .container { position: relative; z-index: 1; will-change: transform; }
.bg-tools { will-change: transform; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 72px 0 56px; }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 460px; min-width: 280px; }
.hero-visual { flex: 1 1 340px; min-width: 280px; display: flex; justify-content: center; }

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.09em;
  font-size: 14px;
  color: var(--accent);
  background: var(--paper);
  border: 1.5px solid var(--accent);
  padding: 6px 18px 6px 11px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.tag-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.headline {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  margin: 24px 0;
  letter-spacing: -0.01em;
}
.headline .line { display: block; }
.headline .katanya { color: var(--accent); }
.headline .katanya::after {
  content: '';
  display: inline-block;
  width: 0.5ch;
}

.subhead {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 460px;
  color: var(--ink);
}

.scroll-cue {
  margin-top: 36px;
  font-family: var(--f-hand);
  font-size: 1.55rem;
  color: #8B5A34;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-cue svg { animation: bob 1.6s ease-in-out infinite; }
.scroll-cue .teaser { color: var(--ink-muted); font-size: 1.1rem; }

/* Hero pegboard panel */
.pegboard-panel {
  position: relative;
  width: 340px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-warm);
  background-image: radial-gradient(circle, rgba(43, 36, 32, 0.26) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
  border: 2px solid var(--dark);
  border-radius: 22px;
  box-shadow: var(--shadow-solid);
}
.pegboard-panel .tool { position: absolute; }

/* Hero hung thumbnail card */
.hero-thumb {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 64%;
  transform: translateX(-50%) rotate(-4deg);
}
.hero-thumb .pin { top: -9px; }
.thumb-frame {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--dark);
  border-radius: 14px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-soft);
}
.thumb-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #EFE2C9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-photo svg { width: 100%; height: 100%; }
.thumb-caption {
  font-family: var(--f-hand);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  margin-top: 6px;
  line-height: 1.1;
}

/* ==========================================================================
   PROBLEM section
   ========================================================================== */
.problem-stat-card {
  --tilt: -1.5deg;
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 28px 30px;
  transform: rotate(var(--tilt));
}
.stat-number {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.95;
  color: var(--accent);
}
.stat-label {
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.5;
}
.stat-citation {
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(43, 36, 32, 0.25);
}
.hand-note {
  font-family: var(--f-hand);
  font-size: 1.4rem;
  color: var(--accent);
  transform: rotate(-3deg);
  display: inline-block;
}

/* ==========================================================================
   JEDA statement (big quiet line)
   ========================================================================== */
.statement {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0 auto;
}
.statement .quiet { color: var(--ink-muted); }

/* ==========================================================================
   DAMPAK (dark section)
   ========================================================================== */
.section-dark .hung-card {
  background: rgba(251, 246, 236, 0.06);
  border-color: rgba(251, 246, 236, 0.18);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3);
}
.section-dark .stat-number { color: var(--wood); }
.section-dark .stat-label { color: rgba(251, 246, 236, 0.85); }
.section-dark .stat-citation { color: rgba(251, 246, 236, 0.5); border-color: rgba(251, 246, 236, 0.18); }
.section-dark .hand-note { color: var(--sage); }

.impact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 540px;
}
.impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: rgba(251, 246, 236, 0.88);
}
.impact-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   REVEAL AyoNak
   ========================================================================== */
.reveal-tag {
  font-family: var(--f-hand);
  font-size: 1.7rem;
  color: var(--accent);
  transform: rotate(-2deg);
  display: inline-block;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin: 8px 0 20px;
}
.brand-name .stroke-letter {
  -webkit-text-stroke: 2px var(--dark);
  color: transparent;
}

/* ==========================================================================
   PREVIEW KONTEN — 4 kartu digantung di pegboard
   ========================================================================== */
.preview-board {
  position: relative;
  padding: 40px 0 20px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 28px;
  align-items: start;
}
.preview-card {
  position: relative;
  padding: 28px 22px 24px;
  transform: rotate(var(--tilt, 0deg));
}
.preview-card:nth-child(1) { --tilt: -2deg; margin-top: 0; }
.preview-card:nth-child(2) { --tilt: 1.5deg; margin-top: 32px; }
.preview-card:nth-child(3) { --tilt: -1deg; margin-top: 12px; }
.preview-card:nth-child(4) { --tilt: 2deg; margin-top: 40px; }

.preview-card .num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.preview-card h4 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 6px 0 10px;
  line-height: 1.1;
}
.preview-card p {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.55;
}
.preview-card .tool-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  opacity: 0.55;
}
.preview-card .play-badge {
  top: -14px;
  right: -10px;
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   FOOTER / CLOSING
   ========================================================================== */
.closing-headline {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 36px 0 0;
}
.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(251, 246, 236, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.social-link:hover {
  transform: translateY(-3px) rotate(-4deg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Animations — settle (alat diselipin slot)
   ========================================================================== */
@keyframes settleIn {
  0% { transform: translateY(-24px) rotate(var(--tilt, 0deg)); opacity: 0; }
  60% { transform: translateY(8px) rotate(var(--tilt, 0deg)); opacity: 1; }
  80% { transform: translateY(-3px) rotate(var(--tilt, 0deg)); }
  100% { transform: translateY(0) rotate(var(--tilt, 0deg)); opacity: 1; }
}
@keyframes settleInFlat {
  0% { transform: translateY(-24px); opacity: 0; }
  60% { transform: translateY(8px); opacity: 1; }
  80% { transform: translateY(-3px); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.reveal {
  opacity: 0;
}
.reveal.is-visible {
  animation: settleInFlat var(--settle) forwards;
}
.reveal-tilt.is-visible {
  animation: settleIn var(--settle) forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; animation: none; }
  .scroll-cue svg { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .hero-inner { gap: 40px; }
  .pegboard-panel { width: 280px; }
  .preview-card:nth-child(n) { margin-top: 0; }
  .impact-list { max-width: none; }
  .problem-stat-card { --tilt: 0deg; }
  .bg-tools { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hung-card { box-shadow: 5px 5px 0 rgba(43, 36, 32, 0.14); }
}
