:root {
  --bg: #050608;
  --panel: rgba(23, 23, 31, 0.78);
  --panel-strong: rgba(30, 31, 43, 0.9);
  --line: rgba(171, 181, 205, 0.2);
  --line-strong: rgba(171, 181, 205, 0.34);
  --text: #f4f7fb;
  --muted: #a7adba;
  --soft: #747b8e;
  --blue: #70b7ff;
  --blue-strong: #3d93ff;
  --violet: #a99cff;
  --mint: #76ead7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body[data-theme="light"] {
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.16);
  --line-strong: rgba(15, 23, 42, 0.28);
  --text: #0b1220;
  --muted: #334155;
  --soft: #475569;
  --blue: #075ec8;
  --blue-strong: #064faf;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 50% 30%, rgba(25, 83, 160, 0.18), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(67, 137, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #050608 0%, #08090d 46%, #050608 100%);
}

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

button {
  font: inherit;
}

.site-liquid {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.86;
  pointer-events: none;
}

.site-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.1), rgba(5, 6, 8, 0.58) 58%, rgba(5, 6, 8, 0.88) 100%),
    radial-gradient(circle at 48% 72%, rgba(33, 122, 242, 0.28), transparent 34%),
    radial-gradient(circle at 72% 44%, rgba(180, 220, 255, 0.13), transparent 26%);
  pointer-events: none;
}

body[data-theme="light"] .site-liquid {
  display: block;
  opacity: 1;
  mix-blend-mode: normal;
}

body[data-theme="light"] .site-glow {
  display: block;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18) 64%, #fff 100%),
    radial-gradient(circle at 40% 34%, rgba(80, 178, 255, 0.3), transparent 34%),
    radial-gradient(circle at 66% 56%, rgba(144, 212, 255, 0.36), transparent 31%);
}

body[data-theme="light"]::before {
  background: #fff;
}

body[data-theme="light"] main {
  background: linear-gradient(to bottom, transparent 0 100vh, #fff 100vh);
}

body[data-theme="light"] .hero::before {
  display: block;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18) 72%, #fff 100%);
}

body[data-theme="light"] .hero-copy {
  color: #334155;
}

body[data-theme="light"] h1,
body[data-theme="light"] .role,
body[data-theme="light"] .hero-copy {
  text-shadow: none;
}

body[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] nav {
  color: #0b1220;
}

body[data-theme="light"] nav a:hover {
  color: #075ec8;
}

body[data-theme="light"] .button {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.92);
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  width: min(1220px, calc(100% - 40px));
  min-height: 72px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 10px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(25, 25, 36, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 32px);
  padding: 14px 18px;
  border: 1px solid rgba(171, 181, 205, 0.14);
  border-radius: 16px;
  color: #c7cbd5;
  font-size: 14px;
  white-space: nowrap;
}

nav a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions button,
.socials a,
.admin-link,
.icon-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.admin-link {
  width: auto;
  min-width: 54px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.icon-link {
  font-size: 19px;
}

main {
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0 100vh, var(--bg) 100vh);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(5, 6, 8, 0.18), rgba(5, 6, 8, 0.56) 62%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.22) 0%, rgba(5, 6, 8, 0.36) 42%, rgba(5, 6, 8, 0.72) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(54px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.role {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.48);
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 32px;
  color: #b6bcc9;
  font-size: clamp(17px, 2vw, 21px);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.44);
}

.hero-actions,
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(24, 25, 35, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  font-weight: 850;
}

.socials {
  margin-top: 44px;
  gap: 18px;
}

.socials a {
  position: relative;
  overflow: visible;
  color: var(--blue);
}

.socials a svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials a::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  min-width: 64px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.socials a:hover::after,
.socials a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-theme="light"] .socials a::after {
  color: #0b1220;
  border-color: rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 76px;
  color: var(--soft);
  font-size: 14px;
}

.scroll-cue i {
  width: 30px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
}

.scroll-cue i::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  transform: translateX(-50%);
}

.section {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.wide-section,
.project-section {
  width: min(1120px, calc(100% - 40px));
}

#about {
  width: min(1120px, calc(100% - 40px));
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 80px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
}

