/* Tiban Inten Sukses — dermaga Cilegon: baja, batubara, cat hazard hitam-kuning.
   Chrome tenang (abu hangat / grafit), kuning hanya untuk aksi utama & tanda hazard. */
:root {
  --bg: #f6f4ef;
  --bg-2: #eeebe4;
  --surface: #fdfcf9;
  --ink: #1a1916;
  --muted: #57524a;          /* teks sekunder */
  --faint: #7a7368;          /* meta, label */
  --line: rgba(26, 25, 22, .1);
  --brand: #ffd200;
  --brand-ink: #141311;
  --band: #161513;           /* pita gelap (layanan, CTA) — gelap di kedua tema */
  --band-2: #1f1e1b;
  --band-ink: #efece4;
  --band-muted: #a9a397;
  --band-line: rgba(239, 236, 228, .1);
  --shadow: 0 1px 2px rgba(26, 25, 22, .05), 0 8px 24px rgba(26, 25, 22, .06);
  --font-display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Barlow", "Segoe UI", system-ui, sans-serif; /* label & angka: Barlow + tabular-nums (g satu tingkat) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --header-h: 64px;
  --r-ctl: 10px;
  --r-card: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211; --bg-2: #181816; --surface: #1c1b19; --ink: #efece4; --muted: #aba69c; --faint: #8c877c;
    --line: rgba(239, 236, 228, .09); --band: #0c0c0b; --band-2: #1a1917;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211; --bg-2: #181816; --surface: #1c1b19; --ink: #efece4; --muted: #aba69c; --faint: #8c877c;
  --line: rgba(239, 236, 228, .09); --band: #0c0c0b; --band-2: #1a1917;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--muted); } /* aksen: warna sekunder, huruf sama */
p { margin: 0; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 16px; border-radius: var(--r-ctl); }
.skip:focus { left: 8px; }

/* Ciri khas: garis hazard hitam-kuning, hanya sebagai penanda & progres */
.hazard, .hz {
  background: repeating-linear-gradient(-45deg, var(--brand) 0 6px, var(--brand-ink) 6px 12px);
}
.hazard { height: 6px; }
.hz { display: inline-block; width: 20px; height: 6px; border-radius: 2px; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--faint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 1rem/1 var(--font-display); }
.brand img { width: 36px; height: auto; }
.brand small { display: block; font: 400 .75rem/1.2 var(--font-body); color: var(--faint); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-2); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.75; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 12px; font-size: 1.0625rem; }
  .theme-toggle { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 500 .9375rem/1 var(--font-body); height: 48px; padding: 0 20px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--bg-2); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn-primary:hover { background: #f0c600; }
.btn-ghost { background: transparent; }
.btn svg { width: 18px; height: 18px; stroke-width: 1.75; }

/* ---------- Hero Beranda: teks kiri, truk 3D kanan; dipin selama urutan scroll ---------- */
.hero { position: relative; }
.hero.is-3d { height: 280vh; }
.hero-stage { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
.hero.is-3d .hero-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding-block: 48px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -.01em; margin-top: 20px; }
.hero h1 em { display: block; }
.hero-lead { max-width: 34rem; font-size: 1.125rem; line-height: 1.6; margin-top: 24px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.truck3d { position: relative; margin: 0; aspect-ratio: 4 / 3; max-height: calc(100svh - var(--header-h) - 96px); width: 100%; justify-self: end; }
.truck3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.truck3d .fallback { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); }
.truck3d.is-live .fallback { display: none; }
.truck3d:not(.is-live) canvas, .truck3d:not(.is-live) figcaption { display: none; }
.truck3d figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 12px; }
.truck3d-phases { display: flex; gap: 20px; color: var(--faint); }
.truck3d-phases span { transition: color .2s var(--ease); }
.truck3d-phases span.on { color: var(--ink); }
.truck3d-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.truck3d-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, var(--brand) 0 6px, var(--brand-ink) 6px 12px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); margin-top: 16px; }
  .hero-lead { font-size: 1rem; margin-top: 16px; }
  .hero-cta { margin-top: 20px; }
  .truck3d { max-height: 40svh; justify-self: stretch; }
}

