/* garasilab.com: susunan sama dengan juansah.com, tapi warna papan petunjuk jalan
   (hijau rambu gelap + kuning) dan huruf lebar seperti tulisan di rambu.
   Gerak hanya dari CSS + sedikit JS (jam, panel aplikasi, jeda gerak). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1d15;          /* hijau rambu, digelapkan */
  --fg: #f1efe4;
  --mute: #8ea498;
  --dim: #2c4639;
  --line: #1d3729;
  --soft: #bfcbc3;        /* teks isi */
  --panel: #0f251b;
  --accent: #ffcc00;      /* kuning rambu */
  --on-accent: #141000;
  --pad: clamp(1rem, 3vw, 2.8rem);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html:not(.still) { scroll-behavior: smooth; } }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 400 1rem/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.mono, .meta, .eyebrow, .bar nav, .clock, .foot-row { font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

/* ---------- bar atas ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: .9rem var(--pad);
  background: linear-gradient(var(--bg) 55%, transparent);
}
.logo { justify-self: start; font: 900 1.02rem/1 var(--sans); font-stretch: 118%; text-decoration: none; letter-spacing: -.01em; text-transform: uppercase; }
.logo i { font-weight: 300; font-stretch: 100%; text-transform: none; letter-spacing: 0; }
.clock { color: var(--mute); text-align: center; white-space: nowrap; }
.clock b { font-weight: 500; color: var(--fg); }
.bar nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--accent); }
.pill { background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 99px; }
.bar nav a.pill:hover { color: var(--on-accent); background: var(--fg); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 5.2rem var(--pad) 1.6rem; }
.meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); }
.name {
  margin: 0; align-self: center;
  font: 900 clamp(3.6rem, 19.2vw, 20rem)/.86 var(--sans); font-stretch: 118%;
  letter-spacing: -.02em; text-transform: uppercase;
}
.name .row { display: block; overflow: hidden; padding: .02em 0 .04em; white-space: nowrap; }
.name .r2 { text-align: right; }
.name .ch { display: inline-block; }
.name .arrow { color: var(--accent); font-weight: 500; font-stretch: 100%; margin-right: .08em; }
.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem; }
.lede { margin: 0; max-width: 31ch; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.45; }
.hint { color: var(--mute); text-align: center; }
.ghost { justify-self: end; border: 1px solid var(--mute); border-radius: 99px; padding: .8rem 1.3rem; text-decoration: none; white-space: nowrap; }
.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- pita ---------- */
.band { border-block: 1px solid var(--line); overflow: hidden; padding: .7rem 0; }
.band-track { display: flex; width: max-content; }
.band p { margin: 0; padding-right: 2.2rem; white-space: nowrap; font: italic 400 clamp(2rem, 4.6vw, 4.4rem)/1.1 var(--sans); font-stretch: 112%; }
.band i { font-style: normal; color: var(--accent); font-size: .6em; vertical-align: .18em; margin: 0 .7em; }

/* ---------- aplikasi ---------- */
.work { padding: clamp(6rem, 14vh, 10rem) var(--pad) 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); column-gap: 3rem; }
.work-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); padding-bottom: 1.1rem; }
.work-head button { all: unset; cursor: pointer; }
.work-head button:hover { color: var(--accent); }
.work-head button:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; column-gap: 1rem; padding: clamp(3rem, 9vh, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.item .no { color: var(--mute); padding-top: 1.6em; }
.item h3 { margin: 0; font: 500 clamp(2.4rem, 5.6vw, 5.2rem)/1 var(--sans); font-stretch: 108%; letter-spacing: -.02em; }
.item .where { color: var(--mute); text-align: right; padding-top: 1.6em; }
.item .sub { grid-column: 2 / -1; margin: 1rem 0 0; color: var(--mute); }
.item .sub em { font-style: normal; color: var(--accent); margin-left: .6rem; }
.item .what { grid-column: 2 / -1; margin: 1.2rem 0 0; max-width: 58ch; color: var(--soft); }
.item .fact-inline { grid-column: 2 / -1; margin: 1.2rem 0 0; color: var(--accent); }
.item .credit { grid-column: 2 / -1; margin: .6rem 0 0; color: var(--mute); font-size: .9rem; max-width: 58ch; }
.item .go { grid-column: 2 / -1; justify-self: start; margin-top: 1.4rem; }
.item.on .no { color: var(--accent); }

.peek { position: relative; }
.peek-in { position: sticky; top: 22vh; }
.panel {
  aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  background:
    linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 100% 2.2rem,
    linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 2.2rem 100%,
    var(--panel);
}
.panel[hidden] { display: none; }
.panel .k { color: var(--mute); }
.panel .big { align-self: center; margin: 0; font: 900 clamp(3.4rem, 6.4vw, 6rem)/.9 var(--sans); font-stretch: 84%; letter-spacing: -.02em; color: var(--accent); text-transform: uppercase; }
.panel .big small { display: block; margin-top: 1rem; font: 400 1rem/1.45 var(--sans); font-stretch: 100%; letter-spacing: 0; color: var(--fg); text-transform: none; max-width: 24ch; }
.panel .stack { margin: 0; color: var(--mute); }
.peek-foot { display: flex; justify-content: space-between; margin-top: .8rem; color: var(--mute); }
.peek-foot b { color: var(--accent); font-weight: 500; }
.meter { height: 2px; background: var(--line); margin-top: .5rem; }
.meter span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); transition: width .5s cubic-bezier(.2,.7,.2,1); }
/* panel bergambar: tangkapan layar memenuhi bingkai, label jadi keping kecil di atasnya */
.panel.has-shot { position: relative; padding: 0; background: var(--panel); }
.panel.has-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; }
.panel.has-shot .k, .panel.has-shot .stack { position: relative; justify-self: start; margin: .9rem; padding: .35rem .6rem; border-radius: 3px; background: var(--bg); color: var(--soft); }
.panel.has-shot .stack { grid-row: 3; }

