/* ---- base (used everywhere, incl. admin) ---- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; max-width: 480px; margin: 2rem auto; padding: 0 1rem; }
label { display: block; margin-bottom: 1rem; }
input, select, textarea { display: block; width: 100%; padding: 0.5rem; margin-top: 0.25rem; box-sizing: border-box; }
/* the reset above beats the browser's own [hidden] display:none (author rules
   always win over UA rules regardless of specificity) — close that loophole
   for every hidden form control site-wide, not just the ones known today */
input[hidden], select[hidden], textarea[hidden] { display: none; }
button { padding: 0.6rem 1.2rem; cursor: pointer; }
.error { color: #c0392b; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ddd; padding: 0.4rem; text-align: left; }

/* ---- public site theme: Pasuruan Culture Run 1097 ---- */
:root {
  --bg: #101c15;
  --panel: #16261c50;
  --panel-solid: #16261c;
  --ink: #f2ede0;
  --muted: #9a9a8f;
  --gold: #bd8148;
  --sand: #e6dcc4;
  --line: rgba(242,237,224,0.14);
  --smooth-anchor-progress-color: var(--gold);
  --load-background: var(--bg);
}

.site {
  font-family: 'Lora', system-ui, serif;
  color: var(--ink);
  background: var(--bg);
  max-width: none;
  margin: 0;
  padding: 0;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Playfair Display', serif;
}
.logo-icon { flex: none; width: 44px; height: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { display: flex; flex-direction: column; gap: 0.18rem; }
.logo-pasuruan {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.015em;
  color: var(--ink);
}
.logo-sub {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-sub .logo-year { color: var(--gold); }
.logo-powered {
  font-family: 'Lora', serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 0.3rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 760px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.smooth-anchor-active { color: var(--gold); }

.nav-mobile { position: relative; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-mobile.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 759px) {
  .nav-mobile { position: absolute; top: 1.75rem; right: 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-mobile.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    gap: 0.9rem;
    min-width: 190px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    z-index: 20;
  }
}
@media (min-width: 760px) {
  .nav-toggle { display: none; }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 1rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  background: #0a120d;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  /* darken the text side, like a photo hero graded for legibility */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a120d 0%, rgba(10,18,13,0.88) 30%, rgba(10,18,13,0.4) 58%, transparent 78%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189,129,72,0.32) 0%, rgba(189,129,72,0.08) 45%, transparent 72%);
  z-index: 0;
  will-change: transform;
}

.hero-bib {
  position: absolute;
  right: 6%;
  bottom: 16%;
  width: clamp(220px, 48vw, 640px);
  aspect-ratio: 1200 / 557;
  z-index: 0;
  pointer-events: none;
  background-image: url("/img/hero-1097-motif.svg");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: 0.65;
  will-change: transform, opacity;
}

.scroll-tag {
  position: absolute;
  right: 1.75rem;
  bottom: 3rem;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.scroll-tag::after { content: ""; display: block; width: 1px; height: 30px; background: var(--muted); margin: 0.5rem auto 0; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 0 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6.6vw, 4.6rem);
  line-height: 1.02;
  color: var(--ink);
  margin: 0.6rem 0 0.75rem;
  opacity: 0;
}
.hero-title .split-char { will-change: transform, opacity; }

.hero-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0;
}
.hero-badge .num {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}
.hero-badge .km {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--sand);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.hero-tagline {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
  margin: 0 0 1.1rem;
  opacity: 0;
}

.hero-desc {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 30rem;
  margin: 0 0 2rem;
  opacity: 0;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 2.25rem 0 2rem;
  opacity: 0;
}
.pillar { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.pillar svg { color: var(--gold); flex: none; }
.pillar span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 759px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
  .hero::after {
    /* side-by-side text/image grading doesn't apply once content stacks */
    background: none;
  }
  .hero-inner {
    order: 1;
  }
  .hero-bib {
    position: static;
    order: 2;
    width: min(75vw, 320px);
    margin: 1.5rem 0 0;
    opacity: 0.85;
  }
}

.hero-cta {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  opacity: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.95rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); box-shadow: 0 8px 20px rgba(189,129,72,0.35); }
.btn-outline:hover:not([data-magnetic]) { transform: translateY(-2px); }
.btn-outline[hidden],
.btn-primary[hidden] { display: none; }
.btn-outline:active:not([data-magnetic]) { transform: translateY(0); box-shadow: none; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  background: rgba(189,129,72,0.12);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-arrow:hover { background: var(--gold); color: var(--bg); }
.btn-arrow:hover:not([data-magnetic]) { transform: translateX(4px); }
.btn-arrow:active:not([data-magnetic]) { transform: translateX(1px); }

.page {
  padding: clamp(2rem, 8vw, 4rem) 1.25rem 4rem;
}

.card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.5rem, 6vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) clamp(1.5rem, 6vw, 2.25rem);
  z-index: 3;
  opacity: 0;
  animation: reveal 0.6s ease 0.1s forwards;
}

.card-tag {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}

.card-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.4rem;
  margin: 0.25rem 0 0.35rem;
}

