/* ==========================================================================
   RAKER 2027 — DE DJOKJA HOTEL
   Design System + Motion Architecture (per SKILL web design.md)
   ========================================================================== */

:root {
  /* Palette: Vintage Yogyakarta Heritage (Editorial Vintage) */
  --bg-page: #f3e5c8;
  /* Parchment */
  --bg-alt: #e9d7b7;
  /* Vintage Paper */
  --bg-surface: #fbf5e8;
  /* Aged Postcard */
  --bg-muted: #dfd0b0;

  --ink-primary: #302017;
  /* Ink Black */
  --ink-secondary: #4b2818;
  /* Dark Java Brown */
  --ink-muted: #6e4e3a;

  --accent-teal: #89502e;
  /* Terracotta */
  --accent-teal-soft: #efe0cb;
  --accent-teal-dark: #4b2818;

  --accent-gold: #89502e;
  /* Terracotta / Antique Gold */
  --accent-gold-bright: #b58a53;
  --accent-gold-soft: #efe2c8;

  --accent-crimson: #c82027;
  --siba-red: #c82027;
  --deep-siba-red: #8f1720;
  --accent-crimson-soft: #fef2f2;

  --border-subtle: rgba(75, 40, 24, 0.16);
  --border-strong: rgba(75, 40, 24, 0.32);

  --shadow-border:
    0px 0px 0px 1px rgba(75, 40, 24, 0.14),
    0px 2px 6px rgba(48, 32, 23, 0.06);
  --shadow-border-hover:
    0px 0px 0px 1px rgba(75, 40, 24, 0.24),
    0px 6px 14px rgba(48, 32, 23, 0.1);
  --shadow-sm: var(--shadow-border);
  --shadow-md: 0 10px 28px rgba(48, 32, 23, 0.1), 0 0 0 1px rgba(75, 40, 24, 0.16);
  --shadow-lg: 0 24px 56px rgba(48, 32, 23, 0.18), 0 0 0 1px rgba(75, 40, 24, 0.2);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* Typography */
  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-slab: "Roboto Slab", "Oswald", Georgia, serif;
  --font-mono: "Lora", Georgia, serif;

  /* Motion Tokens (SKILL web design.md — Emil Kowalski) */
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-hover: ease;

  --dur-micro: 120ms;
  --dur-ui: 200ms;
  --dur-move: 240ms;
  --dur-modal-in: 240ms;
  --dur-modal-out: 190ms;
  /* ~20% faster exit */
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding-top: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
.section-subtitle,
.dc-desc,
.inspector-desc {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-page);
  border-bottom: 2px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(48, 32, 23, 0.06);
  transition: min-height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink-primary);
  color: #f6e7c8;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-micro) var(--ease-out-cubic), color var(--dur-micro) var(--ease-hover), background-color var(--dur-micro) var(--ease-hover);
}

.nav-link:active {
  transform: scale(0.96);
}

.nav-icon {
  display: none;
  flex-shrink: 0;
}

.site-header.is-scrolled .nav-icon {
  display: block;
}

.site-header.is-scrolled .nav-label {
  display: none;
}

.site-header.is-scrolled .nav-link {
  width: 44px;
  padding: 0;
  box-shadow: var(--shadow-border);
  background: var(--bg-surface);
}

.site-header.is-scrolled .nav-link.is-active {
  background: var(--ink-primary);
  color: #f3e5c8;
  box-shadow: none;
}

.site-header.is-scrolled .header-inner {
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header.is-scrolled .brand-text {
  display: none;
}

.nav-link.is-active {
  color: var(--ink-primary);
  background: rgba(20, 25, 31, 0.06);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--ink-primary);
    background: rgba(20, 25, 31, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link {
    transition: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out-cubic), box-shadow 150ms var(--ease-out-cubic), background-color var(--dur-micro) var(--ease-hover), color var(--dur-micro) var(--ease-hover);
}

.btn-icon:active {
  transform: scale(0.96);
}

.btn-icon.is-loading .icon-spin-target {
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-icon:hover {
    color: var(--ink-primary);
    background: var(--bg-alt);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-icon,
  .btn-icon.is-loading .icon-spin-target {
    transition: none;
    animation: none;
  }
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-border);
  background: var(--bg-surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out-cubic), box-shadow 150ms var(--ease-out-cubic), background-color var(--dur-micro) var(--ease-hover);
}

.sync-pill:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .sync-pill:hover {
    border-color: var(--border-strong);
    background: var(--bg-alt);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sync-pill {
    transition: none;
  }
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold-bright);
  flex-shrink: 0;
}

.sync-dot.is-live {
  background: #10b981;
}

.sync-dot.is-error {
  background: var(--accent-crimson);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out-cubic), box-shadow 150ms var(--ease-out-cubic), background-color 150ms var(--ease-hover), color 150ms var(--ease-hover);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--ink-primary);
  color: #ffffff;
  padding-left: 20px;
  padding-right: 18px;
  /* optical alignment: icon-side = text-side - 2px */
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  box-shadow: var(--shadow-border);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow-border);
  background: var(--bg-surface);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out-cubic), box-shadow 150ms var(--ease-out-cubic), background-color 150ms var(--ease-hover);
}

.btn-outline-sm:active {
  transform: scale(0.96);
}

.btn-link {
  background: none;
  border: none;
  padding: 8px 4px;
  min-height: 44px;
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #242d37;
  }

  .btn-secondary:hover,
  .btn-outline-sm:hover {
    background: var(--bg-alt);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn,
  .btn-outline-sm {
    transition: none;
  }
}

/* ==========================================================================
   SECTION 1: HERO / INVITATION
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
}

.hero-ornament {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 420px;
  height: 420px;
  color: var(--accent-gold);
  opacity: 0.065;
  pointer-events: none;
}

/* Slow-animated Wayang & Candi Prambanan Silhouette Vectors */
@keyframes wayangSway {
  from {
    transform: translateY(0) rotate(-1.5deg);
  }

  to {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes prambananDrift {
  from {
    transform: translateX(-12px);
  }

  to {
    transform: translateX(12px);
  }
}

.bg-wayang-left {
  position: absolute;
  left: -24px;
  top: 40px;
  width: 190px;
  color: var(--ink-secondary);
  opacity: 0.065;
  pointer-events: none;
  animation: wayangSway 12s ease-in-out infinite alternate;
}

.bg-prambanan-horizon {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: 0;
  height: 150px;
  color: var(--ink-secondary);
  opacity: 0.055;
  pointer-events: none;
  animation: prambananDrift 18s ease-in-out infinite alternate;
}

@keyframes truckCruise {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-18px);
  }
}

.bg-truck-right {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 260px;
  color: var(--accent-teal);
  opacity: 0.085;
  pointer-events: none;
  animation: truckCruise 16s ease-in-out infinite alternate;
}

.bg-prambanan-horizon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {

  .bg-wayang-left,
  .bg-prambanan-horizon,
  .bg-truck-right {
    animation: none;
  }
}

/* Hero Split & Stagger Enter Animation (infrequent first-load entrance) */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.invitation-copy>.eyebrow-badge,
.invitation-copy>.hero-title,
.invitation-copy>.hero-lead,
.invitation-copy>.meta-cards,
.invitation-copy>.hero-cta-row {
  opacity: 0;
  animation: heroEnter 400ms var(--ease-out-cubic) forwards;
}

.invitation-copy>.eyebrow-badge {
  animation-delay: 0ms;
}

.invitation-copy>.hero-title {
  animation-delay: 90ms;
}

.invitation-copy>.hero-lead {
  animation-delay: 180ms;
}

.invitation-copy>.meta-cards {
  animation-delay: 260ms;
}

.invitation-copy>.hero-cta-row {
  animation-delay: 340ms;
}

@media (prefers-reduced-motion: reduce) {

  .invitation-copy>.eyebrow-badge,
  .invitation-copy>.hero-title,
  .invitation-copy>.hero-lead,
  .invitation-copy>.meta-cards,
  .invitation-copy>.hero-cta-row {
    opacity: 1;
    animation: none;
  }
}

/* Full-page loopable Vintage Batik Parang Background */
@keyframes doodleDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 480px 480px;
  }
}

.page-doodle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/bg-batik-parang.webp");
  background-repeat: repeat;
  background-size: 480px 480px;
  mix-blend-mode: multiply;
  opacity: 0.085;
  pointer-events: none;
  animation: doodleDrift 45s linear infinite;
}

main,
.site-footer {
  position: relative;
  z-index: 10;
}

/* Gunungan Wayang Ornaments — Dalang Pendulum Motion */
@keyframes gununganDalang {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-8deg) translateY(-3px);
  }

  50% {
    transform: rotate(0deg) translateY(0);
  }

  75% {
    transform: rotate(8deg) translateY(-3px);
  }

  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.gunungan-ornament {
  position: fixed;
  bottom: -6vw;
  width: 32vw;
  z-index: 2;
  pointer-events: none;
  opacity: 0.88;
  transform-origin: 50% 95%;
  /* Bottom wooden handle pivot */
  will-change: transform;
}

.gunungan-ornament img {
  width: 100%;
  height: auto;
  display: block;
}

.gunungan-left {
  left: -10vw;
  animation: gununganDalang 5s ease-in-out 0s infinite;
}

.gunungan-right {
  right: -10vw;
  animation: gununganDalang 5s ease-in-out -2.5s infinite;
}

@media (max-width: 1024px) {
  .gunungan-ornament {
    width: 26vw;
    opacity: 0.72;
  }
}