.section-title p,
.pill {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.glass-card {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

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

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

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card:not(.project-card):not(.experience-card):not(.impact-panel):not(.contact-card) {
  padding: 32px;
}

.card-tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-title-row h3 {
  margin-bottom: 0;
}

.card-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(112, 183, 255, 0.08);
}

.card-tags {
  margin-bottom: 20px;
}

.card-tags span,
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dfe8f7;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 700;
}

body[data-theme="light"] .card-tags span,
body[data-theme="light"] .chips span {
  border-color: rgba(7, 94, 200, 0.28);
  color: #075ec8;
  background: rgba(7, 94, 200, 0.08);
}

.glass-card h3 {
  margin-bottom: 18px;
  font-size: 25px;
  line-height: 1.28;
}

.glass-card p,
.glass-card li {
  color: var(--muted);
}

.glass-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.glass-card li + li {
  margin-top: 8px;
}

.about-body-list {
  margin-top: 18px;
  line-height: 1.75;
}

.impact-panel {
  margin-top: 36px;
  padding: 30px;
}

.panel-title,
.experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-title {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.panel-title h3 {
  margin: 0;
}

.panel-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
}

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

.impact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.impact-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}

.timeline-list,
.project-list,
.skill-groups {
  display: grid;
  gap: 30px;
}

.experience-stack {
  display: grid;
  gap: 28px;
}

.experience-card {
  display: block;
  overflow: hidden;
  padding: 0;
}

.experience-company-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

body[data-theme="light"] .experience-company-head {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 249, 0.62));
}

.experience-company-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--blue);
  background: rgba(112, 183, 255, 0.08);
  font-weight: 950;
}

.company-logo-media {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .company-logo-media {
  background: rgba(15, 23, 42, 0.04);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.logo-fallback {
  display: none;
  color: var(--blue);
  font-weight: 950;
}

.logo-load-error .logo-fallback {
  display: inline;
}

.theme-logo-light {
  display: none;
}

body[data-theme="light"] .theme-logo-dark {
  display: none;
}

body[data-theme="light"] .theme-logo-light {
  display: block;
}

.experience-company-main h3 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.25;
}

.experience-company-main p {
  color: var(--soft);
  font-size: 15px;
  font-weight: 750;
}

.date-pill,
.date {
  color: var(--soft);
}

.date-pill {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 800;
}

.experience-company-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 800;
}

.experience-period::before {
  content: "▣";
  margin-right: 10px;
  color: var(--blue);
  font-size: 0.82em;
}

.experience-tenure {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  line-height: 1.4;
}

.experience-tenure:empty {
  display: none;
}

.experience-timeline {
  display: grid;
  gap: 28px;
  padding: 38px 42px 38px 66px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.experience-timeline-item {
  position: relative;
  padding-left: 38px;
}

.experience-timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -4px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--bg);
}

.experience-timeline-item::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 5px;
  width: 2px;
  height: calc(100% + 24px);
  background: rgba(232, 237, 247, 0.22);
}

.experience-timeline-item:last-child::after {
  display: none;
}

body[data-theme="light"] .experience-timeline-item::after {
  background: rgba(15, 23, 42, 0.18);
}

.experience-timeline-item h4 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

.experience-block-period,
.experience-block-meta,
.experience-block-body {
  color: var(--soft);
}

.experience-block-period {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 760;
}

.experience-block-meta {
  margin-bottom: 12px;
  font-weight: 760;
  font-size: 15px;
}

.experience-block-body {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.experience-timeline-item ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
}

.experience-detail-button {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.experience-detail-button::before {
  content: "⌄";
  margin-right: 8px;
  color: var(--blue);
}

.experience-detail-button[aria-expanded="true"]::before {
  content: "⌃";
}

.experience-detail-panel {
  margin-top: 14px;
}

.experience-detail-panel[hidden] {
  display: none;
}

.project-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 72px);
  margin: -28px 0 48px;
  color: var(--blue);
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 950;
}

.project-tabs button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}

