/* Layout: a dive. Full-bleed ocean canvas behind everything; content sits in depth "zones" that alternate sides, a fixed depth gauge on the right. Single deliberate deep-sea look. */
:root {
  --ink: #eafcff;          /* text */
  --mist: #a9d3dc;         /* secondary text */
  --glass: rgba(6, 40, 58, .55);
  --glass-2: rgba(10, 62, 84, .55);
  --edge: rgba(160, 235, 245, .22);
  --sun: #ffd46b;          /* buoy yellow, main action */
  --sun-ink: #2b1c00;
  --coral: #ff7f8e;        /* highlights */
  --glow: #74f5e2;         /* bioluminescence */
  --abyss: #03111c;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --r: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); background: var(--abyss);
  font: 400 1.02rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

#ocean { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#swimmer { position: fixed; z-index: 1; width: clamp(80px, 11vw, 132px); image-rendering: pixelated; pointer-events: none; left: 0; top: 0; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.page { position: relative; z-index: 2; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--sun-ink); padding: .5rem 1rem; z-index: 60; border-radius: 8px; }
.skip:focus { left: 12px; }

.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.inner { max-width: 1120px; margin: 0 auto; }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  pointer-events: none;
}
.site-head .inner { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pill {
  pointer-events: auto; display: flex; align-items: center; gap: .2rem; padding: .3rem;
  background: rgba(4, 30, 44, .6); border: 1px solid var(--edge); border-radius: 999px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: .5rem; padding: .25rem .9rem .25rem .4rem; text-decoration: none; font: 800 1.05rem var(--font-display); }
.brand canvas { width: 34px; image-rendering: pixelated; animation: paddle 1.6s ease-in-out infinite; }
@keyframes paddle { 50% { transform: translateY(-3px) rotate(-4deg); } }
.pill a.nav, .lang button {
  text-decoration: none; color: var(--mist); font: 600 .92rem var(--font-body);
  padding: .45rem .85rem; border-radius: 999px; border: 0; background: none; cursor: pointer; transition: color .2s, background .2s;
}
.pill a.nav:hover { color: var(--ink); background: var(--glass-2); }
.pill a.nav[aria-current="page"] { color: var(--sun-ink); background: var(--sun); }
.lang { display: flex; margin-left: .2rem; border-left: 1px solid var(--edge); padding-left: .2rem; }
.lang button { font: 500 .78rem var(--font-mono); padding: .45rem .6rem; }
.lang button[aria-pressed="true"] { color: var(--glow); }

/* ---------- depth gauge ---------- */
.gauge {
  position: fixed; z-index: 25; right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; pointer-events: none;
  font: 500 .72rem var(--font-mono); color: var(--mist);
}
.gauge .track { position: relative; width: 4px; height: 38vh; border-radius: 4px; background: linear-gradient(var(--glow), rgba(116,245,226,.08)); }
.gauge .bob { position: absolute; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255,212,107,.25), 0 0 18px var(--sun); transition: top .15s linear; }
.gauge .read { font: 500 1.4rem var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge .zone-name { text-transform: uppercase; letter-spacing: .14em; transition: opacity .3s; }
@media (max-width: 760px) {
  .gauge { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); transform: none; flex-direction: row; align-items: center;
    background: rgba(4,30,44,.7); border: 1px solid var(--edge); padding: .35rem .8rem; border-radius: 999px; backdrop-filter: blur(10px); }
  .gauge .track { display: none; }
  .gauge .read { font-size: .95rem; }
}