@media (max-width: 640px) {
  .gunungan-ornament {
    width: 22vw;
    bottom: -4vw;
    opacity: 0.28;
  }

  .gunungan-left {
    left: -8vw;
  }

  .gunungan-right {
    right: -8vw;
  }
}

@media (prefers-reduced-motion: reduce) {

  .page-doodle-bg,
  .gunungan-left,
  .gunungan-right {
    animation: none;
  }
}

.invitation-frame {
  position: relative;
  background: rgba(251, 245, 232, 0.88);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.invitation-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.hero-subtitle-serif {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  line-height: 1.2;
  color: var(--accent-teal);
}

.hero-lead {
  margin-top: 18px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  width: 100%;
  max-width: 100%;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: wrap;
}

.meta-cards {
  display: grid;
  grid-template-columns: 1.02fr 1.22fr;
  gap: 12px;
  margin-top: 22px;
  overflow: visible;
  align-items: stretch;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #FFF5E3;
  background: linear-gradient(135deg, #FFF8EC 0%, #F5E8D0 100%);
  border: 1px solid #D6B985;
  box-shadow: 0 4px 14px rgba(66, 43, 32, 0.05);
}

.meta-card-location {
  position: relative;
  justify-content: space-between;
  overflow: visible;
}

.meta-card-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.meta-card-bg-sketch {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  pointer-events: none;
  opacity: 0.75;
  z-index: 1;
}

.meta-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(184, 121, 54, 0.12);
  color: #713C29;
  border: 1px solid rgba(214, 185, 133, 0.6);
  flex-shrink: 0;
}

.meta-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #713C29;
  font-weight: 700;
}

.meta-value {
  display: block;
  font-size: 1.08rem;
  color: #422B20;
  margin-top: 1px;
  font-weight: 700;
}

.meta-sub {
  display: block;
  font-size: 0.82rem;
  color: #713C29;
  font-weight: 500;
}

/* 2-Column Compact Calendar Date Card */
.meta-card-date {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #FFFCF7;
  border: 1px solid rgba(214, 185, 133, 0.75);
  box-shadow: 0 6px 18px rgba(66, 43, 32, 0.07);
  align-items: stretch;
}

.date-card-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 10px 18px 12px;
  border-right: 1px solid rgba(214, 185, 133, 0.35);
  background: #FFFBF4;
  overflow: hidden;
  min-width: 0;
}

.date-card-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FDEAEA;
  color: #B91C1C;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  position: relative;
  z-index: 2;
}

.date-card-icon-box svg {
  width: 16px;
  height: 16px;
}

.date-card-kicker {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6B5B53;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.date-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1F1714;
  line-height: 1.2;
  margin-top: 3px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.date-card-accent-bar {
  width: 24px;
  height: 2.5px;
  border-radius: 999px;
  background: #C82027;
  margin: 6px 0 7px;
  position: relative;
  z-index: 2;
}

.date-card-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  font-weight: 600;
  color: #4A3B34;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.date-card-duration svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.date-card-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 26px;
  pointer-events: none;
  z-index: 1;
}

.date-card-calendar {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
  min-width: 0;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cal-month-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1F1714;
}

.cal-nav-btn {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #F6F1EA;
  color: #6B5B53;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  user-select: none;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.54rem;
  font-weight: 700;
  color: #6B5B53;
  margin-bottom: 3px;
}

.cal-weekdays .is-weekend {
  color: #B91C1C;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
  text-align: center;
  font-size: 0.61rem;
  font-weight: 600;
  color: #2A201C;
}

.cal-days span {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-days .is-muted {
  color: #B8ADA6;
}

.cal-days .is-weekend {
  color: #B91C1C;
}

.cal-days .is-range-start,
.cal-days .is-range-mid,
.cal-days .is-range-end {
  background: linear-gradient(180deg, #D3242B 0%, #B0181F 100%);
  color: #FFFFFF;
  font-weight: 800;
}

.cal-days .is-range-start {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.cal-days .is-range-end {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

@media (max-width: 350px) {
  .meta-card-date {
    grid-template-columns: 1fr;
  }

  .date-card-left {
    align-items: center;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid rgba(214, 185, 133, 0.35);
    padding: 18px 16px 22px;
  }

  .date-card-calendar {
    padding: 14px 12px;
  }
}

/* Floating Vintage Polaroid Travel Memory Frame */
.polaroid-hotel-wrapper {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  cursor: pointer;
  perspective: 800px;
}

.polaroid-sparkles {
  position: absolute;
  top: -14px;
  right: -10px;
  z-index: 4;
  pointer-events: none;
  animation: sparklePulse 3s ease-in-out infinite alternate;
}

@keyframes sparklePulse {
  0% {
    transform: scale(0.85) rotate(0deg);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.15) rotate(14deg);
    opacity: 1;
  }
}

.polaroid-frame {
  width: 118px;
  background: #FFFCF3;
  padding: 6px 6px 20px 6px;
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(70, 40, 20, 0.20), 0 2px 6px rgba(70, 40, 20, 0.08);
  border: 1px solid rgba(214, 185, 133, 0.45);
  transform: rotate(-5deg);
  transform-origin: center center;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease;
  animation: polaroidEntrance 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards, polaroidFloat 4s ease-in-out infinite alternate 900ms;
  will-change: transform;
  user-select: none;
}

@keyframes polaroidEntrance {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes polaroidFloat {
  0% {
    transform: translateY(0px) rotate(-5deg);
  }

  100% {
    transform: translateY(-9px) rotate(-2deg);
  }
}

.polaroid-hotel-wrapper:hover .polaroid-frame,
.polaroid-hotel-wrapper:focus-visible .polaroid-frame {
  animation-play-state: paused;
  transform: translateY(-12px) rotate(0deg) scale(1.05);
  box-shadow: 0 16px 30px rgba(70, 40, 20, 0.28), 0 4px 10px rgba(70, 40, 20, 0.12);
}

.polaroid-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: #2A1A12;
}

.polaroid-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.polaroid-hotel-wrapper:hover .polaroid-photo-img {
  transform: scale(1.06);
}

.polaroid-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.polaroid-caption {
  margin-top: 6px;
  font-family: var(--font-display), "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 0.52rem;
  font-weight: 700;
  color: #422B20;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
}

.polaroid-caption-ornament {
  font-size: 0.55rem;
  color: #B87936;
}

@media (prefers-reduced-motion: reduce) {
  .polaroid-frame {
    animation: none !important;
    transform: rotate(-3deg) !important;
  }

  .polaroid-sparkles {
    animation: none !important;
  }
}

/* Hotel Photo Lightbox Modal */
.hotel-modal-dialog {
  max-width: 620px;
}

.hotel-modal-frame {
  background: #FFFCF3;
  padding: 12px 12px 28px;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(70, 40, 20, 0.25);
  border: 1px solid rgba(214, 185, 133, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hotel-modal-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hotel-modal-caption {
  margin-top: 14px;
  padding: 0 8px;
}

.hotel-modal-caption strong {
  font-family: var(--font-display), "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  color: #422B20;
  display: block;
}

.hotel-modal-caption p {
  font-size: 0.82rem;
  color: #713C29;
  margin-top: 4px;
  line-height: 1.4;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Vintage Indonesian Cinema Ticket Collage — Digital Event Pass */
@keyframes ticketFloat {

  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-4deg) translateY(-6px);
  }
}

@keyframes reelSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes projectorFlicker {

  0%,
  100% {
    opacity: 0.28;
  }

  45% {
    opacity: 0.36;
  }

  50% {
    opacity: 0.16;
  }

  55% {
    opacity: 0.34;
  }
}

.invitation-pass {
  position: relative;
  padding: 18px 14px 22px;
  perspective: 900px;
}

.ticket-backing-stub {
  position: absolute;
  inset: 14px 8px 18px 18px;
  background: #dfcca6;
  border: 2px solid #542b18;
  border-radius: 5px;
  transform: rotate(4.5deg);
  box-shadow: 0 10px 24px rgba(56, 35, 25, 0.14);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  pointer-events: none;
}

.stub-vertical-text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #542b18;
  opacity: 0.72;
}

.ticket-curved-filmstrip {
  position: absolute;
  top: -12px;
  left: -18px;
  width: calc(100% + 36px);
  height: 82px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.ticket-projector {
  position: absolute;
  top: -16px;
  left: -20px;
  width: 96px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(48, 32, 23, 0.2));
}

.projector-beam {
  animation: projectorFlicker 3.2s ease-in-out infinite;
}

.ticket-reel {
  position: absolute;
  right: -22px;
  bottom: -10px;
  width: 92px;
  height: 92px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(48, 32, 23, 0.24));
  animation: reelSpin 22s linear infinite;
}

.ticket-main-sheet {
  position: relative;
  z-index: 2;
  background: #f3e5c8;
  color: #382319;
  border-radius: 4px;
  padding: 10px;
  border: 2px solid #542b18;
  box-shadow:
    0 16px 34px rgba(56, 35, 25, 0.22),
    0 4px 10px rgba(56, 35, 25, 0.1);
  transform: rotate(-5deg);
  transition: transform 300ms var(--ease-out-cubic), box-shadow 300ms var(--ease-out-cubic);
  animation: ticketFloat 6s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .invitation-pass:hover .ticket-main-sheet {
    animation-play-state: paused;
    transform: rotate(0deg) translateY(-5px);
    box-shadow:
      0 22px 42px rgba(56, 35, 25, 0.26),
      0 6px 14px rgba(56, 35, 25, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {

  .ticket-main-sheet,
  .ticket-reel,
  .projector-beam {
    animation: none;
    transform: none;
    transition: none;
  }
}

.title-big {
  display: block;
  font-family: "Clarendon Bold", "Besley", "Cinzel", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #8c3024;
  transform: rotate(-1.5deg);
}

.title-sub {
  display: block;
  font-family: "Cinzel", "Lobster", Georgia, serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #542b18;
  margin-top: 3px;
}

.ticket-inner-border {
  position: relative;
  border: 1.5px dashed #8c3024;
  border-radius: 3px;
  padding: 20px 20px 18px;
  overflow: hidden;
}

.ticket-film-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg,
      #542b18 0 10px,
      transparent 10px 16px);
  opacity: 0.78;
}

.ticket-watermark {
  position: absolute;
  right: 4px;
  bottom: 34px;
  width: 96px;
  height: 96px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
}

.tugu-8bit-svg {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  animation: tugu8BitBob 2.4s steps(4, end) infinite;
}

.tugu-sparkle {
  animation: tuguSparkle 1.4s steps(2, end) infinite;
}

.tugu-sparkle.s2 {
  animation-delay: 0.45s;
}

.tugu-sparkle.s3 {
  animation-delay: 0.9s;
}

@keyframes tugu8BitBob {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-3px) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-4px) rotate(0deg);
  }

  75% {
    transform: translateY(-2px) rotate(1.5deg);
  }
}

