/* ==========================================================================
   Lintas Nusa Kargo, night dispatch rebuild
   The archipelago runs live behind the page; the approved manifest sheets
   float over it in porcelain. Livery: merah over aspal, sinyal for signals.
   Overpass (display + body) · Overpass Mono (waybill chrome, figures)
   ========================================================================== */
:root {
  --night: #0A0E13;
  --night-2: #0D141C;
  --ink: #14181D;
  --porselen: #F2F4F6;
  --kertas: #FFFFFF;
  --kabut: #E1E6EA;
  --baja: #5A646F;
  --merah: #D7282F;
  --sinyal: #1B9E97;
  --on-dark: rgba(242, 244, 246, 0.7);
  --on-dark-dim: rgba(242, 244, 246, 0.45);
  --hairline: rgba(242, 244, 246, 0.14);
  --sans: "Overpass", ui-sans-serif, system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.33, 0, 0.15, 1);
  --pad: clamp(2rem, 4.5vw, 4.25rem);
  --sheet-shadow: 0 60px 110px -50px rgba(0, 0, 0, 0.85), 0 18px 44px -24px rgba(0, 0, 0, 0.7);
  --glass-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; line-height: 1.08; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; background: var(--porselen); color: var(--ink); padding: 0.6rem 1rem; border-radius: 4px; }
::selection { background: rgba(215, 40, 47, 0.85); color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 2.5rem); padding-right: clamp(1.25rem, 4vw, 2.5rem); }
.section { position: relative; padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }

/* ---------- type ---------- */
.display { font-size: clamp(2.5rem, 4.9vw, 4.6rem); line-height: 1.04; color: var(--porselen); text-shadow: 0 2px 30px rgba(7, 10, 14, 0.85); }
h2 { font-size: clamp(2.05rem, 3.6vw, 3.3rem); }
.on-ink { color: var(--porselen); }
.on-ink-soft { color: var(--on-dark); }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--on-dark); }
.kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--merah); margin-bottom: 1rem; }
.kicker.teal { color: var(--sinyal); }
.lede { max-width: 34rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--on-dark); margin-top: 1.6rem; }
.sec-head { max-width: 40rem; }
.sec-head h2 { margin-top: 0; }
.sec-lede { margin-top: 1.1rem; color: var(--baja); font-size: 1.02rem; }
.on-ink + .sec-lede, .sec-lede.on-ink-soft { color: var(--on-dark); }
.red { color: var(--merah); }

/* ---------- livery + manifest chrome ---------- */
.stripe-livery {
  height: 7px;
  background: linear-gradient(to bottom,
    var(--merah) 0, var(--merah) 2px,
    transparent 2px, transparent 5px,
    var(--ink) 5px, var(--ink) 7px);
}
.perf-top {
  position: absolute; top: -6px; left: 0; right: 0; height: 12px; z-index: 3;
  background-image: radial-gradient(circle at center, var(--night) 4px, transparent 4.5px);
  background-size: 26px 12px; background-repeat: repeat-x; background-position: 10px center;
  pointer-events: none;
}
.perf-left {
  position: absolute; top: 0; bottom: 0; left: -6px; width: 12px; z-index: 3;
  background-image: radial-gradient(circle at center, var(--night) 4px, transparent 4.5px);
  background-size: 12px 26px; background-repeat: repeat-y; background-position: center 10px;
  pointer-events: none;
}
.waybill-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--baja);
  border-top: 1px solid var(--kabut); padding-top: 0.55rem;
}

/* ---------- duotone photo treatment ---------- */
.duotone { position: relative; overflow: hidden; background: linear-gradient(150deg, #2A3038 0%, #14181D 60%, #241012 100%); }
.duotone img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.9); }
.duotone::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, rgba(215,40,47,0.42) 0%, rgba(20,24,29,0.55) 62%, rgba(20,24,29,0.8) 100%);
  mix-blend-mode: multiply;
}
.duotone::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.14; mix-blend-mode: overlay;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-red { background: var(--merah); color: #fff; box-shadow: 0 14px 34px -14px rgba(215, 40, 47, 0.65); }
.btn-red:hover { box-shadow: 0 20px 44px -14px rgba(215, 40, 47, 0.8); }
.btn-ghost { border: 1px solid rgba(242, 244, 246, 0.35); color: var(--porselen); }
.btn-ghost:hover { border-color: var(--porselen); }
.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.88rem; }
.btn-full { width: 100%; margin-top: 1.1rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--sinyal); outline-offset: 3px; }

