/* ============================================================
   ARTO deck engine (trimmed from the ASM 2026 deck)
   Shell, type, placeholders and presenter chrome only: navy gradient stage,
   coral accent, self-hosted Raleway so venue wifi never matters.
   ============================================================ */

@font-face { font-family: "Raleway"; src: url("fonts/Raleway-Light.woff2")   format("woff2"); font-weight: 300; font-style: normal; font-display: block; }
@font-face { font-family: "Raleway"; src: url("fonts/Raleway-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Raleway"; src: url("fonts/Raleway-Bold.woff2")    format("woff2"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Raleway"; src: url("fonts/Raleway-Black.woff2")   format("woff2"); font-weight: 900; font-style: normal; font-display: block; }

:root {
  --navy-hi:  #33407F;
  --navy-mid: #232B5E;
  --navy-lo:  #161B40;
  --cream:    #F4F1E9;
  --coral:    #F0705C;
  --coral-dk: #D85A46;
  --blue:     #8FA0DC;

  --ink:      var(--cream);
  --ink-soft: rgba(244, 241, 233, 0.68);
  --ink-dim:  rgba(244, 241, 233, 0.42);
  --card:     rgba(244, 241, 233, 0.07);
  --card-line:rgba(244, 241, 233, 0.14);
  --ease:     cubic-bezier(.22,.75,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; overflow: hidden;
  background: var(--navy-lo);
  font-family: "Raleway", "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- deck shell ---------- */
.deck { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 480ms ease, visibility 0s linear 480ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 480ms ease, visibility 0s; }

/* 16:9 stage, always full width; cqw units keep every slide identical at any
   projector resolution. */
.stage {
  width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9;   /* fits the window either way, so nothing is cut off */
  container-type: inline-size;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 95% at 18% 8%, rgba(90, 108, 190, 0.34) 0%, rgba(90, 108, 190, 0) 62%),
    linear-gradient(135deg, var(--navy-hi) 0%, var(--navy-mid) 48%, var(--navy-lo) 100%);
}
.stage.cream { background: var(--cream); color: var(--navy-lo); }
.stage.black { background: #000; }

.pad {
  position: absolute; inset: 0;
  padding: 7cqw 7.5cqw;
  display: flex; flex-direction: column;
}

/* entrance — children rise as the slide becomes active */
.slide.is-active .anim { animation: rise 640ms var(--ease) backwards; }
.slide.is-active .anim:nth-child(1) { animation-delay:  60ms; }
.slide.is-active .anim:nth-child(2) { animation-delay: 150ms; }
.slide.is-active .anim:nth-child(3) { animation-delay: 240ms; }
.slide.is-active .anim:nth-child(4) { animation-delay: 330ms; }
.slide.is-active .anim:nth-child(5) { animation-delay: 420ms; }
@keyframes rise { from { opacity: 0; transform: translateY(1.6cqw); } to { opacity: 1; transform: none; } }

/* Beats within a slide. [data-show="n"] waits for the nth advance. */
[data-show] {
  opacity: 0; transform: translateY(1.4cqw);
  transition: opacity 560ms ease, transform 640ms var(--ease);
}
[data-show].shown { opacity: 1; transform: none; }

/* ---------- ARTO mark (filled in by deck.js) ---------- */
.mark { position: absolute; top: 7cqw; right: 6cqw; width: 4.4cqw; opacity: 0.8; z-index: 3; }
.mark svg { width: 100%; display: block; fill: currentColor; }
.cream .mark { color: var(--navy-mid); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 1.25cqw; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 2cqw;
}
.title {
  font-size: 4.6cqw; font-weight: 900; line-height: 1.06;
  letter-spacing: -0.015em; text-wrap: balance; max-width: 74cqw;
}
.title.sm { font-size: 3.6cqw; }
.title em { font-style: normal; color: var(--coral); }
.sub {
  font-size: 1.75cqw; font-weight: 300; line-height: 1.5;
  color: var(--ink-soft); margin-top: 1.6cqw; max-width: 60cqw;
}
.cream .sub { color: rgba(22, 27, 64, 0.7); }
.src { font-size: 1.05cqw; font-weight: 300; color: var(--ink-dim); letter-spacing: 0.03em; }

/* ---------- placeholders still to fill ---------- */
.todo {
  border: 0.16cqw dashed var(--coral); border-radius: 0.8cqw;
  padding: 0.3cqw 0.9cqw; color: var(--coral); font-weight: 700;
  display: inline-block; font-size: 0.85em; line-height: 1.3;
}
.todo-block {
  border: 0.16cqw dashed var(--coral); border-radius: 1.1cqw;
  padding: 1.6cqw 1.8cqw; color: var(--coral);
  display: flex; flex-direction: column; gap: 0.5cqw;
}
.todo-l { font-size: 1.05cqw; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.todo-d { font-size: 1.15cqw; font-weight: 300; line-height: 1.45; opacity: 0.88; }


/* ============================================================
   Chrome
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--coral); transition: width 380ms ease; z-index: 40; }
.fsbtn {
  position: fixed; top: 1.1rem; right: 1.2rem; z-index: 45;
  width: 2.5rem; height: 2.5rem; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(244, 241, 233, 0.2); border-radius: 7px;
  background: rgba(14, 18, 44, 0.55); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  color: var(--ink-soft); cursor: pointer;
  transition: opacity 320ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.fsbtn:hover { color: var(--cream); border-color: var(--coral); background: rgba(14, 18, 44, 0.8); }
.fsbtn svg { width: 1.05rem; height: 1.05rem; display: block; }
.fsbtn .fs-out { display: none; }
.fsbtn.is-full .fs-in  { display: none; }
.fsbtn.is-full .fs-out { display: block; }
.fsbtn.idle { opacity: 0; pointer-events: none; }
.fsbtn:focus-visible { opacity: 1; pointer-events: auto; }
.hint { position: fixed; bottom: 1.4rem; left: 1.6rem; z-index: 40; font-size: 0.72rem; font-weight: 300; letter-spacing: 0.08em; color: var(--ink-dim); transition: opacity 500ms ease; }
.hint.gone { opacity: 0; pointer-events: none; }
.notes {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(12, 15, 34, 0.94); border-top: 2px solid var(--coral);
  padding: 1.3rem 1.8rem 1.5rem; transform: translateY(101%); transition: transform 300ms ease;
  max-height: 42vh; overflow-y: auto;
}
.notes.open { transform: none; }
.notes h4 { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.5rem; font-weight: 900; }
.notes p { font-size: 0.95rem; font-weight: 300; line-height: 1.55; color: var(--ink-soft); max-width: 60rem; }
.overview {
  position: fixed; inset: 0; z-index: 60; background: rgba(11, 14, 32, 0.97);
  padding: 2.5rem; overflow-y: auto; display: none;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; align-content: start;
}
.overview.open { display: grid; }
.ov {
  aspect-ratio: 16/9; border-radius: 5px; cursor: pointer; border: 2px solid transparent;
  background: linear-gradient(135deg, var(--navy-hi), var(--navy-lo));
  padding: 0.9rem 1rem; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 160ms ease, transform 160ms ease; text-align: left; font-family: inherit; color: inherit;
}
.ov:hover, .ov:focus-visible { border-color: var(--coral); transform: translateY(-2px); outline: none; }
.ov.current { border-color: var(--coral); }
.ov-n { font-size: 0.68rem; font-weight: 900; color: var(--coral); letter-spacing: 0.1em; }
.ov-t { font-size: 0.9rem; font-weight: 700; line-height: 1.25; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .slide, .progress, .notes, .ov, [data-show] { transition-duration: 1ms; }
  .slide.is-active *, .slide.is-active *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
@media (max-aspect-ratio: 1/1) { .hint { display: none; } }