@keyframes tuguSparkle {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tugu-8bit-svg,
  .tugu-sparkle {
    animation: none;
  }
}

.pass-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.pass-tag {
  display: block;
  font-family: "Oswald", var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8c3024;
}

.ticket-event-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #542b18;
  line-height: 1.15;
  margin-top: 2px;
}

.ticket-code-group {
  text-align: right;
  flex-shrink: 0;
}

.pass-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  background: #542b18;
  color: #f3e5c8;
}

.ticket-serial {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8c3024;
  letter-spacing: 0.06em;
}

.pass-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.pass-stat {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(84, 43, 24, 0.18);
  border-radius: 4px;
  padding: 10px 6px;
}

.pass-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 700;
  color: #542b18;
}

.pass-stat-label {
  display: block;
  font-size: 0.72rem;
  color: #6e4e3a;
}

.pass-divider {
  position: relative;
  display: flex;
  align-items: center;
  margin: 18px -20px;
}

.notch {
  width: 12px;
  height: 20px;
  background: #fbf5e8;
  border: 1.5px solid #542b18;
  border-radius: 0 12px 12px 0;
}

.notch-right {
  border-radius: 12px 0 0 12px;
}

.dashed-line {
  flex: 1;
  border-top: 1.5px dashed rgba(84, 43, 24, 0.35);
}

.pass-route-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pass-route-stop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pass-route-stop small {
  display: block;
  font-size: 0.72rem;
  color: #6e4e3a;
}

.pass-route-stop strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: #382319;
}

.stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stop-dot.is-origin {
  background: #c18a3d;
}

.stop-dot.is-venue {
  background: #8c3024;
  box-shadow: 0 0 0 4px rgba(140, 48, 36, 0.18);
}

.stop-dot.is-return {
  background: #542b18;
}

.pass-route-line {
  width: 2px;
  height: 14px;
  margin-left: 4px;
  background: rgba(84, 43, 24, 0.25);
}

.pass-footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(84, 43, 24, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pass-sync-note {
  font-size: 0.72rem;
  color: #6e4e3a;
}

.ticket-stamp {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8c3024;
  border: 1.5px solid #8c3024;
  padding: 2px 7px;
  border-radius: 3px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .invitation-pass {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .invitation-pass {
    max-width: 100%;
    transform: none;
    animation: none;
  }

  .ticket-watermark {
    width: 72px;
    height: 72px;
    right: 4px;
    bottom: 28px;
    opacity: 0.36;
  }
}

/* Dress Code Section */
.dresscode-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.section-mini-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-kicker {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-weight: 700;
}

.mini-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.mini-hint {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.dresscode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dresscode-card {
  text-align: left;
  background: var(--bg-page);
  border: none;
  box-shadow: var(--shadow-border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--dur-ui) var(--ease-out-cubic), box-shadow 150ms var(--ease-out-cubic), background-color 150ms var(--ease-hover);
}

.dresscode-card:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .dresscode-card:hover {
    transform: translateY(-2px);
    background: var(--bg-surface);
    box-shadow: var(--shadow-border-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dresscode-card {
    transition: none;
  }
}

.dc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-day-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.dc-day-pill.is-day1 {
  background: #ffffff;
  border: 1px solid #d6d0c4;
  color: var(--ink-primary);
}

.dc-day-pill.is-day2 {
  background: var(--accent-teal-soft);
  color: var(--accent-teal-dark);
}

.dc-day-pill.is-day3 {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.dc-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.dc-attire {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.35;
}

.dc-desc {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  flex: 1;
}

.dc-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dc-link-label {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-teal);
}

/* ==========================================================================
   COMMON SECTION HEADERS
   ========================================================================== */
.section {
  padding: 68px 0;
}

.section-alt {
  background: rgba(233, 215, 183, 0.72);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 8px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  max-width: 64ch;
}

.data-source-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 2: INTERACTIVE FIELD MAP & RUNDOWN
   ========================================================================== */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.segmented-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #F1E2C5;
  border: 1px solid #DCC49B;
  box-shadow: 0 2px 8px rgba(64, 41, 30, 0.05);
}

.segmented-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: #79352A;
  will-change: transform;
  transition: transform var(--dur-move) var(--ease-in-out-cubic), opacity var(--dur-micro) var(--ease-out-cubic);
  pointer-events: none;
}

.segmented-tab {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: #543D2B;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms var(--ease-hover);
}

.segmented-tab.is-active {
  color: #FFF5E3;
}

@media (prefers-reduced-motion: reduce) {

  .segmented-indicator,
  .segmented-tab {
    transition: none;
  }
}

.phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #543D2B;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.phase-berangkat {
  background: #B65A28;
}

.phase-hotel {
  background: #397B91;
}

.phase-raker {
  background: #287D65;
}

.phase-ishoma,
.phase-budaya {
  background: #C49349;
}

.phase-pulang {
  background: #52647D;
}

.fieldmap-workspace {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr;
  gap: 20px;
  align-items: stretch;
}

.fieldmap-panel {
  background: #FFF5E3;
  border: 1px solid #DCC49B;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(64, 41, 30, 0.05);
  display: flex;
  flex-direction: column;
}

.fieldmap-canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.map-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.compass-icon {
  color: var(--accent-gold);
  font-size: 1rem;
}

.map-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-step {
  position: relative;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform var(--dur-micro) var(--ease-out-cubic), background-color 150ms var(--ease-hover);
}

.btn-step:active {
  transform: scale(0.97);
}

.btn-step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .btn-step:not(:disabled):hover {
    background: var(--bg-muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-step {
    transition: none;
  }
}

.fieldmap-viewport {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(23, 54, 93, 0.22);
  background: #EAF5FF;
}

.fieldmap-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.zone-title {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: #17365D;
}

.zone-title.is-venue {
  fill: #C8102E;
}

.zone-sub {
  font-size: 10.5px;
  fill: #17365D;
  font-weight: 600;
}

.subzone-label {
  font-size: 11.5px;
  font-weight: 700;
  fill: #17365D;
}

.subzone-sub {
  font-size: 9.5px;
  fill: #59616B;
}

.route-base-path {
  fill: none;
  stroke: #C8102E;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px #FFFFFF) drop-shadow(0 2px 4px rgba(23, 54, 93, 0.2));
}

.route-unconfirmed-path {
  fill: none;
  stroke: rgba(89, 97, 107, 0.5);
  stroke-width: 3;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
}

.route-active-path {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.5;
  stroke-dasharray: 8 7;
  stroke-linecap: round;
  transition: opacity var(--dur-ui) var(--ease-out-cubic);
}

.map-venue-card {
  cursor: pointer;
  transition: transform 200ms ease;
}

.map-venue-card:hover {
  opacity: 0.96;
}

.map-vehicle-bus {
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(48, 32, 23, 0.35));
}

/* Active Pin Halo — moves on screen with ease-in-out */
.active-pin-halo {
  will-change: transform;
  transition: transform var(--dur-move) var(--ease-in-out-cubic), opacity var(--dur-ui) var(--ease-out-cubic);
  pointer-events: none;
}

.halo-ring-outer {
  fill: rgba(200, 16, 46, 0.24);
  stroke: rgba(200, 16, 46, 0.55);
  stroke-width: 1.5;
  animation: haloPulse 1.6s ease-in-out infinite;
}

.halo-ring-inner {
  fill: rgba(255, 215, 0, 0.28);
  stroke: #C8102E;
  stroke-width: 2;
}

@keyframes haloPulse {

  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

.map-pin.is-active .map-pin-circle {
  filter: drop-shadow(0 0 8px rgba(200, 16, 46, 0.9)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.7));
  stroke: #FFFFFF;
  stroke-width: 2.2;
}

/* Map Waypoint Pin */
.map-pin {
  cursor: pointer;
}

.map-pin-circle {
  stroke: #ffffff;
  stroke-width: 2;
  transition: transform var(--dur-micro) var(--ease-out-cubic);
  transform-box: fill-box;
  transform-origin: bottom center;
  filter: drop-shadow(0 3px 4px rgba(48, 32, 23, 0.28));
}

.map-pin-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.map-pin:hover .map-pin-tooltip,
.map-pin:focus-visible .map-pin-tooltip,
.map-pin.is-active .map-pin-tooltip {
  opacity: 1;
}

.map-pin-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  fill: #ffffff;
  pointer-events: none;
}

