/* =============================================================================
   Portfolio — Yeongseo
   구조: 토큰 → 리셋/베이스 → 레이아웃 → 컴포넌트 → 섹션 → 유틸 → 반응형
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Design tokens
   ----------------------------------------------------------------------------- */
:root {
  /* Color */
  --bg-deep: #0a0908;
  --bg-elevated: #131110;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text-primary: #f7f5f2;
  --text-secondary: rgba(247, 245, 242, 0.84);
  --text-muted: rgba(247, 245, 242, 0.55);

  /* 포인트: 쿨 블루 대신 중성·웜 스톤 */
  --accent: #d6d2cc;
  --accent-hover: #eceae7;
  --accent-soft: rgba(255, 255, 255, 0.07);
  --accent-glow: rgba(255, 255, 255, 0.06);
  --accent-tint-border: rgba(255, 255, 255, 0.28);
  --accent-tint-bg: rgba(255, 255, 255, 0.05);

  --highlight: #b9a892;
  --highlight-soft: rgba(185, 168, 146, 0.14);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.9rem, 0.85rem + 0.25vw, 0.97rem);
  --text-base: clamp(1.02rem, 0.98rem + 0.25vw, 1.09rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
  /* 히어로 이름용 — 다른 곳에서 쓰이지 않음 */
  --text-hero: clamp(3.25rem, 2rem + 5.5vw, 5.5rem);

  --leading-tight: 1.2;
  --leading-snug: 1.45;
  --leading-normal: 1.65;
  --leading-relaxed: 1.75;
  --measure: 42rem;

  /* Space */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(3rem, 5vw, 5rem);
  --space-section: clamp(3.5rem, 8vw, 5.5rem);

  /* Radius & shadow — 직선 위주 */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Layout */
  --container: min(1120px, calc(100% - 2 * var(--space-xl)));

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.45s;
}

/* -----------------------------------------------------------------------------
   2. Reset & base
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Subtle film grain — GPU-friendly, single pseudo layer */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: -0.02em;
}

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

/* -----------------------------------------------------------------------------
   3. Layout
   ----------------------------------------------------------------------------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

section[id],
footer[id] {
  scroll-margin-top: 0.5rem;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--space-xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-desc {
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 38rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -----------------------------------------------------------------------------
   4. Buttons
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #111;
  box-shadow: none;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-hover);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   5. Hero
   ----------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3xl) var(--space-2xl);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-terminal {
  min-width: 0;
  width: 100%;
  max-width: 26.5rem;
  justify-self: end;
}

/* 히어로 안 터미널: 본문과 균형 맞게 글자 살짝 키움 */
.hero-terminal .terminal-body--mac {
  font-size: 13px;
  line-height: 1.58;
}

.hero-terminal .terminal-title {
  font-size: 12.5px;
}

/* macOS Terminal 스타일 (다크) */
.terminal--mac {
  --mac-bg: #1e1e1e;
  --mac-titlebar: #3d3d3d;
  --mac-titlebar-border: #1a1a1a;
  --mac-text: #e8e8e8;
  --mac-text-dim: #a0a0a0;
  --mac-prompt-green: #4af626;
  --mac-traffic-close: #ff5f57;
  --mac-traffic-min: #febc2e;
  --mac-traffic-zoom: #28c840;

  font-family: ui-monospace, "SF Mono", "Menlo", "Monaco", "Cascadia Code", "JetBrains Mono", monospace;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.55);
  background: var(--mac-titlebar);
}

.terminal-titlebar {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  background: linear-gradient(180deg, #454545 0%, var(--mac-titlebar) 100%);
  border-bottom: 1px solid var(--mac-titlebar-border);
}

.terminal-traffic {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.terminal-traffic__btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.terminal-traffic__btn--close {
  background: var(--mac-traffic-close);
}
.terminal-traffic__btn--min {
  background: var(--mac-traffic-min);
}
.terminal-traffic__btn--zoom {
  background: var(--mac-traffic-zoom);
}

.terminal-title-center {
  text-align: center;
  min-width: 0;
}

.terminal-title {
  font-size: 12px;
  font-weight: 500;
  color: #c8c8c8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-titlebar-spacer {
  width: 100%;
}

.terminal-body--mac {
  display: flex;
  flex-direction: column;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mac-text);
  min-height: 0;
  background: var(--mac-bg);
}

.terminal-scroll {
  flex: 1;
  /* 기본 세로를 길게: 짧은 뷰에서도 최소 높이 보장 + 큰 화면에서 여유 */
  min-height: max(380px, 52vh);
  max-height: min(82vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 14px 12px;
  scroll-behavior: smooth;
  background: var(--mac-bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.terminal-scroll::-webkit-scrollbar {
  width: 8px;
}
.terminal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .terminal-scroll {
    min-height: max(280px, 42vh);
    max-height: min(65vh, 560px);
  }
}

.terminal-scroll:focus-visible {
  outline: none;
}

/* 히스토리 바로 아래에 프롬프트+입력 (sticky 없음 → 빈 칸 없이 이어짐) */
.terminal-history {
  min-height: 0;
  flex: 0 1 auto;
}

.term-active-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.35em;
  margin-top: 0;
  padding-top: 0;
  flex: 0 0 auto;
}

.term-prompt-wrap {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  user-select: none;
  white-space: pre;
}

.term-prompt-mac {
  color: var(--mac-prompt-green);
  font-weight: 500;
}

.term-prompt-rest {
  color: var(--mac-text);
}

.terminal-input-inline {
  flex: 1;
  min-width: 6ch;
  border: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--mac-text);
  font: inherit;
  line-height: inherit;
  caret-color: var(--mac-text);
  min-height: 1.4em;
}

.terminal-input-inline::placeholder {
  color: transparent;
}

.terminal-input-inline:focus {
  outline: none;
}

.term-kbd {
  padding: 0.05em 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--mac-text);
  border-radius: 2px;
}