/* ---------- hero ---------- */
.hero { min-height: min(92vh, 860px); display: grid; align-content: center; padding-block: 120px 80px; position: relative; }
.hero .inner { width: 100%; display: grid; gap: 1.4rem; justify-items: start; }
.kicker { font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--glow); display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--glow); }
.wordmark { font-size: clamp(3.6rem, 15vw, 10.5rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; display: flex; flex-wrap: wrap; gap: 0 .25em; }
.wordmark .w { display: inline-flex; }
.wordmark .ch { display: inline-block; animation: float 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.22s); }
.wordmark .w:last-child .ch { color: var(--sun); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-.08em) rotate(-2deg); } }
.hero .lead { text-shadow: 0 1px 12px rgba(0,30,45,.6); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 34ch; color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.hint { margin-top: 1.5rem; font: 500 .78rem var(--font-mono); color: var(--mist); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.hint i { width: 22px; height: 34px; border: 2px solid var(--mist); border-radius: 12px; position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: scrolly 1.8s ease-in-out infinite; }
@keyframes scrolly { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.surface { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; pointer-events: none; overflow: hidden; }
.surface svg { width: 200%; height: 100%; animation: drift 9s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; cursor: pointer;
  font: 700 .98rem var(--font-body); padding: .8rem 1.3rem; border-radius: 999px;
  color: var(--ink); background: var(--glass-2); border: 1px solid var(--edge);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); background: rgba(16, 86, 110, .7); }
.btn:active { transform: scale(.97); }
.btn.buoy { background: var(--sun); color: var(--sun-ink); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(255,212,107,.7); }
.btn.buoy:hover { background: #ffe08e; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.pop { position: absolute; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; pointer-events: none; animation: pop .7s ease-out forwards; }
@keyframes pop { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

/* ---------- zones ---------- */
.zone { padding-block: clamp(4rem, 10vw, 8rem); position: relative; }
.zone-head { display: grid; gap: .6rem; margin-bottom: 2.2rem; max-width: 40rem; }
.zone-head .depth { font: 500 .8rem var(--font-mono); color: var(--glow); letter-spacing: .16em; text-transform: uppercase; }
.zone-head h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
.zone-head p { color: var(--mist); max-width: 52ch; }
.zone.right .zone-head { margin-left: auto; text-align: right; justify-items: end; }

.glass {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* reveal: transform only, content always visible */
.rise { transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .9s; }
.rise.below { transform: translateY(48px) scale(.97); filter: blur(2px); }

/* release */
.release { display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.release > div { padding: clamp(1.4rem, 3vw, 2.4rem); min-width: 0; display: grid; gap: 1rem; align-content: start; }
.release .side { background: rgba(116,245,226,.06); border-left: 1px solid var(--edge); }
.release h3 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.release h3 a { text-decoration: none; background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 3px no-repeat; transition: background-size .4s; }
.release h3 a:hover { background-size: 100% 3px; }
.tags { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tag { font: 500 .78rem var(--font-mono); padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--edge); color: var(--mist); }
.tag.hot { background: var(--coral); border-color: var(--coral); color: #2a0509; font-weight: 600; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,127,142,.18); } }
.side .label { font: 500 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--glow); }
.side .btn { width: 100%; justify-content: space-between; }
.caution { font-size: .9rem; color: var(--mist); display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.caution svg { width: 20px; height: 20px; margin-top: .15rem; }
.textlink { color: var(--glow); font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; }
.textlink:hover { text-decoration: underline; }
@media (max-width: 780px) { .release { grid-template-columns: 1fr; } .release .side { border-left: 0; border-top: 1px solid var(--edge); } }

/* guides */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.guide { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.4rem; text-decoration: none; transition: transform .35s cubic-bezier(.3,1.5,.5,1), border-color .3s; }
.guide:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--glow); }
.guide .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(116,245,226,.12); }
.guide .ico svg { width: 30px; height: 30px; }
.guide strong { display: block; font: 700 1.15rem var(--font-display); margin-bottom: .25rem; }
.guide span { color: var(--mist); font-size: .94rem; }
.guide > div { min-width: 0; }

/* bottles */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.pitch { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.pitch .big { font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--font-display); color: var(--sun); font-variant-numeric: tabular-nums; }
.pitch .small { font-size: .88rem; color: var(--mist); }
.bottles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.4rem 1rem; list-style: none; padding: 0; margin: 0; }
.bottle {
  position: relative; padding: 1.6rem 1.1rem 1.1rem; border-radius: 26px 26px 18px 18px;
  background: linear-gradient(160deg, rgba(160,255,230,.14), rgba(30,110,120,.18)); border: 1px solid var(--edge);
  animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s);
}
.bottle::before { content: ""; position: absolute; top: -14px; left: 50%; width: 26px; height: 16px; margin-left: -13px; border-radius: 6px 6px 2px 2px; background: rgba(160,255,230,.18); border: 1px solid var(--edge); border-bottom: 0; }
.bottle::after { content: ""; position: absolute; top: -20px; left: 50%; width: 16px; height: 8px; margin-left: -8px; border-radius: 3px; background: #b9895a; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.bottle b { display: block; font: 700 1rem var(--font-display); }
.bottle p { font-size: .9rem; color: var(--mist); margin-top: .3rem; overflow-wrap: anywhere; }
.bottle em { font-style: italic; opacity: .8; }

/* sonar timeline */
.sonar { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.1rem; }
.sonar::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--glow), transparent); opacity: .5; }
.sonar li { display: grid; grid-template-columns: 24px 1fr; gap: 1.2rem; }
.ping { position: relative; width: 24px; height: 24px; margin-top: 1.3rem; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--glow); }
.ping::after { background: none; border: 2px solid var(--glow); animation: ping 2.6s ease-out infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.log { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.2rem; padding: 1.2rem 1.4rem; text-decoration: none; transition: transform .35s cubic-bezier(.3,1.5,.5,1), border-color .3s; }
.log:hover { transform: translateX(8px); border-color: var(--glow); }
.log .meta { font: 500 .76rem var(--font-mono); color: var(--glow); text-transform: uppercase; letter-spacing: .1em; }
.log strong { grid-column: 1; font: 700 1.2rem var(--font-display); }
.log p { grid-column: 1; color: var(--mist); font-size: .94rem; }
.log time { grid-column: 2; grid-row: 1 / span 3; font: 500 .8rem var(--font-mono); color: var(--mist); text-align: right; font-variant-numeric: tabular-nums; }
.log > * { min-width: 0; }
@media (max-width: 560px) { .log { grid-template-columns: 1fr; } .log time { grid-column: 1; grid-row: auto; text-align: left; } }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.filters button { font: 600 .9rem var(--font-body); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); color: var(--mist); cursor: pointer; transition: all .2s; }
.filters button[aria-pressed="true"] { background: var(--glow); color: #022; border-color: var(--glow); }

/* article */
.article { max-width: 48rem; margin-inline: auto; padding: clamp(1.4rem, 4vw, 2.8rem); display: grid; gap: 1rem; }
.article h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; }
.prose { display: grid; gap: .9rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1rem; color: var(--sun); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.prose .note { border-radius: 12px; padding: .9rem 1.1rem; background: rgba(255,127,142,.12); border: 1px solid rgba(255,127,142,.35); font-size: .95rem; }

/* projects */
.reefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.reef { padding: 1.6rem; display: grid; gap: .7rem; align-content: start; transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.reef:hover { transform: translateY(-6px); }
.reef.lead-card { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(255,212,107,.16), var(--glass)); }
.reef h3 { font-size: 1.5rem; font-weight: 800; }
.reef p { color: var(--mist); }
.state { justify-self: start; font: 600 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding: .25rem .7rem; border-radius: 999px; }
.state.aktif { background: var(--glow); color: #022; }
.state.ide { border: 1px dashed var(--mist); color: var(--mist); }
.reef .stack { font: 500 .8rem var(--font-mono); color: var(--mist); }

/* page head (inner pages) */
.page-head { padding-block: 140px 2.5rem; }
.page-head .inner { display: grid; gap: .8rem; }
.page-head h1 { font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 800; letter-spacing: -.04em; }
.page-head p { color: var(--mist); max-width: 46ch; font-size: 1.1rem; }

/* seabed footer */
.seabed { position: relative; margin-top: 4rem; padding-block: 140px 2.5rem; }
.seabed .sand { position: absolute; inset: 0 0 auto; height: 120px; }
.seabed .sand svg { width: 100%; height: 100%; display: block; }
.seabed .inner { position: relative; display: grid; gap: 1rem; color: var(--mist); font-size: .88rem; }
.seabed nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.seabed nav a { color: var(--ink); }
.seabed .sleeper { position: absolute; top: 38px; right: 12%; width: 70px; image-rendering: pixelated; }
.zz { position: absolute; top: 10px; right: calc(12% - 6px); font: 700 1rem var(--font-mono); color: var(--glow); animation: zz 3s ease-in-out infinite; }
@keyframes zz { from { transform: translate(0,10px); opacity: 0; } 50% { opacity: 1; } to { transform: translate(10px,-14px); opacity: 0; } }

/* dive transition */
.veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: var(--abyss); opacity: 0; transition: opacity .45s; }
.veil.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise.below { transform: none; filter: none; }
}

