/* ============================================================
   PAGE: Comika Event — promotor stand-up terdepan + portofolio
   Art direction: editorial, poster-led, brand gradient accents.
   NOTE: section ber-class .container pakai padding-block (BUKAN
   `padding: V 0`) supaya gutter horizontal .container tetap utuh.
============================================================ */

/* ── TOPBAR: transparent over hero, opaque after scroll ─── */
.site-top {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  transition: background .4s var(--ease), border-bottom-color .4s var(--ease) !important;
}
html.topbar-solid .site-top {
  background: color-mix(in srgb, var(--bg) 72%, transparent) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent) !important;
}

/* ── HERO — full-screen photo slideshow ──────────────────── */
/* anti kedip: .page:empty dipindah ke inline <style> di event.html agar URL cukup diubah di 1 file */
.ev-hero {
  position: relative;
  margin-top: -64px;
  overflow: hidden;
  height: 100svh;           /* full viewport, covers header too */
  min-height: 540px;        /* safety floor on tiny screens */
  display: flex;
  align-items: flex-end;    /* cinematic: text sits at the bottom */
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  /* sama persis dengan background tile Event di lobby —
     biar transisi tile→hero seamless saat navigasi */
  background: linear-gradient(135deg, #264284, #1FC3F3);
}
@supports not (height: 100svh) { .ev-hero { height: 100vh; } }

/* ── slideshow ────────────────────────────────────────── */
.ev-slides {
  position: absolute; inset: 0; z-index: 0;
}
.ev-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.ev-slide.active { opacity: 1; }

.ev-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* base = 1.0 (bukan 1.1) supaya slide yang KELUAR tidak menyentak balik
     ke zoom-in. Ken Burns memulai dari 1.1 lewat keyframe saat slide aktif. */
  transform: scale(1);
  will-change: transform;
}
/* Ken Burns: slow zoom-out while the slide is active */
@keyframes ev-zoom-out {
  from { transform: scale(1.1); }
  to   { transform: scale(1.0); }
}
.ev-slide.active img {
  animation: ev-zoom-out 9s ease-out forwards;
}
@media (prefers-reduced-motion: reduce) {
  .ev-slide img { transform: scale(1); }
  .ev-slide.active img { animation: none; }
}

/* ── dark gradient overlay for text legibility ────────── */
.ev-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(4,10,28,.28) 0%,
    rgba(4,10,28,.30) 38%,
    rgba(4,10,28,.72) 72%,
    rgba(4,10,28,.90) 100%
  );
}

/* ── text content ─────────────────────────────────────── */
.ev-hero-in {
  position: relative; z-index: 2;
  max-width: 820px;
}
/* desktop: kasih ruang lebih lebar untuk teks hero */
@media (min-width: 1024px) {
  .ev-hero-in { max-width: 960px; }
  .ev-lead { max-width: 64ch; }
}
.ev-hero .eyebrow {
  margin-bottom: 1.1rem;
  color: var(--cy);         /* cyan pops on dark bg */
}
.ev-h1 {
  font-family: var(--f-h);
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 1.3rem;
}
.ev-lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255,255,255,.78);
  line-height: 1.74;
  max-width: 56ch;
  margin: 0 0 2.2rem;
}
.ev-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ghost button on dark photo bg */
.ev-ghost { border-color: rgba(255,255,255,.38) !important; color: #fff !important; }
.ev-ghost:hover { border-color: rgba(255,255,255,.75) !important; background: rgba(255,255,255,.1) !important; }

/* ── STATS BAND ──────────────────────────────────────────── */
.ev-stats-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--b1) 0%, var(--b2) 55%, var(--b3) 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.ev-stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.ev-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.ev-stat { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.ev-stat b {
  font-family: var(--f-h);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.03em;
}
.ev-stat span {
  font-size: .76rem; color: rgba(255,255,255,.62);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}

/* ── INTRO / POSITIONING ─────────────────────────────────── */
.ev-intro { padding-block: clamp(4rem, 8vw, 7rem); }
.ev-intro .eyebrow { margin-bottom: 1rem; }
.ev-intro h2 {
  font-family: var(--f-h);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 700; color: var(--ink2);
  line-height: 1.14; margin: 0 0 1.6rem; max-width: 22ch;
}
.ev-intro p {
  font-size: clamp(.96rem, 1.5vw, 1.08rem);
  line-height: 1.84; color: var(--muted); max-width: 64ch; margin: 0 0 1.1rem;
}

/* ── PORTOFOLIO (poster grid) ────────────────────────────── */
.ev-portfolio { padding-block: clamp(3rem, 6vw, 5rem) clamp(4.5rem, 9vw, 8rem); }
.ev-pf-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.ev-pf-head .eyebrow { display: block; margin-bottom: .8rem; }
.ev-pf-head h2 {
  font-family: var(--f-h);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 700; color: var(--ink2); line-height: 1.1; margin: 0;
}

/* scroll strip tidak dipakai */
.ev-scroll-strip { display: none !important; }

/* masonry: 3 flex-col, item mulai dari atas tanpa gap */
.ev-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ev-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0; /* prevent flex blowout */
}

