/* BUDOTS MEDIA PH — main.css */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600&display=swap');

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --accent: #ffd400;
  --grey: #888;
  --font-display: 'Bebas Neue', 'Bebas Neue Pro', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  /* black on top → white bottom gradient */
  background: linear-gradient(180deg, #000 0%, #0a0a0a 30%, #3a3a3a 60%, #cfcfcf 85%, #fff 100%);
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,.85), transparent);
  backdrop-filter: blur(4px);
}
.nav a.brand {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--white); text-decoration: none; letter-spacing: .08em;
}
.nav a.brand span { color: var(--accent); }
.nav .links a {
  color: var(--white); text-decoration: none; font-size: .8rem;
  margin-left: 1.2rem; text-transform: uppercase; letter-spacing: .1em;
  opacity: .8;
}
.nav .links a:hover { opacity: 1; color: var(--accent); }

/* language switcher in nav */
.nav .links a.lang {
  font-size: .65rem; opacity: .5; margin-left: .55rem; letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: .15rem .35rem;
}
.nav .links a.lang:first-of-type { margin-left: 1.2rem; }
.nav .links a.lang.active { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* ---------- particles canvas ---------- */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ---------- parallax hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: -12% 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: brightness(.45);
  will-change: transform;
}
.hero h1 {
  font-size: clamp(3rem, 12vw, 9rem);
  padding: 0 1rem;
}
.hero .sub {
  font-size: clamp(.85rem, 2.5vw, 1.1rem);
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent); margin-top: 1rem;
}

/* scroll indicator */
.scroll-ind {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: var(--white); opacity: .7; font-size: .65rem;
  letter-spacing: .3em; text-transform: uppercase;
}
.scroll-ind .mouse {
  width: 22px; height: 36px; border: 2px solid var(--white); border-radius: 12px;
  position: relative;
}
.scroll-ind .mouse::after {
  content: ''; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% {opacity:1; top:6px} 100% {opacity:0; top:20px} }

/* progress bar */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 200;
}

/* section dots */
.dots {
  position: fixed; right: .9rem; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: .7rem;
}
.dots a {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.35); transition: .3s;
}
.dots a.active { background: var(--accent); transform: scale(1.4); }

/* ---------- sections ---------- */
.section {
  position: relative; padding: 6rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
.section h2 {
  font-size: clamp(2.2rem, 7vw, 4.5rem); margin-bottom: 2rem;
}
.section p.lead { font-size: 1.15rem; font-weight: 300; max-width: 46rem; line-height: 1.7; }
.section p { line-height: 1.7; margin-bottom: 1rem; font-weight: 300; }

/* parallax banner strips between sections */
.banner {
  position: relative; height: 55vh; min-height: 320px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.banner .bg {
  position: absolute; inset: -15% 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55); will-change: transform;
}
.banner h3 {
  position: relative; z-index: 1; font-size: clamp(1.8rem, 6vw, 3.6rem);
  text-align: center; padding: 0 1rem; text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* story cards */
.grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative; display: block; height: 340px; overflow: hidden;
  border-radius: 10px; text-decoration: none;
  background-size: cover; background-position: center;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); }
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.88));
}
.card .label {
  position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem; z-index: 1;
  color: var(--white);
}
.card .label .kicker {
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
}
.card .label h3 { font-size: 1.9rem; margin-top: .2rem; }

/* stats / graphs strip */
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 3rem 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem); color: var(--accent);
}
.stat .cap { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; opacity: .75; }

/* timeline */
.timeline { position: relative; margin: 3rem 0; padding-left: 1.6rem; border-left: 2px solid rgba(255,255,255,.25); }
.tl-item { position: relative; margin-bottom: 2.4rem; }
.tl-item::before {
  content: ''; position: absolute; left: -2.05rem; top: .3rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.tl-item .year { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); }
.tl-item p { margin-top: .3rem; }

/* light zone (bottom of gradient) */
.light { color: var(--black); }
.light .stat .cap, .light p { color: #222; }
.light h2 { color: var(--black); }

/* languages ribbon */
.langs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.langs span {
  border: 1px solid currentColor; border-radius: 999px;
  padding: .35rem .9rem; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
}

/* footer */
footer {
  padding: 4rem 1.5rem 5rem; text-align: center; color: #333;
}
footer .brandline { font-family: var(--font-display); font-size: 2rem; }
footer small { display: block; margin-top: 1rem; opacity: .7; }
footer a { color: inherit; }

/* story page article */
article.story { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
article.story .kicker { color: var(--accent); letter-spacing: .3em; text-transform: uppercase; font-size: .7rem; }
article.story h1 { font-size: clamp(2.6rem, 9vw, 6rem); margin: .5rem 0 1.5rem; }
article.story img { width: 100%; border-radius: 10px; margin: 2rem 0; display: block; }
article.story blockquote {
  border-left: 3px solid var(--accent); padding-left: 1.2rem; margin: 2rem 0;
  font-size: 1.25rem; font-weight: 300; font-style: italic;
}
.backlink {
  display: inline-block; margin: 2rem 0; color: var(--accent);
  text-decoration: none; letter-spacing: .2em; text-transform: uppercase; font-size: .75rem;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .dots { display: none; }
  .nav .links a { margin-left: .8rem; font-size: .7rem; }
  .banner { background-attachment: scroll; }
}

/* client logo wall */
.logowall { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.5rem; }
.logowall .chip {
  height: 62px; padding: 9px 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logowall .chip img { height: 100%; width: auto; display: block; }
.logowall .chip.on-dark { background: #14161a; }
.logowall .chip.on-light { background: #fff; border: 1px solid #e2e2e2; }
@media (max-width: 640px) { .logowall .chip { height: 48px; padding: 7px 12px; } }

/* ---- Philippines provinces map (Assets section) ---- */
.phmap { display:flex; justify-content:center; margin-top:2.5rem; }
.phmap object { width:min(560px,92vw); height:auto; aspect-ratio:700/1085; filter:drop-shadow(0 10px 30px rgba(0,0,0,.45)); }

/* ---- RTL (Arabic) ---- */
html[dir="rtl"] .nav .links a.lang:first-of-type { margin-left: 0; margin-right: 1.2rem; }
html[dir="rtl"] .nav .links a { margin-left: 0; margin-right: 1.2rem; }
html[dir="rtl"] .nav .links a.lang { margin-right: .55rem; }
html[dir="rtl"] blockquote { border-left: none; border-right: 3px solid var(--accent); padding-left: 0; padding-right: 1.2rem; }
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 1.6rem; border-left: none; border-right: 2px solid rgba(255,255,255,.25); }
html[dir="rtl"] .tl-item::before { left: auto; right: -2.05rem; }
html[dir="rtl"] .dots { right: auto; left: .9rem; }