/* ---------- galeri geser ---------- */
.near { padding: 2rem 0 clamp(5rem, 12vh, 8rem); }
.near-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); padding: 0 var(--pad) 1.1rem; }
.track {
  display: flex; gap: clamp(.8rem, 1.6vw, 1.4rem); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); padding: .4rem var(--pad) 1rem;
  scrollbar-width: none; cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px dashed var(--accent); outline-offset: -2px; }
.track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.shot { flex: 0 0 auto; margin: 0; scroll-snap-align: start; transform: skewX(var(--skew, 0deg)); }
.shot img { display: block; height: clamp(18rem, 68vh, 38rem); width: auto; aspect-ratio: 600 / 1334; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); -webkit-user-drag: none; }
.shot figcaption { margin-top: .7rem; color: var(--mute); }
.shot figcaption b { color: var(--accent); font-weight: 500; margin-right: .3rem; }
.near-foot { display: grid; gap: .9rem; padding: .2rem var(--pad) 0; }
.near-foot p { margin: 0; max-width: 72ch; color: var(--mute); font-size: .9rem; }
.near-foot .meter { margin-top: 0; }
html.still .shot { transform: none; }
@media (prefers-reduced-motion: reduce) { .shot { transform: none; } }

/* ---------- tentang ---------- */
.hello { padding: clamp(8rem, 26vh, 16rem) var(--pad); view-timeline: --hello block; }
.eyebrow { color: var(--accent); margin: 0 0 1.6rem; }
.say { margin: 0; max-width: 22ch; font: 700 clamp(2.2rem, 5.2vw, 5rem)/1.06 var(--sans); font-stretch: 100%; letter-spacing: -.02em; }
.say em { font-weight: 300; font-stretch: 116%; }
.say .hi { color: var(--accent); }

/* ---------- pegangan ---------- */
.do { padding: 2rem var(--pad) clamp(6rem, 16vh, 10rem); }
.do-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); padding-bottom: 1.1rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.tiles li { padding: 1.4rem 1.5rem 2.2rem; border-left: 1px solid var(--line); }
.tiles li:first-child { border-left: 0; }
.tiles .mono { color: var(--accent); }
.tiles h3 { margin: 2.6rem 0 .6rem; font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--sans); font-stretch: 104%; letter-spacing: -.015em; }
.tiles p { margin: 0; color: var(--soft); max-width: 30ch; }

/* ---------- penutup ---------- */
.end { border-top: 1px solid var(--line); padding: clamp(5rem, 14vh, 9rem) var(--pad) 2rem; }
.end .eyebrow { color: var(--mute); }
.end .ask { margin: 0 0 1.4rem; max-width: 46ch; color: var(--soft); }
.talk {
  display: block; margin: 0 0 clamp(2.5rem, 7vh, 4.5rem); text-decoration: none;
  font: 900 clamp(3.4rem, 17vw, 18.5rem)/.86 var(--sans); font-stretch: 100%; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
}
.talk:lang(en) { font-size: clamp(2.6rem, 11.5vw, 12.6rem); } /* "Send an idea" lebih panjang dari "Kirim ide" */
.talk:hover { color: var(--accent); }
.note { margin: 0 0 1.4rem; color: var(--mute); font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; color: var(--mute); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--accent); }

/* ---------- 404: jalan buntu ---------- */
.lost .name .r2 { color: var(--accent); }
.lost-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; align-items: end; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.lost .eyebrow { margin-bottom: .8rem; }
.back { display: inline-flex; align-items: baseline; gap: .5em; margin-top: 1.2rem; font: 700 clamp(1.5rem, 3.4vw, 2.6rem)/1.05 var(--sans); font-stretch: 108%; letter-spacing: -.015em; text-decoration: none; }
.back i { font-style: normal; font-weight: 500; font-stretch: 100%; color: var(--accent); }
.back:hover { color: var(--accent); }

