/* ============================================================
   VFX Skull — Alvaro Moreira
   Shared stylesheet for all pages
   ============================================================ */

/* ---- Design tokens (change these to restyle the whole site) ---- */
:root {
  --bg: #0a0a0a;          /* page background (near-black) */
  --fg: #f2f2f2;          /* main text color (off-white) */
  --muted: #8a8a8a;       /* dimmed text */
  --line: #222;           /* thin divider lines */
  --accent: #ffffff;      /* hover / active color */
  --maxw: 1400px;         /* max content width */
  --gap: 24px;            /* base spacing unit */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

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

/* ============================================================
   HEADER  (appears on every page)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
}
/* Soft dark gradient behind the header so the logo/nav stay legible over
   the reel AND it masks YouTube's own title overlay in the top-left. */
.site-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 150px;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Logo (top-left) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo .mark {
  display: inline-flex;
  align-items: center;
}
.logo .mark svg { width: 20px; height: 20px; display: block; }
.logo .name { font-weight: 600; }
.logo .sep { color: var(--muted); }
.logo .artist { font-weight: 400; color: var(--fg); }

/* Navigation (top-right) */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.nav a {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 1; }

/* subtle underline on the page you're currently on */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
}

.nav .ig {
  display: inline-flex;
  align-items: center;
}
.nav .ig svg { width: 19px; height: 19px; display: block; }

/* ============================================================
   HOME — fullscreen reel
   ============================================================ */
.reel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.reel video,
.reel .placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border: 0;
}
/* YouTube iframe: scale it larger than the screen so the 16:9 video always
   fills the viewport with no black bars (object-fit can't do iframes), and
   the extra scale() crops YouTube's edge chrome (title, logo) off-screen. */
.reel iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  width: 100vw;
  height: 56.25vw;      /* 16:9 based on width  */
  min-width: 177.78vh;  /* 16:9 based on height */
  min-height: 100vh;
  border: 0;
  pointer-events: none; /* it's a background — no clicks, no hover chrome */
}
/* placeholder shown until you add your real reel */
.reel .placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1c1c1c 0%, #0a0a0a 70%);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   PAGE LAYOUT  (Work / Lab / Info)
   ============================================================ */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px 34px 80px;
}

.page-title {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Video gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.video-item { display: block; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #141414;
  overflow: hidden;
  border-radius: 2px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* placeholder tile for galleries before videos are added */
.video-frame.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.video-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg);
}
.video-caption .role {
  color: var(--muted);
  font-size: 13px;
}

/* Instagram-style vertical grid for the Lab page */
.gallery.vertical {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery.vertical .video-frame {
  aspect-ratio: 9 / 16;
}

/* ============================================================
   INFO page
   ============================================================ */
.info {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.info .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #141414;
  border-radius: 2px;
}
.info .bio h1 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.info .bio p {
  color: #cfcfcf;
  margin-bottom: 18px;
  max-width: 60ch;
}
.info .bio .contact {
  margin-top: 34px;
  font-size: 14px;
  color: var(--muted);
}
.info .bio .contact a { color: var(--fg); border-bottom: 1px solid var(--line); }

/* ============================================================
   RESPONSIVE  (phones & tablets)
   ============================================================ */
@media (max-width: 820px) {
  .site-header { padding: 18px 20px; }
  .nav { gap: 20px; }
  .logo .artist { display: none; }   /* shorten logo on small screens */
  .page { padding: 110px 20px 60px; }
  .gallery { grid-template-columns: 1fr; gap: 30px; }
  .gallery.vertical { grid-template-columns: repeat(2, 1fr); }
  .info { grid-template-columns: 1fr; gap: 34px; }
  .info .photo { max-width: 340px; }
}

@media (max-width: 480px) {
  .nav { gap: 16px; font-size: 13px; }
  .gallery.vertical { grid-template-columns: 1fr; }
}
