/* ═══════════════════════════════════════════
   STUDIO SYNDICAT — main.css
   ═══════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --bg:          #0d0d0d;
  --surface:     #181818;
  --surface-2:   #222222;
  --border:      #333333;
  --text:        #eeeeee;
  --text-muted:  #888888;
  --accent:      #e11d48;
  --accent-2:    #f472b6;

  --header-h:    80px;
  --max-w:       1200px;
  --r:           8px;
  --r-lg:        16px;
  --ease:        200ms ease;
  --ease-slow:   420ms ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
ul    { list-style: none; }
a     { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-2); }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img { height: 38px; width: auto; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color var(--ease);
}
.logo:hover .logo-text { color: var(--accent); }

/* Nav */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r);
  transition: all var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
  background: var(--surface-2);
}

/* Nav social icons */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--ease), background var(--ease);
  background: transparent;
}
.nav-social-btn:hover {
  color: var(--accent);
  background: var(--surface-2);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--r);
  transition: background var(--ease);
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease-slow), opacity var(--ease-slow);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }
  .nav-socials {
    padding: 0.5rem 0.5rem 0.75rem;
    justify-content: center;
    gap: 0.25rem;
  }
  .nav-social-btn { width: 40px; height: 40px; font-size: 1.1rem; }
  /* X animation */
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ════════════════════════════════════════════
   MAIN OFFSET
   ════════════════════════════════════════════ */
.site-main { padding-top: var(--header-h); }

/* ════════════════════════════════════════════
   CAROUSEL
   ════════════════════════════════════════════ */
.carousel {
  position: relative;
  overflow: hidden;
  height: 580px;
  background: var(--surface);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Gradient overlay for readability */
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.15) 100%
  );
}

.carousel-content {
  position: relative;
  z-index: 1;
  padding-block: 2rem;
}

.carousel-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.carousel-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 680px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.7);
}

.carousel-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  line-height: 1;
  padding-bottom: 2px;
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.carousel-btn--prev { left:  1.25rem; }
.carousel-btn--next { right: 1.25rem; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--ease);
}
.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

/* ════════════════════════════════════════════
   SECTIONS (shared)
   ════════════════════════════════════════════ */
.section       { padding: 3rem 0; }
.section--dark { background: var(--surface); }

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

/* ════════════════════════════════════════════
   COMPANY INFO
   ════════════════════════════════════════════ */
.company-info-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.company-info-inner--has-image {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .company-info-inner--has-image {
    grid-template-columns: 1fr 1fr;
  }
}

.company-info-text .section-eyebrow { margin-bottom: 0.55rem; }
.company-info-text .section-title   { margin-bottom: 1.25rem; }

.company-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 2rem;
}
.company-description p + p { margin-top: 1rem; }

.company-info-visual img {
  border-radius: var(--r-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ════════════════════════════════════════════
   NEWS — homepage latest grid
   ════════════════════════════════════════════ */
.news-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-latest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color var(--ease);
}
.news-latest-card:hover { border-color: var(--accent); }
.news-latest-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.news-latest-meta span::before { content: "·"; margin-right: 0.75rem; }
.news-latest-card--new {
  border-color: #c9a227;
  border-width: 2px;
}
.news-latest-card--new:hover { border-color: #e8c83a; }
.news-new-label {
  margin: -1.4rem -1.5rem 0.75rem;
  padding: 0.35rem 1.25rem;
  background: #c9a227;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.news-latest-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-latest-title a { color: var(--text); }
.news-latest-title a:hover { color: var(--accent); }
.news-latest-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.news-latest-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
}
.news-latest-link:hover { color: var(--accent-2); }

/* ════════════════════════════════════════════
   NEWS — list page
   ════════════════════════════════════════════ */
.container--narrow { max-width: 780px; }
.news-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-card:first-child { padding-top: 0; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.news-card-author::before { content: "·"; margin-right: 0.75rem; }
.news-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--accent); }
.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.news-card-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem;
}
.news-card-read-more:hover { color: var(--accent-2); }

/* ════════════════════════════════════════════
   NEWS — single post
   ════════════════════════════════════════════ */
.news-post { padding-bottom: 4rem; }
.news-post-banner { width: 100%; max-height: 420px; overflow: hidden; }
.news-post-banner img { width: 100%; height: 420px; object-fit: cover; }
.news-post-header {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.news-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.news-post-author::before { content: "·"; margin-right: 0.75rem; }
.news-post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.news-post-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.news-post-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.news-post-back:hover { color: var(--accent); }

@media (max-width: 768px) {
  .news-latest-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   VIDEOS
   ════════════════════════════════════════════ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.video-embed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.video-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 640px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   AFFILIATES
   ════════════════════════════════════════════ */
.affiliates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.affiliate-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.affiliate-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.18);
}

