/* ============================================
   Portfolio - Inspired by tsui-mou.com
   Modern dark theme with interactive elements
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  --accent-peach: #FFB080;
  --accent-teal: #4ECDC4;
  --accent-coral: #FF6B6B;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  left: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HeroDraw Interactive Canvas
   ============================================ */
.hero-draw-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-draw-container canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  /* Only show drawing cursor on the hero canvas area */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23FFB080' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 20h4L20 8l-4-4L4 16z'/%3E%3Cpath d='M14 4l4 4'/%3E%3C/g%3E%3C/svg%3E")
    0 24,
  crosshair;
}

.color-palette {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  pointer-events: auto;
  z-index: 100;
}

.color-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  padding: 0;
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Floating \"Draw here\" hint that follows cursor */
.draw-hint {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(14px, 16px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b3b1b;
  background: rgba(255, 248, 237, 0.95);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 120;
}

.draw-hint--visible {
  opacity: 1;
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-peach), var(--accent-coral));
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.nav__logo:hover .nav__avatar {
  border-color: var(--border-hover);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-peach);
  transition: width var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__ext {
  font-size: 12px;
  opacity: 0.6;
  margin-left: 2px;
}

@media (max-width: 640px) {
  .nav-header {
    padding: var(--space-md);
  }
  
  .nav__links {
    gap: var(--space-md);
  }
  
  .nav__link {
    font-size: 14px;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-xl);
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  pointer-events: auto;
  /* Avoid accidental text selection when drawing over the hero */
  user-select: none;
  -webkit-user-select: none;
}

.hero__title {
  margin: 0;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__line {
  display: block;
}

.hero__word {
  display: inline-block;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for each word */
.hero__line:nth-child(1) .hero__word { animation-delay: 0.1s; }
.hero__line:nth-child(2) .hero__word { animation-delay: 0.2s; }
.hero__line:nth-child(3) .hero__word { animation-delay: 0.3s; }
.hero__line:nth-child(4) .hero__word { animation-delay: 0.4s; }
.hero__line:nth-child(5) .hero__word { animation-delay: 0.5s; }
.hero__line:nth-child(6) .hero__word { animation-delay: 0.6s; }
.hero__line:nth-child(7) .hero__word { animation-delay: 0.7s; }
.hero__line:nth-child(8) .hero__word { animation-delay: 0.8s; }

.hero__word--name {
  color: var(--text-primary);
}

.hero__word--role {
  color: var(--text-secondary);
}

.hero__word--highlight {
  background: linear-gradient(135deg, var(--accent-peach), var(--accent-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  margin: var(--space-lg) 0 0;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1s forwards;
}

/* Compact meta row under hero (work & projects) */
.hero-meta {
  margin-top: var(--space-xl);
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 14px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

.hero-meta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-meta__btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.hero-meta__btn--secondary {
  background: transparent;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) var(--space-md);
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.section-header__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  z-index: 2;
}

.projects__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
}

/* Project Card */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: 
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.project-card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

@media (max-width: 900px) {
  .project-card--featured {
    grid-template-columns: 1fr;
  }
}

.project-card__content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Featured cards: reduce bottom padding to minimize gaps */
.project-card--featured .project-card__content {
  padding-bottom: var(--space-xl);
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.project-card__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.project-card__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Make logos more prominent on featured cards */
.project-card--featured .project-card__logo {
  width: 72px;
  height: 72px;
  border-radius: calc(var(--radius-md) + 2px);
}

/* Wide logo (icon + wordmark) */
.project-card__logo--wide {
  width: 180px;
  height: 56px;
  justify-content: flex-start;
  padding: 0 10px;
}

.project-card__logo--wide .project-card__logo-img {
  padding: 0;
}

.project-card--featured .project-card__logo--wide {
  width: 240px;
  height: 72px;
  padding: 0 12px;
}

.project-card__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
}

.project-card__tag-emoji {
  font-size: 14px;
}

.project-card__description {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.project-card__metrics {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding-top: 0;
}

/* Featured cards: reduce empty space under metrics */
.project-card--featured .project-card__metrics {
  margin-top: var(--space-lg);
  margin-bottom: 0;
  padding-top: 0;
}

.project-card__metric {
  display: flex;
  flex-direction: column;
}

.project-card__metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__metric-value {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--accent-peach);
  letter-spacing: -0.02em;
}

.project-card__metric-value--teal {
  color: var(--accent-teal);
}

.project-card__media {
  position: relative;
  background: var(--bg-secondary);
  aspect-ratio: 4/3;
  overflow: hidden;
}

/* Featured media: match content height exactly */
.project-card--featured .project-card__media {
  aspect-ratio: auto;
  height: 100%;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* GIF images: use contain to show full image without cropping */
.project-card__image--contain {
  object-fit: contain;
  background: var(--bg-secondary);
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
}

/* ============================================
   Builds Section
   ============================================ */
.builds {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.builds__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Build Card */
.build-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: 
    transform var(--transition-normal),
    border-color var(--transition-normal);
}

.build-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.build-card__media {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.build-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.build-card:hover .build-card__image {
  transform: scale(1.03);
}

.build-card__content {
  padding: var(--space-md);
}

.build-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.build-card__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
  z-index: 2;
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__text {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-3xl) var(--space-xl);
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2xl);
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copyright {
  font-size: 14px;
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   Utilities
   ============================================ */
.muted {
  color: var(--text-muted);
}

/* ============================================
   Project Detail Page Styles
   ============================================ */
.project-page {
  padding-top: var(--nav-height);
}

/* When password gate is shown - center main content */
body.is-password-gate main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 140px);
}

.project-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-xl) var(--space-xl) 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.project-page .back-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.project-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.project-detail__body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

/* Left sidebar nav - below cover, sticky on scroll */
.project-nav {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  width: 140px;
}

.project-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

@media (max-width: 900px) {
  .project-detail__body {
    grid-template-columns: 1fr;
    margin-top: var(--space-xl);
  }

  .project-nav {
    position: static;
    width: 100%;
  }

  .project-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
  }
}

.project-nav__link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
  border-left: 2px solid transparent;
  padding-left: var(--space-md);
  margin-left: -2px;
}