/* ---------- the board (fixed 3D stage / poster) ---------- */
.board { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #10161F 0%, var(--night) 58%, #070A0E 100%); }
.board-3d { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.6s var(--ease); pointer-events: none; }
.board-3d.is-on { opacity: 1; }
.board-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.board-poster.is-missing { display: none; }
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(7, 10, 14, 0.42), rgba(7, 10, 14, 0) 26%, rgba(7, 10, 14, 0) 70%, rgba(7, 10, 14, 0.5)); }
.board-load { position: absolute; left: clamp(1.25rem, 4vw, 2.5rem); right: clamp(1.25rem, 4vw, 2.5rem); top: 5.6rem; height: 1px; background: rgba(242, 244, 246, 0.14); display: none; transition: opacity 0.8s var(--ease); }
.has-webgl .board-load { display: block; }
.board.is-3d .board-load { opacity: 0; }
.board-load-bar { display: block; height: 100%; background: var(--sinyal); transform-origin: 0 50%; transform: scaleX(var(--load, 0)); transition: transform 0.5s var(--ease); }
.board-load-text { position: absolute; left: 0; top: 0.6rem; color: var(--on-dark-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; }
.board-hint { position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 1.4rem; margin: 0; color: var(--on-dark-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0; transition: opacity 1s var(--ease) 1.2s; }
.board.is-3d .board-hint { opacity: 1; }
.port-labels { position: absolute; inset: 0; pointer-events: none; }
.port-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -140%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--porselen);
  background: rgba(13, 18, 25, 0.72); border: 1px solid var(--hairline); border-radius: 3px;
  padding: 0.28rem 0.5rem 0.22rem; white-space: nowrap;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.port-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--on-dark-dim); }
.port-label.is-depot i { background: var(--merah); }
.port-label.is-on { opacity: 1; }
.port-label.is-hot { border-color: rgba(27, 158, 151, 0.7); color: #7BE7DF; }
.port-label.is-hot i { background: var(--sinyal); }

/* ---------- nav ---------- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
#nav.scrolled { background: rgba(10, 14, 19, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 34px -18px rgba(0, 0, 0, 0.9); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); height: 4.25rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--porselen); }
.brand-word { font-weight: 800; letter-spacing: -0.01em; font-size: 15px; line-height: 1.05; text-transform: uppercase; }
.lnk-mark { position: relative; display: inline-block; width: 64px; height: 20px; flex: none; }
.route-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--merah); z-index: 2;
  offset-path: path('M4 15 L22 15 L32 5 L60 5');
  offset-rotate: 0deg;
  animation: dotTravel 9s var(--ease) infinite;
}
@keyframes dotTravel {
  0%   { offset-distance: 0%;   opacity: 1; }
  11%  { offset-distance: 0%; }
  28%  { offset-distance: 54%; }
  41%  { offset-distance: 54%; }
  58%  { offset-distance: 100%; }
  72%  { offset-distance: 100%; opacity: 1; }
  76%  { offset-distance: 100%; opacity: 0; }
  80%  { offset-distance: 0%;   opacity: 0; }
  86%  { offset-distance: 0%;   opacity: 1; }
  100% { offset-distance: 0%;   opacity: 1; }
}
.route-pulse {
  position: absolute; left: 57px; top: 2px; width: 6px; height: 6px; border-radius: 50%;
  border: 2px solid var(--sinyal); opacity: 0; transform: scale(1); pointer-events: none; z-index: 1;
}
.route-pulse.go { animation: pulseOnce 0.9s var(--ease) 1; }
@keyframes pulseOnce {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(3.2); }
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { position: relative; font-size: 0.92rem; font-weight: 600; color: var(--on-dark); padding: 0.3rem 0; transition: color 0.3s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--porselen); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--merah); transition: right 0.35s var(--ease); }
.nav-links a:not(.btn):hover::after { right: 0; }
#menuBtn { display: none; color: var(--porselen); padding: 0.5rem; margin-right: -0.5rem; }

/* mobile manifest sheet */
#mobileSheet { position: fixed; inset: 0; z-index: 60; background: var(--kertas); transform: translateX(100%); transition: transform 0.38s var(--ease); }
#mobileSheet.open { transform: translateX(0); }
.sheet-inner { position: relative; height: 100%; padding: 1.5rem 1.25rem 1.5rem 2rem; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--baja); }
#menuClose { padding: 0.5rem; margin-right: -0.5rem; }
.sheet-nav { margin-top: 2.5rem; display: flex; flex-direction: column; }
.sheet-link { font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; padding: 0.85rem 0; border-bottom: 1px solid var(--kabut); }
.sheet-link .mono { font-size: 11px; color: var(--baja); vertical-align: middle; margin-left: 0.6rem; }
.sheet-cta { margin-top: auto; border-bottom: 0; font-size: 1rem; }
.sheet-foot { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--baja); margin-top: 1.25rem; }

