/* ============================================================
   RIYACTION.COM — shared styles
   Palette: abyss teal + bone + gold (matches RIYACTION brand)
   Type: Archivo Black (display) / Spectral (prose) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --abyss: #08181d;        /* page background */
  --deep: #0f2c33;         /* panels / cards */
  --ink: #ede7da;          /* body text */
  --faded: rgba(237, 231, 218, 0.55);
  --gold: #eccb5a;         /* single accent — same gold as poster slides */
  --aqua: #7fb0b5;         /* secondary, hover states */
  --maxw: 42rem;           /* prose column width */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--abyss); }

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 10;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(8, 24, 29, 0.85), transparent);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover, .nav a:focus-visible { color: var(--gold); }
.nav a.active { color: var(--gold); }

.nav .wordmark { font-weight: 700; letter-spacing: 0.28em; }

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* ---------- Inner pages ---------- */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9rem 1.5rem 6rem;
}

.page-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1.display {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.page p { margin-bottom: 1.4rem; }

.page em { font-style: italic; }

/* skim anchors — the bolded trail through the bio */
.hl {
  font-weight: 600;
  color: var(--gold);
}

a.inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}
a.inline:hover, a.inline:focus-visible { color: var(--gold); }

/* ---------- Landing page ---------- */

.landing {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.landing video, .landing .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* animated underwater gradient shown until/unless a video loads */
.video-fallback {
  background: linear-gradient(200deg, #0f2c33, #08181d 45%, #123a44 90%);
  background-size: 200% 200%;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

.landing .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 29, 0.85) 0%, rgba(8, 24, 29, 0.15) 45%, rgba(8, 24, 29, 0.35) 100%);
}

.hero {
  position: absolute;
  left: 2rem;
  bottom: 3rem;
  z-index: 2;
}

.hero h1 {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 1.2rem;
}

/* viewfinder HUD — the signature element */
.hud {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--faded);
  text-align: right;
  user-select: none;
}

.hud .rec {
  color: var(--gold);
}

.hud .rec::before {
  content: "●";
  margin-right: 0.5em;
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

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

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faded);
}

/* ---------- Shell / placeholder pages ---------- */

.placeholder {
  border: 1px dashed rgba(237, 231, 218, 0.25);
  padding: 2rem;
  color: var(--faded);
  font-size: 1rem;
}

/* ---------- Accessibility & mobile ---------- */

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

@media (prefers-reduced-motion: reduce) {
  .video-fallback { animation: none; }
  .hud .rec::before { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .nav {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav ul { gap: 1.05rem; flex-wrap: wrap; font-size: 0.78rem; }
  .wordmark img { height: 13px; }
  .hero { left: 1.25rem; bottom: 2.25rem; }
  .hud { right: 1.25rem; bottom: 1rem; }
  .page { padding-top: 8.5rem; }
}

/* ============ LIGHT pink VARIANT ============ */
:root {
  --abyss: #f7ebe5;
  --deep: #efdcd2;
  --ink: #12333b;
  --faded: rgba(18, 51, 59, 0.55);
  --gold: #c9a227;
  --aqua: #2f6b74;
}
.nav { background: linear-gradient(to bottom, #f7ebe5ea, transparent); }
::selection { background: #12333b; color: #f7ebe5; }
.hl { color: #12333b; background: #f5df76; padding: 0.05em 0.28em; margin: 0 -0.05em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 600; }
a.inline { text-decoration-color: #a65b32; }
:focus-visible { outline-color: #12333b; }

.wordmark img { height: 16px; width: auto; display: block; }

/* film + resume page components */
.film-entry { margin-bottom: 2.6rem; }
.film-entry h2 { font-family: "Spectral", serif; font-weight: 600; font-size: 1.35rem; margin-bottom: 0.2rem; }
.film-meta { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faded); margin-bottom: 0.7rem; }
.section-head { font-family: "Archivo Black", sans-serif; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 3.5rem 0 1rem; }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.resume-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem; background: var(--deep); border-radius: 4px; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.resume-card:hover, .resume-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(18,51,59,0.12); }
.resume-kicker { font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6510; }
.resume-title { font-weight: 600; line-height: 1.4; }
.resume-cta { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.14em; margin-top: auto; }
@media (max-width: 640px) { .resume-grid { grid-template-columns: 1fr; } }

/* posters on film page */
.film-entry.has-poster { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: start; }
.film-entry .poster { width: 100%; border-radius: 3px; box-shadow: 0 6px 18px rgba(18,51,59,0.18); }
@media (max-width: 640px) { .film-entry.has-poster { grid-template-columns: 1fr; } .film-entry .poster { max-width: 260px; } }

/* contact socials */
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.resume-note { margin-top: 3rem; }

/* Trailing "also in development" line under Upcoming Work */
.also-dev { font-size: 0.85rem; color: var(--faded); margin-top: -0.5rem; }

/* Sound section poster strip — one row of vertical posters */
.sound-strip {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.4rem 0 1.6rem;
}
.sound-strip img {
  height: 150px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(18,51,59,0.16);
  transition: transform 0.18s ease;
}
.sound-strip img:hover { transform: translateY(-3px); }
@media (max-width: 640px) { .sound-strip { flex-wrap: wrap; } .sound-strip img { height: 108px; } }

/* Nika gallery */
.nika-gallery {
  columns: 3;
  column-gap: 0.8rem;
  margin-top: 1.6rem;
}
.nika-gallery img {
  width: 100%;
  margin-bottom: 0.8rem;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(18,51,59,0.15);
}
@media (max-width: 640px) { .nika-gallery { columns: 2; } }