@media (max-width: 520px) {
  .brand .bname { display: none; }
  .brand { padding: .25rem .5rem; }
  .pill a.nav { padding: .45rem .6rem; font-size: .88rem; }
  .lang button { padding: .45rem .45rem; }
  .zone.right .zone-head { margin-left: 0; text-align: left; justify-items: start; }
}

/* ---------- gambar tulisan ---------- */
.shot { margin: 0; display: grid; gap: .5rem; }
.shot .zoom { display: block; width: 100%; padding: 0; border: 0; background: rgba(0,0,0,.25); border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; }
.shot img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.shot .zoom:hover img { transform: scale(1.04); filter: saturate(1.15); }
.shot .zoom::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.shot figcaption { font-size: .85rem; color: var(--mist); text-align: center; }
.shot.cover img { max-height: 520px; object-fit: cover; }
.shot.inline { margin-block: .4rem; }
.gallery { display: grid; gap: 1rem; margin-top: 1rem; }
.gallery h2 { font-size: 1.5rem; color: var(--sun); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .8rem; }
.g-grid .shot img { aspect-ratio: 4 / 3; object-fit: cover; }

.rel-cover { display: block; border-radius: 12px; overflow: hidden; margin: -.2rem 0 .2rem; }
.rel-cover img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.release:hover .rel-cover img { transform: scale(1.05); }

