/* BNI FP — presentation design system
   Premium, cinematic, warm. Dark stage, gold light, garden green.
   No web fonts: everything must work with zero network. */

:root {
  --ink:          #0B0C0A;
  --ink-2:        #14160F;
  --ink-3:        #1D2016;
  --line:         rgba(255, 255, 255, .10);
  --line-2:       rgba(255, 255, 255, .18);

  --paper:        #F6F3EA;
  --paper-dim:    rgba(246, 243, 234, .72);
  --paper-faint:  rgba(246, 243, 234, .48);

  --gold:         #E4C169;
  --gold-hi:      #F7E7BC;
  --gold-deep:    #A8823A;
  --green:        #4A5B33;
  --green-hi:     #8FA86A;
  --blue:         #6E8FB8;
  --danger:       #C4614B;

  --grad-gold:    linear-gradient(100deg, #D9B45A 0%, #F7E7BC 46%, #C79F45 100%);
  --grad-stage:   radial-gradient(120% 90% at 50% 0%, #1B1E14 0%, #0B0C0A 60%);

  --r-sm: 8px;
  --r:    16px;
  --r-lg: 26px;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t:    cubic-bezier(.22, .61, .36, 1);
  --speed: 1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.04;
}

p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------------- helpers */
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: clamp(13px, .78vw, 15px);
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022));
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hairline { height: 1px; background: var(--line); border: 0; }

/* -------------------------------------------------------- reveal system */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity   calc(.62s / var(--speed)) var(--t),
    transform calc(.62s / var(--speed)) var(--t),
    filter    calc(.62s / var(--speed)) var(--t);
  filter: blur(6px);
  will-change: opacity, transform;
}
/* Starting offsets MUST be declared before the `.on` rule: they have the
   same specificity, so whichever comes last wins. `.on` has to come last or
   revealed elements never settle back to their resting position. */
[data-reveal][data-anim="rise"]  { transform: translateY(46px); }
[data-reveal][data-anim="fall"]  { transform: translateY(-30px); }
[data-reveal][data-anim="left"]  { transform: translateX(-46px); }
[data-reveal][data-anim="right"] { transform: translateX(46px); }
[data-reveal][data-anim="zoom"]  { transform: scale(.86); }
[data-reveal][data-anim="fade"]  { transform: none; }

[data-reveal].on,
[data-reveal][data-anim].on {
  opacity: 1;
  transform: none;
  filter: none;
}

.reduce-motion [data-reveal] {
  transition-duration: .12s !important;
  filter: none !important;
  transform: none !important;
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
}

/* ------------------------------------------------------------- the stage */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--grad-stage);
}

.scene {
  position: absolute;
  inset: 0;
  /* grid + align-content centres the single row deterministically; a column
     flexbox let the wrap ride to the top once its children were absolute. */
  display: grid;
  grid-template-columns: 100%;
  align-content: center;
  justify-items: stretch;
  padding: clamp(28px, 4.4vw, 86px);
  opacity: 0;
  pointer-events: none;
  transition: opacity calc(.5s / var(--speed)) var(--t);
}
.scene > * { min-width: 0; }
.scene.active { opacity: 1; pointer-events: auto; }

.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .30;
  transform: scale(1.06);
  transition: opacity 1.2s var(--t), transform 14s linear;
  z-index: 0;
}
.scene.active .scene-bg { transform: scale(1.13); }

.scene-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 10, .55) 0%, rgba(11, 12, 10, .80) 58%, rgba(11, 12, 10, .96) 100%);
  z-index: 1;
}

.scene-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  /* auto-fit: stage.js lowers --fit when a scene would overflow the screen */
  --fit: 1;
  transform: scale(var(--fit));
  transform-origin: center center;
  transition: transform .35s var(--t);
}

/* mist */
.mist {
  position: absolute;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(46% 30% at 22% 72%, rgba(226, 232, 214, .16), transparent 70%),
    radial-gradient(40% 26% at 74% 62%, rgba(226, 232, 214, .12), transparent 72%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.1); }
}

/* --------------------------------------------------------------- typography */
.display {
  font-size: clamp(34px, 4.5vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
}
.headline {
  font-size: clamp(28px, 3.4vw, 62px);
  font-weight: 750;
}
.subhead {
  font-size: clamp(15px, 1.28vw, 26px);
  line-height: 1.45;
  color: var(--paper-dim);
  font-weight: 400;
  max-width: 42ch;
}
.body-lg {
  font-size: clamp(14px, 1.06vw, 21px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 48ch;
}
.callout {
  font-size: clamp(17px, 1.55vw, 32px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--gold-hi);
  max-width: 30ch;
}

/* ------------------------------------------------------------------ chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em 1em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: clamp(13px, .92vw, 17px);
  background: rgba(255, 255, 255, .05);
}
.chip.gold { border-color: rgba(228, 193, 105, .45); color: var(--gold-hi); }
.chip.done { border-color: rgba(143, 168, 106, .5); color: var(--green-hi); }

/* ----------------------------------------------------------- partner card */
.partner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 22px);
}
.partner-logo {
  height: clamp(46px, 5vw, 94px);
  width: auto;
  max-width: clamp(150px, 17vw, 330px);
  object-fit: contain;
  border-radius: 10px;
}
.partner-name { font-size: clamp(15px, 1.25vw, 26px); font-weight: 700; }
.partner-tag  { font-size: clamp(13px, .86vw, 16px); color: var(--paper-faint); }

/* placeholder when a logo is missing */
.logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(46px, 5vw, 94px);
  padding: 0 clamp(14px, 1.4vw, 26px);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--paper-faint);
  font-size: clamp(13px, .9vw, 16px);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* ------------------------------------------------------------------ misc */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 60px); align-items: center; }
.stack  { display: flex; flex-direction: column; }
.row    { display: flex; align-items: center; }
.gap-s  { gap: clamp(6px, .6vw, 12px); }
.gap-m  { gap: clamp(12px, 1.2vw, 24px); }
.gap-l  { gap: clamp(20px, 2vw, 40px); }
.wrap   { flex-wrap: wrap; }

/* blackout overlay */
.blackout {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--t);
}
.blackout.on { opacity: 1; pointer-events: auto; }
.blackout img { max-width: 34vw; opacity: .85; }
.blackout p { color: rgba(255, 255, 255, .5); letter-spacing: .16em; text-transform: uppercase; font-size: 14px; }

/* connection toast on the audience screen (diagnostics only) */
.diag {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 95;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
  display: none;
}
.diag.show { display: block; }

@media (max-width: 1400px) { :root { --r-lg: 20px; } }
