/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --purple-700: #6D28D9;
  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --purple-400: #A78BFA;
  --purple-300: #C4B5FD;
  --purple-200: #DDD6FE;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;

  --hero-bg:    #09090f;
  --card-dark:  #111120;
  --card-dark2: #1a1a2e;

  --white:    #FFFFFF;
  --gray-50:  #F9F9FC;
  --gray-100: #F2F2F7;
  --gray-200: #E5E5EE;
  --gray-300: #D0D0DC;
  --gray-400: #9898AC;
  --gray-500: #6B6B80;
  --gray-600: #4B4B5E;
  --gray-700: #35354A;
  --gray-800: #1E1E2E;
  --gray-900: #0e0e18;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 4px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 30px 60px rgba(0,0,0,.2);

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    all .2s var(--ease);
  --t-lg: all .35s var(--ease);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 62px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   GRADIENT PLACEHOLDERS
   ============================================================ */
.avatar-gradient { width: 100%; height: 100%; position: relative; }
.avatar-gradient::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0,0,0,.2) 0%, transparent 45%);
  pointer-events: none;
}

.gradient-1  { background: linear-gradient(145deg, #4a1a8c 0%, #7c3aed 45%, #a855f7 75%, #c084fc 100%); }
.gradient-2  { background: linear-gradient(145deg, #831843 0%, #db2777 45%, #f472b6 100%); }
.gradient-3  { background: linear-gradient(145deg, #0c4a6e 0%, #0284c7 45%, #38bdf8 100%); }
.gradient-4  { background: linear-gradient(145deg, #064e3b 0%, #059669 45%, #34d399 100%); }
.gradient-5  { background: linear-gradient(145deg, #7c1d2e 0%, #e11d48 45%, #fb7185 100%); }
.gradient-6  { background: linear-gradient(145deg, #3b1f6a 0%, #7e3af2 45%, #c4b5fd 75%, #fbc2eb 100%); }
.gradient-7  { background: linear-gradient(145deg, #78350f 0%, #d97706 45%, #fbbf24 100%); }
.gradient-8  { background: linear-gradient(145deg, #0f3460 0%, #1a6fb8 45%, #74b9ff 100%); }
.gradient-9  { background: linear-gradient(145deg, #1a4731 0%, #16a34a 45%, #86efac 100%); }
.gradient-10 { background: linear-gradient(145deg, #7c2d12 0%, #ea580c 45%, #fdba74 100%); }
.gradient-11 { background: linear-gradient(145deg, #0c4472 0%, #2563eb 45%, #93c5fd 100%); }
.gradient-12 { background: linear-gradient(145deg, #312e81 0%, #6366f1 45%, #a5b4fc 75%, #e0e7ff 100%); }
.gradient-about { background: linear-gradient(160deg, #3b1f6a 0%, #7c3aed 35%, #c084fc 65%, #fbc2eb 100%); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.btn-primary:hover {
  background: var(--purple-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.45);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.4);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--purple-600);
  border: 1.5px solid var(--purple-300);
}
.btn-outline:hover {
  background: var(--purple-50);
  border-color: var(--purple-500);
}
.btn-sm { padding: 9px 18px; font-size: .78rem; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  color: var(--purple-500);
  margin-bottom: 8px;
}
.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.section-subtext { font-size: .88rem; color: var(--gray-500); }

/* Section header with right-aligned link */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
/* .section-header-solo removed — no longer used */
.section-view-all {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  color: var(--gray-500);
  transition: color .18s;
  white-space: nowrap;
  padding-bottom: 2px;
}
.section-view-all:hover { color: var(--purple-600); }
.section-view-all svg { opacity: .6; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo, .footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.nav-logo-mark, .footer-logo-mark {
  width: 30px; height: 30px;
  background: var(--purple-600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: var(--t);
}
.nav-logo-mark svg, .footer-logo-mark svg { width: 14px; height: 14px; }
.nav-logo:hover .nav-logo-mark { background: var(--purple-500); }

.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1;
  gap: 2px;
}
.logo-name { font-size: .85rem; font-weight: 800; letter-spacing: .08em; color: var(--gray-900); }
.logo-sub  { font-size: .6rem;  font-weight: 600; letter-spacing: .14em; color: var(--gray-400); }

/* Nav links */
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gray-500);
  position: relative; padding-bottom: 2px;
  transition: color .15s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--purple-500); border-radius: 2px;
  transition: width .22s var(--ease);
}
.nav-link:hover { color: var(--purple-600); }
.nav-link:hover::after { width: 100%; }

/* Nav CTA */
.nav-right { display: flex; align-items: center; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--purple-600);
  color: white;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  transition: var(--t);
  white-space: nowrap;
}
.nav-cta svg { width: 13px; height: 13px; }
.nav-cta:hover { background: var(--purple-500); transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 0;
  padding: 6px 32px 14px;
  border-top: 1px solid var(--gray-100);
  background: rgba(255,255,255,.98);
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gray-600); padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color .15s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--purple-600); }

/* ============================================================
   HERO  — DARK
   ============================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(105deg,
      rgba(6,0,22,1)    0%,
      rgba(6,0,22,.95)  20%,
      rgba(6,0,22,.80)  35%,
      rgba(6,0,22,.58)  50%,
      rgba(6,0,22,.32)  65%,
      rgba(6,0,22,.12)  80%,
      rgba(6,0,22,0)    100%),
    url('assets/Hero/Hero.png') center / cover no-repeat;
  background-color: #060016; /* fallback if image hasn't loaded */
  min-height: 82vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Subtle dot-grid texture over the image */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(124,58,237,.14) 1px, transparent 0);
  background-size: 38px 38px;
  pointer-events: none;
}

/* Decorative stars */
.hero-star {
  position: absolute; z-index: 1;
  border-radius: 50%;
  background: var(--purple-400);
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.4); }
}
.hero-star:nth-child(2) { animation-delay: .8s; }
.hero-star:nth-child(3) { animation-delay: 1.6s; }
.hero-star:nth-child(4) { animation-delay: 2.2s; }
.hero-star:nth-child(5) { animation-delay: .4s; }
.hero-star:nth-child(6) { animation-delay: 1.2s; }

/* Layout */
.hero-container {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: center;
  padding-top: 62px;
}

/* Left */
.hero-left { padding: 56px 0; }
.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: #c45a7a;
  background: rgba(196, 80, 118, .10);
  border: 1px solid rgba(196, 80, 118, .22);
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero-heading {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.07;
  letter-spacing: -.035em;
  color: white;
  margin-bottom: 22px;
}
.hero-accent { color: var(--purple-400); font-style: italic; }
.hero-body {
  font-size: 1rem; color: rgba(255,255,255,.55);
  max-width: 400px; line-height: 1.75; margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Right — character frame */
.hero-right {
  position: relative;
  height: 100vh;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
/* hero-char-wrap hidden — background image covers the right side */
.hero-char-wrap { display: none; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
  display: flex; align-items: center; gap: 12px;
  z-index: 3;
  pointer-events: none;
}
.hero-scroll-indicator span {
  font-size: .6rem; font-weight: 700; letter-spacing: .2em;
  color: var(--purple-700);
  white-space: nowrap;
}
.scroll-line {
  width: 48px; height: 1px;
  background: linear-gradient(to right, rgba(124,58,237,.7), transparent);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { padding: 48px 0 48px; background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.portfolio-card--hidden { display: none; }

.portfolio-show-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.portfolio-card--reveal {
  animation: cardReveal .28s var(--ease) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Real images inside card/expanded/video slots */
.portfolio-card-thumb img,
.expanded-main-image img,
.expanded-thumb img,
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Image-only card ─────────────────────────────────────── */

/* Subtle bottom gradient so the arrow button is readable */
.portfolio-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.38) 0%, transparent 45%);
  border-radius: 14px;
  opacity: 0;
  transition: opacity .22s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.portfolio-card:hover::after { opacity: 1; }

/* Floating arrow button */
.card-open-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 30px; height: 30px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-600);
  font-size: .75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.portfolio-card:hover .card-open-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Dark portrait cards */
.portfolio-card {
  background: var(--card-dark);
  border-radius: 14px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: var(--t-lg);
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.portfolio-card.active {
  box-shadow: 0 0 0 3px var(--purple-500), 0 16px 40px rgba(0,0,0,.4);
}

.portfolio-card-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

/* card-body removed — cards are image-only */

/* ——— Expanded Panel ——— */
.portfolio-expanded {
  display: none;
  /* Span every column so it breaks out of the card grid */
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  /* Inner content still capped for the image/thumb math */
  max-width: 990px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.portfolio-expanded.visible {
  display: block;
  animation: expandIn .25s var(--ease);
}
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Two-zone layout: main-img | thumbs
   Math: main = 4×175 + 3×10 = 730px  |  thumbs col = 175px
   At max-width:990px → content 926px → 1fr = 731px ≈ 730px ✓ */
.expanded-layout {
  display: grid;
  grid-template-columns: 1fr 175px;
  gap: 20px;
  align-items: start;
  position: relative;
}

.expanded-close {
  position: absolute;
  top: 0; right: 0;
  width: 34px; height: 34px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--gray-500);
  cursor: pointer; transition: var(--t);
  z-index: 10;
}
.expanded-close:hover { background: var(--gray-200); color: var(--gray-800); }

/* Info column */
.expanded-info { padding-top: 2px; }
.expanded-avatar-name {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--gray-900); margin-bottom: 8px;
}
.expanded-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  background: var(--purple-100); color: var(--purple-600);
  border-radius: 100px; padding: 4px 10px;
  margin-bottom: 14px;
}
.expanded-description {
  font-size: .83rem; color: var(--gray-500); line-height: 1.7;
  margin-bottom: 18px;
}
.expanded-features { list-style: none; margin-bottom: 22px; }
.expanded-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--gray-600);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
}
.expanded-features li:last-child { border-bottom: none; }
.feat-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.feat-dot-0 { background: var(--purple-500); }
.feat-dot-1 { background: #3B82F6; }
.feat-dot-2 { background: #10B981; }
.feat-dot-3 { background: #F59E0B; }

/* Main image column — always square, never cropped or stretched */
.expanded-main-image {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.expanded-main-image img {
  object-fit: contain;
  background: var(--gray-50);
}

/* Thumbnails column — stacked vertically, scrolls when overflow */
.expanded-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge */
}
.expanded-thumbs::-webkit-scrollbar { display: none; } /* Chrome / Safari */

/* Video in the main slot */
.expanded-main-image iframe,
.expanded-main-image video {
  width: 100%; height: 100%;
  border: none; display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Video indicator on thumbnails */
.expanded-thumb--video { position: relative; }
.thumb-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  pointer-events: none;
  border-radius: 6px;
}
.thumb-play-btn {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-600);
  font-size: .6rem; padding-left: 2px;
}
.expanded-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--t);
}
.expanded-thumb:hover { border-color: var(--purple-400); transform: scale(1.03); }
.expanded-thumb.selected { border-color: var(--purple-600); }

/* Navigation arrows row */
.expanded-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
.exp-nav-btn {
  width: 36px; height: 36px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--gray-500);
  cursor: pointer; transition: var(--t);
}
.exp-nav-btn:hover { border-color: var(--purple-400); color: var(--purple-600); background: var(--purple-50); }
.exp-nav-dots { display: flex; gap: 6px; }
.exp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-200); transition: var(--t);
}
.exp-dot.active { background: var(--purple-500); transform: scale(1.3); }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos { padding: 16px 0 90px; background: var(--white); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Card — no box, no border, pure thumbnail-led */
.video-card {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.video-card:hover { transform: translateY(-5px); }

/* Thumbnail */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 11px;
  transition: box-shadow .3s var(--ease);
}
.video-card:hover .video-thumb {
  box-shadow: 0 14px 36px rgba(124,58,237,.22);
}

/* Zoom inner content on hover */
.video-thumb img,
.video-thumb .avatar-gradient {
  transition: transform .45s var(--ease);
}
.video-card:hover .video-thumb img,
.video-card:hover .video-thumb .avatar-gradient {
  transform: scale(1.06);
}

/* Play button — full-overlay, fades in on hover */
.video-play-btn {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15);
  border-radius: 12px;
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.video-card:hover .video-play-btn { opacity: 1; }

.video-play-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.93);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-600);
  font-size: 1rem; padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: transform .2s var(--ease);
}
.video-card:hover .video-play-icon { transform: scale(1.08); }

/* Duration badge */
.video-duration {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  background: rgba(0,0,0,.72); color: white;
  font-size: .65rem; font-weight: 700; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 4px;
}

/* Text below thumbnail */
.video-body { padding: 0; }

.video-title {
  font-size: .85rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--gray-800); line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex; gap: 6px;
  font-size: .7rem; color: var(--gray-400);
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.downloads { padding: 80px 0; background: var(--white); }

/* Vertical list — no grid, no container box */
.downloads-grid {}

.download-item {
  display: flex; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none; color: inherit;
  transition: color .15s var(--ease);
}
.download-item:first-child { border-top: 1px solid var(--gray-100); }

/* Monochromatic square badge */
.dl-badge {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 7px;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  margin-right: 18px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.download-item:hover .dl-badge {
  background: var(--purple-50);
  color: var(--purple-600);
}
.dl-badge-ext {
  font-size: .44rem; font-weight: 800; letter-spacing: .06em; line-height: 1;
}

.dl-name {
  flex: 1; min-width: 0;
  font-size: .9rem; font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-right: 24px;
  transition: color .15s var(--ease);
}
.download-item:hover .dl-name { color: var(--purple-700); }

.dl-size {
  font-size: .73rem; color: var(--gray-400);
  white-space: nowrap; letter-spacing: .01em;
  margin-right: 20px; min-width: 48px; text-align: right;
}

.dl-download {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  transition: var(--t);
}
.download-item:hover .dl-download {
  border-color: var(--purple-500);
  background: var(--purple-600);
  color: white;
}

/* ============================================================
   GUMROAD
   ============================================================ */
.gumroad-section { padding: 80px 0; background: var(--gray-50); }

.gumroad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.gumroad-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.gumroad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.09);
  border-color: var(--purple-200);
}

/* Thumbnail */
.gumroad-thumb {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  overflow: hidden;
}
.gumroad-thumb img,
.gumroad-thumb .avatar-gradient {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s var(--ease);
}
.gumroad-card:hover .gumroad-thumb img,
.gumroad-card:hover .gumroad-thumb .avatar-gradient { transform: scale(1.05); }

/* Body */
.gumroad-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 18px 20px 20px;
}

.gumroad-price {
  display: inline-block;
  align-self: flex-start;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  color: var(--purple-600);
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: 100px; padding: 3px 10px;
  margin-bottom: 10px;
  white-space: nowrap;
}
.gumroad-price--free {
  color: var(--gray-500); background: var(--gray-100); border-color: var(--gray-200);
}

.gumroad-name {
  font-size: .97rem; font-weight: 700; letter-spacing: -.015em;
  color: var(--gray-900); line-height: 1.35;
  margin-bottom: 8px;
}

.gumroad-desc {
  font-size: .8rem; color: var(--gray-500); line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.gumroad-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  background: var(--purple-600); color: white;
  border-radius: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  transition: background .15s var(--ease);
}
.gumroad-card:hover .gumroad-btn { background: var(--purple-500); }

.gumroad-card--hidden { display: none; }
.gumroad-card--reveal { animation: cardReveal .28s var(--ease) both; }

.gumroad-show-more {
  display: flex; justify-content: center;
  margin-top: 32px;
}

/* Empty state */
.gumroad-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px 24px; text-align: center;
}
.gumroad-empty-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--purple-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-400); margin-bottom: 18px;
}
.gumroad-empty-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--gray-700); margin-bottom: 8px;
}
.gumroad-empty-sub {
  font-size: .84rem; color: var(--gray-400);
  line-height: 1.65; max-width: 280px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 56px 0; background: var(--white); }

/* Label + heading sits above both columns */
.about-header {
  margin-bottom: 36px;
}
.about-header .section-label { margin-bottom: 10px; }

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: stretch; /* image stretches to match text column height */
}

