/* style.css — saengil ai design system
 * ──────────────────────────────────────────────────────
 * saeng-il ai [development]
 * © saeng-il ai — YXZYS
 * ────────────────────────────────────────────────────── */
/* yxzys:sg:ai */
/* _sg:yxzys_ */

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Satoshi', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ═══════════════════════════════════════════════════════
   COLOR SYSTEM — Dark-first, derived from brand #000515
   ═══════════════════════════════════════════════════════ */

/* Dark mode (default for saengil) */
:root, [data-theme="dark"] {
  --color-bg:             #0a0a0f;
  --color-surface:        #111118;
  --color-surface-2:      #18181f;
  --color-surface-offset: #1e1e26;
  --color-border:         #2a2a35;
  --color-divider:        #222230;

  --color-text:           #e8e8ec;
  --color-text-muted:     #8a8a96;
  --color-text-faint:     #55555f;
  --color-text-inverse:   #0a0a0f;

  /* Primary — cool slate-blue from logo #000515 */
  --color-primary:        #7b8caa;
  --color-primary-hover:  #9aa8c2;
  --color-primary-active: #b5c0d5;

  /* Accent — warm amber for selective emphasis */
  --color-accent:         #c4956a;
  --color-accent-hover:   #d4a87d;

  /* Semantic */
  --color-error:          #c4546a;
  --color-success:        #5a9a6a;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

/* Light mode */
[data-theme="light"] {
  --color-bg:             #f5f5f0;
  --color-surface:        #ffffff;
  --color-surface-2:      #fafaf8;
  --color-surface-offset: #eeeee8;
  --color-border:         #d8d8d0;
  --color-divider:        #e2e2dc;

  --color-text:           #111118;
  --color-text-muted:     #6a6a75;
  --color-text-faint:     #a0a0aa;
  --color-text-inverse:   #f5f5f0;

  --color-primary:        #3a4a6a;
  --color-primary-hover:  #2a3a5a;
  --color-primary-active: #1a2a4a;

  --color-accent:         #8a6540;
  --color-accent-hover:   #7a5530;

  --color-error:          #a03048;
  --color-success:        #3a7a4a;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 250 / 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #f5f5f0;
    --color-surface:        #ffffff;
    --color-surface-2:      #fafaf8;
    --color-surface-offset: #eeeee8;
    --color-border:         #d8d8d0;
    --color-divider:        #e2e2dc;
    --color-text:           #111118;
    --color-text-muted:     #6a6a75;
    --color-text-faint:     #a0a0aa;
    --color-text-inverse:   #f5f5f0;
    --color-primary:        #3a4a6a;
    --color-primary-hover:  #2a3a5a;
    --color-primary-active: #1a2a4a;
    --color-accent:         #8a6540;
    --color-accent-hover:   #7a5530;
    --color-error:          #a03048;
    --color-success:        #3a7a4a;
    --shadow-sm: 0 1px 2px oklch(0.2 0.01 250 / 0.06);
    --shadow-md: 0 4px 12px oklch(0.2 0.01 250 / 0.08);
    --shadow-lg: 0 12px 32px oklch(0.2 0.01 250 / 0.12);
  }
}

/* ═══════════════════════════════════════════════════════
   GLOBAL STYLES
   ═══════════════════════════════════════════════════════ */

body {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-narrow);
}
.container--default {
  max-width: var(--content-default);
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.logo-link:hover { color: var(--color-text); }

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text-thin {
  font-weight: 300;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: color var(--transition-interactive);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.06);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background: var(--color-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
    z-index: 100;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: var(--text-xl);
  }
  .nav-links .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-32) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero__tagline {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text);
  max-width: 14ch;
  margin-bottom: var(--space-6);
}
.hero__title--light {
  font-weight: 300;
  color: var(--color-text-muted);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.5;
  font-weight: 400;
}