.map-pin-label-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(20, 25, 31, 0.12);
  stroke-width: 1;
}

.map-pin-label {
  font-size: 10px;
  font-weight: 600;
  fill: #14191f;
  pointer-events: none;
}

.map-pin.is-active .map-pin-circle {
  transform: scale(1.18);
}

.map-pin.is-active .map-pin-label-bg {
  fill: #14191f;
  stroke: #14191f;
}

.map-pin.is-active .map-pin-label {
  fill: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .map-pin:hover .map-pin-circle {
    transform: scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {

  .route-active-path,
  .active-pin-halo,
  .map-pin-circle {
    transition: none;
  }
}

/* Checkpoint Inspector */
.checkpoint-inspector {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: opacity var(--dur-ui) var(--ease-out-cubic), transform var(--dur-ui) var(--ease-out-cubic);
}

.checkpoint-inspector.is-swapping {
  opacity: 0.72;
  transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
  .checkpoint-inspector {
    transition: none;
  }
}

.inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.inspector-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-day,
.badge-phase,
.badge-time,
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-day {
  background: var(--ink-primary);
  color: #ffffff;
}

.badge-phase {
  background: var(--accent-teal-soft);
  color: var(--accent-teal-dark);
  text-transform: capitalize;
}

.badge-time {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  border: 0.2px solid var(--border-subtle);
  color: var(--ink-secondary);
}

.badge-status {
  background: #ffffff;
  color: #1a1a1a;
}

.inspector-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.inspector-desc {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.inspector-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.insp-meta-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.insp-meta-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-primary);
  margin-top: 2px;
}

/* Right: Rundown List Panel — Vintage Yogyakarta Heritage */
.rundown-panel {
  background: #FFF5E3;
  border: 1px solid #DCC49B;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(64, 41, 30, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.rundown-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(220, 196, 155, 0.6);
  flex-shrink: 0;
}

.rundown-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rundown-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #79352A;
  color: #FFF5E3;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(121, 53, 42, 0.25);
  flex-shrink: 0;
}

.rundown-header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rundown-title {
  font-family: var(--font-display), "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #40291E;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.rundown-count {
  font-size: 0.8rem;
  color: #94765B;
  margin-top: 2px;
  font-weight: 500;
}

.rundown-search-wrap {
  position: relative;
  width: 215px;
  max-width: 100%;
  flex-shrink: 0;
  transition: width 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rundown-search-wrap:focus-within {
  width: 268px;
}

.rundown-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 245, 227, 0.72);
  pointer-events: none;
  transition: color 200ms ease, transform 200ms ease;
}

.rundown-search-wrap:focus-within .rundown-search-icon {
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.06);
}

.rundown-search-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px 8px 38px;
  border-radius: 6px;
  border: 1px solid rgba(220, 196, 155, 0.45);
  background: rgba(32, 20, 15, 0.92);
  color: #FFF5E3;
  font-size: 0.83rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(48, 32, 23, 0.14);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.rundown-search-input::placeholder {
  color: rgba(255, 245, 227, 0.58);
}

.rundown-search-input:hover {
  background: rgba(24, 15, 11, 0.96);
  border-color: rgba(220, 196, 155, 0.75);
}

.rundown-search-input:focus {
  outline: none;
  border-color: #C82027;
  background: #140D0A;
  box-shadow: 0 6px 20px rgba(20, 13, 10, 0.28), 0 0 0 2px rgba(200, 32, 39, 0.25);
}

.rundown-search-input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.7);
  cursor: pointer;
}

.rundown-timeline-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin-top: 14px;
}

.rundown-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 8px 24px 8px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #DCC49B transparent;
  scroll-behavior: smooth;
}

.rundown-list::-webkit-scrollbar {
  width: 6px;
}

.rundown-list::-webkit-scrollbar-track {
  background: transparent;
}

.rundown-list::-webkit-scrollbar-thumb {
  background-color: #DCC49B;
  border-radius: 6px;
}

.rundown-list::before {
  content: none;
  display: none;
}

.rundown-item {
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  min-height: 84px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid #DCC49B;
  background: #FFF5E3;
  box-shadow: 0 2px 8px rgba(64, 41, 30, 0.05);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.rundown-item:hover {
  transform: translateX(4px);
  background: #FFFDF8;
  border-color: #C49349;
  box-shadow: 0 6px 16px rgba(64, 41, 30, 0.09);
}

.rundown-item:active {
  transform: translateX(2px) scale(0.99);
}

.rundown-item.is-active {
  background: #FFFBF2;
  border-color: #79352A;
  box-shadow: 0 6px 20px rgba(121, 53, 42, 0.16), inset 0 0 0 1.5px #79352A;
}

@media (prefers-reduced-motion: reduce) {
  .rundown-item {
    transition: none !important;
    transform: none !important;
  }
}

.ri-timeline-node {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.ri-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #FFF5E3;
  box-shadow: 0 0 0 1px #B88A4B;
  background: #B88A4B;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.rundown-item:hover .ri-dot {
  transform: scale(1.25);
}

.rundown-item.is-active .ri-dot {
  transform: scale(1.35);
  border-color: #FFF5E3;
  box-shadow: 0 0 0 2px #79352A;
  background: #79352A !important;
}

.ri-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  transition: transform 200ms ease;
}

.rundown-item:hover .ri-badge {
  transform: scale(1.03);
}

.ri-badge-num {
  font-family: var(--font-display), "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ri-badge-month {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.95;
}

.ri-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  z-index: 2;
}

.ri-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ri-header-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ri-cat-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #A65D35;
  flex-shrink: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.ri-cat-icon svg {
  width: 17px;
  height: 17px;
}

.rundown-item:hover .ri-cat-icon {
  color: #79352A;
  transform: scale(1.08);
}

.rundown-item.is-active .ri-cat-icon {
  color: #79352A;
}

.ri-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94765B;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.ri-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #DCC49B;
  background: rgba(245, 231, 201, 0.45);
  font-family: var(--font-sans), monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #40291E;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.rundown-item:hover .ri-time-pill {
  background: #FFF5E3;
  border-color: #C49349;
}

.rundown-item.is-active .ri-time-pill {
  background: #79352A;
  border-color: #79352A;
  color: #FFF5E3;
}

.ri-clock-icon {
  color: #A65D35;
  transition: color 180ms ease;
}

.rundown-item.is-active .ri-clock-icon {
  color: #FFF5E3;
}

.ri-title {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #40291E;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.ri-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.77rem;
  color: #94765B;
  line-height: 1.25;
  margin-top: 1px;
  white-space: normal;
  word-break: break-word;
}

.ri-loc-icon {
  color: #A65D35;
  flex-shrink: 0;
}

.ri-flourish {
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  line-height: 0;
  transition: opacity 200ms ease;
}

.rundown-item:hover .ri-flourish {
  opacity: 0.75;
}

.rundown-item.is-active .ri-flourish {
  opacity: 0.7;
}

/* ==========================================================================
   SECTION 3: PARTICIPANT TABLE
   ========================================================================== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(107, 29, 36, 0.14);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(40, 25, 15, 0.05);
  border-top: 3px solid #6B1D24;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 29, 36, 0.10);
}

.kpi-label {
  display: block;
  font-size: 0.76rem;
  color: #6C5547;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.65rem;
  font-weight: 700;
  color: #2B2118;
}

.kpi-value.is-teal {
  color: #166534;
}

.kpi-value.is-amber {
  color: #92400E;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1 1 290px;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C6A54;
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px 8px 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(107, 29, 36, 0.22);
  background: #FFFFFF;
  font-size: 0.88rem;
  color: #2B2118;
  box-shadow: 0 1px 3px rgba(40, 25, 15, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-input:focus {
  outline: none;
  border-color: #6B1D24;
  box-shadow: 0 0 0 3px rgba(107, 29, 36, 0.12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.select-input {
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(107, 29, 36, 0.22);
  background: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 500;
  color: #3D291D;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(40, 25, 15, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.select-input:hover {
  border-color: #6B1D24;
}

.select-input:focus {
  outline: none;
  border-color: #6B1D24;
  box-shadow: 0 0 0 3px rgba(107, 29, 36, 0.12);
}

.table-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(107, 29, 36, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(40, 25, 15, 0.07);
  overflow: hidden;
}

/* Max 15 baris peserta terlihat vertikal, selebihnya di-scroll secara smooth */
.table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 715px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 29, 36, 0.4) rgba(181, 138, 83, 0.08);
}

.table-scroll::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(181, 138, 83, 0.08);
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(107, 29, 36, 0.35);
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #6B1D24;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.88rem;
}

/* Sticky Header tetap terkunci saat scroll vertikal */
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #FDF9F2;
  padding: 13px 16px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5A4032;
  font-weight: 800;
  border-bottom: 2px solid #6B1D24;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(40, 25, 15, 0.05);
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: all 160ms var(--ease-hover);
}

.data-table th.sortable:hover {
  background: #F3EBD8;
  color: #6B1D24;
}

.sort-arrow {
  margin-left: 5px;
  opacity: 0.45;
  font-size: 0.78rem;
  transition: opacity 160ms ease, color 160ms ease;
}

.data-table th.is-sorted-asc .sort-arrow,
.data-table th.is-sorted-desc .sort-arrow {
  opacity: 1;
  color: #6B1D24;
  font-weight: 900;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(107, 29, 36, 0.08);
  cursor: pointer;
  transition: all 160ms var(--ease-hover);
  background: #FFFFFF;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(247, 241, 230, 0.45);
}

