/* oshia.my.id: one ground per chapter, a firefly for light. */
:root {
  color-scheme: dark;
  --night: #000000;
  --ink: #eeede4;
  --soft: #b2b3ab;
  --light: #f0f1c7;

  /* Growtopia blue, sampled from the FyreflyHost panel */
  --gt: #1e4d66;
  --gt-panel: #277d9f;
  --gt-raised: #4a9ec8;
  --gt-border: #a4e2fa;
  --gt-ink: #ffffeb;
  --gt-soft: #cfe8ec;
  --gt-green: #55ef00;
  --gt-edge: #17607b;

  /* Firefly, Honkai: Star Rail */
  --ff: #0d2629;
  --ff-surface: #2d626a;
  --ff-teal: #428a91;
  --ff-sage: #6f9c97;
  --ff-mint: #aecdc7;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --game: Arial, Helvetica, sans-serif;

  /* Five sizes do the work */
  --s-monument: clamp(96px, 25.5vw, 520px);
  --s-display: clamp(72px, 17vw, 280px);
  --s-head: clamp(40px, 5vw, 76px);
  --s-lead: clamp(24px, 2.5vw, 36px);
  --s-body: 18px;
  --s-small: 14px;

  --m: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(120px, 14vw, 220px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 var(--s-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .7s var(--ease-out), color .7s var(--ease-out); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; background: var(--light); color: #000; font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Fields: each section paints its own ground until the script takes over and paints the body instead. */
[data-field="night"] { --field: var(--night); --fg: var(--ink); --fg-soft: var(--soft); }
[data-field="gt"] { --field: var(--gt); --fg: var(--gt-ink); --fg-soft: var(--gt-soft); }
[data-field="ff"] { --field: var(--ff); --fg: var(--light); --fg-soft: var(--ff-mint); }
[data-field="light"] { --field: var(--light); --fg: #000; --fg-soft: #3b3c33; }
main > section, .footer { background: var(--field); color: var(--fg); position: relative; z-index: 2; }
.motion main > section { background: transparent; }
.motion body, body { background: var(--field); }

/* Bar */
.bar { position: fixed; z-index: 50; inset: 0 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--m); background: var(--field); color: var(--fg); transition: background-color .7s var(--ease-out), color .7s var(--ease-out); }
.bar-name { font: 600 16px/1 var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar-short { display: none; }
.bar-nav { display: flex; gap: 8px; }
.bar-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; font: 500 16px/1 var(--text); text-decoration: none; position: relative; }
.bar-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.bar-nav a:hover::after, .bar-nav a.is-here::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; background: var(--fg); color: var(--field); font-weight: 600; cursor: pointer; }

/* The cursor firefly and the chapter III swarm */
.glow { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--light); color: #000; font: 600 16px/1 var(--text); text-decoration: none; border-radius: 0; transition: transform .25s var(--ease-out), background-color .25s; }
.btn:hover { background: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }

/* Prologue */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; gap: 6vh; padding: 96px var(--m) 0; overflow: hidden; }
.hero-copy { align-self: center; display: grid; justify-items: start; gap: 20px; }
.hero-statement { max-width: 20ch; font: 500 var(--s-lead)/1.2 var(--text); letter-spacing: -.01em; }
.hero-where { font-size: var(--s-body); color: var(--fg); margin-bottom: 12px; }
.monument { display: flex; align-items: flex-end; margin: 0 -.02em; font: 900 var(--s-monument)/.8 var(--display); letter-spacing: -.045em; white-space: nowrap; color: var(--ink); }
.m-l { --w: 112; display: inline-block; font-variation-settings: "wdth" var(--w); will-change: transform; }
.m-o { display: inline-block; width: .74em; height: .74em; margin: 0 .02em .015em 0; border-radius: 50%; overflow: hidden; flex: none; }
.m-o img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.15); }

/* Marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 28px 0; background: var(--light); color: #000; }
.marquee-track { display: flex; align-items: center; width: max-content; font: 800 clamp(40px, 6vw, 96px)/1 var(--display); font-variation-settings: "wdth" 90; letter-spacing: -.03em; white-space: nowrap; }
.marquee-track span { padding: 0 .35em; }
.marquee-track i { width: .22em; height: .22em; border-radius: 50%; background: #000; flex: none; }

/* Intro */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--gap-section) var(--m); }
.intro-text { grid-column: 6 / -1; font: 500 var(--s-lead)/1.28 var(--text); text-indent: 3em; letter-spacing: -.01em; }
.intro-text div, .hero-statement div { text-indent: 0; }
.intro-photo { grid-column: 1 / 6; margin-top: 64px; max-width: 360px; }
.intro-photo img { width: 100%; aspect-ratio: 340 / 213; object-fit: cover; }
.intro-photo figcaption { margin-top: 12px; max-width: 34ch; font-size: var(--s-small); color: var(--fg-soft); }

