/* ---------- VARIABLES & COLOR MODE ---------- */
:root {
  --bg: #000;
  --fg: #fff;
  --accent: #fff;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --unit: clamp(0.75rem, 1vw + 0.5rem, 1.25rem);
}
[data-theme="light"] {
  --bg: #fff;
  --fg: #000;
  --accent: #000;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--unit);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.015em;
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 3rem); margin-block: 4rem 2rem; }
h3 { font-size: 1.25em; margin-bottom: 0.5em; }

a:not(nav a) { color: hotpink; }
a:not(nav a):visited { color: hotpink; }
a:not(nav a):hover { background-color: hotpink; color: black; }

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex; justify-content: flex-end;
  padding: 1rem 2rem;
  pointer-events: none;
  z-index: 1000; /* menu above everything */
}
nav { display: flex; gap: 1rem; pointer-events: all; }
nav a, #themeToggle {
  background: none; border: none; color: var(--fg);
  font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: opacity .2s ease;
}
nav a:hover, #themeToggle:hover { opacity: .6; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  filter: brightness(.6);
}
.hero-text { position: relative; z-index: 1; text-align: center; }
.hero-subtitle {
  font-size: clamp(.9rem, 2.2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: .04em;
  margin-top: .75rem;
}

/* ---------- WORKS ---------- */
main { width: min(90%, 80rem); margin-inline: auto; padding-block: 6rem 4rem; }
.work { margin-bottom: 4rem; display: grid; gap: 1rem; align-items: start; }

/* Thumbnail overlay */
.vimeo-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9; cursor: pointer;
  border: 1px solid var(--fg); overflow: hidden;
}
.vimeo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; color: var(--fg);
  background: rgba(0,0,0,.35);
  transition: background .25s ease;
}
.vimeo-thumb:hover .play-icon,
.vimeo-thumb:focus .play-icon { background: rgba(0,0,0,.55); }

figcaption { max-width: 45rem; }

/* Embedded Vimeo player */
.vimeo-player { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--fg); }

/* ---------- ABOUT ---------- */
.about { width: min(90%, 60rem); margin: 0 auto 6rem; }

/* ---------- FOOTER ---------- */
footer {
  width: min(90%, 80rem);
  margin: 0 auto;
  padding: 2rem 0;
}

.acknowledgment {
  text-align: center;
}

.acknowledgment img {
  display: block;
  margin: 0 auto 1rem;
}

.acknowledgment p {
  font-size: 0.5em;
  line-height: 1.5;
  max-width: 45rem;
  margin: 0 auto;
}

/* ---------- MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(3rem); transition: opacity .8s ease, transform .8s ease; }
  .fade-in.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE GRID ---------- */
@media (min-width: 700px) {
  .work { grid-template-columns: 1fr 1fr; }
}