@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

:root {
  --bg: #fafbff;
  --bg-soft: #f4f7fd;
  --card: #ffffff;
  --text: #1e2430;
  --muted: #7a8299;
  --primary: #3d6bff;
  --primary-dark: #2f56d6;
  --accent: #5f8cff;
  --line: #dbe4f5;
  --shadow-sm: 0 1px 2px rgba(30, 60, 120, 0.06);
  --shadow-md: 0 12px 40px rgba(45, 85, 160, 0.08);
  --radius-lg: 18px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #eef3ff 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f0f4ff 0%, transparent 50%), var(--bg);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

.text-link,
.post-title-link {
  color: var(--primary);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.text-link:hover,
.post-title-link:hover {
  color: var(--primary-dark);
  background-size: 0 1px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 228, 245, 0.85);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list a {
  font-size: 0.92rem;
  color: #6f7890;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e7efff;
  background: #fff;
}

.nav-list a:hover {
  color: var(--primary);
  border-color: #c5d8ff;
  background: #f6f9ff;
  box-shadow: var(--shadow-sm);
}

.hero {
  padding: 3rem 0 1.5rem;
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(219, 232, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-md);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #96b6ff);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.55rem, 4.5vw, 2.45rem);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.subtitle {
  color: var(--muted);
  margin: 0.6rem 0 1.2rem;
}

.section {
  padding: 1.8rem 0;
}

.section-title {
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.28rem 1rem;
  border: 2px solid #9db6ff;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(61, 107, 255, 0.08);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: 280px 1fr;
}

.card {
  background: var(--card);
  border: 1px solid rgba(219, 228, 245, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(45, 85, 160, 0.1);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.category-list button {
  width: 100%;
  border: 1px solid #cfdefe;
  background: #ffffff;
  color: #5c6781;
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;
}

.category-list button:hover,
.category-list button.active {
  color: var(--primary);
  border-color: #84aaff;
  background: #f5f9ff;
}

.post-card {
  display: grid;
  gap: 0.65rem;
  align-items: start;
  align-self: start;
}

.post-card-title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

/* 사이드바와 높이 맞추느라 목록 열이 늘어나면 카드·태그가 세로로 늘어남 → 시작 정렬 */
#blog .grid-2 .blog-posts-column {
  align-self: start;
  min-width: 0;
}

#post-list.grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(219, 228, 245, 0.95);
}

.blog-pager__btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid rgba(219, 228, 245, 0.95);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.blog-pager__btn:hover:not(:disabled) {
  color: var(--primary);
  border-color: #84aaff;
  background: #f5f9ff;
}

.blog-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pager__info {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0 0.35rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #5376b8;
  border: 1px solid #c6d9ff;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: #f7fbff;
  white-space: nowrap;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

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

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(45, 85, 160, 0.11);
}

.project-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f6fc 0%, #eef3fb 100%);
  border-bottom: 1px solid rgba(219, 232, 255, 0.85);
}

.project-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0.45rem 0.75rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.02);
}

.project-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.project-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.project-card-doc {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border-radius: 3px;
  background: linear-gradient(145deg, #dbe4ff, #c7d7ff);
  border: 1px solid rgba(99, 140, 255, 0.35);
  box-shadow: 0 1px 2px rgba(45, 85, 160, 0.12);
}

.project-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.project-card-title-link {
  color: var(--primary-dark);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.15s ease, background-size 0.2s ease;
}

.project-card-title-link:hover {
  color: var(--primary);
  background-size: 100% 1px;
}

.project-card-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.project-card-tags {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.25;
  white-space: nowrap;
}

.project-tag--0 {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #5b21b6;
}

.project-tag--1 {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.project-tag--2 {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.project-tag--3 {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #047857;
}

.project-tag--4 {
  background: #fce7f3;
  border-color: #fbcfe8;
  color: #9d174d;
}

.project-tag--5 {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.project-card-period {
  margin: 0.35rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(235, 241, 255, 0.95);
  font-size: 0.78rem;
  color: #8b93a8;
  letter-spacing: 0.02em;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
}

.archive-table th,
.archive-table td {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid #ebf1ff;
  text-align: left;
  font-size: 0.92rem;
}

.archive-table th {
  color: #5b6f95;
}

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

.footer {
  margin-top: 2rem;
  border-top: 1px solid #ebf1ff;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.article-page {
  padding: 2rem 0 3rem;
}

.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
}

.article-meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.article-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.article-lead {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.article-tags {
  margin-bottom: 1.75rem;
}

.article-back {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.article-back--action {
  padding-top: 1.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem 0.55rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #3a4560;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(199, 213, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(45, 85, 160, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
  color: var(--primary-dark);
  border-color: rgba(99, 140, 255, 0.55);
  box-shadow: 0 6px 20px rgba(61, 107, 255, 0.12);
  transform: translateY(-1px);
}

.btn-back:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 85, 160, 0.08);
}

.btn-back__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-dark);
  background: rgba(61, 107, 255, 0.1);
  border: 1px solid rgba(157, 182, 255, 0.45);
}

.link-chip-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 420px;
}