.log.has-thumb { grid-template-columns: 112px 1fr auto; }
.log .thumb { grid-row: 1 / span 3; grid-column: 1; border-radius: 10px; overflow: hidden; align-self: start; }
.log .thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.log:hover .thumb img { transform: scale(1.08); }
.log.has-thumb .meta, .log.has-thumb strong, .log.has-thumb p { grid-column: 2; }
.log.has-thumb time { grid-column: 3; }
@media (max-width: 560px) {
  .log.has-thumb { grid-template-columns: 1fr; }
  .log .thumb { grid-row: auto; }
  .log .thumb img { aspect-ratio: 16 / 9; }
  .log.has-thumb .meta, .log.has-thumb strong, .log.has-thumb p, .log.has-thumb time { grid-column: 1; }
}

.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(2, 12, 20, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.lb.on { opacity: 1; }
.lb figure { margin: 0; grid-column: 2; display: grid; gap: .7rem; justify-items: center; min-width: 0; }
.lb img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb img.in { animation: lbin .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes lbin { from { transform: scale(.92) translateY(16px); opacity: 0; } }
.lb figcaption { color: var(--mist); text-align: center; max-width: 60ch; }
.lb-nav, .lb-x { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass-2); color: var(--ink); font: 400 1.8rem/1 var(--font-body); cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover, .lb-x:hover { background: var(--sun); color: var(--sun-ink); }
.lb-nav.prev { grid-column: 1; } .lb-nav.next { grid-column: 3; }
.lb-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-count { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); left: 0; right: 0; text-align: center; font: 500 .8rem var(--font-mono); color: var(--mist); }
@media (max-width: 560px) { .lb { grid-template-columns: 1fr; } .lb figure { grid-column: 1; } .lb-nav { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 4px); } .lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; } }

/* ---------- beranda satu layar ---------- */
/* layout: judul + tombol di atas; rilis (kiri) + pesan dalam botol (kanan); dasar laut di bawah */
html.one-screen, html.one-screen body { height: 100%; overflow: hidden; }
html.one-screen .gauge { display: none; }
html.one-screen body { display: flex; flex-direction: column; }
html.one-screen main.page { flex: 1 1 auto; min-height: 0; }
.stage { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(.8rem, 2.2vh, 1.6rem);
  padding-block: calc(env(safe-area-inset-top, 0px) + 78px) .4rem; max-width: 1240px; margin: 0 auto; }
