/* ============================================================
   MILOVISION - VENTURES, bright theme (off-white)

   Loads AFTER css/ventures.css and only re-inks what the green theme
   hard-codes to off-white. Only ventures.html loads it, and everything in it hangs off
   .page--bright except the root background rule below.

   This is deliberately NOT .page--paper. That class belongs to
   the legal documents and carries their own layout (top-aligned
   sheet, static footer). A bright venture page keeps the normal
   page mechanics and only swaps the ink.
   ============================================================ */

/* main.css paints <html> petrol so the scrollbar gutter matches the
   green pages. bright.css only ever loads on a bright page, so it can
   claim the root without a :has() guard. */
html {
  background: var(--paper);
  /* tells the engine this page is light: form controls, the overscroll
     area and Safari's own chrome stop guessing from the system setting */
  color-scheme: light;
}

.page--bright {
  background: var(--paper);
  color: var(--green);

  /* the two quiet ink tokens flip from off-white to brand green at
     the SAME alphas, so every soft/dim relationship in the vitrine
     survives the swap untouched */
  --paper-dim: rgba(26, 67, 52, 0.42);
  --paper-soft: rgba(26, 67, 52, 0.78);
  /* hairlines: one step stronger than on green, because a light
     rule on off-white reads weaker than a dark one on green */
  --rule: rgba(26, 67, 52, 0.18);
  --rule-strong: rgba(26, 67, 52, 0.28);
}

/* THE ARRIVAL CURTAIN. Every page arrives covered by .veil, which is a
   solid --green sheet that then fades away. On a bright page that means
   the first painted frame is entirely dark green - a flash, and the
   colour Safari takes for its own bars. The curtain has to be the
   colour of the page it is covering. */
.page--bright .veil { background: var(--paper); }

/* the mobile menu stays a green panel, so inside it the ink has to
   stay off-white - put the original tokens back for that subtree */
.page--bright .menu {
  --paper-dim: rgba(240, 234, 226, 0.42);
  --paper-soft: rgba(240, 234, 226, 0.78);
  color: var(--paper);
}

/* ---------- nav ---------- */
.page--bright .nav__logo,
.page--bright .nav__lens { color: var(--green); }
.page--bright .nav__links a { color: rgba(26, 67, 52, 0.62); }
.page--bright .nav__links a:hover { color: var(--green); }
.page--bright .nav__links a.is-active { color: var(--orange); }
/* while the menu is open the lens sits on the green panel again */
.page--bright.menu-open .nav__lens,
.page--bright.menu-open .nav__logo { color: var(--paper); }

/* the frosted panel behind the nav takes the off-white, same value
   the green build uses on its light pages */
.page--bright .nav::before { background: rgba(240, 234, 226, 0.58); }

/* ---------- headline ---------- */
.page--bright .sheet__title { color: var(--green); }

/* ---------- vitrine: strip controls ---------- */
.page--bright .vitrine__arrow { border-bottom-color: var(--rule-strong); }
.page--bright .vitrine__arrow:hover,
.page--bright .vitrine__arrow:focus-visible { color: var(--green); border-color: var(--orange); }
.page--bright .vitrine__arrow[disabled] { border-color: var(--rule-strong); }

/* ---------- vitrine: label sheet ---------- */
.page--bright .vitrine__panel { border-top-color: var(--rule); }
.page--bright .vpanel__title { color: var(--green); }
.page--bright .vpanel__link { border-bottom-color: var(--rule-strong); }
.page--bright .vpanel__link:hover { color: var(--green); border-color: var(--orange); }

/* the venture CTA is the filled ember pill here, so it needs the
   button's own hover: on off-white the paper-fill hover of the
   green page would make it disappear */
.page--bright .button:hover,
.page--bright .button:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

/* a venture whose page is not live yet: the pill as a quiet status
   label (outline, no fill, no hover) - "Coming soon" */
.page--bright .button--soon,
.page--bright .button--soon:hover {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--green);
  cursor: default;
}

/* ---------- footer ---------- */
.page--bright .footer__row { border-top-color: var(--rule); }
.page--bright .footer__copy,
.page--bright .footer__links a { color: rgba(26, 67, 52, 0.55); }
.page--bright .footer__links a:hover,
.page--bright .footer__links a:focus-visible { color: var(--green); }

/* EU AI Act note, as on the home page (one line above the footer
   hairline). There it fades with the film; here the footer is static,
   so it simply sits in the flow and stays visible */
.page--bright .footer__ai {
  position: static;
  opacity: 1;
  margin: 0 0 12px;
  color: rgba(26, 67, 52, 0.45);
}

/* ---------- pieces still to come ---------- */
/* 04 and 05 carry no render yet. The plate alone is the placeholder:
   an empty, slightly deeper field of the same off-white, so the row
   still reads as five slots without pretending there is an image. */
.piece--placeholder .piece__frame { background: var(--frame-bg); }
.piece--placeholder .piece__float { display: none; }
