/* ============================================
   Hyperion Productions — Global Styles
   ============================================ */


/* ---------- Fonts (lokal, kein Drittanbieter) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/assets/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/InstrumentSerif-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/InstrumentSerif-Italic.ttf') format('truetype');
}


:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #141414;
  --color-text: #f5f5f5;
  --color-text-muted: rgba(245, 245, 245, 0.7);
  --color-text-faint: rgba(245, 245, 245, 0.5);
  --color-text-faintest: rgba(245, 245, 245, 0.35);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.2);
  --color-accent: #e63946;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --max-width: 1280px;
  --gutter: 28px;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
}

.eyebrow { 
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main {
  flex: 1;
}

/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 0.5px solid var(--color-border);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.site-nav__logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.site-nav__links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.site-nav__links a {
  transition: color 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
  color: var(--color-text);
  border-bottom: 0.5px solid var(--color-accent);
  padding-bottom: 2px;
}

.site-nav__menu-toggle {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  border-top: 0.5px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-faintest);
}

.site-footer__links {
  display: flex;
  gap: 16px;
}

.site-footer__links a {
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-text-muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .site-nav__links {
    display: none;
  }

  .site-nav__menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    margin: -8px;
  }

  .site-nav__menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--color-text);
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---------- Mobile Menu Overlay ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
  color: var(--color-text-muted);
}

/* ============================================
   HYPERION VIDEO PLAYER
   ============================================ */

.hp-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0.5px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.hp-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Poster / Idle State */

.hp-player__poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  background: var(--color-bg-elevated);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hp-player.is-playing .hp-player__poster,
.hp-player.is-paused .hp-player__poster {
  opacity: 0;
}

.hp-player__poster-play {
  width: 72px;
  height: 72px;
  border: 0.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.hp-player:hover .hp-player__poster-play {
  border-color: var(--color-accent);
  transform: scale(1.06);
}

.hp-player__poster-play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid rgba(255,255,255,0.8);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}

.hp-player:hover .hp-player__poster-play::before {
  border-left-color: var(--color-accent);
}

.hp-player__poster-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-text-faint);
}

/* Center Play/Pause Flash */

.hp-player__center-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  pointer-events: none;
}

.hp-player__center-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-player__center-icon.flash {
  opacity: 1;
  transform: scale(1);
}

.hp-player__center-icon svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.9);
}

/* Controls Bar */

.hp-player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 0 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7) 60%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.hp-player.is-playing:hover .hp-player__controls,
.hp-player.is-paused .hp-player__controls,
.hp-player.show-controls .hp-player__controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Progress Bar */

.hp-player__progress {
  position: relative;
  width: 100%;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.hp-player__progress-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  transition: height 0.15s ease;
}

.hp-player__progress:hover .hp-player__progress-track {
  height: 5px;
}

.hp-player__progress-buffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  width: 0%;
}

.hp-player__progress-filled {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.05s linear;
}

.hp-player__progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  z-index: 2;
  box-shadow: 0 0 6px rgba(230,57,70,0.4);
}

.hp-player__progress:hover .hp-player__progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.hp-player__progress-tooltip {
  position: absolute;
  top: -28px;
  left: 0%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.hp-player__progress:hover .hp-player__progress-tooltip {
  opacity: 1;
}

/* Controls Row */

.hp-player__controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hp-player__controls-left,
.hp-player__controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */

.hp-player__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.hp-player__btn:hover {
  color: var(--color-accent);
  background: rgba(255,255,255,0.06);
}

.hp-player__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Time */

.hp-player__time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}

.hp-player__time-separator {
  color: var(--color-text-faintest);
  margin: 0 3px;
}

/* Volume */

.hp-player__volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-player__volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.hp-player__volume:hover .hp-player__volume-slider,
.hp-player__volume-slider:focus {
  width: 60px;
  opacity: 1;
}

.hp-player__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: var(--color-text);
  border-radius: 50%;
  cursor: pointer;
}

.hp-player__volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--color-text);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Fullscreen */

.hp-player:fullscreen,
.hp-player:-webkit-full-screen {
  border-radius: 0;
  border: none;
}

/* Loading Spinner */

.hp-player__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hp-player.is-loading .hp-player__loader {
  opacity: 1;
}

.hp-player__loader-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: hp-spin 0.8s linear infinite;
}

@keyframes hp-spin {
  to { transform: rotate(360deg); }
}

/* Video-Overlay (Fullscreen Lightbox) */

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.video-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-overlay .hp-player {
  max-width: 1400px;
  border: none;
  border-radius: 0;
}

.video-overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 22px;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  transition: color 0.2s ease;
}

.video-overlay__close:hover {
  color: var(--color-accent);
}

/* Mobile */

@media (max-width: 600px) {
  .hp-player__poster-play {
    width: 56px;
    height: 56px;
  }
  .hp-player__poster-play::before {
    border-left-width: 12px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    margin-left: 3px;
  }
  .hp-player__controls {
    padding: 0 10px 8px;
  }
  .hp-player__volume-slider {
    display: none;
  }
}