.project-nav__link:hover {
  color: var(--text-secondary);
}

.project-nav__link.is-active {
  color: var(--accent-peach);
  font-weight: 600;
  border-left-color: var(--accent-peach);
}

/* Project sections */
.project-section {
  scroll-margin-top: calc(var(--nav-height) + var(--space-lg));
  margin-bottom: var(--space-3xl);
}

.project-section__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.02em;
}

.project-section__body {
  font-size: 19px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.project-section__body p {
  margin: 0 0 var(--space-lg);
}

.project-section__body p:last-child {
  margin-bottom: 0;
}

.project-section__images {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.project-section__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  overflow: hidden;
}

.project-section__image--gif-stroke {
  border: 1px solid #00F6FF;
  box-sizing: border-box;
}

.project-detail__header {
  margin-bottom: var(--space-2xl);
}

/* Project meta block - Timeline, Role, For, With */
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.project-meta__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.project-meta__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-meta__value {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .project-meta {
    grid-template-columns: 1fr;
  }
}

.project-detail__category {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.project-detail__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 var(--space-md);
}

.project-detail__summary {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-detail__cover {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  background: var(--bg-card);
}

.project-detail__cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overview & My Role - two-column layout */
.project-overview-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.project-overview-role__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-overview-role__heading {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

.project-overview-role__subheading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

.project-overview-role__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .project-overview-role {
    grid-template-columns: 1fr;
  }
}

/* Inline password gate (below overview, same form styling) */
.password-gate--inline {
  min-height: auto;
  margin-bottom: var(--space-2xl);
}

.password-gate--inline .password-gate__box {
  margin: 0;
}

/* Password Gate - Centered layout like reference */
.password-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: var(--space-3xl) var(--space-xl);
  width: 100%;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}

.password-gate__box {
  max-width: 440px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.password-gate__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  color: var(--text-primary);
}

.password-gate__hint {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-lg);
}

.password-gate__contact {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-2xl);
}

.password-gate__contact a {
  color: var(--accent-peach);
  text-decoration: none;
}

.password-gate__contact a:hover {
  text-decoration: underline;
}

.password-gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.password-gate__input {
  width: 100%;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.password-gate__input:focus {
  border-color: var(--accent-peach);
}

.password-gate__input::placeholder {
  color: var(--text-muted);
}

.password-gate__btn {
  width: 100%;
  max-width: 360px;
  padding: 14px 28px;
  background: #E85D04 !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.password-gate__btn:hover {
  opacity: 0.95;
  background: #F48C06 !important;
}

.password-gate__error {
  margin: var(--space-md) 0 0;
  font-size: 14px;
  color: var(--accent-coral);
}

/* More Projects */
.more-projects {
  padding: var(--space-3xl) var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.more-projects__title {
  text-align: center;
  font-size: 24px;
  margin-bottom: var(--space-xl);
}

.more-projects__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
