/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Modal lock ===== */
body.modal-open {
  overflow: hidden;
}

/* ===== Base ===== */
:root {
  --color-bg: #fafafa;
  --color-card: #fff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-body: #444;
  --color-text-desc: #555;
  --color-text-note: #666;
  --color-text-muted: #888;
  --color-divider: #d4d4d4;
  --color-border: #eee;
  --color-border-light: #f5f5f5;
  --color-accent: #6366f1;
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Project themes */
.project--theme-blue {
  --project-accent: #6366f1;
  --project-accent-bg: rgba(99, 102, 241, 0.06);
}
.project--theme-green {
  --project-accent: #10b981;
  --project-accent-bg: rgba(16, 185, 129, 0.06);
}
.project--theme-sky {
  --project-accent: #0ea5e9;
  --project-accent-bg: rgba(14, 165, 233, 0.06);
}
.project--theme-blue .project__label { border-color: rgba(99,102,241,0.3); color: #6366f1; }
.project--theme-blue .project__stat-num { color: #6366f1; }
.project--theme-blue .project__toggle:hover { border-color: #6366f1; color: #6366f1; background: rgba(99,102,241,0.05); }
.project--theme-blue .project__demo-btn { background: #555; }
.project--theme-blue .project__demo-btn:hover { background: #444; }
.project--theme-blue .project__demo-btn--outline { background: #555; border-color: var(--color-text-desc); color: #fff; }
.project--theme-blue .project__demo-btn--outline:hover { background: #444; }
.project--theme-green .project__label { border-color: rgba(16,185,129,0.3); color: #10b981; }
.project--theme-green .project__stat-num { color: #10b981; }
.project--theme-green .project__toggle:hover { border-color: #10b981; color: #10b981; background: rgba(16,185,129,0.05); }
.project--theme-green .project__demo-btn { background: #10b981; }
.project--theme-green .project__demo-btn:hover { background: #059669; }
.project--theme-sky .project__label { border-color: rgba(14,165,233,0.3); color: #0ea5e9; }
.project--theme-sky .project__stat-num { color: #0ea5e9; }
.project--theme-sky .project__toggle:hover { border-color: #0ea5e9; color: #0ea5e9; background: rgba(14,165,233,0.05); }
.project--theme-sky .project__demo-btn { background: #0ea5e9; }
.project--theme-sky .project__demo-btn:hover { background: #0284c7; }

/* ===== SVG Icon Sprite ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
}

/* Formula display (replaces bar chart) */
.project__formula-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.project__formula-header h4 {
  font-size: 0.95rem;
  font-weight: 500;
}
.project__formula {
  font-size: 0.82rem;
  font-family: "SF Mono", "Fira Code", monospace;
  color: var(--project-accent, var(--color-accent));
  background: var(--project-accent-bg, rgba(124,106,239,0.06));
  padding: 0.2em 0.6em;
  border-radius: 6px;
}
.project__level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.project__level-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.82rem;
}
.project__level-cell span:first-child {
  color: var(--color-text-secondary);
  font-weight: 500;
}
.project__level-cell span:last-child {
  font-weight: 600;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  overflow: hidden;
  background: var(--color-bg);
}

/* Glow layers */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  top: 20%;
  right: -8%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.07) 0%, transparent 70%);
  filter: blur(60px);
}

.hero__glow--3 {
  width: 350px;
  height: 350px;
  bottom: -5%;
  left: 30%;
  background: radial-gradient(circle, rgba(165, 180, 252, 0.06) 0%, transparent 70%);
  filter: blur(50px);
}

/* Flip board background text */
.hero__flip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.15em;
  z-index: 0;
  pointer-events: none;
  perspective: 1000px;
}

.hero__flip-char {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.13);
  line-height: 1;
  perspective: 800px;
}

.hero__flip-char span {
  display: block;
  animation: flipChar 7.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--i) * -1.8s);
  transform-origin: center center;
  backface-visibility: hidden;
}

@keyframes flipChar {
  0%, 10% {
    transform: rotateY(0deg);
  }
  16% {
    transform: rotateY(180deg);
  }
  22%, 100% {
    transform: rotateY(0deg);
  }
}

/* Bottom fade to white for seamless transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
}

/* Avatar */
.hero__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0 80px rgba(120, 140, 255, 0.08);
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hero__avatar:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 0 100px rgba(120, 140, 255, 0.12);
  transform: scale(1.04) translateY(-2px);
}

/* Name */
.hero__name {
  margin-top: 1.8rem;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(16px);
}

/* Alias */
.hero__alias {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #999;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
}

/* Divider — expand from center */
.hero__divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-divider), transparent);
  margin: 1.8rem 0;
  opacity: 0;
}

.hero__divider.animate-in {
  animation: expandLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes expandLine {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 56px;
    opacity: 1;
  }
}

/* Statements */
.hero__statements {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 420px;
}

.hero__statement {
  opacity: 0;
  transform: translateY(14px);
  text-align: center;
  line-height: 1.8;
}

/* Listen — five lines, compact vertical flow */
.hero__statement--listen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.82rem;
  color: #aaa;
  letter-spacing: 0.06em;
}

/* Four feelings — inline with dots */
.hero__statement--feel {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  font-weight: 400;
}

.hero__dot {
  margin: 0 0.35em;
  color: var(--color-divider);
}

/* Core — the punchline, slightly larger */
.hero__statement--core {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.9;
}

/* Question — italic for emphasis */
.hero__statement--question {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Disciplines — inline with dots */
.hero__statement--disciplines {
  font-size: 0.82rem;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-divider);
  opacity: 0;
  z-index: 2;
  transition: color 0.3s ease;
}

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

.hero__scroll-arrow {
  width: 28px;
  height: 28px;
  animation: scrollFloat 2.5s ease-in-out infinite;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Animation ===== */
.animate-in {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__avatar.animate-in {
  animation: fadeScale 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Project Section ===== */
.project {
  padding: 3rem 2rem;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.project__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* --- Header --- */
.project__header {
  text-align: center;
  margin-bottom: 2rem;
}

.project__inner.is-expanded .project__toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.project__footer-collapse-btn.is-floating {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  opacity: 0;
  width: 40px;
  height: 40px;
  display: flex;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.project__footer-collapse-btn.is-floating.is-visible {
  opacity: 0.5;
  pointer-events: auto;
}

.project__footer-collapse {
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.project__footer-collapse-btn {
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}

.project__footer-collapse-btn:hover {
  opacity: 0.8;
}

.project__footer-collapse-btn .project__toggle-icon {
  transform: rotate(180deg);
}

.project__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.project__title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.project__subtitle {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* --- Toggle Button --- */
.project__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 1.2rem;
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-secondary);
}

.project__toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(99, 102, 241, 0.05);
}

.project__toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.project__toggle[aria-expanded="true"] .project__toggle-icon {
  transform: rotate(180deg);
}

/* --- Collapsible Details --- */
.project__details {
  --details-height: 0px;
  max-height: var(--details-height);
  overflow-y: clip;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Overview --- */
.project__overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.project__overview-text h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.project__overview-text p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-body);
  max-width: 520px;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project__tags span {
  font-size: 0.72rem;
  padding: 0.25em 0.8em;
  border: 1px solid var(--color-divider);
  border-radius: 100px;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}

.project__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Center the last stat when it's alone on a row (5 items → 2+2+1) */
.project__stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

.project__stat-num {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.project__stat-label {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

/* --- Section titles --- */
.project__section {
  margin-bottom: 2rem;
}

.project__section-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 500;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border);
}

/* --- Design Goals --- */
.project__goals {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.project__goal {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.project__goal-num {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  min-width: 1.3rem;
  padding-top: 0.1rem;
  letter-spacing: 0.04em;
}

.project__goal h4 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.project__goal p {
  font-size: 0.82rem;
  color: var(--color-text-desc);
  line-height: 1.65;
}

/* --- Systems --- */
.project__systems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project__system {
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project__system:hover {
  border-color: var(--color-divider);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.project__system-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.6rem;
  color: var(--color-text-secondary);
}

.project__system-icon svg {
  width: 100%;
  height: 100%;
}

.project__system h4 {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.project__system p {
  font-size: 0.78rem;
  color: var(--color-text-note);
  line-height: 1.6;
}

/* --- Numerical Design --- */
.project__num-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.project__num-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.project__num-card:last-child {
  grid-column: 1 / -1;
}

.project__num-card h4 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.project__num-formula {
  font-size: 0.82rem;
  font-family: "SF Mono", "Fira Code", monospace;
  color: var(--color-text-secondary);
  background: #f5f5f5;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Bar chart */
.project__num-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  padding-top: 1rem;
}

.project__num-bar {
  flex: 1;
  height: calc(var(--h) * 1%);
  background: var(--color-text);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.3rem;
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__num-bar span {
  font-size: 0.65rem;
  color: #fff;
  font-weight: 500;
}

.project__num-bar i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--color-text-secondary);
  position: absolute;
  bottom: -1.4rem;
}

/* Rarity */
.project__rarity-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.project__rarity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.project__rarity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.project__rarity-weight {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

.project__rarity-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}

.project__rarity-bar > div {
  width: var(--w);
  background: var(--c);
  border-radius: 3px;
}

/* Table */
.project__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

.project__table-wrap .project__table {
  min-width: 500px;
}

.project__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.project__table th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.project__table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-body);
}

.project__table tr:last-child td {
  border-bottom: none;
}

/* --- Results --- */
.project__results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.project__result {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project__result-num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.project__result > span:last-child {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.4rem;
}

/* --- Retrospective --- */
.project__retro {
  display: grid;
  gap: 1.2rem;
}

.project__retro-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.project__retro-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.15rem;
  position: relative;
}

.project__retro-icon--good {
  background: #e8f5e9;
}

.project__retro-icon--good::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 5px;
  border-left: 2px solid #2e7d32;
  border-bottom: 2px solid #2e7d32;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.project__retro-icon--grow {
  background: #fff3e0;
}

.project__retro-icon--grow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #e65100;
  border-right: 2px solid #e65100;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project__retro-item h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.project__retro-item p {
  font-size: 0.85rem;
  color: var(--color-text-desc);
  line-height: 1.7;
}

/* --- Design Decisions --- */
.project__decisions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project__decision {
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-card);
}

.project__decision-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: var(--project-accent-bg, rgba(124,106,239,0.06));
  border-bottom: 1px solid var(--color-divider);
}

.project__decision-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--project-accent, var(--color-accent));
  background: var(--project-accent-bg, rgba(124,106,239,0.06));
  border: 1.5px solid var(--project-accent, var(--color-accent));
  border-radius: 6px;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project__decision-head h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.project__decision-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project__decision-body p {
  font-size: 0.8rem;
  color: var(--color-text-body);
  line-height: 1.65;
}

.project__decision-goal {
  color: var(--color-text) !important;
}

.project__decision-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project__decision-body li {
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.7;
  padding-left: 1.2em;
  position: relative;
}

.project__decision-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--project-accent, var(--color-accent));
}

.project__decision-body .project__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.project__decision-body .project__table th {
  background: var(--project-accent-bg, rgba(124,106,239,0.06));
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}

.project__decision-body .project__table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-desc);
  vertical-align: top;
}

.project__decision-body .project__table tr:last-child td {
  border-bottom: none;
}

/* Compare (pass/fail) */
.project__compare {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project__compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.project__compare-item--fail {
  background: #fef2f2;
  border-color: #fecaca;
}

.project__compare-item--pass {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.project__compare-icon {
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.project__compare-item--fail .project__compare-icon {
  color: #ef4444;
}

.project__compare-item--pass .project__compare-icon {
  color: #22c55e;
}

.project__compare-item strong {
  font-size: 0.85rem;
  color: var(--color-text);
}

.project__compare-item p {
  font-size: 0.82rem !important;
  color: #666 !important;
  margin: 0;
}

/* --- Demo --- */
.project__demo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.project__demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-text);
  border: none;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project__demo-hint {
  width: 100%;
  font-size: 0.72rem;
  color: #999;
  margin-top: 0.8rem;
  letter-spacing: 0.04em;
}

/* --- Documents --- */
.project__docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project__doc {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.project__doc-icon {
  width: 28px;
  height: 28px;
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
}

.project__doc-icon svg {
  width: 100%;
  height: 100%;
}

.project__doc h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.project__doc p {
  font-size: 0.82rem;
  color: var(--color-text-note);
  line-height: 1.7;
}

/* --- Screenshots --- */
.project__screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project__screenshot:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

.project__screenshot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
}

.project__screenshot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project__screenshot img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project__screenshot span {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox--open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Asset Gallery Modal ===== */
.asset-gallery {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.asset-gallery--open {
  opacity: 1;
  pointer-events: auto;
}

.asset-gallery__panel {
  width: 92vw;
  max-width: 1100px;
  max-height: 88vh;
  background: var(--color-bg, #fafafa);
  border: 1px solid var(--color-divider, #d4d4d4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.asset-gallery--open .asset-gallery__panel {
  transform: scale(1) translateY(0);
}

.asset-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-divider, #d4d4d4);
  flex-shrink: 0;
}

.asset-gallery__header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
  margin: 0;
}

.asset-gallery__close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text, #1a1a1a);
  font-size: 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.asset-gallery__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.asset-gallery__body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.asset-gallery__group {
  margin-bottom: 2rem;
}

.asset-gallery__group:last-child {
  margin-bottom: 0;
}

.asset-gallery__group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent, #6366f1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-divider, #d4d4d4);
}

.asset-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.asset-gallery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.asset-gallery__item:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.asset-gallery__item--wide {
  grid-column: 1 / -1;
  max-width: 400px;
}

.asset-gallery__item img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 4px;
}

.asset-gallery__item--wide img {
  max-height: 160px;
}

.asset-gallery__item span {
  font-size: 0.72rem;
  color: var(--color-text-secondary, #6b6b6b);
  text-align: center;
  line-height: 1.3;
}

/* Outline button variant */
.project__demo-btn--outline {
  background: transparent;
  border: 1.5px solid var(--project-accent, var(--color-accent, #6366f1));
  color: var(--project-accent, var(--color-accent, #6366f1));
}

.project__demo-btn--outline:hover {
  background: var(--project-accent, var(--color-accent, #6366f1));
  color: #fff;
}

/* --- Doc download link --- */
.project__doc-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-accent, #6366f1);
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.project__doc-preview:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--color-accent, #6366f1);
}

/* --- Design Idea (simple) --- */
.design-idea {
  position: relative;
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.design-idea__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}

.design-idea__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  padding: 3rem 2.5rem;
  border-radius: 16px;
}

.design-idea__label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.design-idea__title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5b9bd5;
  margin-bottom: 0.3rem;
}

.design-idea__subtitle {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Design Idea Toggle */
.design-idea__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-secondary);
}

.design-idea__toggle:hover {
  border-color: #5b9bd5;
  color: #5b9bd5;
  background: rgba(91, 155, 213, 0.05);
}

/* Design Idea Details */
.design-idea__details {
  --details-height: 0px;
  max-height: var(--details-height);
  overflow-y: clip;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Design Idea Collapsed State */
.design-idea.is-collapsed .design-idea__bg {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.design-idea.is-collapsed .design-idea__inner {
  background: transparent;
  box-shadow: none;
}

.design-idea:not(.is-collapsed) .design-idea__bg {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.design-idea:not(.is-collapsed) .design-idea__inner {
  background: rgba(255, 255, 255, 0.82);
  transition: background 0.4s ease;
}

.design-idea__footer {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(91, 155, 213, 0.15);
}

.design-idea__collapse-btn {
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.design-idea__collapse-btn:hover {
  opacity: 1;
}

.design-idea__collapse-btn .project__toggle-icon {
  transform: rotate(180deg);
}

.design-idea__body {
  text-align: left;
  color: #5b9bd5;
  font-size: 0.95rem;
  line-height: 2;
}

.design-idea__body p {
  margin: 0;
}

.design-idea__body strong {
  color: #3a7fc2;
  font-weight: 600;
}

.design-idea__divider {
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
  color: #3a7fc2;
  font-weight: 500;
}
.skills {
  padding: 3rem 2rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.skills__inner {
  max-width: 860px;
  margin: 0 auto;
}

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

.skills__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.skills__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skills__card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem 1.2rem;
  background: var(--color-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skills__card:hover {
  border-color: var(--color-divider);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.skills__card--wide {
  grid-column: 1 / -1;
}

.skills__card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.skills__card-icon {
  width: 28px;
  height: 28px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.skills__card-icon svg {
  width: 100%;
  height: 100%;
}

.skills__card-head h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* --- Skills list --- */
.skills__list {
  display: grid;
  gap: 1rem;
}

.skills__item {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-border-light);
}

.skills__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skills__item h4 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.skills__item p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Tools groups --- */
.skills__groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skills__group h4 {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills__tags span {
  font-size: 0.72rem;
  padding: 0.2em 0.65em;
  border: 1px solid var(--color-divider);
  border-radius: 100px;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===== Education Section ===== */
.education {
  padding: 3rem 2rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.education__inner {
  max-width: 860px;
  margin: 0 auto;
}

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

.education__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.education__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.education__card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  background: var(--color-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.education__card:hover {
  border-color: var(--color-divider);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.education__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.2rem;
}

.education__school {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.education__major {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.education__period {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 0.2rem;
}

.education__detail p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.85;
}

/* ===== Contact Section ===== */
.contact {
  padding: 3rem 2rem 2rem;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.contact__inner {
  max-width: 860px;
  margin: 0 auto;
}

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

.contact__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.contact__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact__item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.contact__icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.contact__icon svg {
  width: 100%;
  height: 100%;
}

.contact__label-text {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* Resume download card */
.contact__resume {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(99, 102, 241, 0.01));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact__resume:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.contact__resume-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact__resume-icon svg {
  width: 100%;
  height: 100%;
}

.contact__resume-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact__resume-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.contact__resume-hint {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.contact__resume-download {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact__resume-download svg {
  width: 100%;
  height: 100%;
}

.contact__resume:hover .contact__resume-download {
  opacity: 1;
  transform: translateY(2px);
}

/* ===== Art Section ===== */
.art {
  padding: 4.5rem 2rem;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.art__inner {
  max-width: 860px;
  margin: 0 auto;
}

.art__header {
  text-align: center;
  margin-bottom: 3rem;
}

.art__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.art__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.art__header--aigc {
  margin-top: 3rem;
}

.art__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.art__item {
  cursor: pointer;
}

.art__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.art__item img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s ease, border-color 0.3s ease;
}

.nav--visible {
  opacity: 1;
}

.nav--scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}

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

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

.nav__link--active::after {
  background: var(--color-accent, #6366f1);
  height: 2px;
}

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 101;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Featured Section ===== */
.featured {
  padding: 3rem 2rem;
  background: var(--color-card);
}

.featured__inner {
  max-width: 860px;
  margin: 0 auto;
}

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

.featured__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.featured__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.featured__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.featured__card-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.featured__card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured__card-info {
  padding: 1.2rem 1.5rem;
}

.featured__card-info h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.featured__card-info p {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.02em;
}

/* ===== Gaming History Timeline ===== */
.timeline {
  padding: 4.5rem 0;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.timeline__inner {
  max-width: 100%;
  padding: 0 3rem;
  margin: 0 auto;
}

.timeline__header {
  text-align: center;
  margin-bottom: 3rem;
}

.timeline__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.timeline__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.timeline__legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.timeline__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.timeline__legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.timeline__legend-dot--sp {
  background: #5b8def;
}

.timeline__legend-dot--mp {
  background: #e8a85e;
}

.timeline__grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(60px, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0 6px;
}

/* SP row: above timeline */
.timeline__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(16, minmax(60px, 1fr));
  gap: 0 6px;
  padding: 0 0 0.8rem;
  align-items: start;
}

.timeline__row--sp {
  grid-row: 1;
  align-items: end;
}

.timeline__row--mp {
  grid-row: 3;
  padding: 0.6rem 0 0;
  min-height: 100px;
}

/* Track: line + dots + labels */
.timeline__track {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 44px;
}

.timeline__line {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-divider);
}

.timeline__dots {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
}

.timeline__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-text);
  background: var(--color-card);
  position: absolute;
  top: 0;
  left: calc((var(--col) - 1) * 6.25% + 3.125% - 8px);
}

.timeline__years {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
}

.timeline__year {
  position: absolute;
  top: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  transform: translateX(-50%);
  user-select: none;
  left: calc((var(--col) - 1) * 6.25% + 3.125%);
}

.timeline__row--sp .timeline__year-cell {
  border-bottom: 2px solid #5b8def;
  padding-bottom: 4px;
}

.timeline__row--mp .timeline__year-cell {
  border-top: 2px solid #e8a85e;
  padding-top: 4px;
}

/* Compact game tags */
.timeline__year-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-column: var(--col);
  grid-row: 1;
  box-sizing: border-box;
  padding: 0 2px;
}

.game-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
}

/* Game tag categories */
.game-tag--casual { background: #e0f2f1; color: #00695c; }
.game-tag--sandbox { background: #e8f5e9; color: #2e7d32; }
.game-tag--action { background: #fce4ec; color: #c62828; }
.game-tag--strategy { background: #f3e5f5; color: #7b1fa2; }
.game-tag--sim { background: #fff3e0; color: #e65100; }
.game-tag--shooter { background: #e8f4fd; color: #1a73e8; }

/* Timeline insights */
.timeline__insights {
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.timeline__insights-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.timeline__insights-grid {
  display: grid;
  gap: 1.2rem;
}

.timeline__insight-card {
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.timeline__insight-card h4 {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.timeline__insight-card p {
  font-size: 0.82rem;
  color: var(--color-text-desc);
  line-height: 1.7;
}

/* ===== Timeline Scroll ===== */
.timeline__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.timeline__color-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.timeline__color-legend .game-tag {
  font-size: 0.65rem;
}

.timeline__scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  opacity: 0.5;
  margin-bottom: 1rem;
  animation: scrollFloat 2s ease-in-out infinite;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem 2rem;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.footer__name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
}

.footer__alias {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  text-align: center;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.82rem;
  text-decoration: none;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .skills__card--wide {
    grid-column: auto;
  }

  .skills__groups {
    grid-template-columns: 1fr 1fr;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 56px;
    right: 0;
    height: calc(100vh - 56px);
    width: 260px;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__link {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }

  .nav__link::after {
    bottom: 0.5rem;
  }

  .project__overview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project__systems {
    grid-template-columns: 1fr;
  }

  .project__num-tables {
    grid-template-columns: 1fr;
  }

  .project__num-card:last-child {
    grid-column: auto;
  }

  .project__results {
    grid-template-columns: 1fr 1fr;
  }

  .project__docs {
    grid-template-columns: 1fr;
  }

  .project__screenshots {
    grid-template-columns: 1fr;
  }

  .art__grid {
    grid-template-columns: 1fr;
  }

  .project__title {
    font-size: 1.8rem;
  }


  .timeline {
    padding: 4rem 1.5rem;
  }

  .timeline__scroll-hint {
    display: block;
  }

  .game-tag {
    font-size: 0.72rem;
    padding: 3px 6px;
  }

  .timeline__grid {
    grid-template-columns: repeat(16, minmax(52px, 1fr));
    min-width: 880px;
  }

  .timeline__scroll-hint {
    display: block;
  }

  .footer__top {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__avatar {
    width: 100px;
    height: 100px;
  }

  .hero__name {
    font-size: 2rem;
  }

  .hero__glow--1 { width: 280px; height: 280px; }
  .hero__glow--2 { width: 220px; height: 220px; }
  .hero__glow--3 { width: 200px; height: 200px; }

  .project {
    padding: 4rem 1.5rem;
  }

  .project__results {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .project__result-num {
    font-size: 1.5rem;
  }

  .skills__groups {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding: 3rem 1rem;
  }

  .timeline__grid {
    grid-template-columns: repeat(16, minmax(50px, 1fr));
    min-width: 840px;
  }

  .timeline__scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .game-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
    white-space: nowrap;
  }

  .timeline__legend {
    gap: 1.5rem;
    font-size: 0.78rem;
  }

  .footer {
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer__links {
    gap: 1rem;
  }
}

/* ===== Design Analysis Layout ===== */
.analysis-block {
  margin-bottom: 2.5rem;
}

.analysis-block + .analysis-block {
  margin-top: 3rem;
}

.analysis-block__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.analysis-block__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.analysis-block__desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.analysis-block__desc--tight {
  margin-bottom: 1.5rem;
}

.analysis-block__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.analysis-block__toggle {
  margin-bottom: 1.5rem;
}

.analysis-block__result-num {
  color: #f59e0b;
}

.analysis-block__text {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.analysis-block__callout + .analysis-block__callout {
  margin-top: 1rem;
}

.analysis-block__goals {
  margin-top: 1rem;
}

.analysis-block__num-tables {
  margin-top: 1rem;
}

.analysis-block__note {
  margin-top: 0.5rem;
}

.text--negative { color: #ef4444; }
.text--positive { color: #22c55e; }

.analysis-block__label {
  font-size: 0.7rem;
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  padding: 0.15em 0.6em;
}

.project__results--padded {
  margin-bottom: 1rem;
}


/* Analysis specific */
.analysis-quote {
  border-left: 3px solid #f59e0b;
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.analysis-quote strong { color: var(--color-text); }
.analysis-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #ef4444;
}
.analysis-callout {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.04);
  margin: 1rem 0;
}
.analysis-callout h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #f59e0b;
}
.analysis-callout p,
.analysis-callout li {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.analysis-callout p + p {
  margin-top: 0.5rem;
}
.analysis-callout ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}
.analysis-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid var(--color-divider);
  transition: all 0.2s;
}

.analysis-preview-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.03);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__glow {
    display: none;
  }

  .hero__flip-char span {
    animation: none;
  }

  .hero__scroll-arrow {
    animation: none;
  }

  .project__details,
  .design-idea__details {
    transition: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .nav {
    transition: none;
  }

  .project__toggle-icon {
    transition: none;
  }

  .lightbox,
  .asset-gallery {
    transition: none;
  }
}

/* ===== User Demand Analysis ===== */
/* Persona */
.project__persona {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--project-accent-bg, rgba(99,102,241,0.04)), transparent);
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.project__persona-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.project__persona-body h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.project__persona-body p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

.project__persona-body p strong {
  color: var(--color-text);
}

.project__persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.project__persona-tags span {
  font-size: 0.68rem;
  padding: 0.15em 0.55em;
  border: 1px solid var(--color-divider);
  border-radius: 100px;
  color: var(--color-text-secondary);
  background: var(--color-card);
}

/* Pain Point Grid */
.project__pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.project__pain-card {
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project__pain-card:hover {
  border-color: var(--color-divider);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.project__pain-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project__pain-card h4 {
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.project__pain-card p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-text-note);
  text-align: left;
}

/* Demand Levels */
.project__demand-levels {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.project__demand-level {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.project__demand-level:hover {
  border-color: var(--project-accent, var(--color-accent));
}

.project__demand-level-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 1.4rem;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--project-accent, var(--color-accent));
  border-radius: 4px;
}

.project__demand-level h4 {
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  color: var(--color-text);
}

.project__demand-level p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-text-note);
}

/* Responsive for demand analysis */
@media (max-width: 768px) {
  .project__persona {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
  }

  .project__pain-grid {
    grid-template-columns: 1fr;
  }

  .project__demand-level {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ===== No-JS Fallback ===== */
/* When JavaScript is disabled or fails to load, make all elements visible */
.no-js .hero__avatar,
.no-js .hero__name,
.no-js .hero__alias,
.no-js .hero__divider,
.no-js .hero__statement,
.no-js .hero__scroll {
  opacity: 1 !important;
  transform: none !important;
}

.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.no-js .nav {
  opacity: 1 !important;
}

.no-js .hero__divider {
  width: 56px; /* match the animated end state */
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-card: #1a1a1a;
    --color-text: #e5e5e5;
    --color-text-secondary: #999;
    --color-text-body: #ccc;
    --color-text-desc: #bbb;
    --color-text-note: #aaa;
    --color-text-muted: #888;
    --color-divider: #333;
    --color-border: #2a2a2a;
    --color-border-light: #222;
    --color-accent: #818cf8;
  }

  /* Project theme adjustments */
  .project--theme-blue { --project-accent: #818cf8; --project-accent-bg: rgba(129, 140, 248, 0.08); }
  .project--theme-green { --project-accent: #34d399; --project-accent-bg: rgba(52, 211, 153, 0.08); }
  .project--theme-sky { --project-accent: #38bdf8; --project-accent-bg: rgba(56, 189, 248, 0.08); }

  .project--theme-blue .project__label { border-color: rgba(129,140,248,0.3); color: #818cf8; }
  .project--theme-blue .project__stat-num { color: #818cf8; }
  .project--theme-blue .project__toggle:hover { border-color: #818cf8; color: #818cf8; background: rgba(129,140,248,0.08); }

  /* Hero */
  .hero__glow--1 { background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%); }
  .hero__glow--2 { background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%); }
  .hero__glow--3 { background: radial-gradient(circle, rgba(165, 180, 252, 0.1) 0%, transparent 70%); }
  .hero__alias { color: #bbb; }
  .hero__statement--listen { color: #999; }
  .hero__statement--disciplines { color: #999; }
  .hero__flip-char { -webkit-text-stroke-color: rgba(255, 255, 255, 0.08); }

  /* Cards and sections */
  .project__level-cell { background: #222; }
  .project__num-formula { background: #222; }
  .project__decision { background: #1a1a1a; }
  .project__compare-item--fail { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
  .project__compare-item--pass { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.2); }
  .project__retro-icon--good { background: rgba(46, 125, 50, 0.15); }
  .project__retro-icon--grow { background: rgba(230, 81, 0, 0.15); }

  /* Tables */
  .project__table th { color: #999; }
  .project__num-bar span { color: #fff; }

  /* Design ideas */
  .design-idea__inner { background: rgba(30, 30, 30, 0.9); }
  .design-idea__title { color: #7cb8e8; }
  .design-idea__body { color: #99ccf0; }
  .design-idea__body strong { color: #7cb8e8; }
  .design-idea__divider { border-color: rgba(91, 155, 213, 0.3); }
  .design-idea__footer { border-color: rgba(91, 155, 213, 0.15); }

  /* Nav */
  .nav { background: rgba(17, 17, 17, 0.85); }
  .nav--scrolled { background: rgba(17, 17, 17, 0.95); border-bottom-color: rgba(255, 255, 255, 0.05); }
  .nav__links { background: rgba(17, 17, 17, 0.97); }

  /* Skills, Education, Contact, Art, Featured, Timeline */
  .skills__card,
  .education__card { background: #1a1a1a; }
  .skills__card:hover,
  .education__card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }

  .contact { background: #1a1a1a; }
  .contact__item:hover { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12); }
  .contact__resume { background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.03)); border-color: rgba(99, 102, 241, 0.25); }
  .contact__resume:hover { box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18); }

  .art { background: #1a1a1a; }
  .art__item img { border-color: var(--color-border); }
  .art__item img:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }

  .featured { background: #1a1a1a; }
  .featured__card { border-color: var(--color-border); }
  .featured__card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
  .featured__card-info p { color: #bbb; }

  .timeline { background: #1a1a1a; }
  .timeline__dot { background: #1a1a1a; }
  .timeline__insight-card { border-color: var(--color-border); }
  .timeline__insight-card p { color: #999; }

  /* Game tags — muted for dark */
  .game-tag--casual { background: rgba(0, 105, 92, 0.2); color: #4db6ac; }
  .game-tag--sandbox { background: rgba(46, 125, 50, 0.2); color: #66bb6a; }
  .game-tag--action { background: rgba(198, 40, 40, 0.2); color: #ef5350; }
  .game-tag--strategy { background: rgba(123, 31, 162, 0.2); color: #ab47bc; }
  .game-tag--sim { background: rgba(230, 81, 0, 0.2); color: #ff7043; }
  .game-tag--shooter { background: rgba(26, 115, 232, 0.2); color: #42a5f5; }

  /* Analysis section */
  .analysis-quote { background: rgba(245, 158, 11, 0.06); border-left-color: #f59e0b; }
  .analysis-notice { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
  .analysis-callout { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.25); }
  .analysis-callout h4 { color: #f59e0b; }
  .analysis-block__result-num { color: #f59e0b; }
  .analysis-block__label { border-color: rgba(245, 158, 11, 0.3); color: #f59e0b; }

  /* Lightbox & Gallery */
  .lightbox { background: rgba(0, 0, 0, 0.92); }
  .asset-gallery { background: rgba(0, 0, 0, 0.92); }
  .asset-gallery__close { background: rgba(255, 255, 255, 0.1); }
  .asset-gallery__close:hover { background: rgba(255, 255, 255, 0.2); }
  .asset-gallery__item { border-color: rgba(255, 255, 255, 0.06); }
  .asset-gallery__item:hover { border-color: rgba(255, 255, 255, 0.12); }

  /* Screenshots */
  .project__screenshot img { border-color: var(--color-border); }

  /* Demand analysis */
  .project__persona { background: linear-gradient(135deg, rgba(129,140,248,0.1), transparent); }
  .project__persona-tags span { background: #1a1a1a; }
  .project__pain-card { border-color: var(--color-border); }
  .project__pain-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
  .project__demand-level { border-color: var(--color-border); }

  /* Misc */
  .project__toggle:hover { background: rgba(99, 102, 241, 0.08); }
  .skip-link { background: var(--color-accent); }

  /* Footer — stays dark, adjust slightly */
  .footer { background: #0a0a0a; }
}