.data-table tbody tr:hover {
  background: rgba(107, 29, 36, 0.055) !important;
  box-shadow: inset 3px 0 0 #6B1D24;
}

.data-table td {
  padding: 11px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(107, 29, 36, 0.07);
}

.td-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: #4A382C;
}

.td-center {
  text-align: center;
}

.participant-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-name {
  color: #2B2118;
  font-size: 0.89rem;
}

.office-text,
.office-pill {
  display: inline;
  color: #5C4332;
  font-size: 0.84rem;
  font-weight: 500;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.dept-text,
.dept-pill {
  display: inline;
  color: #2B2118;
  font-size: 0.85rem;
  font-weight: 600;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.job-position-text {
  color: #4B3A2F;
  font-size: 0.83rem;
}

.gender-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.gender-pill.is-male {
  color: #1E40AF;
}

.gender-pill.is-female {
  color: #9D174D;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-primary);
}

.status-pill.is-bod {
  color: #92400E;
}

.status-pill.is-panitia {
  position: relative;
  padding: 4px 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, #F8E39A 0%, #E7BE5A 100%);
  color: #3D220A;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #C89B3C;
  box-shadow: 0 2px 6px rgba(180, 130, 30, 0.22);
}

.panitia-crown-icon {
  position: absolute;
  top: -10px;
  right: -8px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(66, 32, 6, 0.3));
  transform-origin: center bottom;
  animation: crownJump 1.4s ease-in-out infinite;
}

@keyframes crownJump {

  0%,
  100% {
    transform: rotate(18deg) translateY(0) scale(1);
  }

  40% {
    transform: rotate(22deg) translateY(-4px) scale(1.08);
  }

  65% {
    transform: rotate(16deg) translateY(-1px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panitia-crown-icon {
    animation: none;
    transform: rotate(18deg);
  }
}

.status-pill.is-peserta,
.status-pill.is-confirmed {
  color: #166534;
}

.status-pill.is-pending {
  color: var(--accent-gold);
}

.status-pill.is-absent {
  color: var(--accent-crimson);
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #FDF9F2;
  border-top: 1px solid rgba(107, 29, 36, 0.12);
  font-size: 0.82rem;
  color: #5C4332;
}

.table-scroll-hint {
  font-size: 0.78rem;
  color: #8C6A54;
  margin-left: 6px;
  font-style: italic;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink-primary);
  color: #d6dce4;
  padding: 32px 0;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner strong {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.footer-right .btn-link {
  color: #5eead4;
  padding: 4px 0;
}

.footer-trucks {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
}

.footer-trucks img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

/* ==========================================================================
   MODALS — Paired Elements Rule (SKILL web design.md)
   Modal + backdrop animate together with identical easing & duration.
   Starts from scale(0.95), NOT scale(0). Exit ~20% faster.
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 25, 31, 0.48);
  opacity: 0;
  transition: opacity var(--dur-modal-in) var(--ease-out-cubic);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform var(--dur-modal-in) var(--ease-out-cubic), opacity var(--dur-modal-in) var(--ease-out-cubic);
}

.modal-sm {
  max-width: 500px;
}

.modal-lg {
  max-width: 680px;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

/* Faster exit (~20% faster than entrance) */
.modal-backdrop.is-closing {
  opacity: 0;
  transition-duration: var(--dur-modal-out);
}

.modal-backdrop.is-closing .modal-dialog {
  transform: scale(0.96);
  opacity: 0;
  transition-duration: var(--dur-modal-out);
}

@media (prefers-reduced-motion: reduce) {

  .modal-backdrop,
  .modal-dialog {
    transition: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
}

.modal-header h3 {
  font-size: 1.15rem;
}

.btn-close-modal {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-border);
  background: var(--bg-page);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--dur-micro) var(--ease-out-cubic), background-color 150ms var(--ease-hover);
}

.btn-close-modal:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .btn-close-modal:hover {
    background: var(--bg-muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-close-modal {
    transition: none;
  }
}

.modal-body {
  padding: 22px 24px 26px;
}

/* Portrait Modern ID Card Modal */
.pm-idcard-dialog {
  position: relative;
  max-width: 390px !important;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFBF3 0%, #F7EBCD 100%);
  border: 1.5px solid rgba(181, 138, 83, 0.55);
  box-shadow: 0 24px 56px rgba(48, 32, 23, 0.28);
}

.pm-idcard-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg-batik-parang.webp");
  background-repeat: repeat;
  background-size: 260px 260px;
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.pm-idcard-dialog>* {
  position: relative;
  z-index: 1;
}

.pm-idcard-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 14px;
  background: linear-gradient(135deg, #FFF5E3 0%, #EFE0CB 100%);
  border-bottom: 1.5px solid rgba(181, 138, 83, 0.4);
}

.pm-idcard-lanyard {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(75, 40, 24, 0.22);
}

.pm-idcard-brand {
  display: flex;
  align-items: center;
}

.pm-idcard-logo {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

.pm-idcard-close {
  background: rgba(75, 40, 24, 0.08);
  color: var(--ink-primary);
  border-color: rgba(75, 40, 24, 0.2);
}

.pm-idcard-close:hover {
  background: rgba(75, 40, 24, 0.16);
}

.pm-idcard-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 22px 14px;
  gap: 8px;
}

.pm-avatar {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(48, 32, 23, 0.16);
}

.pm-avatar.is-male {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  color: #1E40AF;
  border: 2px solid rgba(30, 64, 175, 0.28);
}

.pm-avatar.is-female {
  background: linear-gradient(135deg, #FCE7F3 0%, #FDF2F8 100%);
  color: #9D174D;
  border: 2px solid rgba(157, 23, 77, 0.28);
}

.pm-gender-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pm-gender-chip.is-male {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid rgba(30, 64, 175, 0.22);
}

.pm-gender-chip.is-female {
  background: #FDF2F8;
  color: #9D174D;
  border: 1px solid rgba(157, 23, 77, 0.22);
}

.pm-heading h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.25;
}

.pm-heading p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.pm-role-badge-wrap {
  margin-top: 4px;
}

.pm-role-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 7px;
  background: rgba(22, 101, 52, 0.1);
  color: #166534;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-idcard-body {
  padding: 8px 20px 18px !important;
}

.pm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-field {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(181, 138, 83, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
}

.pm-field.is-full {
  grid-column: 1 / -1;
}

.pm-field span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 600;
}

.pm-field strong {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--ink-primary);
}

.pm-idcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(48, 32, 23, 0.06);
  border-top: 1px dashed rgba(75, 40, 24, 0.2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}

/* Spreadsheet Modal Form */
.sheet-status-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
}

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.88rem;
}

.form-help {
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advanced-details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--bg-page);
}

.advanced-details summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.advanced-inner {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.schema-guide {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.schema-guide h4 {
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.template-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.schema-columns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* Dress Code Thumbnail Strip & Torn-Paper Clipping Lookbook Modal */
.dc-thumb-strip {
  position: relative;
  height: 340px;
  border-radius: 10px;
  overflow: hidden;
  background: #dcdbe2;
  perspective: 900px;
}

.dc-thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #dcdbe2;
  display: block;
  will-change: transform;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.dc-thumb-strip.is-split-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #dcdbe2;
}

.dc-thumb-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 25, 31, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}

.dc-jump-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--accent-teal);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.dc-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dc-modal-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-border);
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out-cubic), background-color 150ms var(--ease-hover), color 150ms var(--ease-hover);
}

.dc-modal-tab:active {
  transform: scale(0.96);
}

.dc-modal-tab.is-active {
  background: var(--ink-primary);
  color: #ffffff;
  box-shadow: none;
}

.dc-variant-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  margin-bottom: 18px;
}

.dc-variant-tabs[hidden] {
  display: none;
}

.dc-variant-tab {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out-cubic), background-color 150ms var(--ease-hover), color 150ms var(--ease-hover);
}

.dc-variant-tab:active {
  transform: scale(0.96);
}

.dc-variant-tab.is-active {
  background: var(--accent-teal);
  color: #ffffff;
}

.dc-lookbook-stage {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  align-items: center;
}

.torn-paper-frame {
  position: relative;
  padding: 12px;
  background: #fffdf8;
  box-shadow:
    0 12px 28px rgba(20, 25, 31, 0.14),
    0 0 0 1px oklch(0 0 0 / 0.06);
  transform: rotate(-1deg);
}

.paper-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 78px;
  height: 22px;
  background: rgba(214, 178, 124, 0.55);
  border-left: 1px dashed rgba(180, 83, 9, 0.25);
  border-right: 1px dashed rgba(180, 83, 9, 0.25);
  z-index: 2;
}

/* Torn-paper clipping polygon along top & bottom edges */
.torn-paper-clip {
  overflow: hidden;
  background: #faf8f4;
  clip-path: polygon(0% 2%, 4% 0%, 9% 2.5%, 14% 0.5%, 19% 2%, 25% 0%, 31% 2.2%, 37% 0.4%, 43% 2%, 49% 0%, 55% 2.4%, 61% 0.3%, 67% 2%, 73% 0.2%, 79% 2.3%, 85% 0.4%, 91% 2%, 96% 0%, 100% 1.8%,
      100% 98%, 95% 100%, 90% 97.6%, 84% 99.6%, 78% 97.8%, 72% 100%, 66% 97.7%, 60% 99.5%, 54% 97.9%, 48% 100%, 42% 97.5%, 36% 99.7%, 30% 97.8%, 24% 100%, 18% 97.6%, 12% 99.6%, 6% 97.8%, 0% 99.5%);
}

