/* ============================================================
   MERDEKA RUN 8K — HUT KE-81 REPUBLIK INDONESIA
   Palet identitas: Merah #ED1C24 / Putih #FFFFFF / Hitam #000000
   Tema: terang (putih dominan), hero foto gelap — mengacu gaya JRF
   Tipografi: Plus Jakarta Sans (body) + Saira Condensed (display)
   ============================================================ */

@font-face {
  font-family: 'Saira SemiCondensed';
  src: url('../fonts/SairaSemiCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Saira SemiCondensed';
  src: url('../fonts/SairaSemiCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #ED1C24;
  --red-dark: #b8121a;
  --black: #000000;
  --ink: #0a0a0a;
  --white: #ffffff;
  --paper: #ffffff;
  --muted: #565656;
  --grey: #565656;
  --line: rgba(0, 0, 0, 0.16);
  --line-dark: rgba(255, 255, 255, 0.16);
  --display: 'Saira Condensed', 'Saira SemiCondensed', 'Arial Narrow', sans-serif;
  --body: 'Plus Jakarta Sans', 'Saira SemiCondensed', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--black);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type utilities ---------- */

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.005em;
}

.tilt { transform: skewX(-7deg); display: inline-block; }

.outline { color: var(--red); }
.outline-red { color: var(--red); }

/* label seksi: badge miring merah dengan bayangan cetak */
.kicker {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--white);
  background: var(--red);
  display: inline-block;
  padding: 7px 18px 8px;
  transform: skewX(-10deg);
  box-shadow: 5px 5px 0 var(--black);
}

.section-title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  font-size: clamp(44px, 7vw, 96px);
  margin: 14px 0 22px;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(16px, 1.35vw, 19px);
}
.lead strong { color: var(--black); }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { position: relative; }

.section { padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
/* blur hanya di desktop: backdrop-filter membuat containing block
   yang merusak overlay menu mobile (position: fixed) */
@media (min-width: 761px) {
  .header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
}
.nav-links a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--black);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 17px;
  padding: 15px 34px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  transform: skewX(-7deg);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn > span { display: inline-block; transform: skewX(7deg); }
.btn:hover { background: var(--black); border-color: var(--black); color: var(--white); transform: skewX(-7deg) translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--black); color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--big { font-size: 22px; padding: 20px 48px; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* tombol ghost di atas foto gelap (hero) */
.hero .btn--ghost { border-color: var(--white); color: var(--white); }
.hero .btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(620px, 94vh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.72);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 40%, rgba(5,5,5,0.96) 96%),
    linear-gradient(115deg, rgba(237,28,36,0.5), rgba(0,0,0,0.25) 55%);
  mix-blend-mode: multiply;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 90% at 20% 100%, rgba(237,28,36,0.28), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 7vw, 96px);
  padding-top: 140px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  padding: 8px 16px;
  transform: skewX(-7deg);
  margin-bottom: 26px;
}
.hero-tag > * { transform: skewX(7deg); }

.hero-title { margin: 0 0 28px; }
.hero-title img {
  width: min(540px, 82%);
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.45));
}

.hero-sub {
  font-family: var(--body);
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  font-size: clamp(16px, 1.5vw, 20px);
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}
.hero-meta div {
  border: 1px solid var(--line-dark);
  background: rgba(0,0,0,0.55);
  padding: 12px 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.hero-meta div b { color: var(--red); margin-right: 8px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- countdown (strip gelap penutup hero) ---------- */

.countdown {
  background: var(--black);
  color: var(--white);
}
.countdown-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-top: 30px;
  padding-bottom: 30px;
}
.countdown-label {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--red);
  line-height: 0.95;
}
.count-grid {
  display: flex;
  gap: clamp(18px, 4vw, 56px);
  justify-content: flex-end;
}
.count-cell { text-align: center; }
.count-cell b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.count-cell small {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about-logo {
  display: flex;
  justify-content: center;
}
.about-logo img { width: min(340px, 70%); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--black);
  margin-top: 46px;
}
.stat {
  padding: 26px 20px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--black); }
.stat b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  display: block;
  color: var(--red);
}
.stat small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- halaman detail lomba ---------- */

.stats--4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.stats--4 .stat b { font-size: clamp(22px, 2.6vw, 38px); }
.stats--4 .stat small { letter-spacing: 0.16em; }

