:root{
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --card: #0f0f0f;
  --card-border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.55);
  --accent-1: #DC3228;
  --accent-2: #DB2748;
  --accent-grad: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --radius-lg: 20px;
  --radius-full: 999px;
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3, .logo-text, .switch-btn, .cta-button{
  font-family: 'Outfit', sans-serif;
}

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

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  white-space: nowrap;
}

.logo-mark{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text strong{ font-weight: 700; }

.main-nav{
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-muted);
}

.main-nav a:hover{ color: var(--text); }

.cta-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: #0d0d0d;
  border: 1px solid rgba(220,50,40,0.55);
  box-shadow: 0 0 18px rgba(220,50,40,0.35);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.cta-button:hover{ box-shadow: 0 0 26px rgba(220,50,40,0.55); }

/* ---------- Hero / intro portfolio ---------- */
.portfolio-hero{
  max-width: 780px;
  margin: 80px auto 40px;
  padding: 0 24px;
  text-align: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(220,50,40,0.12);
  border: 1px solid rgba(220,50,40,0.4);
  color: #ff8a80;
  font-size: 13px;
  margin-bottom: 22px;
}

.portfolio-hero h1{
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.subtitle{
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 36px;
}

/* ---------- Switch ---------- */
.switch{
  display: inline-flex;
  padding: 6px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--card-border);
  gap: 4px;
}

.switch-btn{
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.switch-btn.is-active{
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220,50,40,0.4);
}

/* ---------- Video grid ---------- */
.video-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.video-grid.layout-horizontal{
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.video-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-frame{
  position: relative;
  width: 100%;
  background: #000;
}

.video-frame.ratio-vertical{ aspect-ratio: 9 / 16; }
.video-frame.ratio-horizontal{ aspect-ratio: 16 / 9; }

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

.video-meta{
  padding: 16px 18px 18px;
}

.video-meta h3{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.video-meta p{
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

.video-tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #ff8a80;
}

.empty-state{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a{ color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 720px){
  .main-nav{ display: none; }
  .header-inner{ justify-content: space-between; }
}