.stage-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2.5rem; flex-wrap: wrap; }
.stage-top .wordmark { font-size: clamp(2.8rem, 8.5vh, 6.4rem); flex-wrap: nowrap; white-space: nowrap; }
.stage-intro { display: grid; gap: .7rem; justify-items: start; max-width: 36rem; }
.stage-intro .lead { font-size: clamp(.95rem, 1.4vw, 1.1rem); color: var(--ink); text-shadow: 0 1px 12px rgba(0,30,45,.6); }
.quick .btn { padding: .6rem 1.05rem; font-size: .9rem; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1rem, 2.4vw, 2rem); min-height: 0; }
.stage-grid .col { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6rem; min-height: 0; min-width: 0; }
.label-rel { font: 500 .76rem var(--font-mono); text-transform: uppercase; letter-spacing: .18em; color: var(--glow); display: flex; align-items: center; gap: .6rem; }
.label-rel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: beacon 1.8s ease-out infinite; }
.bottle-label::before { background: var(--sun); }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(255,127,142,.6); } 100% { box-shadow: 0 0 0 12px rgba(255,127,142,0); } }

.hero-rel { overflow: hidden; display: grid; position: relative; min-height: 0; animation: arrive 1s cubic-bezier(.2,.8,.2,1) both .1s; }
.hero-rel > * { grid-area: 1 / 1; }
.hero-rel .hr-cover { position: absolute; inset: 0; }
.hero-rel .hr-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,17,28,0) 18%, rgba(3,17,28,.8) 52%, rgba(3,17,28,.97) 100%); }
.hero-rel:has(.hr-cover) .hr-body { align-content: end; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
@keyframes arrive { from { transform: translateY(40px) rotate(1deg); } }
.hr-cover { position: relative; display: block; overflow: hidden; min-height: 0; }
.hr-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.hero-rel:hover .hr-cover img { transform: scale(1.05); }
.hr-cover .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite 1.2s; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.hr-body { position: relative; z-index: 1; padding: clamp(1rem, 2vw, 1.6rem); display: grid; gap: .7rem; align-content: center; min-width: 0; min-height: 0; overflow: hidden; }
.hero-rel:has(.hr-cover) .clamp { color: var(--ink); opacity: .85; }
.hr-body h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 800; }
.hr-body h2 a { text-decoration: none; }
.hr-body h2 a:hover { color: var(--sun); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--mist); }
.hr-dl { display: flex; flex-wrap: wrap; gap: .5rem; }
.hr-dl .btn { padding: .6rem 1rem; font-size: .88rem; }

.sea-mail { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; padding: clamp(1rem, 2vw, 1.4rem); min-height: 0; animation: arrive 1s cubic-bezier(.2,.8,.2,1) both .3s; }
.sm-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.sm-head > div { display: flex; align-items: baseline; gap: .5rem; color: var(--mist); }
.sm-head .big { font: 800 2.4rem/1 var(--font-display); color: var(--sun); font-variant-numeric: tabular-nums; }
.sm-head .btn { padding: .55rem 1rem; font-size: .88rem; }
.bottles.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; padding-top: 16px; overflow: hidden; min-height: 0; }
.bottles.mini .bottle:nth-child(n+5) { display: none; }
.bottles.mini .bottle { display: grid; align-content: center; min-height: 0; }
.bottles.mini .bottle { padding: 1.2rem .9rem .8rem; }
.bottles.mini .bottle p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
.muted-note { color: var(--mist); align-self: center; text-align: center; }

/* dasar laut di beranda: pita pendek, tetap terlihat */
html.one-screen .seabed { flex: 0 0 auto; margin-top: 0; padding-block: 58px calc(env(safe-area-inset-bottom, 0px) + .7rem); }
html.one-screen .seabed .sand { height: 78px; }
html.one-screen .seabed .sleeper { top: 18px; width: 54px; }
html.one-screen .seabed .zz { top: -2px; }
html.one-screen .seabed .inner { font-size: .7rem; gap: .2rem; position: relative; z-index: 1; }
html.one-screen .seabed .inner > p { display: none; }
html.one-screen .seabed nav { gap: .9rem; }