/* ---------- Hero halaman dalam ---------- */
.page-hero { padding-block: clamp(64px, 12vh, 112px) clamp(48px, 8vh, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.75rem, 6.6vw, 5.25rem); letter-spacing: -.01em; line-height: 1.04; margin-top: 20px; max-width: 16ch; }
.page-hero p { max-width: 40rem; margin-top: 24px; font-size: 1.125rem; color: var(--muted); }

/* ---------- Komoditas ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font: 500 1.125rem/1 var(--font-display); color: var(--muted); padding: 20px 24px; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; background: var(--faint); border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.anim .marquee-track { animation: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vh, 128px); }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); letter-spacing: -.01em; line-height: 1.08; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* ---------- Pinned steps ---------- */
.pin { position: relative; }
.pin-sticky { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pin-index { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; margin-block: 12px; }
.step p { color: var(--muted); }
.step ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.step li + li { margin-top: 4px; }
.pin.is-pinned { height: calc(var(--steps, 4) * 70vh + 100vh); }
.pin.is-pinned .pin-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); align-items: center; }
.pin.is-pinned .pin-index { display: block; }
.pin.is-pinned .steps { display: block; position: relative; min-height: 360px; }
.pin.is-pinned .step { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.pin.is-pinned .step.active { opacity: 1; visibility: visible; transform: none; }
.pin-num { font: 500 clamp(4rem, 8vw, 6.5rem)/.9 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--faint); }
.pin-num b { color: var(--ink); font-weight: inherit; }
.pin-bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 32px; overflow: hidden; }
.pin-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, var(--brand) 0 6px, var(--brand-ink) 6px 12px); }
.pin-labels { display: flex; justify-content: space-between; margin-top: 12px; gap: 8px; color: var(--faint); }
.pin-labels span { transition: color .2s var(--ease); }
.pin-labels span.on { color: var(--ink); }
@media (max-width: 820px) {
  .pin-sticky { grid-template-columns: 1fr; gap: 24px; }
  .pin.is-pinned .pin-sticky { align-content: center; }
  .pin-num { font-size: 4rem; }
  .pin.is-pinned .steps { min-height: 340px; }
  .pin-labels { display: none; }
}

/* ---------- Layanan: scroll horizontal di pita gelap ---------- */
.hscroll { position: relative; background: var(--band); color: var(--band-ink); }
.hscroll .section-head .eyebrow { color: var(--band-muted); }
.hscroll .section-head p { color: var(--band-muted); }
.hscroll-viewport { overflow-x: auto; scrollbar-width: thin; padding-bottom: 24px; }
.hscroll-track { display: flex; gap: 16px; padding-inline: var(--gutter); width: max-content; }
.hscroll.is-js { padding-block: 0; }
.hscroll.is-js .hscroll-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll.is-js .hscroll-viewport { overflow: visible; padding-bottom: 0; }
.hscroll.is-js .section-head { margin-bottom: clamp(24px, 4vh, 40px); }
.hscroll-sticky > .wrap { width: 100%; }
.card {
  width: min(78vw, 360px); flex: none; border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 12px;
  min-height: 300px; background: var(--band-2); border: 1px solid var(--band-line); color: var(--band-ink); text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.card:hover { background: color-mix(in srgb, var(--band-2) 88%, var(--band-ink)); border-color: color-mix(in srgb, var(--band-line) 100%, var(--band-ink) 8%); }
.card-n { color: var(--band-muted); }
.card svg { width: 40px; height: 40px; color: var(--band-muted); stroke-width: 2; margin-bottom: auto; }
.card h3 { font-size: 1.375rem; letter-spacing: -.01em; margin-top: 24px; }
.card p { color: var(--band-muted); font-size: .9375rem; }
.card.card-end { background: var(--brand); color: var(--brand-ink); border-color: transparent; justify-content: space-between; }
.card.card-end:hover { background: #f0c600; }
.card.card-end .mono { color: color-mix(in srgb, var(--brand-ink) 70%, transparent); }
.card.card-end h3 { font-size: 1.75rem; margin: 0; letter-spacing: -.01em; }
.card.card-end .btn { background: var(--brand-ink); color: var(--brand); border-color: transparent; align-self: flex-start; }
.hscroll-progress { margin: 32px var(--gutter) 0; height: 6px; border-radius: 3px; background: var(--band-line); overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, var(--brand) 0 6px, var(--brand-ink) 6px 12px); }

/* ---------- Angka tonggak ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.grid-4 > * { border-top: 1px solid var(--line); padding-top: 24px; }
.stat-big { font: 500 clamp(2.5rem, 4.4vw, 3.5rem)/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.grid-4 h3 { font-size: 1.0625rem; margin-block: 16px 4px; }
.grid-4 p { color: var(--muted); font-size: .9375rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose p + p { margin-top: 16px; }
.prose p { font-size: 1.0625rem; }
.lead-big { font: 500 clamp(1.5rem, 2.6vw, 2.125rem)/1.25 var(--font-display); letter-spacing: -.01em; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.value { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: var(--surface); box-shadow: var(--shadow); }
.value svg { width: 32px; height: 32px; margin-bottom: 24px; color: var(--faint); stroke-width: 2; }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .9375rem; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); position: relative; }
.timeline li { position: relative; padding: 0 0 40px 32px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; background: var(--brand); border: 1px solid var(--brand-ink); border-radius: 2px; }
.timeline .yr { font: 500 1.75rem/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.1875rem; margin-block: 12px 4px; }
.timeline p { color: var(--muted); max-width: 38rem; }
.timeline::after { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 1)); }

/* daftar layanan */
.svc { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc > .mono { padding-top: 8px; }
.svc h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; }
.svc p { color: var(--muted); }
.svc ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 12px; } }
.specs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); }