/* ---------- halaman teks: privasi + syarat ----------
   judul papan rambu seperti beranda tapi lebih kecil; daftar isi menempel di kiri, prosa sempit di kanan */
.bar nav a[aria-current="page"] { color: var(--accent); }
.doc-head { padding: 6.4rem var(--pad) clamp(2.5rem, 7vh, 4.5rem); border-bottom: 1px solid var(--line); }
.doc-title { margin: clamp(2.5rem, 8vh, 5rem) 0 1.4rem; font: 900 clamp(2.6rem, 9.6vw, 9.6rem)/.88 var(--sans); font-stretch: 112%; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.doc-lede { margin: 0; max-width: 60ch; color: var(--soft); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; }
.doc-lede a, .prose a { text-decoration-color: var(--accent); text-underline-offset: .2em; }
.doc-lede a:hover, .prose a:hover { color: var(--accent); }
.doc-body { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 6rem); padding: clamp(2.5rem, 7vh, 4.5rem) var(--pad) clamp(5rem, 14vh, 8rem); }
.toc { position: sticky; top: 5rem; align-self: start; }
.toc h2 { margin: 0 0 1rem; color: var(--mute); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc a { display: flex; gap: .7rem; padding: .55rem 0; text-decoration: none; color: var(--soft); font-size: .95rem; line-height: 1.3; }
.toc a::before { content: counter(toc); min-width: 1.2rem; color: var(--mute); font: 500 .74rem/1.75 var(--mono); }
.toc a:hover, .toc a:hover::before { color: var(--accent); }
.prose { max-width: 68ch; color: var(--soft); counter-reset: sec; }
.prose section { counter-increment: sec; padding-top: 1rem; scroll-margin-top: 5rem; }
.prose section + section { margin-top: clamp(2.5rem, 6vh, 3.6rem); border-top: 1px solid var(--line); }
.prose h2 { display: flex; gap: .9rem; align-items: baseline; margin: .4rem 0 1.2rem; color: var(--fg); font: 700 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--sans); font-stretch: 106%; letter-spacing: -.015em; }
.prose h2::before { content: counter(sec); color: var(--accent); font: 500 .8rem/1 var(--mono); }
.prose h3 { margin: 2rem 0 .7rem; color: var(--fg); font: 600 1.1rem/1.3 var(--sans); font-stretch: 104%; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .55rem; padding-left: .2rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--fg); font-weight: 600; }
.callout { border-left: 3px solid var(--accent); padding: .8rem 1rem; background: var(--panel); color: var(--fg); }
.tbl { margin: 0 0 1.4rem; overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.45; }
.tbl th { text-align: left; vertical-align: bottom; padding: 0 .9rem .6rem 0; color: var(--mute); font: 500 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--dim); }
.tbl td { vertical-align: top; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line); }
.tbl td:first-child { color: var(--fg); }
.end-lite { padding-top: 2.4rem; }
.foot-row a[href^="/"] { white-space: nowrap; }