/* Portrait */
.affiliate-portrait {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #4c1d95 0%, #0e7490 100%);
}
.affiliate-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.affiliate-card:hover .affiliate-portrait img { transform: scale(1.06); }

.affiliate-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Card body */
.affiliate-info { padding: 1.1rem 1.2rem 1.25rem; }

.affiliate-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.affiliate-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.affiliate-roles li {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.28);
}

/* Social icons */
.affiliate-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--ease);
  text-decoration: none;
}
.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   PAGE HERO (list + inner pages)
   ════════════════════════════════════════════ */
.page-hero {
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(225,29,72,0.07) 0%, transparent 100%);
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.page-hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
}

/* ════════════════════════════════════════════
   LIST PAGE — category + project grid
   ════════════════════════════════════════════ */
.list-category { margin-bottom: 3.5rem; }
.list-category:last-child { margin-bottom: 0; }

.category-heading {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* 2-column grid, collapses to 1 on mobile */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Project card */
.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 36px rgba(139,92,246,0.18);
}

.project-card-image {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c2e 0%, #2a1a4e 50%, #0e2a3a 100%);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.04); }

.project-card-image--placeholder {
  background: linear-gradient(135deg, #1c1c2e 0%, #2a1a4e 50%, #0e2a3a 100%);
}

/* Genre badge floated onto the card image */
.project-card-genre {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: var(--accent-2);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(244,114,182,0.3);
}

.project-card-price {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.project-card-body { padding: 1rem 1.2rem 1.2rem; }
.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.project-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 4rem 0;
  font-size: 1rem;
}

/* ════════════════════════════════════════════
   PROJECT PAGE
   ════════════════════════════════════════════ */

/* Banner */
.project-banner {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0520 0%, #021a2e 50%, #1a0f00 100%);
  max-height: 480px;
}
.project-banner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.project-banner--placeholder { height: 340px; }

/* Meta section */
.project-meta { padding-top: 2.75rem; }

.project-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

/* Info tabs */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.info-tab {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.info-tab-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-tab-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Download / platform links */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
}
.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--ease);
}
.project-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139,92,246,0.1);
}

/* Prose (writeup) */
.container--narrow { max-width: 760px; }

.prose {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.6rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.3rem; color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-2); text-decoration: underline; }
.prose code {
  font-family: 'Consolas', 'Cascadia Code', monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent-2);
}
.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9em;
  color: var(--text);
}

/* Project Videos */
.project-video-gallery {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1rem;
  align-items: start;
}
.project-video-main iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--r-lg);
  background: #000;
  display: block;
}
.project-video-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: calc((220px * 9/16) * 4 + 0.6rem * 3);
  overflow-y: auto;
  padding-right: 0.25rem;
}
.project-video-thumbs::-webkit-scrollbar { width: 4px; }
.project-video-thumbs::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 2px; }
.project-video-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.project-video-thumb {
  flex: 0 0 auto;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--ease);
  overflow: hidden;
  text-align: left;
}
@media (max-width: 640px) {
  .project-video-gallery { grid-template-columns: 1fr; }
  .project-video-thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; }
  .project-video-thumb { flex: 0 0 160px; }
}
.project-video-thumb:hover { border-color: var(--text-muted); }
.project-video-thumb.is-active { border-color: var(--accent); }
.project-video-thumb-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.project-video-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ease);
}
.project-video-thumb:hover .project-video-thumb-img img { transform: scale(1.05); }
.project-video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--ease);
}
.project-video-thumb:hover .project-video-play-icon,
.project-video-thumb.is-active .project-video-play-icon { opacity: 1; }
.project-video-thumb-title {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-video-thumb.is-active .project-video-thumb-title { color: var(--text); }

/* Screenshots */
.screenshot-gallery { }
.screenshot-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
}
.screenshot-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}
.screenshot-thumb {
  background: none;
  border: 2px solid transparent;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 16 / 9;
  transition: border-color var(--ease), opacity var(--ease);
  opacity: 0.55;
}
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-thumb:hover { opacity: 0.8; border-color: var(--border); }
.screenshot-thumb.is-active { opacity: 1; border-color: var(--accent); }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