.link-chip-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.58rem 0.88rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #274894;
  border: 1px solid rgba(176, 199, 255, 0.75);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 3px 10px rgba(45, 85, 160, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.link-chip::before {
  content: "📄";
  font-size: 0.96rem;
  line-height: 1;
  opacity: 0.88;
}

.link-chip:hover {
  color: #1e3f88;
  background: linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
  border-color: rgba(112, 151, 255, 0.62);
  box-shadow: 0 7px 18px rgba(45, 85, 160, 0.13);
  transform: translateY(-1px);
}

.project-body .link-chip,
.post-body .link-chip {
  display: inline-flex;
  text-decoration: none;
}

.post-body {
  font-size: 1.02rem;
  color: #2f3545;
}

.post-body p {
  margin: 0 0 1.1rem;
}

.post-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.post-body h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.1rem;
}

.post-body li {
  margin-bottom: 0.35rem;
}

.post-body pre {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: #f4f7fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}

.post-body code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
  background: #eef2fb;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  margin: 1.1rem 0;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 3px solid var(--primary);
  color: var(--muted);
  background: rgba(61, 107, 255, 0.04);
  border-radius: 0 10px 10px 0;
}

.post-body figure {
  margin: 1.25rem 0;
}

.post-body figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.25rem;
}

.post-body th,
.post-body td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.post-body th {
  background: #f4f7fd;
  font-weight: 600;
}

.project-page .article-shell {
  max-width: 800px;
}

.project-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(219, 232, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 28, 52, 0.75) 0%, rgba(30, 60, 120, 0.45) 45%, rgba(61, 107, 255, 0.25) 100%);
}

.project-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.25rem 1.35rem 1.4rem;
  max-width: none;
}

.project-hero-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.project-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.project-hero-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.project-article {
  padding-top: 1.5rem;
}

.project-body h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.project-body h2:first-child {
  margin-top: 0;
}

/* flex/grid 자식 폭 계산 시 본문이 과도하게 넓어지지 않도록 */
.project-body {
  min-width: 0;
}

.project-body h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted, #5a6578);
}

.project-inline-figure {
  margin: 0.75rem auto 1rem;
  max-width: min(100%, 40rem);
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(219, 232, 255, 0.95);
  background: #f4f7fd;
  box-shadow: 0 8px 24px rgba(45, 85, 160, 0.07);
}

.project-inline-figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.project-body li {
  min-width: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.screenshot-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(219, 232, 255, 0.95);
  background: #f4f7fd;
  box-shadow: 0 8px 24px rgba(45, 85, 160, 0.07);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.screenshot-item:hover img {
  transform: scale(1.01);
  filter: saturate(1.02) contrast(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.72);
  backdrop-filter: blur(4px);
}

.lightbox__dialog {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox__content {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2.5rem);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 22, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(6px) scale(0.99);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.lightbox.is-open .lightbox__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 2.5rem);
  object-fit: contain;
  background: transparent;
}