/* flex so the portrait can fill the column height */
.about-image-col { display: flex; }

.about-portrait {
  width: 100%;
  flex: 1;           /* fills the column height set by the text column */
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-text-col {
  max-width: 560px;
  padding-top: 0;
}

.about-heading {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.about-body {
  font-size: .97rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-body:last-of-type { margin-bottom: 0; }

/* First paragraph — slightly bolder as an intro line */
.about-body:first-of-type {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
}

.about-discord-link {
  display: inline-block;
  margin-top: 32px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--purple-600);
  text-decoration: none;
  border-bottom: 1px solid var(--purple-200);
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.about-discord-link:hover {
  color: var(--purple-700);
  border-bottom-color: var(--purple-500);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--hero-bg); padding: 36px 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo .logo-name { color: white; }
.footer-logo .logo-sub  { color: rgba(255,255,255,.3); }
.footer-logo-mark { background: rgba(124,58,237,.4); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-socials { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); transition: var(--t);
}
.social-link:hover { background: var(--purple-600); color: white; }
.social-link--heart:hover { background: #E11D48; }
.social-link svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE — 1280px
   ============================================================ */
@media (max-width: 1280px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid     { grid-template-columns: repeat(3, 1fr); }
  .expanded-layout { grid-template-columns: 1fr 165px; }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid     { grid-template-columns: repeat(2, 1fr); }
  .gumroad-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 300px 1fr; gap: 48px; }

  .hero-char-wrap { width: 340px; }
  .hero-scroll-indicator { display: none; }

  .expanded-layout { grid-template-columns: 1fr 155px; gap: 16px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-right   { display: none; }
  .nav-toggle  { display: flex; }

  .container { padding: 0 20px; }

  .hero-container {
    grid-template-columns: 1fr; padding: 0 20px;
    text-align: center;
    padding-top: 62px;
  }
  .hero-left { padding: 100px 0 60px; }
  .hero-body { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-right { display: none; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .expanded-layout { grid-template-columns: 1fr; }
  .expanded-layout { grid-template-columns: 1fr; }
  .expanded-thumbs { flex-direction: row; flex-wrap: wrap; }

  .video-grid   { grid-template-columns: repeat(2, 1fr); }
  .gumroad-grid { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .about-image-col { max-width: 300px; margin: 0 auto; }
  .about-text-col  { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-grid     { grid-template-columns: 1fr; }

  .section-header-row { align-items: flex-start; }
  .section-view-all   { margin-top: 8px; }

  .hero-heading { font-size: 2.4rem; }
  .portfolio-expanded { padding: 20px 16px; }
}