/* ---------- page over the board ---------- */
.page { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 7.5rem; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.hero > .wrap { min-width: 0; width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; perspective: 1200px; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.hero-copy { --hx: 0; position: relative; transform-origin: 50% 100%; transform: translateY(calc(var(--hx) * -8vh)) rotateX(calc(var(--hx) * 12deg)) scale(calc(1 - var(--hx) * 0.05)); opacity: calc(1 - var(--hx) * 1.15); will-change: transform, opacity; }
.hero-copy::before { content: ""; position: absolute; inset: -3rem -5rem -2.5rem -6rem; z-index: -1; background: radial-gradient(90% 85% at 38% 55%, rgba(7, 10, 14, 0.72), rgba(7, 10, 14, 0) 72%); pointer-events: none; }
.hero .lede { color: rgba(242, 244, 246, 0.82); text-shadow: 0 1px 18px rgba(7, 10, 14, 0.9); }
.hero-copy .eyebrow { margin-bottom: 1.6rem; }
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.fw { display: inline-block; position: relative; white-space: nowrap; }
.fw-word { display: inline-block; color: var(--merah); will-change: transform, opacity; text-shadow: 0 0 34px rgba(215, 40, 47, 0.4); }
.fw-word.fw-out { position: absolute; left: 0; top: 0; transition: transform 0.38s var(--ease), opacity 0.38s var(--ease); transform: translateX(-26px); opacity: 0; }
.fw-word.fw-pre { transform: translateX(26px); opacity: 0; }
.fw-word.fw-in  { transition: transform 0.38s var(--ease), opacity 0.38s var(--ease); transform: translateX(0); opacity: 1; }

.unit-card { justify-self: end; width: min(19.5rem, 100%); }
.unit-card .card-inner { position: relative; background: rgba(13, 18, 25, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--hairline); border-radius: 6px; padding: 0.85rem; box-shadow: var(--glass-shadow); }
.unit-photo { aspect-ratio: 3 / 2; border-radius: 3px; }
.unit-stripe { position: absolute; left: -8px; right: -8px; bottom: 4.2rem; z-index: 4; }
.unit-caption { border-top-color: var(--hairline); color: var(--on-dark); margin-top: 0.85rem; }
.unit-caption span { display: inline-flex; align-items: center; gap: 0.45rem; }
.gps-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sinyal); box-shadow: 0 0 8px var(--sinyal); animation: gpsBlink 2.2s var(--ease) infinite; }
@keyframes gpsBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* manifest strip */
.manifest { position: relative; background: var(--kertas); border-radius: 3px; box-shadow: var(--sheet-shadow); }
.manifest-scroll { overflow-x: auto; }
.manifest-row { display: flex; min-width: 720px; }
.manifest-row > div { flex: 1; padding: 1.15rem 1.5rem 1rem; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border-left: 1px solid var(--kabut); }
.manifest-row > div:first-child { border-left: 0; }
.manifest-row span { display: block; font-size: 10px; color: var(--baja); margin-bottom: 0.3rem; }