.ev-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg3);
  box-shadow: 0 8px 26px rgba(38,66,132,.1);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: block;
  break-inside: avoid;
  width: 100%; /* explicit width for aspect-ratio reliability */
  min-height: 0;
}
/* placeholder saat poster masih kosong */
.ev-card.is-empty {
  background:
    repeating-linear-gradient(45deg, var(--bg3) 0 12px, var(--bg2) 12px 24px);
  border: 1px dashed var(--line);
}
.ev-card .ev-ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); opacity: .5;
}
.ev-card .ev-ph svg { width: 34px; height: 34px; }
.ev-card.is-empty::after { background: linear-gradient(to top, rgba(4,10,28,.5) 0%, rgba(4,10,28,0) 55%); }
.ev-card:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(38,66,132,.22); }
.ev-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.ev-card:hover img { transform: scale(1.06); }
.ev-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,10,28,.92) 0%, rgba(4,10,28,.25) 46%, rgba(4,10,28,0) 72%);
}
.ev-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #04122a; background: var(--cy);
  padding: .28rem .55rem; border-radius: 6px;
}
.ev-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.2rem 1.3rem;
}
.ev-meta h3 {
  font-family: var(--f-h);
  font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.12; margin: 0 0 .35rem;
}
.ev-card.feat .ev-meta h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.ev-meta .ev-sub {
  font-size: .8rem; color: rgba(255,255,255,.78); display: flex; flex-wrap: wrap; gap: .15rem .6rem;
}
.ev-meta .ev-sub .dot { opacity: .5; }

/* ── KENAPA COMIKA EVENT (capabilities) ──────────────────── */
.ev-why { padding-block: clamp(4rem, 8vw, 7rem); }
.ev-why .eyebrow { margin-bottom: 1rem; }
.ev-why h2 {
  font-family: var(--f-h);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700; color: var(--ink2); margin: 0 0 clamp(2.2rem, 4.5vw, 3.5rem); max-width: 24ch;
}
.ev-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ev-cap {
  position: relative; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem 1.7rem 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.ev-cap:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(38,66,132,.14); border-color: transparent; }
.ev-cap::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left center; transition: transform .4s var(--ease);
}
.ev-cap:hover::after { transform: scaleX(1); }
.ev-cap .ci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(38,66,132,.08); color: var(--b2); margin-bottom: 1.1rem;
  transition: transform .4s var(--ease), background .35s, color .35s, border-radius .35s;
}
.ev-cap:hover .ci { background: var(--grad); color: #fff; transform: rotate(-8deg) scale(1.08); border-radius: 16px; }
[data-theme="dark"] .ev-cap .ci { background: rgba(33,152,206,.14); color: var(--cy); }
.ev-cap .ci svg { width: 22px; height: 22px; }
.ev-cap h3 { font-family: var(--f-h); font-size: 1.08rem; font-weight: 700; color: var(--ink2); margin: 0 0 .5rem; }
.ev-cap p { font-size: .88rem; line-height: 1.68; color: var(--muted); margin: 0; }

/* ── CTA wrapper ─────────────────────────────────────────── */
.ev-cta { padding-block: clamp(.5rem,1.5vw,1rem); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .ev-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .ev-caps  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ev-col:last-child { display: none; }
  .ev-col { flex: 0 0 calc(50% - 8px); }
  .ev-grid { gap: 16px; }
}

@media (max-width: 700px) { .ev-hero { min-height: auto; } }

@media (max-width: 600px) {
  .ev-hero-cta { width: 100%; }
  .ev-hero-cta .btn { flex: 1; justify-content: center; }
  .ev-grid { gap: 12px; }
  .ev-col { gap: 12px; }
  .ev-caps { grid-template-columns: 1fr; }
  .ev-meta { padding: .9rem 1rem; }
  .ev-meta h3 { font-size: 1rem; }
}

@media (max-width: 460px) {
  /* single column: stack both visible cols vertically */
  .ev-grid { flex-direction: column; gap: 12px; }
  .ev-col { flex: 0 0 100%; width: 100%; gap: 12px; }
  /* sembunyikan tag pile — tabrakan dgn teks meta di layar kecil */
  .ev-tag { display: none; }
}
