/* ============================================================
   janvz.art — design system
   Pure monochrome. bg #000 / text #fff. No accent colors.
   No borders, shadows, gradients, or decorative elements.
   ============================================================ */

/* --- Self-hosted Franklin Gothic ATF (woff2, converted from ATF .otf) --- */
@font-face {
  font-family: "Franklin Gothic ATF";
  src: url("/assets/fonts/franklin-gothic-atf-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Franklin Gothic ATF";
  src: url("/assets/fonts/franklin-gothic-atf-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Franklin Gothic ATF";
  src: url("/assets/fonts/franklin-gothic-atf-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --gap: clamp(12px, 2.4vw, 28px);
  --pad: clamp(16px, 3vw, 40px);
  --nav-h: 56px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hover-ms: 100ms;
  font-family: "Franklin Gothic ATF", "Franklin Gothic Medium",
    "Arial Narrow", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: inherit;
  line-height: 1.4;
  text-transform: uppercase;
}

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

img {
  display: block;
  max-width: 100%;
}

/* --- Navigation --------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: var(--bg);
}

.nav__brand {
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  opacity: 1;
  transition: opacity var(--hover-ms) var(--ease);
}
.nav__brand:hover {
  opacity: 0.7;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
  transition: opacity var(--hover-ms) var(--ease);
}
.nav__link:hover {
  opacity: 1;
}
.nav__link[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 8px 0;
}

@media (max-width: 640px) {
  .nav__toggle {
    display: inline-block;
  }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--pad);
    background: var(--bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 160ms var(--ease);
  }
  .nav__links--open {
    max-height: 60vh;
    padding-bottom: 16px;
  }
  .nav__link {
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* --- Work grid (Film / Music / Art) — full-bleed, gapless --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* film/video proportion; overridden per page */
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.grid--square .tile {
  aspect-ratio: 1 / 1; /* Music covers + Art default to square */
}

/* --- All-works collage (homepage) — full-bleed, gapless masonry --- */
.grid--all {
  column-count: 3;
  column-gap: 0;
  margin: 0;
  padding: 0;
  font-size: 0; /* kill inline-block whitespace between tiles */
}
@media (max-width: 900px) {
  .grid--all {
    column-count: 2;
  }
}
@media (max-width: 520px) {
  .grid--all {
    column-count: 1;
  }
}
.grid--all .tile {
  display: block;
  width: 100%;
  aspect-ratio: auto; /* natural height from each image — collage feel */
  margin: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.grid--all .tile .tile__img {
  height: auto; /* full image, no crop */
}

/* Homepage: nav overlays the collage (alpernia-style). Solid black sits ONLY
   behind the text (wordmark + links); the gaps over imagery stay transparent. */
.home .nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  padding: 0;
  background: transparent;
  align-items: stretch; /* let the black blocks fill the nav height */
}
.home .nav__brand,
.home .nav__links {
  display: flex;
  align-items: center;
  background: #000;
  padding: 0 var(--pad);
}
/* The toggle keeps its base display (hidden on desktop); just back it in black. */
.home .nav__toggle {
  background: #000;
  padding: 0 var(--pad);
}
@media (max-width: 640px) {
  .home .nav__toggle {
    display: flex;
    align-items: center;
  }
  /* Mobile dropdown sits flush under the brand; keep it solid black. */
  .home .nav__links {
    padding-top: 0;
    padding-bottom: 0;
  }
  .home .nav__links--open {
    padding-bottom: 16px;
  }
}

.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity var(--hover-ms) var(--ease);
}
.tile:hover .tile__img {
  opacity: 0.7;
}

/* Title + year overlay — the ONLY text on work pages */
.tile__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  opacity: 0;
  transition: opacity var(--hover-ms) var(--ease);
  pointer-events: none;
}
.tile:hover .tile__meta,
.tile.is-pressed .tile__meta {
  opacity: 1;
}
.tile__title {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.tile__year {
  font-size: 0.82rem;
  opacity: 0.7;
}
/* Credits (e.g. collaborating artists) — own line under the title */
.tile__credit {
  flex-basis: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.65;
}

/* Hover/focus-to-play inline video preview (Film) — alpernia-style */
.tile__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none; /* clicks pass through to the tile (opens lightbox) */
}
.tile__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tile.is-playing .tile__video {
  opacity: 1;
}

/* Placeholder tile (no asset yet) — plain black still */
.tile--placeholder {
  background: #000;
}
.tile--placeholder .tile__img {
  /* black-on-black; nothing visible until a real still is added */
  background: #000;
}

/* --- Lightbox / modal (Film embeds + Art full image) -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(0, 0, 0, 0.96);
}
.lightbox.is-open {
  display: flex;
}
.lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
}
.lightbox__media {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.lightbox__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox__img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--hover-ms) var(--ease);
}
.lightbox__close:hover {
  opacity: 1;
}

/* --- Editorial pages (About / Contact) ---------------------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 140px) var(--pad);
}
.page--center {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__alias {
  font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.4em;
}
.about__lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  margin: 0 0 1.6em;
  opacity: 0.95;
}
.about__bio {
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.6em;
  opacity: 0.85;
}
.about__lakraz {
  font-size: 1.02rem;
}
.about__lakraz a {
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.85;
  transition: opacity var(--hover-ms) var(--ease);
}
.about__lakraz a:hover {
  opacity: 1;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
.contact__list a {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: opacity var(--hover-ms) var(--ease);
}
.contact__list a:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
