/* ==========================================================================
   Quixale site engine: base styles
   Every length is a design pixel times --u (js/engine.js sets it).
   Colours here are placeholders until the palette is chosen.
   ========================================================================== */
:root {
  --u: calc(100vw / 1920);
  --hair: 1px;
  --ink: #0B0D12;
  --paper: #F4F3EF;
  --accent: #C9A86A;
  --muted: rgba(244, 243, 239, 0.62);
  --line: rgba(244, 243, 239, 0.12);
  --f-body: "Rubik", "Segoe UI", Arial, sans-serif;
  --ease-rise: cubic-bezier(0.22, 0.68, 0.24, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f-body); }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

/* ---- pin: a tall section, a sticky stage inside -------------------------- */
.pin { position: relative; }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pin--static { height: auto !important; }
.pin--static .pin__stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }

/* ---- reveal: the site-wide gentle rise ------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(calc(46 * var(--u)));
  transition: opacity 1.15s var(--ease-rise), transform 1.15s var(--ease-rise);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
