/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --sage-050: #f5f6f2;
  --sage-100: #eceee6;
  --sage-200: #d8dbc9;
  --sage-300: #c9ccb9;
  --sage-400: #b9bdaa;
  --sage-500: #a9ad98;
  --sage-600: #8f947f;
  --sage-700: #6f7463;
  --ink-900: #1f221a;
  --ink-700: #4d5245;
  --ink-500: #707666;
  --line-soft: rgba(111, 116, 99, 0.22);
}

html[data-theme="dark"] {
  --sage-050: #10120f;
  --sage-100: #171a14;
  --sage-200: #262b22;
  --sage-300: #363d31;
  --sage-400: #4d5544;
  --sage-500: #66705c;
  --sage-600: #8e9781;
  --sage-700: #b9bdaa;
  --ink-900: #eef1e8;
  --ink-700: #d4d9c9;
  --ink-500: #b8beab;
  --line-soft: rgba(185, 189, 170, 0.24);
}

html[data-theme="dark"] .hero {
  background: transparent;
}

html[data-theme="dark"] .projects-section {
  background: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink-900);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === Header === */
.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  pointer-events: none;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(31, 34, 26, 0.1);
  pointer-events: auto;
}
html[data-theme="dark"] .site-header .nav {
  background: rgba(16, 18, 15, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  width: 112px; /* 75% of original 150px */
  height: auto;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-500);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage-700); }

.theme-toggle {
  border: 1px solid var(--line-soft);
  background: rgba(185, 189, 170, 0.16);
  color: var(--ink-700);
  border-radius: 9999px;
  padding: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: rgba(185, 189, 170, 0.3);
  transform: translateY(-1px);
}
.theme-icon {
  width: 18px;
  height: 18px;
  display: block;
}
html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

/* === Fixed Background Video === */
.bg-video-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: var(--sage-050);
}
html[data-theme="dark"] .bg-video-wrap {
  background: #10120f;
}
.bg-video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* Keep original resolution — do not stretch or enlarge */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bg-video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245,246,242,0.82), rgba(185,189,170,0.66));
}
html[data-theme="dark"] .bg-video-overlay {
  background: linear-gradient(135deg, rgba(16,18,15,0.86), rgba(23,26,20,0.78));
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  max-width: 700px;
  z-index: 2;
}

/* === Scroll Reveal Animations === */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
.hero-content [data-reveal]:nth-child(1) { transition-delay: 0.1s; }
.hero-content [data-reveal]:nth-child(2) { transition-delay: 0.25s; }
.hero-content [data-reveal]:nth-child(3) { transition-delay: 0.4s; }
.hero-content [data-reveal]:nth-child(4) { transition-delay: 0.55s; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bg-video { display: none; }
  .bg-video-overlay { background: linear-gradient(180deg, var(--sage-100) 0%, var(--sage-050) 54%, #ffffff 100%); }
  html[data-theme="dark"] .bg-video-overlay { background: linear-gradient(180deg, #171a14 0%, #10120f 54%, #0b0d0a 100%); }
  * { scroll-behavior: auto !important; }
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(185, 189, 170, 0.28);
  color: var(--sage-700);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-500), var(--sage-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-600));
  color: #fdfdfb;
  box-shadow: 0 4px 14px rgba(111, 116, 99, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 116, 99, 0.42);
}
.btn-outline {
  border: 2px solid rgba(31, 34, 26, 0.7);
  color: #1f221a;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

/* === Section === */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  background: rgba(185, 189, 170, 0.22);
  color: var(--sage-700);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--ink-500);
  font-size: 1.05rem;
}

/* === Projects Grid === */
.projects-section {
  background: transparent;
}
/* Cards flow in a horizontal strip. When there are more cards than fit the
   container width, a horizontal scrollbar appears instead of stacking into a
   tall container. */
.projects-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 400px);
  grid-template-columns: none;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-300, rgba(111, 116, 99, 0.5)) transparent;
}
.projects-grid::-webkit-scrollbar { height: 8px; }
.projects-grid::-webkit-scrollbar-track { background: transparent; }
.projects-grid::-webkit-scrollbar-thumb {
  background: rgba(111, 116, 99, 0.4);
  border-radius: 999px;
}
.projects-grid::-webkit-scrollbar-thumb:hover { background: rgba(111, 116, 99, 0.6); }
.project-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.project-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(31, 34, 26, 0.08);
  transition: all 0.25s;
}
.project-card:hover {
  border-color: rgba(111, 116, 99, 0.36);
  box-shadow: 0 12px 30px rgba(31, 34, 26, 0.08);
  transform: translateY(-4px);
}
.project-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-card-body h3 a:hover { color: var(--sage-700); }
.project-card-body p {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tag {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(185, 189, 170, 0.2);
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 600;
}
.project-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-700);
  gap: 0.25rem;
  transition: gap 0.2s;
}
.project-link:hover { gap: 0.5rem; }

