:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --muted-strong: #475569;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  line-height: 1.65;
  word-break: keep-all;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 108px 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-size: 16px;
}

.brand-text {
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.hero {
  padding-top: 96px;
  padding-bottom: 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-description {
  max-width: 760px;
  margin-top: 26px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.button-secondary:hover {
  box-shadow: var(--shadow-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags li,
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric-card.featured {
  margin: 22px;
  background: linear-gradient(135deg, #eff6ff, #ffffff 58%);
}

.metric-label,
.label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}

.about-section {
  padding-top: 54px;
}

.about-section h2,
.section-heading h2,
.contact-card h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.about-section p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.contact-card p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.card-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.card h3,
.project-card h3,
.timeline-content h3,
.skill-group h3 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.card p {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 15.5px;
  line-height: 1.75;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.projects-section {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.7), rgba(255, 255, 255, 0));
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-meta span:last-child {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  letter-spacing: 0;
  text-transform: none;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-detail-grid p:not(.label) {
  margin-top: 6px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 110px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
}

.timeline-date {
  position: relative;
  z-index: 1;
  color: var(--primary);
  font-weight: 900;
}

.timeline-content {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.timeline-content p {
  margin-top: 10px;
  color: var(--muted-strong);
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 15px;
}

.timeline-content li {
  position: relative;
  padding-left: 18px;
}

.timeline-content li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
}

.skill-group p {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.75;
}

.contact-section {
  padding-bottom: 72px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-card .section-kicker {
  color: #93c5fd;
}

.contact-card p:not(.section-kicker) {
  color: #cbd5e1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  font-weight: 800;
  color: var(--text);
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .three-columns,
  .skill-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-menu a:hover {
    background: var(--surface-strong);
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-description,
  .about-section p:not(.section-kicker),
  .section-heading p:not(.section-kicker),
  .contact-card p:not(.section-kicker) {
    font-size: 16px;
  }

  .metric-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .project-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand-text {
    display: none;
  }
}