/* Chapter cards */
.card { min-height: 100svh; display: grid; align-items: center; padding: 96px var(--m); overflow: hidden; }
.card-inner { display: grid; }
.card-title { font: 900 var(--s-display)/.85 var(--display); font-variation-settings: "wdth" var(--w, 100); letter-spacing: -.04em; }
.card-title .char { --w: 100; display: inline-block; font-variation-settings: "wdth" var(--w); }
.card-line { margin-top: 32px; max-width: 40ch; font: 500 var(--s-lead)/1.25 var(--text); color: var(--fg); }
/* Growtopia's own heavy outlined lettering, from the FyreflyHost panel the owner supplied. */
#lks .card-title { font-size: 30vw; }
#growtopia .card-title { font-family: var(--game); font-weight: 900; letter-spacing: -.03em; text-shadow: 0 .05em 0 var(--gt-edge); } /* taste-skill-ignore */

/* Chapter I: Growtopia dialogs */
.servers { padding: 0 var(--m) 64px; }
.servers-lede { max-width: 40ch; margin-bottom: 40px; font-size: var(--s-lead); line-height: 1.2; font-weight: 500; }
.wall { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: var(--grow) 1 260px; min-width: 0; padding: 18px 20px 20px; background: var(--gt-panel); border: 4px solid var(--gt-border); border-radius: 6px; box-shadow: 0 4px 0 var(--gt-edge); /* taste-skill-ignore: the game's dialog frame */ color: var(--gt-ink); font: 700 var(--s-small)/1.45 var(--game); transition: transform .3s var(--ease-out), opacity .3s; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tile h3 { font: 900 22px/1.15 var(--game); }
.tile-year { padding: 3px 9px; background: #18526e; border-radius: 3px; color: var(--gt-soft); }
.tile { display: flex; flex-direction: column; }
.tile-peak { order: 3; margin-top: auto; padding-top: 14px; color: var(--gt-ink); }
.tile-peak b { font: 900 var(--s-lead)/1.1 var(--game); color: var(--gt-green); margin-right: 4px; }
.tile > p:last-child { font-weight: 400; font-size: 16px; color: #f6fcff; }
.tile-last { border-color: var(--light); }
.tile a { color: var(--gt-ink); text-underline-offset: 3px; }
.tile a:hover { color: var(--light); }
.wall:hover .tile { opacity: .55; }
.wall .tile:hover { opacity: 1; transform: translateY(-4px); }

/* Chapter II: results */
.results { padding: 0 var(--m) var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.results-head { grid-column: 4 / -1; margin: 0 0 48px calc(clamp(140px, 16vw, 240px) + 32px); font: 600 var(--s-lead)/1.2 var(--text); }
.figures { grid-column: 4 / -1; display: grid; gap: 28px; }
.figure { display: grid; grid-template-columns: clamp(140px, 16vw, 240px) minmax(0, 1fr); column-gap: 32px; align-items: baseline; }
.figure dt { justify-self: end; font: 800 var(--s-head)/1 var(--display); font-size: clamp(64px, 8vw, 128px); font-variation-settings: "wdth" 80; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.roll { display: inline-block; min-width: .62em; text-align: right; }
.figure dd { max-width: 30ch; font: 500 var(--s-lead)/1.2 var(--text); color: var(--fg); }

/* Chapter III: projects */
.project { display: grid; grid-template-columns: 30% minmax(0, 1fr); column-gap: 4vw; padding: 0 var(--m) var(--gap-section); }
.facts { display: grid; gap: 22px; align-content: start; padding-top: 10px; }
.facts dt { font-size: var(--s-small); color: var(--fg-soft); }
.facts dd { font-size: var(--s-body); font-weight: 600; }
.project-body { max-width: 900px; }
.project h3, .school-head { font: 800 var(--s-head)/1.1 var(--display); font-variation-settings: "wdth" 100; letter-spacing: -.03em; margin-bottom: 24px; }
.project-text { font: 500 22px/1.4 var(--text); max-width: 46ch; }
.record { margin-top: 56px; display: grid; gap: 14px; max-width: 720px; }
.record-word { margin-top: 16px; font-weight: 600; }
.record-word:first-child { margin-top: 0; }
.record li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; font-size: 16px; }
.record li + li { margin-top: 2px; }
.record li span:last-child { color: var(--fg-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff-gtps .record li { background: #ffffff08; padding: 12px 14px; }
.school .record li { background: #ffffff0d; padding: 12px 14px; }

.ff-host { grid-template-columns: minmax(0, 1fr); }
.host-copy { display: grid; grid-template-columns: 30% minmax(0, 1fr); column-gap: 4vw; }
.host-copy > * { grid-column: 2; }
.host-copy > .host-facts { grid-column: 1; grid-row: 1 / span 4; }
.host-copy .record { margin-top: 40px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; width: fit-content; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: color .25s, text-underline-offset .25s; }
.text-link:hover { color: #fff; text-underline-offset: 10px; }
.shots { position: relative; margin-top: 72px; height: 70vw; }
.shot { position: absolute; margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.shot figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--fg-soft); }
.shot-a { left: 0; top: 0; width: 56%; }
.shot-b { right: 0; top: 18%; width: 40%; }
.shot-c { left: 24%; bottom: 0; width: 44%; }

.flylm { padding: 0 var(--m) var(--gap-section); }
.flylm-pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4vw; align-content: center; }
.flylm-name, .flylm-count { grid-column: 1 / -1; }
.flylm-pin .project-text { align-self: start; }
.flylm-link { grid-column: 2; }
.flylm-name { font: 800 var(--s-head)/1 var(--display); letter-spacing: -.03em; }
.flylm-count { display: flex; align-items: baseline; font: 900 var(--s-monument)/.85 var(--display); font-variation-settings: "wdth" 88; letter-spacing: -.05em; color: var(--light); text-shadow: 0 0 .25em #f0f1c740; /* taste-skill-ignore: the firefly's light, the page's one glow */ font-variant-numeric: tabular-nums; white-space: nowrap; }
.flylm-count span { font-size: .5em; }
.flylm-caption { font-size: var(--s-lead); line-height: 1.2; font-weight: 500; max-width: 30ch; }
.flylm-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 4vw; align-items: start; }
.flylm-shot img { width: 100%; }
.flylm-shot figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--fg-soft); }
.flylm-record { margin-top: 0; }
.flylm-proof { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 343px); gap: 4vw; align-items: end; margin-top: 96px; max-width: 900px; }
.flylm-proof img { width: 100%; }
.flylm-proof figcaption, .proof-strip figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--fg-soft); }
.proof-app img { aspect-ratio: 910 / 1020; object-fit: cover; }
.proof-strip { margin-top: 32px; max-width: 579px; }
.proof-strip img { width: 100%; }
.peaks { grid-column: 1 / -1; margin-top: 96px; }
.peaks-head { font: 800 var(--s-head)/1.1 var(--display); letter-spacing: -.02em; }
.peaks-hint { margin: 8px 0 28px; color: var(--fg-soft); }
.peaks-list { display: grid; gap: 6px; }
.peak { display: grid; grid-template-columns: minmax(110px, 16%) minmax(0, 1fr) 80px; align-items: center; gap: 16px; min-height: 48px; padding: 6px 12px; border: 0; border-radius: 0; background: #ffffff08; text-align: left; cursor: pointer; transition: background-color .25s; }
.peak:hover, .peak[aria-pressed="true"] { background: #ffffff17; }
.peak-name { font-weight: 600; }
.peak-bar { height: 14px; }
.peak-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ff-teal); transform-origin: left; transition: background-color .25s; }
.peak[aria-pressed="true"] .peak-bar i { background: var(--light); }
.peak-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.peak-note { margin-top: 20px; min-height: 3em; font-size: var(--s-lead); line-height: 1.2; font-weight: 500; max-width: 40ch; }

/* Toolkit */
.toolkit { padding: var(--gap-section) var(--m); }
.poster { display: grid; row-gap: 28px; }
.poster li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.poster-word { font: 900 clamp(64px, 10.5vw, 170px)/.92 var(--display); font-variation-settings: "wdth" 100; letter-spacing: -.04em; transition: color .25s, font-variation-settings .45s var(--ease-out); }
.poster li:hover .poster-word { color: var(--light); font-variation-settings: "wdth" 125; }
.poster-detail { font-size: var(--s-body); color: var(--fg-soft); text-align: right; max-width: 22ch; }

.school { display: grid; grid-template-columns: 30% minmax(0, 1fr); column-gap: 4vw; padding: 0 var(--m) var(--gap-section); }
.school-photo { margin-bottom: 40px; overflow: hidden; }
.school-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Epilogue */
.contact { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 120px var(--m) 40px; }
.contact-line { max-width: 24ch; font: 500 var(--s-lead)/1.25 var(--text); }
.contact-links { align-self: end; display: grid; margin-bottom: 8vh; }
.contact-links a { width: fit-content; font: 900 clamp(72px, 15vw, 260px)/.88 var(--display); font-variation-settings: "wdth" var(--w, 100); letter-spacing: -.045em; text-decoration: none; transition: font-variation-settings .5s var(--ease-out), color .25s; }
.contact-links a:hover, .contact-links a:focus-visible { --w: 130; color: var(--ff-surface); }
.contact-links a:focus-visible { outline-color: #000; }
.contact-foot { display: flex; justify-content: space-between; gap: 16px; font-size: var(--s-small); }

/* Footer */
.footer { overflow: hidden; padding: 96px var(--m) 12px; }
.footer-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--s-small); color: var(--fg-soft); }
.footer-row a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-name { --w: 112; pointer-events: none; margin: 0 -.02em 16px; font: 900 var(--s-monument)/.8 var(--display); font-variation-settings: "wdth" var(--w, 112); letter-spacing: -.045em; color: var(--ink); white-space: nowrap; text-align: center; }

/* Middle widths */
@media (max-width: 1100px) {
  .intro-text { grid-column: 4 / -1; }
  .intro-photo { grid-column: 1 / 8; }
  .results-head, .figures { grid-column: 1 / -1; }
  .shots { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .shot { position: static; width: auto; }
  .shot-a { grid-column: 1 / -1; }
  .poster li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .poster-detail { text-align: left; max-width: none; }
}

/* Phones and small tablets */
@media (max-width: 760px) {
  :root { --s-body: 17px; --gap-section: 104px; }
  .bar-full { display: none; }
  .bar-short { display: inline; }
  .menu-btn { display: inline-flex; align-items: center; }
  .bar-nav { position: fixed; inset: 60px 0 0; flex-direction: column; gap: 0; padding: 8px var(--m) 20px; background: var(--field); transform: translateY(-120%); visibility: hidden; transition: transform .4s var(--ease-out), visibility 0s .4s; }
  .bar-nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease-out); }
  .bar-nav a { min-height: 56px; padding: 0; font: 800 34px/1 var(--display); }
  .bar-nav a::after { display: none; }
  .hero { padding-top: 84px; }
  .hero-statement { font-size: 24px; max-width: 18ch; }
  .hero-foot { flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
  .monument { font-size: 26vw; }
  .intro { display: block; }
  .intro-text { font-size: 22px; text-indent: 0; }
  .intro-photo { margin: 40px 0 0 auto; width: 86%; }
  .card-title { font-size: 19vw; }
  #lks .card-title { font-size: 34vw; }
  #growtopia .card-title { font-size: 16vw; white-space: nowrap; }
  .servers-lede { font-size: 22px; }
  .tile { flex-basis: 100%; }
  .wall:hover .tile { opacity: 1; }
  .figure { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .figure dt { font-size: 52px; }
  .figure dd { font-size: 18px; }
  .results-head { margin-left: 112px; font-size: 22px; }
  .project, .school { display: flex; flex-direction: column; }
  .host-copy, .flylm-body, .flylm-pin { display: block; }
  .flylm-pin .project-text { margin-top: 28px; }
  .flylm-record { margin-top: 40px; }
  .project .facts, .school-side { order: 2; }
  .school-side { margin-top: 40px; }
  .school .facts { margin-top: 0; }
  .school-photo { width: 72%; margin-left: auto; }
  .host-copy { display: flex; flex-direction: column; }
  .host-copy > .host-facts { order: 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; padding: 0; }
  .project-text { font-size: 19px; }
  .record li { flex-direction: column; gap: 2px; font-size: 15px; }
  .record li span:last-child { white-space: normal; font-size: var(--s-small); }
  .shots { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .flylm-count { font-size: 25vw; }
  .flylm-proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 56px; }
  .flylm-caption { font-size: 22px; }
  .peaks { margin-top: 64px; }
  .peak { grid-template-columns: 1fr 64px; grid-template-areas: "name num" "bar bar"; row-gap: 8px; padding: 10px 12px; }
  .peak-name { grid-area: name; }
  .peak-num { grid-area: num; }
  .peak-bar { grid-area: bar; height: 10px; }
  .peak-note { font-size: 20px; }
  .poster li { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 18px; }
  .poster-word { font-size: 15vw; font-variation-settings: "wdth" 80; }
  .poster-detail { font-size: 16px; text-align: left; }
  .contact { min-height: 88svh; padding-top: 100px; }
  .contact-line { font-size: 20px; }
  .contact-links a { font-size: 21vw; }
  .footer-name { font-size: 26vw; }
}

@media (prefers-reduced-motion: reduce) {
  body, .bar { transition: none; }
  .glow { display: none; }
  .poster-word, .contact-links a, .tile, .btn { transition: none; }
}