.route-map {
  position: relative;
  overflow: hidden;
  margin-top: 46px;
  background: var(--black);
}
.route-map img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.5);
}
.route-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(237,28,36,0.5), rgba(0,0,0,0.55));
  mix-blend-mode: multiply;
}
.route-map-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
}
.route-map-label b {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.9;
}
.route-map-label b em { font-style: normal; color: var(--red); }
.route-map-label p {
  margin-top: 12px;
  max-width: 46ch;
  color: rgba(255,255,255,0.82);
  font-size: 15.5px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.prize-card .price-card-head {
  background: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.prize-card .price-card-head small {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--red);
}

@media (max-width: 760px) {
  .stats--4 { grid-template-columns: 1fr 1fr; }
  .stats--4 .stat:nth-child(odd) { border-left: 0; }
  .stats--4 .stat:nth-child(n+3) { border-top: 1px solid var(--black); }
  .prize-grid { grid-template-columns: 1fr; }
}

/* ---------- race info ---------- */

.race {
  background: var(--red);
  color: var(--white);
}
.race .kicker { background: var(--black); box-shadow: 5px 5px 0 var(--white); }
.race .lead { color: rgba(255,255,255,0.85); }
.race .lead strong { color: var(--white); }

.race-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.race-k {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.02em;
}
.race-k small {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.3em;
  margin-top: 14px;
  font-weight: 800;
}

.race-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}
.race-table th, .race-table td {
  text-align: left;
  padding: 14px 6px;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  vertical-align: top;
}
.race-table th {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  width: 38%;
  font-weight: 700;
}
.race-table td { font-weight: 700; font-size: 17px; }

.entitle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  margin-top: clamp(40px, 6vw, 72px);
}
.entitle div {
  background: var(--black);
  color: var(--white);
  padding: 22px 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}
.entitle div b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- why cards ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--black);
  margin-top: 50px;
}
.why {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.why span {
  font-family: var(--display);
  font-weight: 900;
  font-size: 70px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.4);
  display: block;
  margin-bottom: 22px;
  transition: -webkit-text-stroke-color 0.25s, color 0.25s;
}
.why h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 0.95;
  margin-bottom: 14px;
  transition: color 0.25s;
}
.why p { color: var(--muted); font-size: 15.5px; transition: color 0.25s; }
.why:hover { background: var(--red); }
.why:hover p { color: rgba(255,255,255,0.9); }
.why:hover h3 { color: var(--white); }
.why:hover span { -webkit-text-stroke-color: rgba(255,255,255,0.7); }

/* ---------- gallery ---------- */

.gal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.gal-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transition: filter 0.45s, transform 0.45s;
}
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(237,28,36,0.4), rgba(0,0,0,0.25));
  mix-blend-mode: multiply;
  transition: opacity 0.45s;
}
.gal-item:hover img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1.04); }
.gal-item:hover::after { opacity: 0; }
.gal-item--w2 { grid-column: span 2; }
.gal-item--h2 { grid-row: span 2; }

/* ---------- sustainability teaser / page ---------- */

.sus-teaser {
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.sus-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.sus-teaser-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.sus-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
}
.sus-teaser-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  transform: translate(14px, 14px);
  pointer-events: none;
}

/* initiative rows (sustainability page) */
.init {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(44px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.init:first-of-type { border-top: 0; }
.init:nth-child(even) .init-media { order: 2; }
.init-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.init-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.08) brightness(0.96);
  transition: filter 0.4s;
}
.init:hover .init-media img { filter: grayscale(0) contrast(1.02) brightness(1); }
.init-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 7vw, 100px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  display: block;
  margin-bottom: 8px;
}
.init h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 0.92;
  margin-bottom: 16px;
}
.init p { color: var(--muted); }
.init p strong { color: var(--black); }
.init ul { margin-top: 14px; }
.init ul li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15.5px;
}
.init ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 3px;
  background: var(--red);
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 44px; border-top: 1px solid var(--black); }
.faq-item { border-bottom: 1px solid var(--black); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 24px 4px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 24px);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--red); }
.faq-q .x {
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  position: relative;
  transform: skewX(-7deg);
  transition: background 0.25s;
}
.faq-q .x::before, .faq-q .x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 3px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform 0.25s, background 0.25s;
}
.faq-q .x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q { color: var(--red); }
.faq-item.open .x { background: var(--red); }
.faq-item.open .x::before, .faq-item.open .x::after { background: var(--white); transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  color: var(--muted);
  padding: 0 4px 26px;
  max-width: 72ch;
}
.faq-a a { color: var(--red); font-weight: 700; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--paper);
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '8K';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(200px, 40vw, 560px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 28, 36, 0.25);
  line-height: 1;
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 8.5vw, 120px);
  line-height: 0.88;
  margin-bottom: 34px;
  position: relative;
}
.cta-banner h2 em { font-style: normal; color: var(--red); }

