@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 200 400; font-display: swap;
  src: url("fonts/josefin-sans-latin.woff2") format("woff2"); }
  :root {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --mute: #8a8a8a;
    --lockup-w: min(78vw, 760px);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--paper); color: var(--ink); }
  body { font-family: "Josefin Sans", system-ui, sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

  /* film grain — noir, sangat halus */
  .grain { position: fixed; inset: -12%; pointer-events: none; z-index: 50; opacity: .04; background: url("grain.png") repeat; background-size: 128px;
    will-change: transform; contain: strict; animation: grain .9s steps(5) infinite; }   /* tile PNG di lapisan GPU: jauh lebih ringan dari filter SVG */
  @keyframes grain { 0%{transform:translate3d(0,0,0)} 20%{transform:translate3d(-37px,23px,0)} 40%{transform:translate3d(29px,-41px,0)} 60%{transform:translate3d(-19px,-13px,0)} 80%{transform:translate3d(41px,31px,0)} 100%{transform:translate3d(0,0,0)} }

  /* lockup: kepala + tulisan, tetap di tengah layar */
  .stage { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 10; }
  .lockup { position: relative; width: var(--lockup-w); aspect-ratio: 954 / 410; }
  .head { position: absolute; left: 0; top: 0; width: 30.29%; will-change: transform; backface-visibility: hidden; }
  .word { position: absolute; left: 29.14%; top: 61.46%; width: 70.86%; will-change: transform, filter; backface-visibility: hidden; }
  .head img, .word img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

  .hint { position: fixed; left: 0; right: 0; bottom: 3.5vh; z-index: 11; font-size: 11px; letter-spacing: .45em; text-transform: uppercase; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .hint i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: drip 1.8s cubic-bezier(.7,0,.3,1) infinite; }
  @keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }

  /* pernyataan: membingkai kepala (atas & bawah) */
  .scroll { position: relative; z-index: 5; }
  .intro { height: 140vh; }
  .chapter { height: 150vh; position: relative; }
  .frame { position: fixed; inset: 0; pointer-events: none; }   /* semua bab di lapisan tetap; muncul bergantian sesuai scroll */
  .line { position: absolute; left: 0; right: 0; text-align: center; padding: 0 24px; font-weight: 300; line-height: 1; letter-spacing: -.01em; }
  .line.top { top: 13vh; }
  .line.bottom { bottom: 13vh; }
  .line.big { font-size: clamp(42px, 9vw, 128px); }
  .line.mid { font-size: clamp(30px, 6vw, 84px); }
  .line .w { display: inline-block; vertical-align: bottom; padding: .06em 0 .1em; }   /* tanpa kotak potong: huruf memudar lewat opacity + blur (Kang 26 Okt: teks terpotong frame) */
  .line .c { display: inline-block; will-change: transform, opacity; }
  .line { will-change: filter; }
  .line em { font-style: normal; font-weight: 400; }
  .kicker { position: absolute; left: 0; right: 0; top: calc(13vh - 34px); text-align: center; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--mute); }

  .end { height: 120vh; position: relative; }
  .end .frame { display: grid; place-items: end center; padding-bottom: 7vh; opacity: 0; }
  .sign { text-align: center; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--mute); }
  .sign b { display: block; margin-bottom: 14px; font-weight: 400; font-size: 13px; letter-spacing: .6em; color: var(--ink); }
  .rule { width: 1px; height: 0; background: var(--ink); margin: 0 auto 18px; }

  @media (prefers-reduced-motion: reduce) { .grain, .hint i { animation: none; } }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


  /* tombol MarketConnector: tengah, di bawah logo pada layar pertama (dan kembali muncul di akhir).
     Posisi tengah oleh flex pembungkus — bukan transform — supaya animasi tidak menggeser tombol (Safari/iPhone). */
  .cta-wrap { position: fixed; left: 0; right: 0; top: calc(50% + var(--lockup-w) * 0.2149 + 48px); z-index: 12; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
  .cta { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 0; box-sizing: border-box;
    min-height: 52px; padding: 0 28px; border: 1px solid var(--ink); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink);
    color: var(--ink); background: var(--paper); text-decoration: none; -webkit-tap-highlight-color: transparent;
    font-size: 13px; line-height: 1; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
    transition: background-color .25s ease, color .25s ease; }
  .cta span, .cta em { display: inline-block; }
  .cta em { font-style: normal; font-weight: 400; margin-right: -.32em; }   /* buang spasi huruf terakhir supaya teks benar-benar di tengah */
  .cta i { display: inline-block; flex: none; width: 24px; height: 1px; margin-left: 18px; background: currentColor; position: relative; transition: width .3s ease; }
  .cta i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
  .cta:hover, .cta:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
  .cta:hover i, .cta:focus-visible i { width: 34px; }
  @media (max-width: 420px) { .cta { font-size: 12px; letter-spacing: .26em; padding: 0 20px; min-height: 48px; } .cta em { margin-right: -.26em; } .cta i { margin-left: 14px; } }
