/* ==========================================================================
   Atmosphere — latar sinematik supaya section tidak polos.
   Dimuat paling akhir; hanya menimpa latar dan warna, tidak mengubah layout.
   1) Section gelap: foto event (monokrom hangat) + cahaya oranye + grain.
   2) Bio dan CTA berubah dari krem menjadi gelap sinematik.
   3) Section terang: grid halus yang memudar + semburat hangat + grain.
   ========================================================================== */

.performance-site {
  --grain-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

/* ---------- 1. Section gelap berfoto ---------- */
/* Lapisan (atas ke bawah): grain, cahaya oranye, peredup yang memadat ke bawah, foto.
   Foto dicampur "luminosity" dengan warna dasar cokelat hangat, jadi semua foto ikut satu nada. */
.performance-site :is(#expertise.training-section, #gallery.proof-section, #epic-bio.bio-editorial, #cta.signup-section) {
  background-color: var(--atm-base, #33241a);
  background-image: var(--grain-white), var(--atm-glow), var(--atm-shade), var(--atm-photo);
  background-blend-mode: normal, normal, normal, var(--atm-blend, luminosity);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 220px 220px, 100% 100%, 100% 100%, max(100%, 1300px) auto;
  background-position: 0 0, 0 0, 0 0, var(--atm-photo-pos, center top);
}

.performance-site #expertise.training-section {
  --atm-photo: url(../bg-training.webp);
  --atm-photo-pos: left top;
  --atm-solid: #141512;
  --atm-shade: linear-gradient(180deg, rgba(20, 21, 18, .5) 0, rgba(20, 21, 18, .86) 300px, #141512 520px);
  --atm-glow: radial-gradient(60% 440px at 88% 0, rgba(237, 106, 22, .24), transparent 72%);
}

.performance-site #gallery.proof-section {
  --atm-photo: url(../../event/Event1.webp);
  --atm-photo-pos: center -60px;
  --atm-shade: linear-gradient(180deg, rgba(17, 18, 16, .62) 0, rgba(17, 18, 16, .88) 300px, #111210 560px);
  --atm-glow: radial-gradient(55% 460px at 8% 0, rgba(237, 106, 22, .22), transparent 72%);
}

/* Footer sengaja tenang: tanpa foto, supaya tidak bertabrakan dengan panggung CTA di atasnya
   dan kolom tautan tetap mudah dibaca. Hanya grain dan satu semburat oranye di belakang ajakan. */
.performance-site .site-footer {
  background-color: #0b0c0a;
  background-image: var(--grain-white), radial-gradient(44% 360px at 12% 30%, rgba(237, 106, 22, .13), transparent 72%);
  background-repeat: repeat, no-repeat;
  background-size: 220px 220px, 100% 100%;
}

/* ---------- 2a. Bio: krem -> gelap sinematik ---------- */
.performance-site #epic-bio.bio-editorial {
  --atm-photo: url(../bg-bio.webp);
  --atm-blend: normal;
  --atm-base: #131411;
  --atm-solid: #131411;
  --atm-shade: linear-gradient(180deg, rgba(19, 20, 17, .58) 0, rgba(19, 20, 17, .88) 320px, #131411 540px);
  --atm-glow: radial-gradient(46% 620px at 22% 300px, rgba(237, 106, 22, .26), transparent 70%);
  color: #f5f5ef;
}

.performance-site #epic-bio #bio-title > span,
.performance-site #epic-bio .bio-step,
.performance-site #epic-bio .bio-specialties > span { color: #ff852e; }
.performance-site #epic-bio .bio-lead { color: #c9cac1; }
.performance-site #epic-bio .bio-photo-stage::before { background: radial-gradient(circle, rgba(237, 106, 22, .62) 0%, rgba(237, 106, 22, .26) 52%, rgba(237, 106, 22, 0) 72%); }
.performance-site #epic-bio .bio-photo-stage::after { border-color: #ff852e59; }
/* Kata AUTOMATION. panjang, jadi ukurannya mengikuti lebar panggung foto supaya selalu muat di satu baris. */
.performance-site #epic-bio .bio-photo-stage { container-type: inline-size; }
.performance-site #epic-bio .bio-photo-word { color: #ed6a16; font-size: clamp(40px, 14.2cqi, 96px); white-space: nowrap; }
.performance-site #epic-bio .bio-photo figcaption { border-top-color: #ffffff2b; }
.performance-site #epic-bio .bio-photo figcaption strong { color: #f6f6f0; }
.performance-site #epic-bio .bio-photo figcaption > span { color: #b8b9b1; }
.performance-site #epic-bio .bio-specialties { color: #a9aaa1; }
.performance-site #epic-bio .bio-timeline li { border-top-color: #ffffff21; }
.performance-site #epic-bio .bio-timeline p { color: #b8b9b1; }
.performance-site #epic-bio .bio-gallery-heading { border-top-color: #ffffff21; }
.performance-site #epic-bio .bio-gallery-heading > span { color: #a9aaa1; }
.performance-site #epic-bio .bio-gallery figcaption p { color: #b8b9b1; }
.performance-site #epic-bio .bio-action a[href="#cta"] { background: var(--accent); color: #111210; border-color: var(--accent); }
.performance-site #epic-bio .bio-action p { color: #a9aaa1; }

/* Di latar gelap, potret tidak lagi naik ke section krem di atasnya: kata besar di belakangnya dapat ruang napas. */
@media (min-width: 1024px) {
  .performance-site #epic-bio .bio-photo { margin-top: 0; }
}

/* ---------- 2b. CTA: krem -> gelap sinematik, panel form menyala ---------- */
.performance-site #cta.signup-section {
  --atm-photo: url(../bg-cta.webp);
  --atm-blend: normal;
  --atm-base: #121310;
  --atm-solid: #121310;
  --atm-shade: linear-gradient(180deg, rgba(18, 19, 16, .5) 0, rgba(18, 19, 16, .86) 300px, #121310 520px);
  --atm-glow: radial-gradient(52% 560px at 80% 120px, rgba(237, 106, 22, .24), transparent 70%);
  color: #f5f5ef;
  border-top-color: #ffffff1a;
}

.performance-site :is(#cta.signup-section, #epic-bio.bio-editorial) .section-kicker { color: #ff852e; }
.performance-site #cta #signup-heading span { color: #ff852e; }
.performance-site #cta .signup-lead { color: #c9cac1; }
.performance-site #cta .signup-presenter { border-top-color: #ffffff21; }
.performance-site #cta .signup-presenter blockquote p { color: #f6f6f0; }
.performance-site #cta .signup-presenter figcaption span { color: #a9aaa1; }
.performance-site #cta .signup-presenter figcaption span::before { color: #ff852e; }
.performance-site #cta .signup-panel {
  background: #191a17;
  border-color: #ffffff24;
  border-top-color: #ed6a16;
  box-shadow: 0 0 0 1px #ffffff0a, 0 44px 120px -44px rgba(237, 106, 22, .6), 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.performance-site #cta #faq.signup-faq { color: #f5f5ef; border-top-color: #ffffff21; }
.performance-site #cta #faq.signup-faq .signup-kicker,
.performance-site #cta .signup-question-number { color: #ff852e; }
.performance-site #cta #faq.signup-faq #signup-faq-heading { color: #f6f6f0; }
.performance-site #cta #faq.signup-faq details { border-bottom-color: #ffffff21; }
.performance-site #cta #faq.signup-faq details p { color: #b8b9b1; }
.performance-site #cta .signup-faq-cta { background: #1d1e1b; border-color: #ffffff33; }

/* ---------- 2c. Video ambient: menggantikan foto diam di desktop ---------- */
/* Pembungkus meniru latar section (warna dasar, peredup, cahaya, grain) dengan video di tempat foto,
   lalu muncul perlahan saat video siap. atmosphere.js yang memuat dan memutarnya. */
.performance-site :is(#epic-bio.bio-editorial, #cta.signup-section) { position: relative; }
.performance-site :is(.bio-shell, .signup-shell) { position: relative; z-index: 1; }
.atm-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background-color: var(--atm-solid, #141512); opacity: 0; transition: opacity 1.4s ease; }
.atm-video.is-ready { opacity: 1; }
.atm-video video { position: absolute; top: 0; left: 50%; width: max(100%, 1300px); height: auto; translate: -50% 0; }
.atm-video::after { content: ''; position: absolute; inset: 0; background-image: var(--grain-white), var(--atm-glow), var(--atm-shade); background-repeat: repeat, no-repeat, no-repeat; background-size: 220px 220px, 100% 100%, 100% 100%; }
@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  .atm-video { display: none; }
}

/* Training: layar funnel digeser ke kanan supaya tidak bertumpuk dengan judul. */
@media (min-width: 768px) {
  .performance-site #expertise.training-section { background-size: 220px 220px, 100% 100%, 100% 100%, max(125%, 1300px) auto; }
  .performance-site #expertise .atm-video video { left: 0; width: max(125%, 1300px); translate: none; }
}

/* ---------- 3. Section terang: tidak lagi polos ---------- */
/* Lapisan (atas ke bawah): grain, semburat oranye, semburat krem, pemudar grid, garis grid. */
.performance-site :is(#insight.insight-section, #story.journey-section, #lifestyle.design-light, #framework.system-section, #audience.audience-section) {
  background-image:
    var(--grain-ink),
    radial-gradient(46% 520px at var(--atm-warm, 100% 0), rgba(237, 106, 22, .13), transparent 72%),
    radial-gradient(42% 480px at var(--atm-sand, 0 100%), rgba(214, 190, 150, .34), transparent 72%),
    radial-gradient(ellipse 62% 640px at var(--atm-warm, 100% 0), rgba(247, 246, 240, 0) 0, #f7f6f0 78%),
    linear-gradient(rgba(17, 18, 16, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 16, .07) 1px, transparent 1px) !important;
  background-size: 220px 220px, 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px !important;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, repeat, repeat !important;
  background-position: 0 0, 0 0, 0 0, 0 0, center top, center top !important;
}

/* Sudut hangat berganti sisi tiap section supaya tidak terasa seperti pola berulang. */
.performance-site #story.journey-section,
.performance-site #framework.system-section { --atm-warm: 0 0; --atm-sand: 100% 100%; }

@media (max-width: 767px) {
  .performance-site :is(#expertise.training-section, #gallery.proof-section, #epic-bio.bio-editorial, #cta.signup-section) {
    background-size: 220px 220px, 100% 100%, 100% 100%, 900px auto;
  }
}