.project-tabs button.active {
  opacity: 1;
  text-shadow: 0 0 26px rgba(112, 183, 255, 0.28);
}

.project-track {
  display: none;
  overflow: hidden;
}

.project-track.active {
  display: block;
}

.project-pages {
  display: flex;
  align-items: flex-start;
  transition: transform 320ms ease;
}

.project-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.project-card {
  position: relative;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(112, 183, 255, 0.58);
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.38),
    0 0 0 3px rgba(112, 183, 255, 0.1);
  transform: translateY(-3px);
  outline: none;
}

.project-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.project-visual-media img,
.project-visual-media video,
.project-visual-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.project-visual-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] .project-visual,
body[data-theme="light"] .project-visual-empty {
  background: #f8fafc;
}

.project-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 38px;
}

.project-company-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  font-size: 12px;
}

.project-company-logo img {
  padding: 5px;
}

.project-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-body > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.project-role {
  color: var(--soft) !important;
  font-weight: 800;
}

.project-open {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.project-visual .date-pill {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #d8e3f5;
  background: rgba(5, 6, 8, 0.58);
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 42px;
}

.project-controls button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.project-dots {
  display: inline-flex;
  gap: 18px;
}

.project-dots i {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

body[data-theme="light"] .project-dots i {
  background: rgba(16, 24, 40, 0.25);
}

.project-dots i.active {
  background: var(--text);
}

.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
}

.project-modal[aria-hidden="false"] {
  display: flex;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 183, 255, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(13px);
  cursor: pointer;
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(196, 206, 228, 0.24);
  border-radius: 26px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(34, 36, 54, 0.94), rgba(20, 22, 35, 0.9)),
    rgba(13, 14, 24, 0.92);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .project-modal-panel {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.96);
}

body[data-theme="light"] .project-modal-meta,
body[data-theme="light"] .modal-section p,
body[data-theme="light"] .modal-section li,
body[data-theme="light"] .skill-gauge-item span,
body[data-theme="light"] .project-media-empty p {
  color: #475569;
}

body[data-theme="light"] .modal-section h3 {
  color: #0b1220;
}

body[data-theme="light"] .modal-section h3::before {
  background: #0b1220;
}

body[data-theme="light"] .project-modal-close {
  color: #0b1220;
  border-color: rgba(15, 23, 42, 0.34);
  background: rgba(15, 23, 42, 0.04);
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 43px;
  height: 43px;
  border: 2px solid rgba(232, 237, 247, 0.54);
  border-radius: 15px;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.project-modal-head {
  padding-right: 58px;
}

.project-modal-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.project-modal-company-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
}

.project-modal-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: rgba(232, 237, 247, 0.66);
  font-weight: 800;
}

.project-modal-meta span::before {
  content: "▣";
  margin-right: 8px;
  color: rgba(232, 237, 247, 0.7);
  font-size: 13px;
}

.project-media-carousel {
  position: relative;
  margin: 34px 0 18px;
}

.project-media-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 14px;
}

.project-media-track::-webkit-scrollbar {
  display: none;
}

.project-media-item {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.project-media-item img,
.project-media-item video,
.project-media-item iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.project-media-item img,
.project-media-item video {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.22);
}

.project-media-item iframe {
  object-fit: cover;
}

.media-expand {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 12, 22, 0.68);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  font-size: 25px;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.project-media-item.is-playing .media-expand,
.project-media-item.is-playing .media-play {
  display: none;
}

.media-expand::after {
  content: "⛶";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 12, 20, 0.52);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  font-size: 18px;
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.media-viewer-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.media-viewer-panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1500px);
  max-height: 92vh;
  display: grid;
  place-items: center;
}

.media-viewer-panel img,
.media-viewer-panel video,
.media-viewer-panel iframe {
  width: 100%;
  max-height: 92vh;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  object-fit: contain;
  background: #000;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.62);
}

.media-viewer-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 18, 28, 0.78);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.media-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 20, 31, 0.58);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.media-prev {
  left: 16px;
}

.media-next {
  right: 16px;
}