.torn-paper-clip img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  background: #dcdbe2;
  display: block;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.dc-lookbook-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-gender-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dc-gender-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-teal-soft);
  color: var(--accent-teal-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.dc-date-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.dc-modal-desc {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.dc-modal-actions {
  margin-top: 6px;
}

@media (max-width: 768px) {
  .dc-lookbook-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .torn-paper-frame {
    padding: 8px;
    transform: none;
  }

  .torn-paper-clip img {
    height: auto;
    max-height: 64vh;
    object-fit: contain;
  }
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: translateY(8px) scale(0.95);
  opacity: 0;
  transition: transform 200ms var(--ease-out-cubic), opacity 200ms var(--ease-out-cubic);
}

.toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast.is-error {
  background: var(--accent-crimson);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

.dc-deck-nav {
  display: none;
}

@media (max-width: 768px) {
  .dc-deck-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 4px 6px;
    background: rgba(235, 221, 195, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
  }

  .dc-deck-nav .btn-step {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }

  .dc-deck-indicator {
    font-family: "Oswald", var(--font-mono);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #542b18;
  }

  .dresscode-grid {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    padding-bottom: 22px;
  }

  .dresscode-grid .dresscode-card {
    grid-area: 1 / 1;
    z-index: 1;
    padding: 16px;
    gap: 8px;
    border-radius: 16px;
    background: #f5ebd4;
    transform: translateY(18px) scale(0.92);
    pointer-events: none;
    transition: transform 260ms var(--ease-out-cubic), box-shadow 220ms var(--ease-out-cubic);
  }

  .dresscode-grid .dresscode-card .dc-thumb-strip {
    height: 320px;
    border-radius: 12px;
    background: #dcdbe2;
  }

  .dresscode-grid .dresscode-card .dc-thumb-strip img {
    object-fit: contain;
    object-position: center;
    background: #dcdbe2;
  }

  .dresscode-grid .dresscode-card.is-deck-front {
    z-index: 5;
    background: var(--bg-page);
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .dresscode-grid .dresscode-card.is-deck-mid {
    z-index: 3;
    background: #efe2c4;
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
  }

  .dresscode-grid .dresscode-card.is-deck-back {
    z-index: 1;
    background: #e6d5b2;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {

  .invitation-grid,
  .fieldmap-workspace {
    grid-template-columns: 1fr;
  }

  .rundown-panel {
    height: 520px;
    max-height: 520px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 16px 0 32px;
  }

  .section {
    padding: 36px 0;
  }

  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 10px 12px 8px;
    gap: 6px;
    transition: all 0.25s ease;
  }

  .brand {
    justify-content: center;
    text-align: center;
    min-height: 36px;
  }

  .header-actions {
    position: absolute;
    right: 12px;
    top: 8px;
  }

  .header-actions .btn-icon {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .brand-logo-img {
    height: 28px;
  }

  .nav-links {
    order: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 2px;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  /* Compact 1-row layout when scrolled on mobile */
  .site-header.is-scrolled .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 6px 12px;
    gap: 8px;
  }

  .site-header.is-scrolled .brand {
    justify-content: flex-start;
  }

  .site-header.is-scrolled .brand-logo-img {
    height: 24px;
  }

  .site-header.is-scrolled .header-actions {
    position: static;
  }

  .site-header.is-scrolled .header-actions .btn-icon {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .site-header.is-scrolled .nav-links {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 0;
  }

  .site-header.is-scrolled .nav-link {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-border);
    background: var(--bg-surface);
  }

  .site-header.is-scrolled .nav-link.is-active {
    background: var(--ink-primary);
    color: #f3e5c8;
    box-shadow: none;
  }

  .site-header.is-scrolled .nav-icon {
    display: block;
    width: 18px;
    height: 18px;
  }

  .site-header.is-scrolled .nav-label {
    display: none;
  }

  /* Hero & Invitation Frame */
  .invitation-frame {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .invitation-grid {
    gap: 20px;
  }

  .invitation-copy {
    text-align: center;
  }

  .eyebrow-badge {
    font-size: 0.72rem;
    padding: 5px 11px;
    margin: 0 auto 12px;
  }

  .hero-title {
    font-family: var(--font-sans);
    font-size: clamp(1.72rem, 8vw, 2.55rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: normal;
    text-align: center;
  }

  .hero-title-line {
    display: block;
    white-space: nowrap;
  }

  .hero-subtitle-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.28;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    margin-top: 12px;
  }

  .hero-lead {
    font-size: 0.88rem;
    margin-top: 10px;
    line-height: 1.55;
    text-align: center;
  }

  /* Meta Cards & Polaroid Location on Mobile */
  .meta-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .meta-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
  }

  .meta-card.meta-card-date {
    padding: 0;
    gap: 0;
  }

  .meta-card-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .polaroid-frame {
    width: 138px;
    padding: 7px 7px 22px 7px;
  }

  .meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .meta-label {
    font-size: 0.68rem;
  }

  .meta-value {
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .meta-sub {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-cta-row .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.88rem;
  }

  .dresscode-section {
    margin-top: 22px;
    padding-top: 20px;
  }

  .section-mini-header {
    gap: 6px;
    margin-bottom: 12px;
  }

  /* Section 2: Map & Rundown */
  .section-header,
  .section-mini-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .map-toolbar {
    gap: 10px;
    margin-bottom: 14px;
  }

  .segmented-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .segmented-tab {
    padding: 0 6px;
    font-size: 0.78rem;
    min-height: 36px;
    text-align: center;
  }

  .phase-legend {
    justify-content: center;
    gap: 8px 12px;
    font-size: 0.74rem;
  }

  .fieldmap-workspace {
    gap: 14px;
  }

  .fieldmap-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .rundown-panel {
    height: 520px;
    max-height: 72vh;
    padding: 16px;
    border-radius: 16px;
  }

  .rundown-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 12px;
  }

  .rundown-header-left {
    width: 100%;
    justify-content: flex-start;
  }

  .rundown-search-wrap,
  .rundown-search-wrap:focus-within {
    width: 100%;
  }

  .rundown-search-input {
    width: 100%;
    min-height: 40px;
    font-size: 0.84rem;
  }

  .rundown-list {
    padding: 6px 4px 20px 4px;
    gap: 12px;
  }

  .rundown-list::before {
    display: none;
  }

  .ri-timeline-node {
    left: -20px;
  }

  .ri-dot {
    width: 10px;
    height: 10px;
  }

  .rundown-item {
    padding: 12px 14px;
    gap: 12px;
    min-height: 78px;
  }

  .ri-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .ri-badge-num {
    font-size: 1.08rem;
  }

  .ri-badge-month {
    font-size: 0.6rem;
  }

  .ri-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .ri-loc {
    font-size: 0.75rem;
  }

  .ri-time-pill {
    padding: 3px 9px;
    font-size: 0.72rem;
  }

  /* Section 3: Peserta */
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .kpi-card {
    padding: 12px 14px;
    border-radius: 14px;
    text-align: center;
  }

  .kpi-label {
    font-size: 0.7rem;
  }

  .kpi-value {
    font-size: 1.35rem;
  }

  .table-toolbar {
    gap: 10px;
  }

  .search-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .filter-group .select-input,
  .filter-group .btn-outline-sm {
    width: 100%;
    min-height: 40px;
    font-size: 0.82rem;
    justify-content: center;
  }

  .inspector-meta-grid,
  .form-row-2,
  .pm-detail-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer {
    padding: 24px 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-trucks {
    margin-top: 14px;
    padding-top: 12px;
  }
}


/* ==========================================================================
   SECTION 01: THE OPENING CURTAIN
   ========================================================================== */
.opening-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: auto;
  overflow: hidden;
  transition: opacity 420ms var(--ease-out-cubic);
}

.opening-curtain.is-opening {
  pointer-events: none;
}

.opening-curtain.is-opening .curtain-left {
  transform: translateX(-102%);
}

.opening-curtain.is-opening .curtain-right {
  transform: translateX(102%);
}

.opening-curtain.is-opening .curtain-centerpiece {
  opacity: 0;
  transform: scale(1.04);
}

.opening-curtain.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--bg-page);
  background-image: radial-gradient(circle at center, rgba(181, 138, 83, 0.12) 0%, transparent 70%);
  transition: transform 820ms cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.curtain-left {
  left: 0;
  border-right: 2px solid rgba(181, 138, 83, 0.45);
}

.curtain-right {
  right: 0;
  border-left: 2px solid rgba(181, 138, 83, 0.45);
}

.curtain-batik-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: repeating-linear-gradient(to bottom,
      rgba(84, 43, 24, 0.14) 0px,
      rgba(84, 43, 24, 0.14) 6px,
      transparent 6px,
      transparent 14px);
}

.curtain-left .curtain-batik-edge {
  right: 6px;
}

.curtain-right .curtain-batik-edge {
  left: 6px;
}

.curtain-centerpiece {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 420ms var(--ease-out-cubic), transform 520ms var(--ease-out-cubic);
}

.curtain-popup-card {
  position: relative;
  z-index: 10;
  max-width: 480px;
  width: 90vw;
  background: #FFF5E3;
  border: 2.5px solid #79352A;
  border-radius: 22px;
  padding: 30px 36px 24px;
  box-shadow: 0 16px 48px rgba(64, 41, 30, 0.28), 0 2px 14px rgba(121, 53, 42, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
}

.curtain-popup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(64, 41, 30, 0.32), 0 4px 18px rgba(121, 53, 42, 0.22);
}

.curtain-inner-border {
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(184, 138, 75, 0.7);
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

.curtain-ukiran {
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
  z-index: 2;
  line-height: 0;
}

.ukiran-top-left {
  top: 0;
  left: 0;
}

.ukiran-top-right {
  top: 0;
  right: 0;
}

.ukiran-bottom-left {
  bottom: 0;
  left: 0;
}

.ukiran-bottom-right {
  bottom: 0;
  right: 0;
}

.curtain-gunungan {
  position: relative;
  z-index: 3;
  width: 96px;
  height: auto;
  margin-bottom: 14px;
  opacity: 0.95;
  filter: drop-shadow(0 4px 8px rgba(64, 41, 30, 0.15));
  animation: curtainGunungan 1.6s ease-in-out infinite alternate;
}

@keyframes curtainGunungan {
  from {
    transform: rotate(-3deg) scale(0.98);
  }

  to {
    transform: rotate(3deg) scale(1.02);
  }
}

.curtain-logo {
  position: relative;
  z-index: 3;
  height: 48px;
  width: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 4px rgba(64, 41, 30, 0.1));
}

.curtain-kicker {
  position: relative;
  z-index: 3;
  font-family: var(--font-display), "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #40291E;
  line-height: 1.25;
}

.curtain-sub {
  position: relative;
  z-index: 3;
  margin-top: 6px;
  font-family: var(--font-serif), Georgia, serif;
  font-style: italic;
  font-size: 0.96rem;
  color: #79352A;
  line-height: 1.35;
}

.curtain-hint {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94765B;
  opacity: 0.85;
  animation: curtainPulse 1.8s ease-in-out infinite alternate;
}

@keyframes curtainPulse {
  from {
    opacity: 0.55;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-curtain {
    display: none;
  }
}

/* ==========================================================================
   HERITAGE NAVIGATION BORDER & SIBA RED ACCENTS
   ========================================================================== */
.header-heritage-border {
  height: 3px;
  width: 100%;
  background: repeating-linear-gradient(90deg,
      var(--siba-red) 0 18px,
      var(--accent-gold-bright) 18px 26px,
      var(--ink-secondary) 26px 44px,
      transparent 44px 48px);
  opacity: 0.55;
}

.nav-link.is-active {
  color: var(--siba-red);
  font-weight: 700;
}

.site-header.is-scrolled .nav-link.is-active {
  background: var(--siba-red);
  color: #ffffff;
}

/* ==========================================================================
   SECTION 02: HANGING MEMORY GALLERY (RAKER MEMORIES)
   ========================================================================== */
.memories-strip {
  position: relative;
  z-index: 8;
  padding: 14px 0 18px;
  background: linear-gradient(to bottom, rgba(233, 215, 183, 0.55), rgba(243, 229, 200, 0.25));
  border-bottom: none;
  overflow: hidden;
}

.memories-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.memories-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--siba-red);
}

.memories-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.clothesline-stage {
  position: relative;
  width: 100%;
  padding-top: 10px;
}

.clothesline-rope {
  position: absolute;
  top: 16px;
  left: -2%;
  right: -2%;
  height: 2px;
  background: linear-gradient(90deg, rgba(84, 43, 24, 0.2), rgba(84, 43, 24, 0.55), rgba(84, 43, 24, 0.2));
  box-shadow: 0 1px 2px rgba(48, 32, 23, 0.14);
  pointer-events: none;
}

.memories-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 6px 24px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  cursor: grab;
}

.memories-track::-webkit-scrollbar {
  display: none;
}

.memory-polaroid {
  position: relative;
  flex: 0 0 148px;
  background: #fbf7ee;
  padding: 8px 8px 12px;
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(48, 32, 23, 0.14), 0 0 0 1px rgba(75, 40, 24, 0.14);
  transform-origin: 50% 0%;
  animation: memoryWindSway var(--sway-dur, 5.2s) ease-in-out var(--sway-delay, 0s) infinite;
  cursor: pointer;
  scroll-snap-align: center;
  text-align: left;
  border: none;
  transition: box-shadow 200ms ease, filter 200ms ease;
}

.memory-polaroid:hover {
  box-shadow: 0 12px 24px rgba(48, 32, 23, 0.2), 0 0 0 1px rgba(200, 32, 39, 0.35);
}

.memory-clip {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(to right, #9c6b3b, #c5915a, #8d5f32);
  box-shadow: 0 2px 4px rgba(48, 32, 23, 0.28);
  z-index: 2;
}

.memory-clip::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: rgba(48, 32, 23, 0.35);
}

@keyframes memoryWindSway {

  0%,
  100% {
    transform: rotate(-1.8deg);
  }

  50% {
    transform: rotate(1.8deg);
  }
}

.memory-photo-box {
  width: 100%;
  height: 92px;
  background: #ebe0ca;
  border: 1px dashed rgba(75, 40, 24, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink-muted);
}

.memory-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memory-placeholder-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.72;
}

