/* Fonts are bundled in ./fonts/ and referenced relatively: @font-face URLs
 * resolve against this stylesheet, so the package renders identically on an
 * air-gapped playout box — no network at render time. Licence in fonts/. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;          /* variable axis — one file covers every weight */
  font-display: block;           /* block, not swap: never flash a fallback on air */
  src: url('./fonts/Inter-Variable.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('./fonts/InstrumentSerif-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('./fonts/InstrumentSerif-Regular.woff2') format('woff2');
}

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

/* The graphic's own root. `position: absolute; inset: 0` fills whatever box the
 * renderer hands us: in an iframe mount that is the frame, and inside a shadow
 * root or a positioned container it is that container. `position: fixed` would
 * escape to the browser viewport in the second case. The package never styles
 * `body` — the renderer owns the document, not the graphic. */
.quote-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.quote.visible {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.quote.visible .quote-bg {
  transform: scale(1);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote.visible .quote-text {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.3s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.quote.visible .quote-attr {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.5s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.quote.visible .quote-line {
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.quote.out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.quote-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: scale(1.1);
}

.quote-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 60px;
  text-align: center;
}

.quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 120px;
  line-height: 1;
  color: #2563eb;
  opacity: 0.3;
  margin-bottom: -40px;
}

.quote-text {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  line-height: 1.3;
  color: white;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
}

.quote-line {
  width: 60px;
  height: 2px;
  background: #2563eb;
  margin: 32px auto;
  transform: scaleX(0);
  transform-origin: center;
}

.quote-attr {
  opacity: 0;
  transform: translateY(10px);
}

.quote-author {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

.quote-role {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