.card-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #0e0e10;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.field select option { background: #17171a; color: var(--ink); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,94,0.18);
}

.field textarea { resize: vertical; min-height: 4.5rem; }

.field input.has-error,
.field select.has-error,
.field textarea.has-error {
  border-color: #c9503c;
  box-shadow: 0 0 0 3px rgba(201,80,60,0.15);
}

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  border: none;
  border-radius: 2px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: #ddb679; }
.btn-primary:hover:not([data-magnetic]) { transform: translateY(-1px); }
.btn-primary:active:not([data-magnetic]) { transform: translateY(0); }

.status-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.status-link a { color: var(--gold); font-weight: 700; text-decoration: none; }
.status-link a:hover { text-decoration: underline; }

.error-banner {
  background: rgba(201,80,60,0.12);
  border-left: 3px solid #c9503c;
  color: #e2a394;
  padding: 0.7rem 0.9rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.field-error {
  color: #e2a394;
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
}

/* ---- registration wizard ---- */
.wizard-progress { margin-bottom: 1.75rem; }
.wizard-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--line);
}
.wizard-steps-fill {
  position: absolute;
  top: 14px;
  left: 14px;
  height: 2px;
  width: 0%;
  background: var(--gold);
  transition: width 0.35s ease;
}
.wizard-step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: default;
}
.wizard-step-dot.is-visited { cursor: pointer; }
.wizard-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--muted);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.82rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.wizard-step-name {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  transition: color 0.25s ease;
}
.wizard-step-dot.is-done .wizard-step-num { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.wizard-step-dot.is-active .wizard-step-num { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 3px rgba(189,129,72,0.18); }
.wizard-step-dot.is-active .wizard-step-name,
.wizard-step-dot.is-done .wizard-step-name { color: var(--ink); }

.wizard-viewport { overflow: hidden; transition: height 0.3s ease; }
.wizard-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}
.wizard-step {
  flex: 0 0 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}
.wizard-nav .btn-outline,
.wizard-nav .btn-primary {
  flex: 1 1 120px;
  width: auto;
  margin-top: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}

.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.field-label-row label { margin-bottom: 0; }
.ktp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ktp-icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.ktp-icon-btn.has-file { border-color: var(--gold); background: rgba(189,129,72,0.14); color: var(--gold); }
.ktp-preview {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  flex: none;
}
.ktp-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.ktp-meta[hidden] { display: none; }
.ktp-filename {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ktp-change {
  flex: none;
  display: inline-block;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.ktp-change:hover { text-decoration: underline; }

.result-card {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.result-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; }
.result-row + .result-row { border-top: 1px solid var(--line); }
.result-row span:first-child { color: var(--muted); }
.result-row span:last-child { font-weight: 700; }
.bib-number { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: var(--gold); letter-spacing: 0.04em; }

.value-band {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}
.value-item h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.value-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.value-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.value-tagline {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.3rem;
  color: var(--ink);
}
.run-letter {
  display: inline-block;
  white-space: pre;
  color: var(--ink);
  animation-name: none;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
.is-visible .run-letter { animation-name: run-light-pass; }
@keyframes run-light-pass {
  0% { color: var(--ink); text-shadow: none; }
  25% { color: var(--gold); text-shadow: 0 0 14px rgba(189,129,72,0.9); }
  100% { color: var(--gold); text-shadow: 0 0 2px rgba(189,129,72,0.25); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero-badge, .hero-title, .hero-tagline, .hero-desc, .hero-cta, .pillars, .card { animation: none; opacity: 1; }
}

main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ---- landing sections: misi, jadwal, sponsor, t&c ---- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }

.section-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  margin-bottom: 1.1rem;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .section-head { grid-template-columns: 1.1fr 1fr; }
}
.section-head .section-heading { margin-bottom: 0; }
.section-head .section-desc { margin: 0; }

.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  /* dibutuhkan magnetic tilt: rotateX/Y tanpa perspective jadi ortografis (gepeng) */
  perspective: 900px;
}
@media (min-width: 860px) {
  .section-split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

.split-visual {
  position: relative;
  min-height: 260px;
  border-radius: 4px;
  background-color: var(--panel-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* radius <= 50% supaya fade selesai di dalam kotak; >50% bikin tepi kepotong lurus */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 18%, rgba(0,0,0,0.88) 40%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.22) 78%, rgba(0,0,0,0.06) 90%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 18%, rgba(0,0,0,0.88) 40%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.22) 78%, rgba(0,0,0,0.06) 90%, transparent 100%);
}
.split-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("/img/pattern-heritage.png");
}
.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 48% at 50% 50%, rgba(189,129,72,0.26) 0%, rgba(189,129,72,0.17) 35%, rgba(189,129,72,0.08) 60%, rgba(189,129,72,0.02) 82%, transparent 100%);
  animation: split-glow-pulse 4.5s ease-in-out infinite;
}
.split-visual-icon {
  position: relative;
  z-index: 1;
  width: 82%;
  max-width: 440px;
  filter: drop-shadow(0 0 14px rgba(189,129,72,0.34)) drop-shadow(0 0 42px rgba(189,129,72,0.22)) drop-shadow(0 0 90px rgba(189,129,72,0.12));
  animation: split-icon-float 4.5s ease-in-out infinite;
}
@keyframes split-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes split-glow-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.jadwal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .jadwal-grid { grid-template-columns: repeat(2, 1fr); }
}
.jadwal-card {
  position: relative;
  overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 1.75rem;
}
.jadwal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("/img/pattern-heritage.png");
}
.jadwal-card::after {
  content: attr(data-index);
  position: absolute;
  top: -0.5rem;
  right: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 4.75rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.14;
  pointer-events: none;
}
.jadwal-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(0,0,0,0.32);
}
.jadwal-card-body { position: relative; z-index: 1; }
.jadwal-card .label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.jadwal-icon { width: auto; height: 28px; flex: none; }
.jadwal-divider { border: none; border-top: 1px solid var(--line); margin: 0 0 1rem; }
.jadwal-card .date {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}
.jadwal-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.jadwal-subtext { color: var(--muted); font-size: 0.85rem; margin: 0; }
.jadwal-detail { margin-top: 1.1rem; }
.jadwal-detail-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.jadwal-sep { color: var(--gold); margin: 0 0.35rem; }
.jadwal-detail .location { margin-top: 0; }