.term-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
  margin-bottom: 0.2em;
  word-break: break-word;
}

.term-line--out,
.term-line--code {
  display: block;
}

.term-line:last-child {
  margin-bottom: 0;
}

.term-line--cmd .term-prompt-block {
  display: inline-flex;
  align-items: baseline;
  white-space: pre;
  flex-shrink: 0;
}

.term-cmd {
  color: var(--mac-text);
}

.term-line--out {
  color: var(--mac-text);
}

.term-line--out.term-line--dim {
  color: var(--mac-text-dim);
}

.term-line--code {
  color: var(--mac-text);
}

.term-line--indent {
  padding-left: 1rem;
}

.term-line--promptline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-terminal {
    max-width: min(26.5rem, 100%);
    margin-inline: auto;
    justify-self: center;
  }
}

.hero-top-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-top-row .hero-eyebrow {
  margin-bottom: 0;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.social-icon--compact {
  width: 42px;
  height: 42px;
}

.social-icon--compact .social-icon__svg {
  width: 20px;
  height: 20px;
}

.hero-eyebrow {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  font-size: clamp(0.95rem, 0.82rem + 0.45vw, 1.08rem);
  letter-spacing: 0.02em;
}

.hero-eyebrow .mono {
  font-size: 1em;
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-name {
  display: block;
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.hero-tagline {
  font-size: clamp(1.5rem, 1.15rem + 1.15vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: min(30ch, var(--measure));
  margin-bottom: var(--space-md);
  line-height: var(--leading-snug);
}

.hero-sub {
  max-width: min(46ch, calc(var(--measure) + 2rem));
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-out);
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.social-icon:focus-visible {
  outline: 1px dashed var(--accent);
  outline-offset: 3px;
}

.social-icon__svg {
  width: 22px;
  height: 22px;
  display: block;
}

.social-icon__svg--line {
  overflow: visible;
}

.hero-copy .btn {
  min-height: 52px;
  padding: 0 calc(var(--space-xl) + 0.35rem);
  font-size: clamp(1.02rem, 0.96rem + 0.2vw, 1.12rem);
}

/* -----------------------------------------------------------------------------
   6. About
   ----------------------------------------------------------------------------- */
.about {
  background: var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
}

.about-copy {
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.about-copy p + p {
  margin-top: var(--space-lg);
}

.about-lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-snug);
}

.about-lead strong {
  color: var(--accent);
  font-weight: 600;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.about-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: none;
}

.about-card-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.about-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.about-card-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------------
   8. Education — 읽기 쉬운 세로 리스트 (가운데 정렬)
   ----------------------------------------------------------------------------- */
.education-list {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.education-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-lg);
  align-items: baseline;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.education-row:last-child {
  border-bottom: none;
}

.education-status {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.2em;
}

.education-school {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.education-detail {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.education-row--current {
  background: var(--accent-tint-bg);
  border-left: 3px solid var(--accent);
  padding-left: calc(var(--space-xl) - 3px);
}

.education-row--current .education-status {
  color: var(--accent);
}

@media (max-width: 480px) {
  .education-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-lg);
  }

  .education-status {
    padding-top: 0;
  }
}

/* -----------------------------------------------------------------------------
   9. Skills
   ----------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skill-panel {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.skill-panel:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.skill-panel-head {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.skill-panel-title {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45em 0.8em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

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

@media (min-width: 901px) and (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .skill-panel:last-child {
    grid-column: 1 / -1;
  }
}

/* -----------------------------------------------------------------------------
   10. Achievements
   ----------------------------------------------------------------------------- */
.achievement-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-flow: row dense;
  align-items: start;
  gap: var(--space-md);
  max-width: min(64rem, 100%);
}

.achievement-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.achievement-item:not(.achievement-item--right) {
  grid-column: 1;
}

.achievement-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.achievement-year {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: var(--leading-snug);
  padding-top: 0.15em;
}

.achievement-title {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.achievement-item--highlight {
  border-color: rgba(185, 168, 146, 0.45);
  background: var(--highlight-soft);
}

.achievement-item--highlight .achievement-year {
  color: var(--highlight);
  font-weight: 600;
}

.achievement-item--right {
  grid-column: 2;
}

@media (max-width: 540px) {
  .achievement-list {
    grid-template-columns: 1fr;
  }
  .achievement-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .achievement-item:hover {
    transform: none;
  }
  .achievement-item--right {
    grid-column: auto;
  }
}

/* -----------------------------------------------------------------------------
   11. Projects
   ----------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}

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

.project-card-top {
  flex: 1;
}

.project-index {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.project-name {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.project-tags li {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4em 0.65em;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.project-link {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.project-link:hover,
.project-link:focus-visible {
  border-bottom-color: var(--accent);
}

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

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card:hover {
    transform: translateY(-4px);
  }
}

/* -----------------------------------------------------------------------------
   12. Footer
   ----------------------------------------------------------------------------- */
.site-footer {
  padding-bottom: var(--space-xl);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-copy {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-top {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-top:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .footer-bar {
    justify-content: center;
    text-align: center;
  }
}