@media (max-width: 900px) {
  .stage { padding-top: calc(env(safe-area-inset-top, 0px) + 70px); gap: .7rem; }
  .stage-top { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .stage-top .wordmark { font-size: clamp(2.6rem, 13vw, 4rem); }
  .stage-intro .lead { display: none; }
  .quick { flex-wrap: nowrap; gap: .4rem; }
  .quick .btn { padding: .45rem .75rem; font-size: .8rem; white-space: nowrap; }
  .quick .btn:last-child { display: none; }
  .stage-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: .7rem; }
  .stage-grid .col { gap: .35rem; }
  .hero-rel { min-height: 150px; }
  .bottles.mini { grid-template-rows: none; }
  .bottles.mini .bottle:nth-child(n+5) { display: grid; }
  .hr-body { padding: .8rem; gap: .45rem; align-content: start; }
  .hr-body h2 { font-size: 1.02rem; }
  .hr-body .tags .tag:last-child, .hr-body > .textlink, .hr-body .clamp { display: none; }
  .hr-dl { flex-wrap: nowrap; }
  .hr-dl .btn { flex: 1 1 0; justify-content: center; padding: .45rem .5rem; font-size: .76rem; min-width: 0; }
  .hr-dl .btn .arr { display: none; }
  .sea-mail { gap: .6rem; padding: .8rem; }
  .sm-head .big { font-size: 1.7rem; }
  .bottles.mini { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: .3rem; }
  .bottles.mini .bottle { scroll-snap-align: start; }
  html.one-screen .seabed { padding-top: 46px; }
  html.one-screen .seabed .sand { height: 60px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .stage-intro .lead { display: none; }
  .clamp { -webkit-line-clamp: 2; }
}

@media (max-width: 900px) {
  .stage-grid { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero-rel { min-height: 0; }
  .hr-body .clamp { display: -webkit-box; -webkit-line-clamp: 2; font-size: .85rem; }
  .sm-head { flex-wrap: nowrap; }
  .sm-head > div { gap: .35rem; font-size: .82rem; }
  .sm-head .btn { padding: .45rem .75rem; font-size: .78rem; white-space: nowrap; }
  .sm-head .btn .arr { display: none; }
  .bottles.mini .bottle { align-content: start; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hr-body .clamp { display: none; }
}

/* permukaan laut di atas beranda */
html.one-screen .surface { position: fixed; top: 0; left: 0; right: 0; bottom: auto; height: 74px; z-index: 1; opacity: .9; pointer-events: none;
  background: linear-gradient(180deg, rgba(220,250,255,.35), rgba(220,250,255,0)); }
html.one-screen .surface svg { position: absolute; bottom: 0; height: 40px; }
html.one-screen .stage-top .wordmark .w:first-child .ch { color: #fff; }

/* ---------- revisi: header ringkas, tagline, pesan dalam botol ---------- */
.site-head nav.pill .lang { border-left: 0; margin-left: 0; padding-left: 0; }
.stage-top { align-items: flex-end; }
.stage-name { display: grid; gap: .35rem; }
.tagline { font: 600 clamp(1rem, 2.2vh, 1.35rem) var(--font-display); color: var(--ink); letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0,30,45,.6); display: flex; align-items: center; gap: .7rem; }
.tagline::before { content: ""; width: 34px; height: 2px; background: var(--sun); border-radius: 2px; }

/* panel komentar yang disorot: tepi bercahaya berputar */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.sea-mail {
  position: relative; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: .9rem; min-height: 0;
  padding: clamp(1rem, 2vw, 1.4rem); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(14, 92, 112, .78), rgba(5, 34, 52, .82)) padding-box,
              conic-gradient(from var(--ang), var(--sun), var(--glow), rgba(116,245,226,.15), var(--coral), var(--sun)) border-box;
  border: 2px solid transparent; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 40px -6px rgba(116,245,226,.35), 0 20px 50px -20px rgba(0,0,0,.6);
  animation: arrive 1s cubic-bezier(.2,.8,.2,1) both .3s, spin 8s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }
.sm-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.sm-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 800; color: var(--sun); }
.sm-count { font: 500 .78rem var(--font-mono); color: var(--mist); }
.sm-count b { color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }

.bottle-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
.bottle-form input, .bottle-form textarea {
  width: 100%; font: 400 .95rem var(--font-body); color: var(--ink); background: rgba(2, 20, 32, .55);
  border: 1px solid var(--edge); border-radius: 12px; padding: .6rem .8rem; transition: border-color .2s, box-shadow .2s;
}
.bottle-form input::placeholder, .bottle-form textarea::placeholder { color: rgba(169, 211, 220, .7); }
.bottle-form input:focus, .bottle-form textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(116,245,226,.2); }
.bottle-form #bf-name { grid-column: 1 / -1; }
.bf-msg { position: relative; min-width: 0; }
.bf-msg textarea { resize: none; display: block; padding-right: 2.6rem; }
.bf-left { position: absolute; right: .6rem; bottom: .45rem; font: 500 .7rem var(--font-mono); color: var(--mist); }
.bf-left.low { color: var(--coral); }
.bottle-form .btn { align-self: stretch; padding: .6rem 1rem; font-size: .9rem; }
.bottle-form .btn:disabled { opacity: .6; cursor: wait; }
.bf-status { grid-column: 1 / -1; font-size: .82rem; min-height: 0; color: var(--mist); }
.bf-status:empty { display: none; }
.bf-status.ok { color: var(--glow); }
.bf-status.err { color: var(--coral); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sea-mail .bottles.mini { grid-template-rows: none; grid-auto-rows: min-content; overflow-y: auto; overflow-x: hidden; padding: 16px 4px 4px; align-content: start;
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent);
  scrollbar-width: thin; scrollbar-color: rgba(116,245,226,.4) transparent; }