.jadwal-table-label { margin-top: 1.1rem; }
.jadwal-table-label + .jadwal-table-wrap { margin-top: 0; }
.jadwal-table-wrap {
  margin: 0.9rem 0 0;
  border: 1px solid rgba(189,129,72,0.3);
  border-radius: 8px;
  overflow: hidden;
}
.jadwal-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
/* the shared admin `th, td` rule up top paints #ddd borders and forces text-align:left here —
   a declaration on the cells beats the value they'd inherit from the table, so reset both */
.jadwal-table th, .jadwal-table td {
  border: 0;
  text-align: center;
  padding: 0.7rem 0.45rem;
  white-space: nowrap;
}
.jadwal-table th:last-child, .jadwal-table td:last-child,
.jadwal-table th:nth-child(4), .jadwal-table td:nth-child(4) { white-space: normal; }
.jadwal-table th + th, .jadwal-table td + td { border-left: 1px solid rgba(189,129,72,0.16); }
.jadwal-table th {
  font-family: system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(189,129,72,0.14);
  border-bottom: 1px solid rgba(189,129,72,0.3);
}
.jadwal-table td { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
/* the category and the gun time are what runners actually scan for */
.jadwal-table td:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
}
.jadwal-table th:nth-child(3), .jadwal-table td:nth-child(3) { background: rgba(189,129,72,0.09); }

@media (max-width: 559px) {
  /* five columns inside a card is ~55px each on a phone — stack into label/value rows instead */
  .jadwal-table thead { display: none; }
  .jadwal-table, .jadwal-table tbody, .jadwal-table tr, .jadwal-table td { display: block; width: 100%; }
  .jadwal-table tr + tr { border-top: 1px solid rgba(189,129,72,0.3); }
  .jadwal-table td + td { border-left: 0; border-top: 1px solid rgba(189,129,72,0.16); }
  .jadwal-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0.9rem;
  }
  .jadwal-table td::before {
    content: attr(data-label);
    font-family: system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .jadwal-table td:first-child {
    justify-content: center;
    background: rgba(189,129,72,0.14);
    padding: 0.5rem 0.9rem;
  }
  .jadwal-table td:nth-child(3) { background: none; }
}

.jadwal-table-note { color: var(--muted); font-size: 0.72rem; margin: 0.55rem 0 0.85rem; }
.jadwal-card .location {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  position: relative;
  z-index: 1;
}
.jadwal-card .location:hover { color: var(--ink); }

/* the headline partners get a warm panel so their full-colour logos read without each one
   needing its own plate. The organiser tier stays on the dark background — Pasrun's yellow
   sub-line is 16:1 there and only 1.3:1 on the panel, so it must not move inside. */
