:root {
  --bg: #0f1729;
  --paper: #17213a;
  --paper-2: #1d2945;
  --soft: #202d49;
  --soft-blue: rgba(96, 165, 250, 0.14);
  --line: rgba(167, 188, 224, 0.2);
  --text: #f4f8ff;
  --muted: #a8b5cc;
  --blue: #6db7ff;
  --blue-dark: #9bd0ff;
  --red: #ff4d6d;
  --yellow: #ffd56a;
  --shadow: 0 18px 46px rgba(2, 8, 23, 0.26);
  --radius: 22px;
  --radius-sm: 14px;
  color-scheme: dark;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(109, 183, 255, 0.22) 0, rgba(109, 183, 255, 0) 310px),
    radial-gradient(circle at 88% 10%, rgba(255, 77, 109, 0.12) 0, rgba(255, 77, 109, 0) 280px),
    linear-gradient(180deg, #121c33 0, #0f1729 420px),
    var(--bg);
  font-size: 15px;
  line-height: 1.72;
}

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

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

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 82px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.nav,
.nav-shell {
  pointer-events: auto;
  align-items: center;
  width: min(760px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(31, 45, 77, 0.13);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.nav-shell {
  display: flex;
  justify-content: center;
  width: min(690px, calc(100% - 32px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #4d5668;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-shell .nav-links {
  gap: 22px;
  color: #697082;
  font-size: 16px;
  font-weight: 750;
}

.nav-links a.is-active {
  color: var(--blue-dark);
  font-weight: 900;
}

.nav-links a.is-active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--soft-blue);
}

.nav-github {
  justify-self: end;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  padding: 92px 0 108px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.35;
  font-weight: 800;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.015em;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(54px, 9.4vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  animation: portfolio-rise 720ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes portfolio-rise {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3f4b63;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
  word-break: keep-all;
}

.section {
  padding: 68px 0;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.profile-card {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.about-info {
  display: grid;
  gap: 34px;
}

.info-block h2,
.plain-card h2 {
  display: inline-block;
  margin: 0 0 16px;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-copy {
  max-width: 720px;
  margin: 0 0 16px;
  color: #475166;
  font-size: 15.5px;
  line-height: 1.75;
  word-break: keep-all;
}

.line-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 30px;
  border-left: 2px solid #d8deea;
  list-style: none;
  color: #475166;
}

.line-list a {
  color: var(--blue);
  font-weight: 800;
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.section-title span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.section-title.display-title h2,
.section-title.oversized h2 {
  color: var(--blue-dark);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
}

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

.skill-card,
.career-card,
.plain-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.skill-card h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
}

.skill-card p,
.plain-card p {
  margin: 0;
  color: #4b5568;
  word-break: keep-all;
}

.career-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.career-head h3 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.career-head p,
.career-head span {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.bullet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: #3f4b63;
  word-break: keep-all;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.bullet-list.compact {
  gap: 8px;
}

.timeline-section {
  padding-top: 70px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 58px;
  margin-top: 42px;
  padding-left: 118px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 26px;
  width: 2px;
  border-radius: 999px;
  background: #e2e7f0;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  left: -101px;
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--blue-dark);
  box-shadow: 0 0 0 2px #e7ebf3;
}

.timeline-content {
  max-width: 880px;
}

.date-pill,
.award-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.date-pill {
  color: var(--blue-dark);
  background: #f0f3fb;
}

.timeline-content h3 {
  margin: 22px 0 8px;
  color: #111827;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.28;
  font-weight: 900;
  word-break: keep-all;
}

.timeline-role {
  margin: 0;
  color: #747d90;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  font-weight: 650;
  word-break: keep-all;
}

.timeline-content ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-content li {
  position: relative;
  padding-left: 22px;
  color: #465268;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  word-break: keep-all;
}

.timeline-content li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #9aa4b5;
}

.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.timeline-links a {
  color: #9aa4b5;
  font-size: 15px;
  font-weight: 850;
}

.award-pill {
  min-height: 30px;
  padding: 0 12px;
  color: #b45309;
  background: #fff4d8;
  font-size: 13px;
}

.compact-summary {
  padding-top: 34px;
}

.projects-section {
  overflow: hidden;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f8f9fc;
  box-shadow: 0 10px 34px rgba(31, 45, 77, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(31, 45, 77, 0.13);
}

.project-card.primary-project {
  background: #f3f8ff;
}

.project-card.muted-project {
  min-height: 270px;
  background: #fbfbfd;
}

.project-cover {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-cover-top img {
  object-position: center top;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.project-card h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
}

.project-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.project-card p {
  margin: 0 0 20px;
  color: #4b5568;
  font-size: 15px;
  word-break: keep-all;
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 18px;
  color: #3f4b63;
  font-size: 14px;
  word-break: keep-all;
}

.project-card li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.project-tags span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1f2d4d;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

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

.site-footer {
  padding: 50px 0 70px;
  color: var(--muted);
  font-size: 14px;
}

/* Detail pages */
.page-hero {
  padding: 96px 0 38px;
}

.page-hero-card {
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 900;
}

.page-hero-card h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
  word-break: keep-all;
}

.lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #4b5568;
  font-size: 18px;
  line-height: 1.75;
  word-break: keep-all;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.detail-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.detail-section,
.media-card,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(31, 45, 77, 0.07);
}

.detail-section {
  padding: 34px;
  min-width: 0;
}

.detail-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  font-weight: 900;
}

.detail-section h3 {
  margin: 32px 0 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.detail-section p {
  margin: 12px 0 0;
  color: #465268;
  font-size: 15.5px;
  word-break: keep-all;
}

.detail-section .bullets,
.bullets {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  color: #465268;
  word-break: keep-all;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.detail-nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.detail-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #596274;
  font-size: 14px;
  font-weight: 850;
}

.detail-nav a:hover {
  color: var(--blue);
  background: var(--soft-blue);
}

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

.media-card {
  overflow: hidden;
  margin: 18px 0 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f8fafc;
}

.wide-media img {
  aspect-ratio: 16 / 8.6;
}

.media-card figcaption {
  padding: 13px 15px 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.data-table {
  display: table;
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #111827;
  background: var(--soft-blue);
  font-weight: 900;
}

.data-table td {
  color: #465268;
  background: #fff;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.note-panel {
  margin-top: 12px;
  padding: 18px;
  color: #465268;
  background: #f8fbff;
  box-shadow: none;
}

.improvement-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
  min-width: 0;
}

.improvement-card {
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.improvement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.improvement-title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 900;
}

.improvement-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.improvement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.improvement-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.improvement-panel.to-be {
  border-color: #cfe1ff;
  background: #f3f8ff;
}

.improvement-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.improvement-panel.to-be .improvement-label {
  color: var(--blue);
}

.improvement-panel p,
.improvement-card > p {
  margin: 0;
  color: #465268;
  font-size: 14.5px;
  line-height: 1.68;
  word-break: keep-all;
}

.improvement-card > p {
  margin-top: 12px;
}

.placeholder-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 24px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 54px;
  font-weight: 900;
}

/* Bright dark theme color pass */
.nav,
.nav-shell,
.detail-nav {
  border-color: rgba(167, 188, 224, 0.22);
  background: rgba(18, 27, 48, 0.82);
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.3);
}

.brand,
.nav-github,
.hero-kicker {
  color: var(--text);
}

.nav-links,
.nav-shell .nav-links,
.detail-nav a,
.project-card-head span,
.timeline-role,
.media-card figcaption,
.site-footer {
  color: var(--muted);
}

.nav-links a.is-active,
.section-title h2,
.section-title.display-title h2,
.section-title.oversized h2,
.hero h1,
.skill-card h3,
.timeline-content h3,
.project-card h3,
.career-head h3,
.page-hero-card h1,
.detail-section h2,
.detail-section h3,
.improvement-title,
.info-block h2,
.plain-card h2,
.data-table th {
  color: var(--blue-dark);
}

.hero-copy,
.skill-card p,
.plain-card p,
.line-list,
.timeline-content li,
.project-card p,
.project-card li,
.bullet-list li,
.lead,
.detail-section p,
.bullets li,
.data-table td,
.note-panel,
.improvement-panel p,
.improvement-card > p {
  color: #d8e3f4;
}

.profile-card,
.skill-card,
.career-card,
.plain-card,
.page-hero-card,
.detail-section,
.media-card,
.note-panel,
.improvement-card,
.improvement-panel,
.button {
  border-color: var(--line);
  background: rgba(23, 33, 58, 0.84);
  box-shadow: var(--shadow);
}

.profile-card img {
  background: #eef4ff;
}

.line-list {
  border-left-color: rgba(167, 188, 224, 0.28);
}

.line-list a,
.section-title span,
.eyebrow,
.improvement-kicker,
.improvement-panel.to-be .improvement-label {
  color: var(--blue);
}

.timeline::before {
  background: rgba(167, 188, 224, 0.24);
}

.timeline-dot {
  border-color: #111a2e;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(155, 208, 255, 0.42), 0 0 24px rgba(109, 183, 255, 0.22);
}

.date-pill,
.eyebrow,
.improvement-kicker {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.18);
}

.award-pill {
  color: #ffe2a0;
  background: rgba(245, 158, 11, 0.18);
}

.project-card,
.project-card.primary-project,
.project-card.muted-project {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(35, 48, 81, 0.94), rgba(20, 30, 53, 0.94));
  box-shadow: 0 16px 42px rgba(2, 8, 23, 0.28);
}

.project-card.primary-project {
  background:
    linear-gradient(145deg, rgba(31, 56, 96, 0.95), rgba(20, 31, 55, 0.96));
}

.project-card:hover {
  box-shadow: 0 24px 58px rgba(2, 8, 23, 0.38);
}

.project-tags {
  border-top-color: rgba(167, 188, 224, 0.2);
}

.project-tags span,
.pill {
  color: #eaf4ff;
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.detail-nav a:hover,
.nav-links a:hover {
  color: #f8fbff;
  background: rgba(96, 165, 250, 0.18);
}

.media-card img,
.data-table td {
  background: rgba(15, 23, 41, 0.72);
}

.data-table th {
  background: rgba(96, 165, 250, 0.16);
}

.improvement-panel.to-be,
.note-panel {
  border-color: rgba(109, 183, 255, 0.24);
  background: rgba(19, 43, 76, 0.72);
}

.improvement-label {
  color: var(--muted);
}

.placeholder-visual {
  color: #f8fbff;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 32px, 720px);
  }

  .nav {
    grid-template-columns: auto 1fr;
    width: calc(100% - 28px);
  }

  .nav-shell {
    width: calc(100% - 28px);
  }

  .nav-github {
    display: none;
  }

  .nav .nav-links {
    justify-content: flex-end;
    overflow-x: auto;
  }

  .nav-shell .nav-links {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .about-grid,
  .project-grid,
  .skill-grid,
  .misc-grid,
  .detail-layout,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    width: min(260px, 100%);
  }

  .detail-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .timeline {
    gap: 58px;
    padding-left: 76px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-dot {
    left: -66px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    height: 76px;
  }

  .nav,
  .nav-shell {
    min-height: 50px;
    padding: 7px 10px;
    gap: 10px;
  }

  .brand {
    font-size: 14px;
  }

  .nav-links,
  .nav-shell .nav-links {
    gap: 8px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 6px 6px;
  }

  .nav-links a.is-active::before {
    width: 6px;
    height: 6px;
  }

  .hero {
    padding: 66px 0 68px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .project-card,
  .skill-card,
  .career-card,
  .plain-card,
  .detail-section,
  .page-hero-card {
    padding: 22px;
    border-radius: 20px;
  }

  .project-card,
  .project-card.muted-project {
    min-height: auto;
  }

  .project-card-head,
  .career-head,
  .improvement-head {
    display: grid;
    gap: 8px;
  }

  .project-card-head span {
    white-space: normal;
  }

  .section-title.display-title h2,
  .section-title.oversized h2 {
    font-size: 32px;
  }

  .timeline-section {
    padding-top: 46px;
  }

  .timeline {
    gap: 38px;
    margin-top: 28px;
    padding-left: 42px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -40px;
    width: 18px;
    height: 18px;
  }

  .date-pill,
  .award-pill {
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
  }

  .timeline-content h3 {
    margin-top: 18px;
    font-size: 21px;
  }

  .timeline-role {
    font-size: 16px;
  }

  .timeline-content li {
    font-size: 14.5px;
  }

  .page-hero {
    padding-top: 70px;
  }

  .page-hero-card h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .detail-nav {
    grid-template-columns: 1fr;
  }
}

/* Experience category layout */
.experience-section {
  padding-top: 34px;
}

.experience-title {
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
}

.experience-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.experience-title h2 {
  color: var(--blue) !important;
  font-size: clamp(44px, 7vw, 72px) !important;
  line-height: 0.98;
  font-weight: 850;
}

.experience-groups {
  display: grid;
  gap: 34px;
}

.experience-group {
  display: grid;
  gap: 12px;
}

.experience-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.experience-category::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
}

.experience-group .timeline {
  margin-top: 0;
}

.experience-group .timeline-item {
  padding: 20px 22px;
}

.experience-group .timeline-content h3 {
  font-size: 22px;
}

@media (max-width: 640px) {
  .experience-section {
    padding-top: 28px;
  }

  .experience-title h2 {
    font-size: 42px !important;
  }

  .experience-groups {
    gap: 26px;
  }

  .experience-category {
    font-size: 21px;
  }

  .experience-group .timeline-item {
    padding: 16px;
  }

  .experience-group .timeline-content h3 {
    font-size: 19px;
  }
}

/* Notion-style document layer */
:root {
  --bg: #191919;
  --paper: #202020;
  --paper-2: #252525;
  --soft: #2a2a2a;
  --soft-blue: rgba(88, 166, 255, 0.14);
  --line: rgba(255, 255, 255, 0.11);
  --text: #e9e9e7;
  --muted: #9b9b97;
  --blue: #8ab4f8;
  --blue-dark: #d7e8ff;
  --red: #ff5c78;
  --yellow: #f5c56b;
  --shadow: none;
  --radius: 8px;
  --radius-sm: 6px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.container {
  width: min(900px, calc(100% - 48px));
}

.site-header {
  height: 52px;
  background: rgba(25, 25, 25, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav,
.nav-shell {
  width: min(900px, calc(100% - 48px));
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-shell {
  justify-content: flex-start;
}

.nav-links,
.nav-shell .nav-links {
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 6px;
}

.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.is-active::before {
  display: none;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  padding: 84px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 146px;
  background:
    linear-gradient(135deg, rgba(81, 128, 177, 0.26), rgba(39, 39, 42, 0.2)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.notion-page-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 72px 0 18px;
  border-radius: 18px;
  background: #262626;
  border: 1px solid var(--line);
  font-size: 42px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  animation: notion-fade-up 560ms ease both;
}

@keyframes notion-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: #cfcfcb;
  font-size: 16px;
  line-height: 1.75;
}

.notion-properties {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.notion-properties div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}

.notion-properties dt,
.notion-properties dd {
  margin: 0;
}

.notion-properties dt {
  color: var(--muted);
  font-size: 13px;
}

.notion-properties dd {
  color: var(--text);
  font-size: 14px;
}

.notion-properties a,
.line-list a {
  color: var(--blue);
}

.notion-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffdca8;
  background: rgba(245, 197, 107, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 34px 0;
}

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

.about-grid {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-card {
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

.profile-contact {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.profile-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.profile-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.about-info {
  gap: 26px;
}

.info-block h2,
.plain-card h2,
.section-title h2,
.section-title.display-title h2,
.section-title.oversized h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 750;
  text-decoration: none;
}

.info-block h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.about-copy {
  margin-bottom: 12px;
  color: #cfcfcb;
  font-size: 15px;
}

.line-list {
  gap: 7px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: #cfcfcb;
}

.section-title {
  gap: 4px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

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

.skill-card,
.career-card,
.plain-card,
.project-card,
.page-hero-card,
.detail-section,
.media-card,
.note-panel,
.improvement-card,
.improvement-panel,
.button,
.detail-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
}

.skill-card {
  padding: 16px;
}

.skill-card h3,
.project-card h3,
.timeline-content h3,
.career-head h3,
.detail-section h2,
.detail-section h3,
.improvement-title {
  color: var(--text);
}

.skill-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.skill-card p,
.plain-card p,
.project-card p,
.project-card li,
.timeline-content li,
.bullet-list li,
.lead,
.detail-section p,
.bullets li,
.improvement-panel p,
.improvement-card > p,
.data-table td {
  color: #cfcfcb;
}

.skill-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.skill-table th,
.skill-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

.skill-table thead th {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.skill-table tbody th {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  text-align: left;
  word-break: keep-all;
}

.skill-table tbody td {
  color: #cfcfcb;
}

.skill-table th:first-child {
  width: 250px;
}

.skill-table th:nth-child(2),
.skill-table th:nth-child(3) {
  width: 325px;
}

.skill-table tr:last-child th,
.skill-table tr:last-child td {
  border-bottom: 0;
}

.skill-table th:last-child,
.skill-table td:last-child {
  border-right: 0;
}

.property-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  margin-right: 8px;
  color: #aaa8a2;
  font-size: 12px;
  font-weight: 850;
}

.row-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 6px;
  color: #f5fbff;
  background: linear-gradient(180deg, #c6e6ff 0%, #6f92b2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 5px;
  color: #f6f2ea;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  white-space: nowrap;
}

.tag-red {
  background: #a8564f;
}

.tag-gold {
  background: #95732e;
}

.tag-blue {
  background: #3e6796;
}

.tag-pink {
  background: #8a5472;
}

.tag-brown {
  background: #865d43;
}

.tag-gray {
  background: #666762;
}

.tag-dark {
  background: #343434;
}

.tag-green {
  background: #3f7358;
}

.tag-purple {
  background: #72558b;
}

.tag-orange {
  background: #9a6637;
}

.system-architecture {
  display: grid;
  grid-template-columns: minmax(170px, 0.82fr) 76px minmax(320px, 1.35fr) minmax(210px, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0) 0 0 / 16px 16px,
    #141414;
}

.architecture-lane {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 34px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 31, 31, 0.92);
}

.lane-label {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--text);
  background: #050505;
  font-size: 12px;
  font-weight: 800;
}

.architecture-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
}

.architecture-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.architecture-card p {
  margin: 0 0 10px;
  color: #cfcfcb;
  font-size: 12.5px;
  line-height: 1.55;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 5px;
  color: #f6f2ea;
  background: #3e6796;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.arch-tags span:nth-child(2n) {
  background: #3f7358;
}

.arch-tags span:nth-child(3n) {
  background: #865d43;
}

.arch-tags span:nth-child(4n) {
  background: #72558b;
}

.architecture-gateway {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.architecture-gateway::before,
.architecture-gateway::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: calc(50% - 34px);
  background: var(--line);
}

.architecture-gateway::before {
  top: 0;
}

.architecture-gateway::after {
  bottom: 0;
}

.architecture-gateway span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 36px;
  border: 1px solid rgba(87, 203, 130, 0.45);
  border-radius: 8px;
  color: #dfffe8;
  background: rgba(29, 103, 58, 0.72);
  font-size: 15px;
  font-weight: 900;
}

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

.service-card {
  min-height: 150px;
}

.event-card {
  grid-column: 1 / -1;
  border-style: dashed;
  background: rgba(48, 48, 48, 0.88);
}

.data-lane {
  grid-template-columns: 1fr;
}

.architecture-notes {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.architecture-notes li {
  position: relative;
  padding-left: 18px;
  color: #cfcfcb;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.architecture-notes li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.architecture-erd {
  margin-top: 16px;
}

.architecture-image img {
  height: auto;
  aspect-ratio: auto;
  background: #f4f4f1;
}

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

.insight-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
}

.insight-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 850;
}

.insight-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.insight-card p {
  margin-top: 8px;
  color: #cfcfcb;
  font-size: 14px;
  line-height: 1.7;
}

.pdf-viewer {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  min-height: 560px;
  border: 0;
  background: #111;
}

.timeline-section {
  padding-top: 34px;
}

.timeline {
  gap: 18px;
  margin-top: 18px;
  padding-left: 0;
}

.timeline::before,
.timeline-dot {
  display: none;
}

.timeline-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.timeline-content {
  max-width: none;
}

.date-pill,
.award-pill,
.project-tags span,
.pill,
.eyebrow,
.improvement-kicker {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.date-pill,
.eyebrow,
.improvement-kicker {
  color: #b9d7ff;
  background: rgba(88, 166, 255, 0.14);
}

.award-pill {
  color: #ffdca8;
  background: rgba(245, 197, 107, 0.14);
}

.timeline-content h3 {
  margin: 12px 0 4px;
  font-size: 18px;
}

.timeline-role {
  color: var(--muted);
  font-size: 14px;
}

.timeline-content ul {
  gap: 6px;
  margin-top: 12px;
}

.timeline-content li {
  font-size: 14px;
  line-height: 1.65;
}

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

.project-card,
.project-card.primary-project,
.project-card.muted-project {
  min-height: 0;
  padding: 16px;
  background: var(--paper);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--paper-2);
  box-shadow: none;
}

.project-card-head {
  gap: 10px;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 18px;
}

.project-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.project-card p {
  margin-bottom: 12px;
  font-size: 14px;
}

.project-card ul {
  gap: 6px;
}

.project-card li {
  font-size: 13.5px;
}

.project-card li::before,
.bullet-list li::before,
.bullets li::before {
  background: var(--muted);
}

.project-tags {
  margin-top: 16px;
  padding-top: 12px;
  border-top-color: var(--line);
}

.project-tags span,
.pill {
  color: #d8d8d4;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 34px 0 52px;
  color: var(--muted);
}

.page-hero {
  padding: 72px 0 24px;
}

.page-hero .container,
.detail-layout,
.section > .container.detail-content {
  width: min(1280px, calc(100% - 64px));
}

.page-hero-card {
  padding: 0 0 28px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.page-hero-card h1 {
  color: var(--text);
  font-size: clamp(30px, 4.6vw, 46px);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
}

.detail-content {
  gap: 14px;
}

.detail-section {
  padding: 22px;
}

.detail-section h2 {
  font-size: 24px;
}

.detail-section h3 {
  font-size: 18px;
}

.detail-nav {
  top: 72px;
  padding: 8px;
}

.media-card img,
.data-table td {
  background: #141414;
}

.data-table th {
  color: var(--text);
  background: #262626;
}

.note-panel,
.improvement-panel.to-be {
  background: #1f252b;
}

@media (max-width: 920px) {
  .container,
  .nav,
  .nav-shell {
    width: min(100% - 32px, 720px);
  }

  .nav-shell .nav-links {
    gap: 4px;
  }

  .about-grid,
  .skill-grid,
  .project-grid,
  .detail-layout,
  .media-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .system-architecture {
    grid-template-columns: 1fr;
  }

  .architecture-gateway {
    min-height: 44px;
  }

  .architecture-gateway::before,
  .architecture-gateway::after {
    display: none;
  }

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

  .profile-card {
    width: min(220px, 100%);
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .page-hero .container,
  .detail-layout,
  .section > .container.detail-content {
    width: min(100% - 32px, 720px);
  }
}

@media (max-width: 640px) {
  .container,
  .nav,
  .nav-shell {
    width: calc(100% - 28px);
  }

  .page-hero .container,
  .detail-layout,
  .section > .container.detail-content {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 50px;
  }

  .nav,
  .nav-shell {
    min-height: 50px;
  }

  .nav-links,
  .nav-shell .nav-links {
    gap: 2px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 0 7px;
  }

  .hero {
    padding: 62px 0 26px;
  }

  .notion-page-icon {
    width: 68px;
    height: 68px;
    margin-top: 58px;
    font-size: 34px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .notion-properties div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .section {
    padding: 26px 0;
  }

  .section-title h2,
  .section-title.display-title h2,
  .section-title.oversized h2 {
    font-size: 24px;
  }

  .timeline-item,
  .project-card,
  .skill-card,
  .detail-section,
  .improvement-card {
    padding: 14px;
  }

  .skill-table {
    min-width: 820px;
  }

  .skill-table th,
  .skill-table td {
    padding: 10px 12px;
  }

  .skill-table thead th,
  .skill-table tbody th,
  .skill-tag {
    font-size: 13px;
  }

  .skill-table th:first-child {
    width: 190px;
  }

  .skill-table th:nth-child(2),
  .skill-table th:nth-child(3) {
    width: 315px;
  }

  .row-number {
    width: 21px;
    height: 21px;
    margin-right: 8px;
    font-size: 12px;
  }
}