.sea-mail .bottles.mini .bottle:nth-child(n+5) { display: grid; }
.sea-mail .bottle time { font: 500 .68rem var(--font-mono); color: var(--mist); opacity: .8; margin-top: .3rem; }
.bottle.fresh { animation: drift-in 1.1s cubic-bezier(.2,.9,.3,1.2) both, bob 5s ease-in-out infinite 1.1s; border-color: var(--sun); }
@keyframes drift-in { from { transform: translateY(60px) rotate(-8deg) scale(.7); opacity: 0; } }
.sea-mail .muted-note { margin: 0; }

/* perbaikan gambar mini di daftar blog */
.log .thumb img { height: auto; }
.log.has-thumb { align-items: start; }
.log.has-thumb .thumb { grid-row: 1 / span 4; }
.hr-cover img, .rel-cover img, .g-grid .shot img { height: auto; }
.hero-rel .hr-cover img { height: 100%; }

@media (max-width: 900px) {
  .stage-top { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .tagline { font-size: .95rem; }
  .tagline::before { width: 22px; }
  .stage-grid { grid-template-rows: minmax(0, .9fr) minmax(0, 1.25fr); }
  .sea-mail { gap: .5rem; padding: .8rem; }
  .sm-head h2 { font-size: 1.15rem; }
  .bottle-form { gap: .4rem; }
  .bottle-form input, .bottle-form textarea { padding: .45rem .65rem; font-size: .88rem; }
  .bottle-form #bf-name { grid-column: 1; }
  .bottle-form .bf-msg { grid-column: 1; }
  .bottle-form .btn { grid-column: 2; grid-row: 1 / span 2; padding: .5rem .7rem; font-size: .8rem; writing-mode: horizontal-tb; }
  .bottle-form .btn .arr { display: none; }
  .bf-msg textarea { height: 2.6rem; }
  .sea-mail .bottles.mini { grid-auto-flow: column; grid-auto-columns: 70%; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .stage-grid { grid-template-rows: minmax(0, .8fr) minmax(0, 1.3fr); }
  .hr-cover + .hr-body h2 { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .sea-mail { animation: none; } }
@media (max-width: 900px) {
  .bottle-form .btn { border-radius: 14px; max-width: 7.5rem; white-space: normal; line-height: 1.2; text-align: center; justify-content: center; }
}