/* Animated background spheres */
.hero__spheres {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: float 20s ease-in-out infinite;
}
.sphere--1 {
  width: 500px; height: 500px;
  background: var(--color-primary);
  top: -10%; right: -5%;
  animation-delay: 0s;
}
.sphere--2 {
  width: 350px; height: 350px;
  background: var(--color-accent);
  bottom: 10%; left: 5%;
  animation-delay: -7s;
}
.sphere--3 {
  width: 250px; height: 250px;
  background: var(--color-primary);
  top: 40%; right: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */

.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}
.section--tight {
  padding: clamp(var(--space-8), 4vw, var(--space-16)) 0;
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.view-all {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-interactive);
}
.view-all:hover {
  color: var(--color-text);
}
.view-all::after {
  content: ' →';
  transition: transform var(--transition-interactive);
  display: inline-block;
}
.view-all:hover::after {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════
   JOURNAL / ARTICLE CARDS
   ═══════════════════════════════════════════════════════ */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-6);
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.article-card:hover {
  border-color: oklch(from var(--color-text) l c h / 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.article-card:active {
  transform: translateY(0);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.article-card__tag {
  padding: var(--space-1) var(--space-2);
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.article-card__read-time {
  color: var(--color-text-faint);
}

/* Featured article — full-width hero card */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-8);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.article-featured:hover {
  border-color: oklch(from var(--color-text) l c h / 0.12);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.article-featured__visual {
  aspect-ratio: 16/10;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.article-featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-featured__visual-placeholder {
  width: 48px;
  height: 48px;
  opacity: 0.15;
}

.article-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .article-featured {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
}

/* ═══════════════════════════════════════════════════════
   PROJECT CARDS
   ═══════════════════════════════════════════════════════ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.project-card:hover {
  border-color: oklch(from var(--color-text) l c h / 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.project-card:active {
  transform: translateY(0);
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.project-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}
.project-card__status--active { color: var(--color-success); }
.project-card__status--active::before { background: var(--color-success); }
.project-card__status--research { color: var(--color-primary); }
.project-card__status--research::before { background: var(--color-primary); }
.project-card__status--archived { color: var(--color-text-faint); }
.project-card__status--archived::before { background: var(--color-text-faint); }

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.project-card__tag-item {
  font-size: 0.75rem;
  padding: var(--space-1) var(--space-2);
  background: oklch(from var(--color-text) l c h / 0.05);
  color: var(--color-text-faint);
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════
   ARTICLE DETAIL (single article page)
   ═══════════════════════════════════════════════════════ */

.article-header {
  padding: var(--space-16) 0 var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-8);
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.article-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.article-header__abstract {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* Article body — long-form reading */
.article-body {
  max-width: 65ch;
  margin-inline: auto;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.article-body h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.article-body p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--color-text-muted);
}
.article-body p:first-of-type {
  color: var(--color-text);
}
.article-body blockquote {
  margin: var(--space-8) 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-primary);
  color: var(--color-text);
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.7;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.35em;
  background: oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-sm);
}
.article-body pre {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.article-body pre code {
  padding: 0;
  background: none;
}
.article-body ul, .article-body ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.article-body li {
  margin-bottom: var(--space-2);
}
.article-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION (minimal)
   ═══════════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.about-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.pillar {
  margin-bottom: var(--space-6);
}
.pillar__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.pillar__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════════════════ */

.divider {
  border: none;
  height: 1px;
  background: var(--color-divider);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 32ch;
  line-height: 1.5;
  margin-top: var(--space-3);
}

.footer-nav h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-nav a:hover {
  color: var(--color-text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  color: var(--color-text-faint);
}
.footer-bottom a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADERS (journal, projects listing pages)
   ═══════════════════════════════════════════════════════ */

.page-header {
  padding: var(--space-16) 0 var(--space-8);
}
.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.page-header__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
}

/* Filter bar for listings */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.filter-btn {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-interactive);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.filter-btn:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.04);
}
.filter-btn.active {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.06);
  border-color: oklch(from var(--color-text) l c h / 0.1);
}

/* ═══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* JS fallback for browsers without scroll-driven animations */
.js-reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.js-reveal.is-visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   MISSION STRIP (minimal about on homepage)
   ═══════════════════════════════════════════════════════ */

.mission-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.mission-strip__text {
  max-width: 44ch;
}
.mission-strip__text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.mission-strip__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission-strip__visual svg {
  width: 180px;
  height: 180px;
  opacity: 0.1;
}

@media (max-width: 768px) {
  .mission-strip {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .mission-strip__visual { display: none; }
}

/* ═══════════════════════════════════════════════════════
   BACK LINK
   ═══════════════════════════════════════════════════════ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: color var(--transition-interactive);
}
.back-link:hover {
  color: var(--color-text-muted);
}
.back-link::before {
  content: '←';
}

/* ═══════════════════════════════════════════════════════
   PROJECT DETAIL
   ═══════════════════════════════════════════════════════ */

.project-header {
  padding: var(--space-16) 0 var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-8);
}
.project-header__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-success);
  margin-bottom: var(--space-4);
}
.project-header__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.project-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.project-header__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.7;
}
.project-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.project-sidebar {
  position: sticky;
  top: calc(var(--space-16) + 60px);
}
.project-sidebar dt {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}
.project-sidebar dd {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.project-sidebar a {
  color: var(--color-primary);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--space-12);
}
@media (max-width: 768px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}