.project-media-empty {
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 34px 0 22px;
  padding: 28px;
  border: 1px dashed rgba(232, 237, 247, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.project-media-empty p {
  max-width: 440px;
  margin: 0;
  color: rgba(232, 237, 247, 0.62);
}

.project-modal-count {
  margin: 6px 0 34px;
  color: rgba(232, 237, 247, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

body[data-theme="light"] .project-modal-count {
  color: #475569;
}

.modal-section {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-section h3 {
  position: relative;
  margin-bottom: 16px;
  padding-left: 16px;
  color: #f8fbff;
  font-size: 21px;
}

.modal-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #f8fbff;
}

.modal-section p,
.modal-section li {
  color: rgba(232, 237, 247, 0.66);
  font-size: 16px;
}

.modal-section .line-break-text {
  line-height: 1.85;
  white-space: pre-wrap;
}

.modal-section .chips span {
  background: rgba(255, 255, 255, 0.13);
}

.article-bookmarks {
  display: grid;
  gap: 12px;
}

.article-bookmark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid rgba(232, 237, 247, 0.15);
  border-radius: 13px;
  color: inherit;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.article-bookmark:hover,
.article-bookmark:focus-visible {
  border-color: rgba(112, 183, 255, 0.5);
  background: rgba(255, 255, 255, 0.085);
  outline: none;
  transform: translateY(-1px);
}

.article-bookmark-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 18px;
}

.article-bookmark-copy strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.article-bookmark-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(232, 237, 247, 0.66);
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-bookmark-copy small {
  overflow: hidden;
  color: #7cb8ff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-bookmark-image {
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
}

.article-bookmark-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-theme="light"] .article-bookmark {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.035);
}

body[data-theme="light"] .article-bookmark:hover,
body[data-theme="light"] .article-bookmark:focus-visible {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.06);
}

body[data-theme="light"] .article-bookmark-copy em {
  color: #475569;
}

body[data-theme="light"] .article-bookmark-copy small {
  color: #2563eb;
}

.chips {
  margin: 22px 0;
}

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

.skill-gauge-card {
  display: grid;
  gap: 15px;
  padding: 22px;
  border-radius: 22px;
}

.skill-gauge-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-gauge-head h3 {
  margin-bottom: 0;
}

.skill-gauge-list {
  display: grid;
  gap: 11px;
}

.skill-gauge-item {
  display: grid;
  grid-template-columns: minmax(96px, 0.38fr) minmax(140px, 1fr);
  gap: 14px;
  align-items: center;
}

.skill-gauge-item span {
  color: rgba(232, 237, 247, 0.66);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.skill-gauge-track {
  height: 22px;
  padding: 3px;
  border: 1px solid rgba(232, 237, 247, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.skill-gauge-track i {
  height: 100%;
  display: block;
  border-radius: 999px 0 0 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, #70b7ff 0%, #229cff 52%, #7bdcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 16px rgba(112, 183, 255, 0.28);
}

.skill-gauge-track i.is-full {
  border-radius: 999px;
}

body[data-theme="light"] .skill-gauge-track {
  border-color: rgba(15, 23, 42, 0.36);
  background: rgba(15, 23, 42, 0.05);
}

.compact {
  min-height: 190px;
}

.blog-list {
  display: grid;
  padding: 20px;
}

.blog-list a {
  padding: 22px;
  border-radius: 18px;
  color: #dbe6f6;
}

.blog-list a + a {
  border-top: 1px solid var(--line);
}

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

.contact-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 42px;
  text-align: center;
}

.mail-link {
  color: var(--blue);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 900;
}

.contact-links {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.phone-link {
  color: var(--text);
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 800;
}

footer {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 48px;
  color: var(--soft);
  text-align: center;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.admin-login {
  width: min(560px, 100%);
  margin: 12vh auto 0;
  padding: 34px;
  display: grid;
  gap: 18px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  margin-bottom: 28px;
}

.admin-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 58px);
}

.admin-hero p {
  color: var(--muted);
}

.admin-kicker {
  margin-bottom: 8px;
  color: var(--blue) !important;
  font-weight: 900;
}

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

.admin-actions .button {
  min-width: 0;
  cursor: pointer;
}

.small-button {
  min-width: 0;
  min-height: 42px;
  padding: 10px 16px;
}

.danger-button {
  border-color: rgba(255, 120, 120, 0.42);
  color: #ffb7b7;
}

.login-hint,
.editor-note {
  color: var(--soft);
  font-size: 13px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.editor-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.editor-tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.editor-tab.active {
  border-color: var(--line);
  color: var(--text);
  background: rgba(112, 183, 255, 0.1);
}

.admin-panel {
  padding: 28px;
  margin-top: 28px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.admin-panel-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.admin-panel-head p {
  margin-bottom: 0;
  color: var(--muted);
}

#content-form {
  display: grid;
  gap: 18px;
}

#content-form fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

#content-form fieldset fieldset {
  background: rgba(255, 255, 255, 0.02);
}

#content-form h3 {
  margin: 0;
  color: var(--blue);
  font-size: 18px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 700;
}

.admin-check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

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

.category-hide-field {
  align-content: start;
}

.admin-field span {
  color: #cdd5e5;
  font-size: 13px;
  font-weight: 800;
}

.admin-field input,
.admin-field textarea,
.admin-field select,
#json-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  line-height: 1.55;
  outline: none;
}