/* === Team Section === */
.team-section {
  background: var(--sage-050);
}
html[data-theme="dark"] .team-section {
  background: #10120f;
}
.team-group { margin-bottom: 3rem; }
.team-group:last-child { margin-bottom: 0; }
.team-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(185, 189, 170, 0.5);
}
.team-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.team-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(31, 34, 26, 0.08);
  cursor: pointer;
  transition: all 0.25s;
}
.team-card:hover {
  border-color: rgba(111, 116, 99, 0.3);
  box-shadow: 0 8px 25px rgba(31, 34, 26, 0.06);
  transform: translateY(-3px);
}
.team-card-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--sage-700), var(--sage-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.team-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 0.75rem;
}
.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(185, 189, 170, 0.24);
  color: var(--sage-700);
  font-size: 0.8rem;
  transition: all 0.2s;
}
.team-social-link:hover {
  background: var(--sage-700);
  color: #fff;
}

/* === Footer === */
.site-footer {
  background: var(--ink-900);
  color: var(--sage-300);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

html[data-theme="dark"] .site-header {
  background: transparent;
}

html[data-theme="dark"] .project-card,
html[data-theme="dark"] .team-card {
  background: rgba(24, 27, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .hero-badge,
html[data-theme="dark"] .section-tag,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .team-social-link {
  background: rgba(185, 189, 170, 0.14);
}

html[data-theme="dark"] .btn-outline {
  border-color: rgba(238, 241, 232, 0.7);
  color: #eef1e8;
  background: rgba(16, 18, 15, 0.5);
}
html[data-theme="dark"] .btn-outline:hover {
  background: rgba(16, 18, 15, 0.72);
}

html[data-theme="dark"] .btn-outline:hover {
  background: rgba(185, 189, 170, 0.14);
}

html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .team-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .btn-primary {
  color: #11140e;
}

html[data-theme="dark"] .site-footer {
  background: #090a08;
  color: var(--sage-400);
}
.site-footer p { margin: 0; }

.footer-cta {
  max-width: 46rem;
  margin: 0 auto 0.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--sage-500);
  text-align: left;
}
html[data-theme="dark"] .footer-cta { color: var(--sage-300); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--sage-500);
  text-align: left;
}
html[data-theme="dark"] .footer-copy { color: var(--sage-300); }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 1.75rem; }
  /* On small screens, stack cards vertically instead of scrolling horizontally */
  .projects-grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding: 0.25rem 0 1.25rem;
  }
  .team-row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .nav-links-wrap { gap: 0.5rem; }
  .nav-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .site-header .nav {
    height: auto;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .logo img { width: 96px; }
  .nav-links-wrap {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
}
/* === Utility === */
.hidden { display: none !important; }
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-500);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

/* === Project Tabs === */
.project-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.tab-btn {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-700);
  border-radius: 9999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  border-color: rgba(111, 116, 99, 0.4);
  transform: translateY(-1px);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-600));
  color: #fdfdfb;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(111, 116, 99, 0.3);
}
.tab-count {
  opacity: 0.7;
  font-size: 0.78rem;
  margin-left: 0.15rem;
}
html[data-theme="dark"] .tab-btn {
  background: rgba(24, 27, 20, 0.7);
}
html[data-theme="dark"] .tab-btn.active {
  background: linear-gradient(135deg, var(--sage-700), var(--sage-600));
  color: #11140e;
}

/* === Project Card extras === */
.project-card { cursor: pointer; padding: 0; overflow: hidden; }
.project-card-body { padding: 1.75rem; }
.project-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(185, 189, 170, 0.16);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project-card:hover .project-card-image img { transform: scale(1.03); }
.project-card-topline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.category-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(185, 189, 170, 0.28);
  color: var(--sage-700);
  font-size: 0.78rem;
  font-weight: 700;
}
.project-type {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 600;
}
html[data-theme="dark"] .category-badge {
  background: rgba(185, 189, 170, 0.14);
}

/* === Project Detail === */
.detail-section-wrap {
  background: transparent;
  min-height: 60vh;
}
.back-btn {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-700);
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: all 0.2s;
}
.back-btn:hover { background: rgba(185, 189, 170, 0.2); }
html[data-theme="dark"] .back-btn { background: rgba(24, 27, 20, 0.7); }

/* Project detail card — frosted glass, readable text (matches member detail) */
.project-detail-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(31, 34, 26, 0.12);
}
html[data-theme="dark"] .project-detail-card {
  background: rgba(24, 27, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Demo area — large, at the top */
.project-demo {
  margin-bottom: 2.5rem;
}
.project-demo-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-700);
  margin-bottom: 0.75rem;
}
.demo-frame-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 34, 26, 0.08);
}
.demo-frame {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}
.demo-placeholder {
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(185,189,170,0.18), rgba(185,189,170,0.06));
}
.demo-placeholder-inner {
  text-align: center;
  color: var(--ink-500);
  padding: 2rem;
}
.demo-placeholder-inner span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
}
.demo-placeholder-inner p {
  margin-bottom: 1.25rem;
}
.demo-open { margin-top: 0.85rem; }
.btn-demo-open { font-size: 0.85rem; padding: 0.5rem 1.2rem; }