.memory-caption-bar {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.memory-year-tag {
  font-family: var(--font-slab);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--siba-red);
}

.memory-loc-tag {
  font-size: 0.66rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .memories-track {
    justify-content: flex-start;
    gap: 14px;
    padding: 6px 16px 10px;
  }

  .memory-polaroid {
    flex: 0 0 132px;
  }

  .memory-photo-box {
    height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-polaroid {
    animation: none;
  }
}

/* Memory Lightbox Modal */
.memory-lightbox-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.memory-lightbox-frame {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.memory-lightbox-frame img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.memory-lightbox-frame img[hidden],
.memory-empty-state[hidden] {
  display: none !important;
}

.memory-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px;
  color: var(--ink-muted);
}

.memory-empty-state strong {
  color: var(--ink-primary);
  font-size: 0.96rem;
}

.memory-empty-state span {
  font-size: 0.84rem;
  max-width: 42ch;
}

.memory-lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ml-meta-year {
  display: inline-block;
  font-family: var(--font-slab);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--siba-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ml-meta-caption {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.ml-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.ml-counter {
  font-family: var(--font-slab);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-primary);
}

/* ==========================================================================
   SECTION 04: HERITAGE LOOKBOOK ENHANCEMENTS
   ========================================================================== */
.dresscode-card {
  position: relative;
  border-top: 3px solid var(--border-strong);
  transition: transform 240ms var(--ease-out-cubic), box-shadow 220ms var(--ease-out-cubic), border-color 200ms ease;
}

.dresscode-card[data-preview-day="1"]:hover {
  border-top-color: var(--accent-gold-bright);
}

.dresscode-card[data-preview-day="2"]:hover {
  border-top-color: var(--siba-red);
}

.dresscode-card[data-preview-day="3"]:hover {
  border-top-color: var(--ink-secondary);
}

.dresscode-card .dc-thumb-strip {
  position: relative;
  box-shadow: 0 4px 12px rgba(48, 32, 23, 0.1);
  border: 3px solid #fbf5e8;
}

.dresscode-card .dc-thumb-strip img {
  transition: transform 320ms var(--ease-out-cubic);
}

@media (hover: hover) and (pointer: fine) {
  .dresscode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-border-hover);
  }

  .dresscode-card:hover .dc-thumb-strip img {
    transform: scale(1.06);
  }
}

/* ==========================================================================
   SECTION 05: BEYOND TRANSPORTATION (8-BIT TRUCK PARALLAX JOURNEY)
   ========================================================================== */
.story-truck-section {
  position: relative;
  padding: 24px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(243, 229, 200, 0.28) 0%, rgba(233, 215, 183, 0.85) 100%);
  border-top: none;
}

.story-header-center {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 6px;
}

.story-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--siba-red);
  margin-bottom: 6px;
}

.story-headline {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--ink-primary);
}

.story-lead {
  margin-top: 10px;
  font-size: 0.96rem;
  color: var(--ink-secondary);
}

.story-milestones.is-centered {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.story-milestone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.story-milestone-pill .sm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--siba-red);
}

.story-milestone-pill.is-jogja .sm-dot {
  background: var(--accent-gold-bright);
}

.story-milestone-arrow {
  color: var(--siba-red);
  font-weight: 700;
}

/* 8-Bit Parallax Driving Stage */
.pixel-journey-stage {
  position: relative;
  width: 100%;
  height: 216px;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(243, 229, 200, 0) 0%, rgba(226, 204, 165, 0.55) 80%, #3a2a22 80%);
}

.px-layer {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}

.px-track {
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
}

.px-track svg {
  display: block;
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  shape-rendering: crispEdges;
}

/* Layer 1: Clouds (Slowest) */
.px-clouds {
  top: 2px;
  height: 52px;
}

.px-clouds-track {
  animation: pxScrollLoop 34s linear infinite;
}

/* Layer 2: Mountains (Slow Parallax) */
.px-mountains {
  bottom: 42px;
  height: 112px;
}

.px-mountains-track {
  animation: pxScrollLoop 22s linear infinite;
}

/* Layer 3: Tree Silhouettes (Medium Parallax) */
.px-trees {
  bottom: 42px;
  height: 78px;
}

.px-trees-track {
  animation: pxScrollLoop 10s linear infinite;
}