.lightbox__x {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(20, 28, 52, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lightbox__x:hover {
  transform: translateY(-1px);
  background: rgba(20, 28, 52, 0.4);
  border-color: rgba(255, 255, 255, 0.22);
}

.about-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 2.25rem 2.5rem;
  align-items: start;
  padding: 0;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 255, 0.98) 50%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 6px rgba(30, 60, 120, 0.03), 0 22px 50px rgba(45, 85, 160, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.about-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(157, 182, 255, 0.45), rgba(255, 255, 255, 0.2) 40%, rgba(199, 216, 255, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-profile {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem 2rem;
  margin: 0;
  z-index: 1;
}

.about-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(61, 107, 255, 0.06) 0%, transparent 55%),
    linear-gradient(0deg, rgba(241, 246, 255, 0.9), rgba(255, 255, 255, 0.4));
  border-radius: 0 0 var(--radius-lg) 0;
  z-index: -1;
}

@media (min-width: 851px) {
  .about-profile {
    position: sticky;
    top: 5.25rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    border-right: 1px solid rgba(219, 232, 255, 0.65);
  }
}

.about-photo-wrap {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, rgba(210, 225, 255, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 8px 28px rgba(45, 85, 160, 0.1);
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(30, 60, 120, 0.06);
}

.about-name {
  position: relative;
  z-index: 2;
  margin: 0 0 0.4rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--primary-dark), #5b7fd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-tagline {
  margin: 0;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b748c;
}

.about-main {
  min-width: 0;
  padding: 1.75rem 1.75rem 2rem 0;
}

@media (max-width: 850px) {
  .about-main {
    padding: 0 1.5rem 1.75rem;
  }
}

.about-block {
  margin-bottom: 1.75rem;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a63b8;
  padding: 0.38rem 0.9rem;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
  border: 1px solid rgba(199, 213, 255, 0.95);
  box-shadow: 0 1px 2px rgba(30, 60, 120, 0.06);
}

.about-subtitle--emoji {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 1rem;
}

.about-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #3a4152;
  font-size: 0.95rem;
}

.about-list li {
  margin-bottom: 0.45rem;
}

.about-list--numbered {
  padding-left: 1.35rem;
}

.about-list--numbered > li {
  margin-bottom: 1rem;
}

.cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cert-chips li {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #3d4a63;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
  border: 1px solid rgba(207, 222, 255, 0.95);
  box-shadow: 0 2px 12px rgba(61, 107, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cert-chips li:hover {
  border-color: rgba(99, 140, 255, 0.45);
  box-shadow: 0 4px 16px rgba(61, 107, 255, 0.08);
  transform: translateY(-1px);
}

.about-skills-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.skills-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-tier {
  border: 1px solid rgba(219, 232, 255, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.skill-tier[open] {
  border-color: rgba(180, 200, 255, 0.9);
  box-shadow: 0 10px 32px rgba(45, 85, 160, 0.08);
}

.skill-tier-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary-dark);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

.skill-tier-summary::-webkit-details-marker {
  display: none;
}

.skill-tier-summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.skill-tier[open] .skill-tier-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.skill-tier-summary:hover {
  background: rgba(61, 107, 255, 0.04);
}

.skill-tier-body {
  padding: 0 0.65rem 0.85rem;
  border-top: 1px solid #eef2fb;
}

.skill-item {
  border: 1px solid #e7efff;
  border-radius: 12px;
  background: #fff;
  margin-top: 0.45rem;
}

.skill-item:first-child {
  margin-top: 0.65rem;
}

.skill-item > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  color: #3d4a63;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.skill-item > summary::-webkit-details-marker {
  display: none;
}

.skill-item > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #8aa3d0;
  border-bottom: 2px solid #8aa3d0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.skill-item[open] > summary::after {
  transform: rotate(-135deg);
}

.skill-item > summary:hover {
  color: var(--primary);
}

.skill-item-body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.92rem;
  color: #3a4152;
  border-top: 1px dashed #e8eef9;
}

.skill-item-body ul,
.skill-item-body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.skill-item-body li {
  margin-bottom: 0.4rem;
}

.skill-label {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-item-body .skill-label:first-child {
  margin-top: 0;
}

.skill-item-body code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: #eef2fb;
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
}

.history-section {
  padding-top: 1rem;
}

.history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.history-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
}

.history-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
  color: #5a6480;
}

.history-points-label {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.history-points-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-points-list li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0;
}

.history-points-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--primary);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(61, 107, 255, 0.15), rgba(61, 107, 255, 0.35));
}

.history-rule {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #8eb4ff);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  margin-bottom: 1.75rem;
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(157, 182, 255, 0.65);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), #ffffff);
}

.history-year {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.history-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #3d4a63;
  flex: 1;
}

.history-footer {
  margin-top: 0.25rem;
  padding: 1.25rem 1.35rem;
}

.history-footer-title {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.history-footer-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .history-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .about-shell {
    grid-template-columns: 1fr;
  }

  .about-profile {
    position: static;
    padding: 1.75rem 1.25rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(219, 232, 255, 0.65);
  }

  .about-profile::after {
    border-radius: 0;
    background: linear-gradient(180deg, rgba(241, 246, 255, 0.95), rgba(255, 255, 255, 0.5));
  }

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

  .history-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