/* kontak */
.contact-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.contact-list > div { padding: 20px 24px; display: grid; gap: 4px; }
.contact-list > div + div { border-top: 1px solid var(--line); }
.contact-list .mono { color: var(--faint); }
.contact-list a { font: 500 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--font-display); text-decoration-thickness: 1px; word-break: break-word; }
.contact-list strong { font: 500 1.125rem/1.4 var(--font-display); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-card); background: var(--bg-2); filter: grayscale(.5); }

/* privasi */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.legal nav a { text-decoration: none; color: var(--faint); padding: 4px 0 4px 16px; border-left: 2px solid var(--line); font-size: .9375rem; transition: color .15s var(--ease), border-color .15s var(--ease); }
.legal nav a:hover, .legal nav a.on { color: var(--ink); border-left-color: var(--ink); }
.legal article { max-width: 46rem; }
.legal article section + section { margin-top: 48px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -.01em; margin-bottom: 16px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.note { border: 1px solid var(--line); background: var(--surface); padding: 16px 20px; border-radius: var(--r-card); position: relative; overflow: hidden; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(-45deg, var(--brand) 0 6px, var(--brand-ink) 6px 12px); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; } }

/* foto */
.ph-frame { border-radius: var(--r-card); overflow: hidden; background: var(--bg-2); }

/* ---------- CTA: pita gelap dengan garis hazard ---------- */
.cta-band { background: var(--band); color: var(--band-ink); position: relative; }
.cta-band .wrap { padding-block: clamp(80px, 12vh, 112px); display: grid; gap: 24px; justify-items: start; }
.cta-band .mono { color: var(--band-muted); }
.cta-band h2 em { color: var(--band-muted); }
.cta-band h2 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.01em; line-height: 1.04; max-width: 18ch; }
.cta-band .hero-cta { margin-top: 8px; }
.cta-band .btn-ghost { color: var(--band-ink); border-color: var(--band-line); }
.cta-band .btn-ghost:hover { background: var(--band-2); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font: 500 .8125rem/1 var(--font-body); color: var(--faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--muted); font-size: .9375rem; transition: color .15s var(--ease); }
.footer-grid a:hover { color: var(--ink); }
.footer-grid .brand { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .875rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* progres baca di bawah header */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform-origin: left; transform: scaleX(0); }

/* Reveal: tersembunyi hanya bila JS animasi aktif */
.anim [data-reveal], .anim [data-intro] { opacity: 0; }

/* Transisi tema berbentuk lingkaran */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
