@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=IBM+Plex+Mono:wght@300;400&display=swap');

/* ══════════════════════════════════
   VARIABLES
   ══════════════════════════════════ */
:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --border: #1a1a1a;
  --text: #d4d0c8;
  --text-dim: #5a5650;
  --text-bright: #f5f3f0;
  --red: #b1060f;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ══════════════════════════════════
   NAV
   ══════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}

/* brand + dropdown wrapper */
.nav-brand-wrap {
  position: relative;
  height: 100%;
}
.nav-brand {
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--text-dim);
  white-space: nowrap;
  height: 100%;
  display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--border);
  transition: color 0.3s;
  cursor: pointer;
  user-select: none;
}
.nav-brand:hover { color: var(--text-bright); }
.nav-brand i { color: var(--red); font-style: italic; }
.nav-brand .chevron {
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 1px;
  transition: transform 0.2s;
}
.nav-brand-wrap:hover .chevron { transform: rotate(180deg); }

/* dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: #111;
  border: 1px solid var(--border);
  border-top: none;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-brand-wrap:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #807a72;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.03);
}
.nav-dropdown .divider {
  height: 1px;
  background: var(--border);
}

/* project tabs */
.nav-tabs {
  display: flex;
  height: 100%;
  flex: 1;
}
.nav-tab {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  flex: 1;
  max-width: 220px;
  transition: background 0.3s;
}
.nav-tab:hover { background: rgba(255,255,255,0.02); }
.nav-tab.active { background: rgba(255,255,255,0.03); }

.nav-tab img {
  height: 22px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0.6);
  transition: opacity 0.3s, filter 0.3s;
}
.nav-tab:hover img,
.nav-tab.active img {
  opacity: 1;
  filter: none;
}
.nav-tab .tab-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 3px;
  color: var(--text-dim);
}
.footer-logo i { color: var(--red); font-style: italic; }
.footer-links {
  display: flex; gap: 12px; align-items: center;
}
.footer-link {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.footer-link:hover { color: var(--text-bright); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase;
  color: #2a2a2a;
}

/* ══════════════════════════════════
   HOME HERO
   ══════════════════════════════════ */
.home-hero {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  z-index: 0;
}
.hero-logo {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 5px;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 12px;
	text-shadow: 0 2px 50px rgba(0,0,0,1), 0 0 100px rgba(0,0,0,0.5);
}
.hero-logo i { color: var(--red); font-style: italic; }
.hero-tagline {
  font-size: 14px; font-weight: 300; font-style: italic;
  color: var(--text-bright); letter-spacing: 1px;
	text-shadow:
  -1px -1px 4px rgba(0,0,0,0.9),
   1px -1px 4px rgba(0,0,0,0.9),
  -1px  1px 4px rgba(0,0,0,0.9),
   1px  1px 4px rgba(0,0,0,0.9),
   0    0  20px rgba(0,0,0,0.6);
}

/* ══════════════════════════════════
   PROJECT CARDS (home grid)
   ══════════════════════════════════ */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 40px auto 80px;
}
.card {
  position: relative;
  background: var(--bg);
  padding: 44px 36px 40px;
  overflow: hidden;
  transition: background 0.4s;
  display: flex; flex-direction: column;
  min-height: 340px;
  z-index: 0;
}
.card:hover { background: var(--surface); }
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover::after { transform: scaleX(1); }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
  transition: background 0.4s;
}
.card:hover::before {
  background: rgba(0,0,0,0);
}

.card-logo {
  height: 36px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 28px;
}
.card-status {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--card-accent);
	text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.card-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--card-accent);
}
.card-logline {
  font-size: 15px; line-height: 1.75;
  color: var(--text); font-weight: 300;
  flex: 1; margin-bottom: 24px;
	text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.card-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-bright);
}
.card-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════
   PROJECT PAGE
   ══════════════════════════════════ */
.proj-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 24px 40px;
  transition: color 0.3s;
}
.proj-back:hover { color: var(--text-bright); }

.proj-header {
  padding: 40px 40px 48px;
  max-width: 900px;
}
.proj-logo {
  height: 56px;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 32px;
}
.proj-status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid;
  border-radius: 2px;
  margin-bottom: 28px;
}
.proj-status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}
.proj-logline {
  font-size: 22px; line-height: 1.65;
  font-weight: 300;
  color: var(--text);
  max-width: 660px;
}

/* video area */
.proj-video {
  max-width: 900px;
  padding: 0 40px;
  margin: 48px 0;
}
.video-shell {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-shell span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase;
  color: #2a2a2a;
}
.video-shell::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 1px,
    rgba(255,255,255,0.008) 1px, rgba(255,255,255,0.008) 2px
  );
  pointer-events: none;
}
/* for when a real embed replaces the placeholder */
.proj-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* blurb */
.proj-blurb {
  max-width: 900px;
  padding: 0 40px 48px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.blurb-body p {
  font-size: 16px; line-height: 1.85;
  font-weight: 300;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 16px;
}
.blurb-body p:last-child { margin-bottom: 0; }

/* stats table */
.proj-stats {
  max-width: 900px;
  padding: 0 40px 100px;
}
.stats-grid {
  border-top: 1px solid var(--border);
}
.stat-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}
.stat-key {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 14px 0;
}
.stat-val {
  font-size: 14px;
  color: var(--text-bright);
  padding: 13px 0;
}

/* ══════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════ */
.page-content {
  padding: 20px 40px 100px;
  max-width: 900px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 4px;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 40px;
}
.about-layout {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.headshot-placeholder {
  width: 200px; height: 260px;
  border: 1px dashed #2a2a2a;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  flex-shrink: 0;
}
.about-bio { flex: 1; min-width: 280px; }
.about-bio p {
  font-size: 16px; line-height: 1.85;
  font-weight: 300;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════ */
.fi {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}
.fi1 { animation-delay: 0.08s; }
.fi2 { animation-delay: 0.16s; }
.fi3 { animation-delay: 0.24s; }
.fi4 { animation-delay: 0.32s; }
.fi5 { animation-delay: 0.4s; }

.yt-embed-holder {
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16/9;
	pointer-events: none;
}

.yt-embed-holder iframe{
	width: 300%;
	height: 100%;
	margin-left: -100
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; }
  .nav-brand { padding: 0 16px; font-size: 12px; }
  .nav-tab { padding: 0 10px; }
  .nav-tab img { height: 16px; max-width: 60px; }
  .home-hero { padding: 100px 20px 40px; }
  .card { padding: 32px 24px; min-height: auto; }
  .card-arrow { opacity: 1; transform: none; }
  .proj-back { padding: 16px 20px; }
  .proj-header, .proj-video, .proj-blurb, .proj-stats,
  .page-content { padding-left: 20px; padding-right: 20px; }
  .stat-row { grid-template-columns: 120px 1fr; }
  .site-footer { padding: 24px 20px; flex-direction: column; gap: 12px; }
  .about-layout { flex-direction: column; }
  .headshot-placeholder { width: 160px; height: 200px; }
}
