/* =============================================================
   SENEX FILMS — STYLESHEET
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #0d0d0d;
  --red: #ff2828;
  --red-glow: rgba(255, 40, 40, 0.6);
  --text: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.28);
  --border: rgba(255, 255, 255, 0.08);
  --font: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

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

html, body {
  height: 100%;
}

body {
  background:
    /* radial red atmospheric tint */
    radial-gradient(ellipse at center, rgba(255, 40, 40, 0.05) 0%, transparent 65%) fixed,
    /* horizontal scanlines */
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 5px
    ) fixed,
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

main, header, footer {
  position: relative;
}

/* =============================================================
   HOMEPAGE
   ============================================================= */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px 80px;
}

.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-logo {
  max-width: 620px;
  width: 82%;
  height: auto;
  animation: flicker 9s infinite;
}

.home-nav {
  margin-top: 80px;
  display: flex;
  gap: 40px;
}

.home-nav a {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.home-nav a:hover {
  color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
}

/* =============================================================
   SUB-PAGES (about / films / contact)
   ============================================================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
}

.brand {
  text-decoration: none;
  color: var(--red);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-shadow: 0 0 6px var(--red-glow);
  animation: flicker 9s infinite;
  transition: text-shadow 0.2s ease;
}

.brand:hover {
  text-shadow: 0 0 10px var(--red), 0 0 22px var(--red-glow);
}

.page-nav {
  display: flex;
  gap: 28px;
}

.page-nav a {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.page-nav a:hover {
  color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.page-content h1 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  margin-bottom: 50px;
  text-transform: uppercase;
}

.page-content p {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 20px;
}

/* Contact page */
.contact-email {
  display: inline-block;
  font-size: 28px;
  font-weight: 400;
  color: var(--red);
  text-decoration: none;
  margin: 30px 0 30px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px var(--red-glow);
  transition: text-shadow 0.2s ease;
}

.contact-email:hover {
  text-shadow: 0 0 18px var(--red), 0 0 36px var(--red-glow);
}

.contact-tag {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 60px 0 50px;
}

.social-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-list a {
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  display: inline-block;
}

.social-list a:hover {
  color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
}

/* Films page */
.film {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.film:last-child {
  border-bottom: 1px solid var(--border);
}

.film-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.film-meta {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.film-logline {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 20px;
}

.film-status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--red);
  padding: 5px 12px;
  border: 1px solid var(--red);
  text-transform: uppercase;
}

/* =============================================================
   FOOTER
   ============================================================= */

.foot {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.home .foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */

@keyframes flicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 1; }
  48% { opacity: 0.82; }
  49% { opacity: 1; }
  50% { opacity: 0.88; }
  51% { opacity: 1; }
  93% { opacity: 1; }
  94% { opacity: 0.72; }
  95% { opacity: 1; }
}

/* =============================================================
   MOBILE
   ============================================================= */

@media (max-width: 640px) {
  .home-logo {
    width: 88%;
  }
  .home-nav {
    margin-top: 50px;
    gap: 24px;
  }
  .page-header {
    padding: 20px;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .page-content {
    padding: 40px 20px 80px;
  }
  .contact-email {
    font-size: 22px;
  }
  .film-title {
    font-size: 18px;
  }
}