@keyframes pxScrollLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Layer 4: Centered 8-Bit Convoy (Bus Pariwisata Mengawal Truk SIBA SURYA) */
.px-convoy-anchor {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(840px, 96vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  z-index: 5;
  pointer-events: none;
}

/* 1. Bus Pariwisata Rig (Mengawal Tepat di Belakang Truk — Klik untuk Menyalip) */
.px-bus-rig {
  position: relative;
  width: 47%;
  flex-shrink: 0;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
  animation: pxBusBounce 0.38s steps(2, end) 0.08s infinite;
  transition: filter 180ms ease;
}

.px-bus-rig:hover .px-bus-sprite {
  filter: drop-shadow(0 5px 0 rgba(48, 32, 23, 0.25)) brightness(1.04);
}

.px-bus-rig.is-overtaking {
  animation:
    pxBusBounce 0.22s steps(2, end) infinite,
    pxBusOvertake 3.4s cubic-bezier(0.35, 0, 0.2, 1) forwards;
}

.px-bus-rig.is-overtaking .px-bus-wheel-spin {
  animation-duration: 0.14s;
}

.px-bus-rig.is-overtaking .px-dust {
  animation-duration: 0.25s;
}

@keyframes pxBusOvertake {
  0% {
    translate: 0 0;
  }
  10% {
    translate: -18px 0;
  }
  50% {
    translate: 135vw 0;
  }
  50.01% {
    translate: -120vw 0;
  }
  53% {
    translate: -110vw 0;
  }
  92% {
    translate: 10px 0;
  }
  100% {
    translate: 0 0;
  }
}

@keyframes pxBusBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.px-bus-sprite {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 5px 0 rgba(48, 32, 23, 0.22));
}

/* Authentic Spinning Bus Wheels (Sesuai ban asli) */
.px-bus-wheel-anchor {
  position: absolute;
  width: 9.77%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
  z-index: 2;
}

.px-bus-wheel-spin {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-origin: center center;
  animation: pxWheelSpin 0.42s linear infinite;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.px-dust-emitter.is-bus-rear {
  left: 18%;
}

/* 2. Flagship Truk SIBA SURYA Rig (Memimpin di Depan) */
.px-truck-rig {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  z-index: 4;
  animation: pxTruckBounce 0.34s steps(2, end) infinite;
}

@keyframes pxTruckBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.px-truck-sprite {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 5px 0 rgba(48, 32, 23, 0.22));
}

/* Spinning 8-Bit Wheel Overlays */
.px-wheel {
  position: absolute;
  width: 5.2%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.px-wheel-rim {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px dashed rgba(235, 240, 244, 0.92);
  box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, 0.65);
  transform-origin: center center;
  animation: pxWheelSpin 0.42s linear infinite;
}

@keyframes pxWheelSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 8-Bit Exhaust Smoke Emitter */
.px-smoke-emitter {
  position: absolute;
  left: 72.8%;
  top: 0%;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.px-smoke {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(110, 96, 88, 0.72);
  box-shadow: 4px -4px 0 rgba(145, 130, 120, 0.55);
  opacity: 0;
  animation: pxSmokePuff 1.3s steps(6, end) infinite;
}

.px-smoke.s2 {
  animation-delay: 0.32s;
  width: 12px;
  height: 12px;
}

.px-smoke.s3 {
  animation-delay: 0.65s;
}

.px-smoke.s4 {
  animation-delay: 0.98s;
  width: 11px;
  height: 11px;
}

@keyframes pxSmokePuff {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0.85;
  }

  60% {
    transform: translate(-38px, -24px) scale(1.3);
    opacity: 0.5;
  }

  100% {
    transform: translate(-74px, -42px) scale(1.7);
    opacity: 0;
  }
}

/* 8-Bit Tire Dust Clouds */
.px-dust-emitter {
  position: absolute;
  bottom: 2%;
  width: 20px;
  height: 14px;
  pointer-events: none;
}

.px-dust-emitter.is-rear {
  left: 8%;
}

.px-dust-emitter.is-drive {
  left: 51%;
}

.px-dust {
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(181, 138, 83, 0.78);
  box-shadow: 5px 2px 0 rgba(217, 189, 140, 0.75);
  opacity: 0;
  animation: pxDustKick 0.7s steps(5, end) infinite;
}

.px-dust.d2 {
  animation-delay: 0.22s;
  width: 9px;
  height: 7px;
}

.px-dust.d3 {
  animation-delay: 0.44s;
}

@keyframes pxDustKick {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0.85;
  }

  100% {
    transform: translate(-42px, -12px) scale(1.4);
    opacity: 0;
  }
}

/* Layer 5: Looping 8-Bit Road (Fastest) */
.px-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: #3a2a22;
  z-index: 3;
}

.px-road-curb {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 5px;
  background: repeating-linear-gradient(90deg,
      #89502e 0 24px,
      #b58a53 24px 48px);
  animation: pxRoadScroll 1.1s linear infinite;
}

.px-road-dashes {
  position: absolute;
  top: 20px;
  left: 0;
  width: 200%;
  height: 4px;
  background: repeating-linear-gradient(90deg,
      #f3e5c8 0 28px,
      transparent 28px 60px);
  animation: pxRoadScroll 0.85s linear infinite;
}

@keyframes pxRoadScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .story-truck-section {
    padding: 20px 0 0;
  }

  .pixel-journey-stage {
    height: 180px;
  }

  .px-convoy-anchor {
    width: min(580px, 98vw);
    bottom: 24px;
    gap: 12px;
  }

  .px-road {
    height: 36px;
  }

  .px-road-dashes {
    top: 17px;
  }

  .px-mountains,
  .px-trees {
    bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .px-clouds-track,
  .px-mountains-track,
  .px-trees-track,
  .px-bus-rig,
  .px-truck-rig,
  .px-bus-wheel-spin,
  .px-wheel-rim,
  .px-smoke,
  .px-dust,
  .px-road-curb,
  .px-road-dashes {
    animation: none;
  }
}

/* ==========================================================================
   SECTION 07 & 08: STICKY EXPEDITION MAP & GUESTBOOK POLISH
   ========================================================================== */

.fieldmap-viewport {
  border: 2px solid rgba(23, 54, 93, 0.22);
  box-shadow: inset 0 0 24px rgba(23, 54, 93, 0.08);
}

.table-card {
  border-top: 3px solid var(--siba-red);
}

/* ==========================================================================
   SECTION 09: FOOTER PANORAMA & HEADLINE
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-doodle-panorama {
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg-batik-parang.webp");
  background-repeat: repeat-x;
  background-size: 520px auto;
  opacity: 0.06;
  pointer-events: none;
  animation: doodleDrift 55s linear infinite;
}

.footer-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fca5a5;
  margin-bottom: 4px;
}

/* ==========================================================================
   MOTION SYSTEM: SCROLL REVEALS & PARALLAX
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease-out-cubic), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .story-clouds svg,
  .footer-doodle-panorama {
    animation: none;
  }
}


/* ==========================================================================
   LOCATION DETAIL PANEL (Cinematic Expedition Map Overlay)
   ========================================================================== */
.fieldmap-viewport {
  position: relative;
}

.location-detail-panel {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: min(350px, calc(100% - 28px));
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(251, 245, 232, 0.96);
  border: 1.5px solid rgba(84, 43, 24, 0.28);
  box-shadow: 0 14px 32px rgba(48, 32, 23, 0.22);
  z-index: 15;
}

.location-detail-panel[hidden] {
  display: none;
}

.ldp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ldp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.ldp-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--siba-red);
  color: #ffffff;
}

.ldp-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.ldp-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.ldp-close {
  width: 30px;
  height: 30px;
  min-height: 30px;
  flex-shrink: 0;
}

.ldp-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ldp-day-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--ink-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.ldp-day-btn.is-active {
  background: var(--ink-primary);
  color: #f3e5c8;
  border-color: var(--ink-primary);
}

.ldp-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ldp-act-btn {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.ldp-act-btn.is-active {
  border-color: var(--siba-red);
  background: #fef2f2;
}

.ldp-act-meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.ldp-act-btn strong {
  font-size: 0.8rem;
  color: var(--ink-primary);
  line-height: 1.25;
}

@media (max-width: 768px) {
  .location-detail-panel {
    position: static;
    width: 100%;
    max-height: 260px;
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
  }
}

/* Password Gate Inline Save Row */
.password-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-inline-row .text-input {
  flex: 1 1 auto;
}

.btn-save-pwd {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE ULTRA-COMPACT (<= 480px) FOR RUNDOWN & WORKSPACE
   ========================================================================== */
@media (max-width: 480px) {
  .rundown-panel {
    height: 480px;
    max-height: 74vh;
    padding: 12px;
    border-radius: 14px;
  }

  .rundown-title {
    font-size: 1.05rem;
  }

  .rundown-header-icon {
    width: 34px;
    height: 34px;
  }

  .rundown-list {
    padding: 4px 2px 16px 4px;
    gap: 10px;
  }

  .rundown-list::before {
    display: none;
  }

  .ri-timeline-node {
    left: -17px;
  }

  .ri-dot {
    width: 8px;
    height: 8px;
  }

  .rundown-item {
    padding: 10px 12px;
    gap: 9px;
    border-radius: 12px;
    min-height: 72px;
  }

  .ri-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .ri-badge-num {
    font-size: 0.98rem;
  }

  .ri-badge-month {
    font-size: 0.52rem;
  }

  .ri-header-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .ri-date {
    font-size: 0.7rem;
  }

  .ri-cat-icon {
    width: 18px;
    height: 18px;
  }

  .ri-cat-icon svg {
    width: 15px;
    height: 15px;
  }

  .ri-time-pill {
    padding: 2px 7px;
    font-size: 0.68rem;
    gap: 3px;
  }

  .ri-title {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .ri-loc {
    font-size: 0.72rem;
  }
}