/* ---------- footer ---------- */

.footer {
  background: var(--paper);
  border-top: 2px solid var(--black);
  padding: 60px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  margin-bottom: 48px;
}
.footer-logo img { height: 54px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.footer h4 {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 16px;
}
.footer li { margin-bottom: 10px; }
.footer li a {
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s;
}
.footer li a:hover { color: var(--red); }
.footer-partner img { height: 88px; width: auto; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------- page hero (subpages, tetap gelap seperti hero JRF) ---------- */

.page-hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0 clamp(56px, 8vw, 110px);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.6);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.95)), linear-gradient(115deg, rgba(237,28,36,0.45), transparent 60%);
  mix-blend-mode: multiply;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  font-size: clamp(52px, 9vw, 130px);
  margin: 16px 0 20px;
}
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero .lead { color: rgba(255,255,255,0.78); }
.page-hero .lead strong { color: var(--white); }
.page-hero .kicker { box-shadow: 5px 5px 0 var(--white); }

/* ---------- registration ---------- */

.reg-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.reg-side { position: sticky; top: 100px; }

.price-card {
  border: 1px solid var(--black);
  background: var(--paper);
}
.price-card-head {
  background: var(--red);
  color: var(--white);
  padding: 20px 26px;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1;
}
.price-card-body { padding: 26px; }
.price {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
}
.price small {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
}
.price-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
.price-card ul { margin-top: 22px; }
.price-card ul li {
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  position: relative;
}
.price-card ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 13px;
  height: 3px;
  background: var(--red);
}
.price-card .race-table th, .price-card .race-table td {
  border-bottom: 1px solid var(--line);
  color: var(--black);
}
.price-card .race-table th { color: var(--muted); }

.form-panel {
  border: 1px solid var(--black);
  background: var(--paper);
  padding: clamp(26px, 3.4vw, 48px);
}
.form-step-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 24px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 20px;
}
.form-step-title:first-child { margin-top: 0; }
.form-step-title b {
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 19px;
  transform: skewX(-7deg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.75);
}
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.35);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ED1C24' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field input.err, .field select.err { border-color: var(--red); background: rgba(237,28,36,0.06); }
.field small { color: var(--muted); font-size: 12.5px; }
.field-error {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  display: none;
}
.field.invalid .field-error { display: block; }

.size-hint {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.size-hint b { color: var(--black); }

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--red);
}
.check a { color: var(--red); font-weight: 700; }

.form-msg {
  display: none;
  background: rgba(237,28,36,0.08);
  border: 1px solid var(--red);
  color: var(--red-dark);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-msg.show { display: block; }

/* success state */
.reg-success {
  display: none;
  text-align: center;
  padding: clamp(30px, 5vw, 60px) 20px;
}
.reg-success.show { display: block; }
.reg-success .big {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.9;
  margin-bottom: 18px;
}
.reg-success .big em { font-style: normal; color: var(--red); }
.reg-code {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0.08em;
  border: 2px dashed var(--red);
  padding: 14px 34px;
  margin: 18px 0 22px;
}
.reg-success p { color: var(--muted); max-width: 54ch; margin: 0 auto 8px; }

/* ---------- syarat (daftar.html) ---------- */

#syarat .init ul li { color: var(--muted); }

/* ---------- reveal animation ---------- */

.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .about-grid, .sus-teaser-grid, .reg-layout { grid-template-columns: 1fr; }
  .reg-side { position: static; }
  .race-grid { grid-template-columns: 1fr; }
  .race-k { font-size: clamp(120px, 24vw, 220px); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 22px; font-family: var(--display); letter-spacing: 0.1em; }
  .burger { display: block; }

  .init, .init:nth-child(even) { grid-template-columns: 1fr; }
  .init:nth-child(even) .init-media { order: 0; }
  .countdown-inner { grid-template-columns: 1fr; }
  .count-grid { justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gal-item--w2 { grid-column: span 2; }
  .hero-title { font-size: clamp(70px, 19vw, 120px); }
}
