/* ─────────────────────────────────────────────────────────────────────────────
   Design tokens — ZIS 2026 signage

   Every screen is laid out on a fixed 1920 × 1080 stage that is scaled to fit
   the display (see base.css). So all sizes below are plain pixels measured
   directly off ZIS_Signage_Agenda.pdf, and one value means the same thing on a
   4K wall and on a laptop preview.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* ── Stage ─────────────────────────────────────────────────────────────── */
  --stage-w: 1920px;
  --stage-h: 1080px;

  /* Page margins as measured in the source deck. */
  --margin-left: 60.5px;
  --margin-right: 80px;
  --margin-top: 40px;
  --content-w: 1780.5px; /* the row band spans 60.5 → 1841 */

  /* ── Brand ─────────────────────────────────────────────────────────────── */
  --zeiss-blue: #0f2db3;
  --ink: #1d1d1b;
  --paper: #ffffff;

  /* ZEISS Innovation Talks: their tile and their door card are grey, with
     the lightbulb and the text in black, so the stage reads apart from the
     blue breaks and plenary sessions. */
  --innovation-grey: #d9d9d9;

  /* The dark stage behind the blurred-diamond backdrop. Used wherever the
     photo has not loaded yet so a screen never flashes white. */
  --backdrop: #2b3040;
  --backdrop-deep: #04070f;

  /* ZEISS spectrum — the brand gradient, sampled from the source artwork.
     Used for card edges and the outline "rainbow" icons. */
  --spectrum: linear-gradient(
    90deg,
    #9d7eb8 0%, #8a57a2 5%, #77308b 9%, #572b87 14%, #31388f 19%,
    #21509e 23%, #457fbf 28%, #69afe1 33%, #45a2c8 38%, #1e93ad 42%,
    #12868e 47%, #167a6b 52%, #287b4b 56%, #5c9d36 61%, #91be20 66%,
    #bdbf19 70%, #e8bc12 75%, #f6a014 80%, #ef721c 84%, #e54725 89%,
    #d02935 94%, #b90748 100%
  );
  /* Same stops, running top-to-bottom. Card edges use this one: the source
     artwork rotates the gradient 90° for them. */
  --spectrum-v: linear-gradient(
    180deg,
    #9d7eb8 0%, #8a57a2 5%, #77308b 9%, #572b87 14%, #31388f 19%,
    #21509e 23%, #457fbf 28%, #69afe1 33%, #45a2c8 38%, #1e93ad 42%,
    #12868e 47%, #167a6b 52%, #287b4b 56%, #5c9d36 61%, #91be20 66%,
    #bdbf19 70%, #e8bc12 75%, #f6a014 80%, #ef721c 84%, #e54725 89%,
    #d02935 94%, #b90748 100%
  );

  /* ── Customer segments (mirrors public/assets/segments.json) ───────────── */
  --seg-materials-research: #7f00af;
  --seg-medical: #0032b4;
  --seg-aerospace: #6ab0e2;
  --seg-metal-products: #0f8ca0;
  --seg-power-energy: #1e7650;
  --seg-life-sciences: #8dc52c;
  --seg-automotive: #fdbb08;
  --seg-electronics-semiconductor: #ff4b08;
  --seg-machinery-robotics: #a70240;

  /* ── Type ──────────────────────────────────────────────────────────────── */
  --font-head: 'ZEISS Head', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'ZEISS Text', 'Helvetica Neue', Arial, sans-serif;

  /* Sizes measured from the deck (cap heights / font metrics, not guesses). */
  --type-headline: 90px;   /* "Agenda Overview" */
  --type-colhead: 24px;    /* SESSION TITLE / TIME / DESTINATION */
  --type-row-title: 28px;
  --type-row-meta: 24px;   /* speaker line */
  --type-row-time: 28px;

  /* ── Agenda rows ───────────────────────────────────────────────────────── */
  --row-h: 100px;
  --row-gap: 12.26px;      /* row pitch 112.26 */
  --row-first-top: 232.5px;
  --tile-size: 100px;

  /* The title column is left-aligned; TIME and DESTINATION are centred on
     these axes — header and value share an axis in the source deck. */
  --col-title-x: 191.42px;
  --col-time-axis: 1365.7px;
  --col-dest-axis: 1607.3px;

  /* The frosted band behind each row: a white band whose own alpha runs
     linearly from 0.98 to 0.25, drawn at 20% — so 0.196 → 0.049 overall.
     Read from the band artwork in the deck, not sampled off a render. */
  --row-wash: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.196) 0%,
    rgba(255, 255, 255, 0.049) 100%
  );
  --row-wash-highlight: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );

  /* ── Motion ────────────────────────────────────────────────────────────── */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --overlay-in: 520ms;
  --overlay-out: 380ms;
}

/* Signage runs unattended; honour the OS setting anyway for the preview/admin
   use case and for anyone who finds the motion uncomfortable. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --overlay-in: 1ms;
    --overlay-out: 1ms;
  }
}