.sponsor-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* two 19rem chips + gaps + the "x" need ~48.6rem of content box, so anything tighter wraps */
  max-width: 52rem;
  margin: 0 auto;
}

.sponsor-tier { display: flex; flex-direction: column; align-items: center; }
.sponsor-tier-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: clamp(2rem, 6vw, 3rem);
}

/* the fallbacks are what these use outside the panel, on the dark background */
.sponsor-caption {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sponsor-accent, var(--gold));
  margin-bottom: 0.9rem;
  text-align: center;
}

/* Hestek has no logo file, so it reads as a wordmark instead of a chip */
.sponsor-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3.4rem, 11vw, 4.4rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  color: var(--sponsor-ink, var(--sand));
  text-align: center;
}

.sponsor-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}
.sponsor-main-row .sponsor-x {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold);
}
@media (max-width: 759px) {
  .sponsor-main-row { flex-direction: column; gap: 1.25rem; }
  .sponsor-tier-row { flex-direction: column; gap: 2.25rem; }
}

/* fixed box so very different aspect ratios (Bajoo 9:1, the Dinas lockup 3.4:1) read as a set */
.sponsor-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(13rem, 55vw, 19rem);
  height: clamp(3.4rem, 11vw, 4.4rem);
  max-width: 100%;
}
.sponsor-chip-sm { width: clamp(9rem, 38vw, 13rem); }
.sponsor-chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

.cta-band { text-align: center; padding: clamp(2.5rem, 8vw, 4.5rem) 1.25rem clamp(3rem, 10vw, 5.5rem); }
.cta-band p { color: var(--muted); margin: 0 0 1.5rem; }

/* ---- scroll reveal ---- */
.section, .cta-band, .site-footer {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.is-visible, .cta-band.is-visible, .site-footer.is-visible {
  opacity: 1;
  transform: none;
}

.value-item, .jadwal-card, .sponsor-badge {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.is-visible .value-item,
.is-visible .jadwal-card,
.is-visible .sponsor-badge {
  opacity: 1;
  transform: none;
}
.value-item:nth-child(2), .jadwal-card:nth-child(2), .sponsor-badge:nth-child(2) { transition-delay: 0.1s; }
.value-item:nth-child(3) { transition-delay: 0.2s; }

/* reveal opacity saja — transform di sini dipegang magnetic-spotlight.
   Kalau scale() dikembalikan, specificity (0,2,0) menimpa
   .magnetic-spotlight-ready (0,1,0) dan efek magnetic mati diam-diam. */
.split-visual {
  opacity: 0;
  transition: opacity 0.7s ease 0.15s;
}
.is-visible .split-visual {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section, .cta-band, .site-footer,
  .value-item, .jadwal-card, .sponsor-badge, .split-visual {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .split-visual-icon, .split-visual::after {
    animation: none;
  }
  .run-letter {
    animation: none;
    color: var(--gold);
    text-shadow: none;
  }
}

/* ---- page load: logo overlay flying into the navbar ---- */
.web-load-target-hidden { opacity: 0 !important; }

.web-load-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: var(--load-background, #101c15);
  pointer-events: none;
}
.web-load-backdrop.is-exiting {
  opacity: 0;
  transition: opacity var(--web-load-exit-duration, 600ms) ease;
}

.web-load-img {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(60vw, 420px);
  z-index: 2147483646;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}
.web-load-img.is-visible {
  opacity: 1;
  clip-path: inset(0% 0 0 0);
  transition: opacity 900ms ease, clip-path 900ms ease;
}
.web-load-img.is-returning {
  clip-path: inset(0% 0 0 0);
  transition:
    transform var(--web-load-return-duration, 900ms) cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms ease var(--web-load-fade-delay, 560ms);
}

/* ---- page transition: daftar <-> registrasi ---- */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483642;
  display: grid;
  place-items: center;
  background: var(--load-background, #101c15);
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  transition: transform 620ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.page-transition-overlay.is-entering { transform: translate3d(0, 0, 0); }
.page-transition-overlay.is-leaving { transform: translate3d(0, -100%, 0); }

.page-transition-img {
  width: min(40vw, 220px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 260ms ease, transform 360ms ease;
}
.page-transition-overlay.is-entering .page-transition-img {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay, .page-transition-img { transition-duration: 1ms !important; }
}

/* ---- footer ---- */
.site-footer {
  position: relative;
  background: var(--panel-solid);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem 2rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("/img/pattern-heritage.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.footer-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 0.75rem;
}
.footer-hashtag { color: var(--gold); font-weight: 700; font-size: 0.95rem; }

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.footer-col p { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.4rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  margin-bottom: 1rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); }
.footer-col a.footer-handle {
  display: block;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a.footer-handle:hover { text-decoration: underline; }

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