/* ---------- sheets + glass ---------- */
.sheet { position: relative; background: var(--kertas); border-radius: 4px; box-shadow: var(--sheet-shadow); }
.sheet-pad { padding: var(--pad); }
.sheet-ink { position: relative; background: var(--ink); border: 1px solid var(--hairline); border-radius: 4px; box-shadow: var(--sheet-shadow); }
.glass { background: rgba(13, 18, 25, 0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--hairline); border-radius: 6px; box-shadow: var(--glass-shadow); }

/* ---------- stats / odometer ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
.stat { padding-left: 1.1rem; border-left: 2px solid var(--merah); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--baja); margin-top: 0.8rem; }
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(2.5rem, 3.8vw, 3.4rem); }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-stack { display: flex; flex-direction: column; transform: translateY(0); transition: transform 1.4s var(--ease); }
.odo-stack span { display: block; height: 1em; line-height: 1; }
.odo-static { display: inline-block; height: 1em; line-height: 1; }

/* ---------- services : focus cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.svc-wide { grid-column: span 2; }
.focus-card { background: var(--kertas); border: 1px solid var(--kabut); border-radius: 4px; overflow: hidden; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
@media (hover: hover) {
  .focus-grid:has(.focus-card:hover) .focus-card:not(:hover) { opacity: 0.42; transform: scale(0.985); }
  .focus-grid .focus-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(20, 24, 29, 0.45); }
}
.svc-photo { aspect-ratio: 16 / 7; }
.svc-body { padding: 1.5rem 1.6rem 1.7rem; }
.svc-body .waybill-row { border-top: 0; border-bottom: 1px solid var(--kabut); padding: 0 0 0.6rem; margin-bottom: 1rem; }
.svc-body h3 { font-size: 1.35rem; }
.svc-body p { color: var(--baja); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- network ---------- */
.net { padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.net-caption { max-width: 33rem; padding: clamp(1.8rem, 3vw, 2.8rem); }
.net-spacer { height: 95vh; pointer-events: none; }
.net-poster { padding: clamp(1.8rem, 4vw, 3.5rem); overflow-x: auto; }
.net-poster svg { width: 100%; min-width: 640px; height: auto; display: block; }
.map-line { fill: none; stroke: rgba(225, 230, 234, 0.32); stroke-width: 1; }
.lane { fill: none; stroke: var(--merah); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lane-node { opacity: 0; transition: opacity 0.3s var(--ease); }
.lane-node.lit { opacity: 1; }
.net-legend { display: flex; flex-wrap: wrap; gap: 0.9rem 2.4rem; margin-top: 1.4rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark-dim); }
.leg { display: inline-flex; align-items: center; gap: 0.6rem; }
.leg-lane { display: inline-block; width: 24px; height: 3px; border-radius: 2px; background: var(--merah); }

/* ---------- fleet : glare cards ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.glare-card { position: relative; background: var(--kertas); border: 1px solid var(--kabut); border-radius: 4px; overflow: hidden; }
.glare-card .glare-sweep {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.22) 50%, transparent 58%);
  transform: translateX(-130%); transition: transform 0.65s var(--ease);
}
@media (hover: hover) { .glare-card:hover .glare-sweep { transform: translateX(130%); } }
.fleet-photo { aspect-ratio: 4 / 3; }
.fleet-body { padding: 1.4rem 1.5rem 1.6rem; }
.cap { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; border: 2px solid var(--ink); border-radius: 4px; padding: 0.3rem 0.6rem 0.2rem; }
.fleet-body h3 { font-size: 1.2rem; margin-top: 0.9rem; }
.fleet-body p { color: var(--baja); font-size: 0.92rem; margin-top: 0.4rem; }

/* ---------- reliability : stamps ---------- */
.stamp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.stamp-card { display: flex; flex-direction: column; background: var(--kertas); border: 1px solid var(--kabut); border-radius: 4px; padding: 1.8rem; }
.stamp-card > p { color: var(--baja); font-size: 0.95rem; margin-top: 1.3rem; }
.stamp-card .waybill-row { margin-top: auto; padding-top: 1.1rem; }
.stamp { transform: scale(1.06); opacity: 0; }
.stamp.on { animation: thunk 0.28s var(--ease) forwards; }
@keyframes thunk {
  0%   { transform: scale(1.06); opacity: 0; }
  60%  { transform: scale(0.995); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- clients ---------- */
.client-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.client-quote blockquote { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; }
.quote-cite { display: inline-flex; margin-top: 1.6rem; }
.pics-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--baja); margin-bottom: 1.1rem; }
.avatars { display: flex; align-items: center; }
.avatars .tt-wrap { margin-left: -0.8rem; border-radius: 50%; }
.avatars .tt-wrap:first-child { margin-left: 0; }
.avatar { display: block; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 2px solid var(--kertas); transition: transform 0.3s var(--ease); }
.tt-wrap { position: relative; }
.tt-wrap:hover { z-index: 5; }
.tt-wrap:hover .avatar { transform: translateY(-4px) scale(1.06); }
.tt {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap; z-index: 20; text-align: left;
  background: var(--ink); color: var(--porselen); border-radius: 4px; padding: 0.5rem 0.75rem;
}
.tt-wrap:hover .tt, .tt-wrap:focus-visible .tt, .tt-wrap:focus .tt { opacity: 1; transform: translate(-50%, 0); }
.tt-name { display: block; font-size: 12px; font-weight: 700; line-height: 1.25; }
.tt-role { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-dim); }
.pics-note { color: var(--baja); font-size: 0.92rem; margin-top: 1.3rem; }