/* Project detail header + body */
.project-detail-header {
  margin-bottom: 2rem;
}
.project-detail-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.75rem;
}
.detail-summary {
  font-size: 1.1rem;
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.detail-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.project-detail-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(185, 189, 170, 0.5);
}
.project-detail-body p {
  color: var(--ink-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* === Developed By (developers) === */
.project-developers {
  margin-bottom: 1rem;
}
.project-developers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.developer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(235, 238, 227, 0.6));
  box-shadow: 0 4px 12px rgba(31, 34, 26, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.developer-chip:hover {
  border-color: rgba(111, 116, 99, 0.5);
  box-shadow: 0 8px 20px rgba(31, 34, 26, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}
.developer-chip:active,
.developer-chip-pressed {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 2px 6px rgba(31, 34, 26, 0.12);
  transition-duration: 0.08s;
}
.developer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-300), var(--sage-500));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(31, 34, 26, 0.18);
}
.developer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.developer-name {
  font-weight: 700;
  font-size: 0.95rem;
}
html[data-theme="dark"] .developer-chip {
  background: linear-gradient(135deg, rgba(30, 34, 24, 0.9), rgba(20, 23, 16, 0.7));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .developer-chip:hover {
  border-color: rgba(185, 189, 170, 0.4);
}

/* === Member Detail === */
.member-detail-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(31, 34, 26, 0.12);
  text-align: center;
}
html[data-theme="dark"] .member-detail-card {
  background: rgba(24, 27, 20, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
}
.member-detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--sage-700), var(--sage-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  overflow: hidden;
}
.member-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-detail-role {
  font-size: 1rem;
  color: var(--sage-700);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.member-detail-body {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}
.member-detail-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(185, 189, 170, 0.5);
}
.member-detail-body p {
  color: var(--ink-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.member-detail-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.member-detail-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.member-detail-socials .team-social-link {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

/* === About Section === */
.about-section {
  background: var(--sage-050);
}
html[data-theme="dark"] .about-section {
  background: #10120f;
}
.about-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-body p {
  color: var(--ink-700);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-mission {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(185, 189, 170, 0.16);
  text-align: center;
}
.mission-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-700);
  margin-bottom: 0.6rem;
}
.about-mission p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.6;
  margin: 0;
}
html[data-theme="dark"] .about-mission {
  background: rgba(185, 189, 170, 0.08);
}

/* === Team avatar image === */
.avatar-image {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .detail-header h1 { font-size: 2rem; }
  .demo-frame { height: 400px; }
}

/* === Request a free demo modal === */
.demo-request-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.demo-request-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 12, 0.55);
  backdrop-filter: blur(3px);
  animation: demoFadeIn 0.2s ease;
}
.demo-request-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface, #ffffff);
  color: var(--ink-900, #1f221a);
  border: 1px solid var(--line-soft, #e2e4da);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: demoSlideUp 0.25s ease;
}
html[data-theme="dark"] .demo-request-panel {
  background: #1c1f18;
  color: #eef0e8;
  border-color: #33382c;
}
.demo-request-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #8a9180);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.demo-request-close:hover { color: var(--ink-900, #1f221a); }
.demo-request-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.demo-request-sub {
  margin: 0 0 1.5rem;
  color: var(--muted, #8a9180);
  font-size: 0.95rem;
}
.demo-request-field { margin-bottom: 1.1rem; }
.demo-request-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.demo-request-field .req { color: #c0392b; }
.demo-request-field .opt { color: var(--muted, #8a9180); font-weight: 400; }
.demo-request-field input,
.demo-request-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: inherit;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-soft, #d5d8cc);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html[data-theme="dark"] .demo-request-field input,
html[data-theme="dark"] .demo-request-field textarea {
  background: #14160f;
  border-color: #3a4032;
}
.demo-request-field input:focus,
.demo-request-field textarea:focus {
  outline: none;
  border-color: var(--sage-600, #6f7463);
  box-shadow: 0 0 0 3px rgba(185, 189, 170, 0.35);
}
.demo-request-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.demo-request-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
.demo-request-error {
  color: #c0392b;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}
.demo-request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.demo-request-actions .btn { min-width: 110px; }
body.demo-request-locked { overflow: hidden; }

/* Toast */
.demo-request-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1100;
  background: #1f221a;
  color: #f4f5f0;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: min(90vw, 480px);
  text-align: center;
}
.demo-request-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes demoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes demoSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