/* ---------- layar kecil ---------- */
@media (max-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .peek { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles li:nth-child(3) { border-left: 0; }
  .tiles li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 901px) { .item .fact-inline { display: none; } }
@media (max-width: 720px) {
  .bar { grid-template-columns: 1fr auto; }
  .clock { display: none; }
  .bar nav .opt { display: none; }
  .meta span:nth-child(2) { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hint { display: none; }
  .ghost { justify-self: start; }
  .lost-foot { grid-template-columns: 1fr; }
  .name { font-size: 22.6vw; font-stretch: 96%; line-height: .88; }
  .item { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .item .where { grid-column: 2; text-align: left; padding-top: .6rem; order: 3; }
  .item .no { padding-top: .9em; }
  .tiles { grid-template-columns: 1fr; }
  .tiles li { border-left: 0; }
  .tiles li + li { border-top: 1px solid var(--line); }
  .tiles h3 { margin-top: 1.4rem; }
  .doc-head { padding-top: 5rem; }
  .doc-title { font-stretch: 96%; }
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  /* tabel jadi kartu: tiap sel diberi label kolomnya */
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tr { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .tbl tr:first-child { border-top: 1px solid var(--dim); }
  .tbl td { border: 0; padding: .2rem 0; }
  .tbl td::before { content: attr(data-label); display: block; margin-top: .4rem; color: var(--mute); font: 500 .66rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .tbl td:first-child::before { margin-top: 0; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .doc-body { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
}

/* ---------- hover: baris aplikasi dan kotak "Yang dipegang" ----------
   nomor jadi kuning dan panah kecil muncul di sebelahnya, tanpa menggeser tata letak;
   judul aplikasi ikut kuning (!important supaya menang dari animasi lit) */
@media (hover: hover) {
  .item .no, .tiles li > .mono { position: relative; }
  .tiles li > .mono { display: inline-block; } /* supaya panah absolut sejajar baris nomor */
  .item .no::after, .tiles li > .mono::after { content: "\2192"; content: "\2192" / ""; position: absolute; margin-left: .5em; color: var(--accent); opacity: 0; }
  .item:hover .no, .item:hover h3 { color: var(--accent) !important; }
  .item:hover .no::after, .tiles li:hover > .mono::after { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.still) .item .no { transition: color .25s; }
  html:not(.still) .item .no::after, html:not(.still) .tiles li > .mono::after { transform: translateX(-.5em); transition: opacity .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
  html:not(.still) .item:hover .no::after, html:not(.still) .tiles li:hover > .mono::after { transform: none; }
}

/* ---------- kursor sendiri (dibuat main.js, hanya untuk mouse saat gerak aktif) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 30; pointer-events: none; display: none; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { display: block; }
html.has-cursor, html.has-cursor * { cursor: none; }
html.cursor-away .cursor-dot, html.cursor-away .cursor-ring { opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor-ring {
  width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; border: 1px solid var(--mute); border-radius: 50%;
  display: none; place-items: center; color: var(--on-accent); font: 500 .62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transition: width .3s cubic-bezier(.2, .7, .2, 1), height .3s cubic-bezier(.2, .7, .2, 1), margin .3s cubic-bezier(.2, .7, .2, 1), background-color .3s, border-color .3s, scale .2s;
}
html.has-cursor .cursor-ring { display: grid; }
.cursor-ring span { opacity: 0; transition: opacity .2s; }
.cursor-ring.is-link { width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; border-color: var(--accent); }
.cursor-ring.is-label { width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-color: var(--accent); background: var(--accent); }
.cursor-ring.is-label span { opacity: 1; }
.cursor-ring.is-down { scale: .85; }
html.has-cursor [data-magnet] { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }

/* ---------- gerak ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not(.still) .name .ch { animation: rise 1.1s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--d) * 55ms + 150ms); }
  html:not(.still) .meta, html:not(.still) .hero-foot { animation: fade 1s .9s both; }
  html:not(.still) .band-track { animation: slide 38s linear infinite; }
  @keyframes rise { from { transform: translateY(108%); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes slide { to { transform: translateX(-50%); } }

  @supports (animation-timeline: view()) {
    /* nama naik dan baris kedua tertinggal sedikit saat hero digulir */
    html:not(.still) .name .r1 { animation: up1 linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    html:not(.still) .name .r2 { animation: up2 linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes up1 { to { transform: translateY(-38%); } }
    @keyframes up2 { to { transform: translateY(-14%); } }

    /* judul aplikasi terang hanya saat berada di tengah layar: dari sempit-tebal jadi lebar-ramping */
    html:not(.still) .item h3 { animation: lit linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes lit {
      0%, 100% { color: var(--dim); font-stretch: 86%; font-weight: 700; }
      38%, 62% { color: var(--fg); font-stretch: 116%; font-weight: 400; }
    }

    /* kepala bagian, baris, dan kotak muncul pelan saat masuk layar */
    html:not(.still) :is(.work-head, .item, .near-head, .track, .do-head, .tiles li, .end .eyebrow, .end .ask) { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(1.6rem); } }

    /* kalimat tentang menyala kata demi kata */
    html:not(.still) .say .w { animation: word linear both; animation-timeline: --hello; animation-range: cover calc(18% + var(--k) * 1.1%) cover calc(22% + var(--k) * 1.1%); }
    @keyframes word { from { opacity: .16; } to { opacity: 1; } }

    /* kata penutup melebar saat masuk, seperti papan yang mendekat */
    html:not(.still) .talk { animation: wide linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes wide { from { font-stretch: 62%; letter-spacing: -.04em; } }
  }

  /* Browser tanpa animation-timeline (Firefox, Safari lama): judul aplikasi mengikuti .item.on
     dari main.js. Hanya meredup bila ada .item.on, jadi tanpa JS (atau tanpa :has) semua tetap terang.
     Kalimat tentang tidak dibungkus animasi di sini, jadi tampil penuh. */
  @supports not (animation-timeline: view()) {
    html:not(.still) .item h3 { transition: color .6s cubic-bezier(.2, .7, .2, 1), font-stretch .6s cubic-bezier(.2, .7, .2, 1), font-weight .6s cubic-bezier(.2, .7, .2, 1); }
    html:not(.still) .list:has(.item.on) .item:not(.on) h3 { color: var(--dim); font-stretch: 86%; font-weight: 700; }
    html:not(.still) .list:has(.item.on) .item.on h3 { font-stretch: 116%; font-weight: 400; }
  }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