/* ---------- estimator ---------- */
.est-head { margin-bottom: 2.6rem; }
.est-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.est-form { padding: clamp(1.8rem, 3.4vw, 3rem); }
.corner-stamp { position: absolute; top: 1.1rem; right: 1.1rem; width: 4rem; height: 4rem; pointer-events: none; opacity: 0.7; }
.form-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--baja); border-bottom: 1px solid var(--kabut); padding-bottom: 0.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.25rem; margin-top: 1.7rem; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--baja); margin-bottom: 0.45rem; }
.field select, .form-send input {
  width: 100%; background: var(--porselen); border: 1px solid var(--kabut); border-radius: 4px;
  padding: 0.7rem 0.8rem; font-family: var(--mono); font-size: 0.88rem; color: var(--ink);
  transition: border-color 0.25s var(--ease);
}
.field select:focus, .form-send input:focus { outline: none; border-color: var(--sinyal); }
.field-wide { grid-column: span 2; }
.stepper-row { display: flex; align-items: center; gap: 0.9rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--kabut); border-radius: 4px; overflow: hidden; }
.stepper button { padding: 0 1.1rem; background: var(--porselen); font-family: var(--mono); font-size: 1.1rem; line-height: 1; transition: background 0.2s var(--ease); }
.stepper button:hover { background: var(--kabut); }
.stepper input { width: 4.5rem; text-align: center; font-family: var(--mono); font-size: 0.9rem; background: var(--kertas); border: 0; border-left: 1px solid var(--kabut); border-right: 1px solid var(--kabut); padding: 0.7rem 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#beratNote { font-size: 11px; color: var(--baja); }
.form-send { margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px dashed var(--kabut); }
.form-send label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--baja); margin-bottom: 0.45rem; }
.form-send input { font-family: var(--sans); }
.form-send input::placeholder { color: rgba(90, 100, 111, 0.6); }
.form-note { font-size: 11px; color: var(--baja); margin-top: 0.85rem; }

