:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #cdb8e6;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent); }

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.bg-video,
.bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Mobile: show animated WebP, hide video element entirely. */
.bg-video { display: none; }
@media (min-width: 721px) {
  .bg-image { display: none; }
  .bg-video { display: block; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.75) 95%),
    rgba(0,0,0,0.30);
}

.hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem;
}

.hero-text h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.taglines {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.pursuit {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- CORNERS ---------- */
.corner {
  position: absolute;
  z-index: 3;
  padding: 1.5rem 1.75rem;
  display: flex;
  font-size: 0.85rem;
}

.corner-left {
  bottom: 0;
  left: 0;
}

.corner-right {
  bottom: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  text-align: right;
}

.email-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 1.1rem;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
  will-change: transform;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 0.7; }
  html { scroll-behavior: auto; }
}

/* ---------- SECTION HEADINGS ---------- */
.about h2,
.projects h2,
.reel h2 {
  margin: 0 0 2.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-align: center;
}

/* ---------- ABOUT ---------- */
.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}
.about p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: #ddd;
}

/* ---------- PROJECTS ---------- */
.projects {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}
.project {
  margin: 0 auto 5rem;
}
.project:last-child { margin-bottom: 2rem; }

.project-media,
.yt-facade,
.yt-player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #111;
  border: 0;
  padding: 0;
  overflow: hidden;
  display: block;
}

.yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-info {
  padding: 1.25rem 0 0;
}
.project-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.project-info .meta {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.project-info .credit {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-weight: 500;
}
.project-info p {
  margin: 0 0 0.65rem;
  color: #ddd;
  font-size: 0.98rem;
}
.project-link {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- YT FACADE ---------- */
.yt-facade {
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease, filter 300ms ease;
}
.yt-facade:hover .yt-thumb,
.yt-facade:focus-visible .yt-thumb {
  transform: scale(1.015);
  filter: brightness(1.06);
}
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 200ms ease;
}
.yt-play::before {
  content: "";
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.yt-play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  transform: scale(1.07);
}
.yt-facade:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- REEL ---------- */
.reel {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.reel-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  background: #000;
}
video.reel-frame {
  object-fit: cover;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- CONTACT PAGE ---------- */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.contact h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.contact .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 3rem;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.email-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  padding: 1.25rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.email-copy:hover,
.email-copy:focus-visible {
  border-color: var(--accent);
  background: rgba(205, 184, 230, 0.05);
}
.email-copy.copied {
  border-color: #6fcf97;
}
.email-copy .email-addr {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.email-copy .copy-hint {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.email-copy.copied .copy-hint {
  color: #6fcf97;
}
.mail-app {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mail-app:hover { color: var(--accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .corner { padding: 1rem 1.1rem; font-size: 0.78rem; }
  .corner-right { gap: 0.3rem; }
  .hero-text h1 { margin-bottom: 1.2rem; }
  .project { margin-bottom: 3.5rem; }
  .yt-play::before { width: 56px; height: 56px; }
  .yt-play::after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
}