.admin-field input,
.admin-field select {
  min-height: 44px;
  padding: 10px 13px;
}

.admin-field textarea,
#json-area {
  padding: 13px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus,
#json-area:focus {
  border-color: rgba(112, 183, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(112, 183, 255, 0.12);
}

.file-field small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

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

.editor-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.project-editor-card {
  display: block;
}

.project-editor-summary {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

.project-editor-summary::-webkit-details-marker {
  display: none;
}

.project-editor-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-editor-category,
.project-editor-status,
.project-editor-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(112, 183, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.project-editor-category {
  padding: 0 12px;
}

.project-editor-status {
  padding: 0 12px;
  color: #cdd5e5;
  background: rgba(255, 255, 255, 0.045);
}

.project-editor-toggle {
  min-width: 68px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.project-editor-card[open] .project-editor-toggle {
  color: var(--blue);
}

.project-editor-card[open] .project-editor-toggle::before {
  content: "접기";
}

.project-editor-card[open] .project-editor-toggle {
  font-size: 0;
}

.project-editor-card[open] .project-editor-toggle::before {
  font-size: 12px;
}

.project-editor-fields {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.experience-admin-blocks {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.experience-admin-blocks h4 {
  margin: 0;
  color: var(--blue);
  font-size: 15px;
}

.experience-admin-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.experience-admin-block > strong {
  color: var(--text);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 28px;
  }

  nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    grid-column: 2;
  }

  .card-grid.three,
  .card-grid.two,
  .impact-grid,
  .skill-groups,
  .skill-gauge-grid,
  .skill-gauge-item,
  .project-page,
  .editor-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    grid-template-columns: 1fr;
  }

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

  .project-visual {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .editor-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 14px;
  }

  .brand {
    font-size: 18px;
  }

  .header-actions button {
    width: 36px;
    height: 36px;
  }

  .admin-link {
    min-width: 46px;
    height: 36px;
  }

  .hero {
    padding-top: 168px;
  }

  h1 {
    font-size: 48px;
  }

  .role {
    font-size: 29px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .section {
    width: min(100% - 28px, 920px);
    padding: 76px 0;
  }

  .section-title {
    margin-bottom: 46px;
  }

  .glass-card:not(.project-card):not(.experience-card):not(.impact-panel):not(.contact-card),
  .project-body,
  .impact-panel,
  .contact-card {
    padding: 24px;
  }

  .experience-company-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .experience-company-meta {
    justify-content: flex-start;
  }

  .experience-timeline {
    padding: 34px 28px 34px 42px;
  }

  .admin-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

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

  .experience-head,
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .project-controls {
    gap: 12px;
  }

  .article-bookmark {
    grid-template-columns: 1fr;
  }

  .article-bookmark-image {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}