.est-out { position: sticky; top: 6rem; padding: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--porselen); }
.out-tag { display: flex; justify-content: space-between; gap: 1rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-dim); border-bottom: 1px solid var(--hairline); padding-bottom: 0.6rem; }
.out-lane { color: var(--porselen); font-weight: 600; }
.out-rows { margin-top: 1.5rem; display: grid; gap: 1.15rem; }
.out-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.out-rows dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-dim); }
.out-rows dd { font-weight: 600; text-align: right; }
.out-big { font-size: 1.75rem; color: #7BE7DF; text-shadow: 0 0 26px rgba(27, 158, 151, 0.45); }
.out-map { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--hairline); }
.out-map svg { width: 100%; height: auto; display: block; }
.mini-lane { fill: none; stroke: var(--merah); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mini-pulse { transform-origin: center; transform-box: fill-box; opacity: 0; }
.mini-pulse.go { animation: pulseOnce 0.9s var(--ease) 1; }
.out-note { font-size: 11px; color: var(--on-dark-dim); margin-top: 0.8rem; }

/* ---------- CTA band ---------- */
.cta { overflow: hidden; background:
  radial-gradient(70% 90% at 50% 128%, rgba(215, 40, 47, 0.22), rgba(215, 40, 47, 0) 62%),
  radial-gradient(50% 60% at 12% -10%, rgba(27, 158, 151, 0.1), rgba(27, 158, 151, 0) 60%),
  var(--ink); }
.boxes-grid { position: absolute; inset: 0; display: grid; z-index: 0; }
.boxes-grid > div { border-right: 1px solid rgba(225,230,234,0.07); border-bottom: 1px solid rgba(225,230,234,0.07); opacity: 0; transition: opacity 0.7s var(--ease); }
.boxes-grid::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(225,230,234,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(225,230,234,0.045) 1px, transparent 1px); background-size: 72px 72px; pointer-events: none; }
.boxes-grid > div.lit { opacity: 0.28; transition: opacity 0.12s var(--ease); }
.cta-inner { position: relative; z-index: 1; text-align: center; padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem); display: grid; justify-items: center; }
.cta-title { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 18ch; }
.cta .sec-lede { max-width: 34rem; }
.cta .btn { margin-top: 2.4rem; }

/* ---------- footer ---------- */
.foot { padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: 3rem; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; font-size: 12px; line-height: 1.75; color: var(--on-dark); border-top: 1px solid var(--hairline); padding-top: 3rem; }
.foot-head { text-transform: uppercase; letter-spacing: 0.14em; color: var(--porselen); margin-bottom: 0.85rem; }
.foot-gap { margin-top: 0.85rem; }
.barcode { display: inline-flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 1rem; }
.barcode i { display: block; background: var(--kabut); opacity: 0.55; height: 100%; }
.foot-code { font-size: 10px; letter-spacing: 0.2em; margin-top: 0.3rem; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: 11px; color: var(--on-dark-dim); }
.credit { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.credit .c1 { color: var(--porselen); }
.credit .cd { color: var(--on-dark-dim); }
.credit .c2 { color: #00E5A0; }
.credit .c3 { color: #FF6B4A; }

/* ==================================================================
   L1 §6 / L2 : scroll-linked [data-3d] transitions. main.js writes --p;
   --p defaults to 1 so nothing is invisible without JS.
   ================================================================== */
[data-3d] { --p: 1; transform-origin: 50% 100%; opacity: calc(var(--p) * 1.25 - 0.25); }
.has-3d [data-3d] { --p: 0; will-change: transform, opacity; }
[data-3d="rise"] { transform: perspective(1400px) rotateX(calc((1 - var(--p)) * 16deg)) translateY(calc((1 - var(--p)) * 64px)) scale(calc(0.955 + var(--p) * 0.045)); }
[data-3d="hinge-left"] { transform-origin: 0% 50%; transform: perspective(1400px) rotateY(calc((1 - var(--p)) * -26deg)) translateX(calc((1 - var(--p)) * -40px)); }
[data-3d="hinge-right"] { transform-origin: 100% 50%; transform: perspective(1400px) rotateY(calc((1 - var(--p)) * 26deg)) translateX(calc((1 - var(--p)) * 40px)); }
[data-3d="lift"] { transform: perspective(1200px) translate3d(0, calc((1 - var(--p)) * 48px), calc((var(--p) - 1) * 140px)) rotateX(calc((1 - var(--p)) * 12deg)); }
[data-3d="foot"] { transform-origin: 50% 100%; transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 38deg)) translateY(calc((1 - var(--p)) * 14%)); }
@media (prefers-reduced-motion: reduce) { .has-3d [data-3d] { --p: 1; } }
@media (max-width: 768px) {
  [data-3d="hinge-left"], [data-3d="hinge-right"] { transform-origin: 50% 100%; transform: perspective(1400px) rotateX(calc((1 - var(--p)) * 16deg)) translateY(calc((1 - var(--p)) * 64px)) scale(calc(0.955 + var(--p) * 0.045)); }
}

/* L1 §5 : tilt + glare on the hero unit card (vanilla Aceternity). */
@media (hover: hover) {
  .tilt-card { perspective: 900px; display: block; }
  .tilt-card .card-visual { transform-style: preserve-3d; }
  .tilt-card .card-inner { transition: transform 0.9s var(--ease); will-change: transform; }
  .tilt-card.is-tilting .card-inner { transition-duration: 0.18s; transition-timing-function: ease-out; }
  .tilt-card .card-inner { transform: rotateX(calc(var(--py, 0) * -8deg)) rotateY(calc(var(--px, 0) * 8deg)) translateZ(calc(var(--lift, 0) * 22px)); }
  .tilt-card .card-inner::after {
    content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(242, 244, 246, 0.16), rgba(242, 244, 246, 0) 52%);
    opacity: 0; transition: opacity 0.5s var(--ease);
  }
  .tilt-card.is-tilting .card-inner::after { opacity: 1; }
}
@media (pointer: coarse) {
  .tilt-card .card-inner { transition: transform 0.3s var(--ease); }
  .tilt-card:active .card-inner { transform: rotateX(3deg) scale(0.985); }
}

/* ==================================================================
   Lesson 5 gate: html.go-full = live board; html.go-poster (or no JS)
   = rendered poster + the drawn chart. Width queries keep only layout.
   ================================================================== */
html.go-full .board-poster { display: none; }
html.go-full .net-poster { display: none; }
html.go-full .net-legend { color: var(--on-dark); }
html:not(.go-full) .board-load, html:not(.go-full) .board-hint, html:not(.go-full) .port-labels { display: none !important; }
html:not(.go-full) .net-spacer { height: 0; }
html:not(.go-full) .net-caption { margin-bottom: 2rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-dot { animation: none !important; offset-distance: 100%; }
  .route-pulse.go, .mini-pulse.go { animation: none !important; opacity: 0 !important; }
  .stamp { transform: none; }
  .stamp.on { animation: none; opacity: 1; }
  .odo-stack { transition: none !important; }
  .fw, .fw-word { transition: none !important; }
  .glare-card .glare-sweep { display: none; }
  .focus-card { transition: opacity 0.2s ease; }
  #mobileSheet { transition: none; }
  .boxes-grid { display: none; }
  .gps-dot { animation: none; }
  .btn, .btn svg, .avatar { transition: none; }
  .hero-copy { transform: none !important; opacity: 1 !important; }
  .board-3d { transition: none; }
}

/* ---------- responsive layout (genuine layout only) ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-wide { grid-column: span 2; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .est-grid { grid-template-columns: 1fr; }
  .est-out { position: static; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .nav-links { display: none; }
  #menuBtn { display: block; }
  .hero { padding-top: 6.5rem; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .unit-card { justify-self: stretch; width: 100%; max-width: 22rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .svc-grid, .fleet-grid, .stamp-grid { grid-template-columns: 1fr; }
  .svc-wide { grid-column: auto; }
  .client-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .net-caption { max-width: none; }
  .net-spacer { height: 70vh; }
  html:not(.go-full) .net-spacer { height: 0; }
  .sheet-pad { padding: clamp(1.5rem, 6vw, 2.2rem); }
  .est-out { position: static; }
}
@media (max-width: 768px) {
  .manifest-row { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
  .manifest-row > div { border-left: 0; border-top: 1px solid var(--kabut); }
  .manifest-row > div:nth-child(-n+2) { border-top: 0; }
  .manifest-row > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}
