/* -----------------------------------------------------------
   Jiny K — portfolio & service hub
   minimal, dark-first, system-fonts only (no network on load)
   ----------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #0f0f10;
  --surface: #131316;
  --surface-2: #181819;
  --border: #1d1d20;
  --border-strong: #2a2a2e;

  --text: #ededed;
  --text-2: #b8b8bc;
  --muted: #8a8a90;
  --faint: #5a5a5e;

  --live: #4ade80;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1080px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo',
    'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, 'JetBrains Mono', Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(74, 222, 128, 0.04), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 255, 255, 0.025), transparent 60%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

::selection {
  background: rgba(74, 222, 128, 0.25);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Nav ---------- */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 22px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
}

/* ---------- Status dot ---------- */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  flex-shrink: 0;
}
.dot--live {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot--beta {
  background: #fbbf24;
}
.dot--wip {
  background: var(--muted);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12); }
  50%      { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.05); }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px 100px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  margin: 0 0 28px;
  background: rgba(255, 255, 255, 0.015);
}

.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 18ch;
}

.hero__caret {
  display: inline-block;
  margin-left: 4px;
  color: var(--live);
  font-weight: 400;
  animation: blink 1.1s steps(1) infinite;
  transform: translateY(-2px);
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero__lead {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: #fff;
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--muted);
  background: var(--surface);
}

/* hero meta strip */
.hero__meta {
  display: flex;
  gap: 36px;
  margin: 64px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__meta dt {
  margin: 0;
  color: var(--faint);
}
.hero__meta dd {
  margin: 0;
  color: var(--text-2);
  font-size: 0.94rem;
}

/* ---------- Section ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 32px;
  border-top: 1px solid var(--border);
}

.section__head {
  margin: 0 0 36px;
  max-width: 48rem;
}
.section__label {
  display: block;
  color: var(--faint);
  margin: 0 0 10px;
}
.section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

/* ---------- Card grid (services + apps) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.25s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.05),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.card__slug {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}
.card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.card__updated {
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card__desc {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* whole-card clickable (overlay link) */
.card--clickable { cursor: pointer; }
.card__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
}
.card__cover:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* Inner content stays visible above cover but doesn't intercept clicks,
   so the overlay catches them — except chip links, which opt back in. */
.card--clickable > .card__head,
.card--clickable > .card__desc,
.card--clickable > .card__tags,
.card--clickable > .card__links {
  pointer-events: none;
  z-index: 2;
}
.card--clickable .card__link { pointer-events: auto; }
.card--clickable .card__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card--clickable .card__name::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--faint);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.card--clickable:hover .card__name::after {
  transform: translateX(3px);
  color: var(--text);
}

/* secondary links (store / github chips) */
.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  background: transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.card__link:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--bg-2);
}
.card__link-arrow { color: var(--faint); }

.card__link--primary {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.card__link--primary:hover {
  border-color: var(--text-2);
  background: var(--surface);
}
.card__link--primary .card__link-arrow {
  color: var(--text-2);
  transition: transform 0.18s var(--ease);
}
.card__link--primary:hover .card__link-arrow {
  transform: translateX(3px);
  color: var(--text);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 720px) {
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.about__bio p {
  color: var(--text-2);
  font-size: 1rem;
  margin: 0 0 14px;
  max-width: 38rem;
}
.about__bio p:last-child {
  margin-bottom: 0;
}
.about__bio a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.about__bio a:hover {
  color: #fff;
  border-bottom-color: var(--text);
}

.stack {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}
.stack__title {
  margin: 0 0 12px;
  color: var(--faint);
  font-weight: 500;
  text-transform: lowercase;
}
.stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.stack__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.stack__list li:last-child {
  border-bottom: 0;
}
.stack__list .mono {
  color: var(--faint);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 540px;
}
.contact__link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.contact__link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.contact__label {
  color: var(--faint);
}
.contact__value {
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-all;
}
.contact__arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.contact__link:hover .contact__arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--faint);
}

/* full footer (메인 페이지) */
.footer--full {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 36px;
  padding-bottom: 48px;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__row--meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer__nav a:hover { color: var(--text); }
.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer__links a:hover { color: var(--text); }
.footer__sep { color: var(--faint); }
@media (max-width: 540px) {
  .footer--full { padding: 28px 20px 36px; }
}

/* ---------- Gallery + Lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: zoom-in;
  padding: 0;
  margin: 0;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.gallery__item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.gallery__item:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  color: var(--text);
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  max-height: 92vh;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  color: var(--text-2);
  text-align: center;
  max-width: 80vw;
  margin: 0;
}
.lightbox__caption:empty { display: none; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  padding: 0;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 540px) {
  .lightbox__nav { display: none; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* ---------- Resume page ---------- */
.resume {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 32px 96px;
}
.resume__hero {
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.resume__name {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
  line-height: 1.15;
}
.resume__name-en {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.5em;
  letter-spacing: 0.04em;
  margin-left: 8px;
}
.resume__headline {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 38rem;
}
.resume__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--border);
}
.resume__meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.resume__meta dt {
  margin: 0;
  color: var(--faint);
  font-size: 0.78em;
  letter-spacing: 0.04em;
}
.resume__meta dd {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.resume__meta a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.resume__meta a:hover { color: #fff; border-bottom-color: var(--text); }

.resume__section {
  margin-top: 48px;
}
.resume__section:first-of-type { margin-top: 0; }
.resume__h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* career bar — 가로 타임라인 */
.career-bar {
  margin: 0 0 28px;
  padding: 28px 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.career-bar__track {
  position: relative;
  height: 14px;
  background: var(--bg-2);
  border-radius: 7px;
  overflow: hidden;
}
.career-bar__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--muted);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: help;
}
.career-bar__seg:hover {
  background: var(--text-2);
}
.career-bar__seg--current {
  background: var(--live);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.18) inset;
}
.career-bar__seg--current:hover { background: var(--live); }
.career-bar__seg--interlude {
  background: repeating-linear-gradient(
    90deg,
    var(--faint) 0,
    var(--faint) 3px,
    transparent 3px,
    transparent 6px
  );
}
.career-bar__seg--interlude:hover {
  background: repeating-linear-gradient(
    90deg,
    var(--muted) 0,
    var(--muted) 3px,
    transparent 3px,
    transparent 6px
  );
}
.career-bar__years {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.career-bar__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.career-bar__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.career-bar__legend-dot--current {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* timeline — 세로 흐름 */
.resume-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.resume-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--live) 0,
    var(--border-strong) 60px,
    var(--border-strong) calc(100% - 24px),
    transparent 100%
  );
}
.resume-job {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.resume-job::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--muted);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.resume-job:hover::before {
  border-color: var(--text-2);
}
.resume-job--current::before {
  background: var(--live);
  border-color: var(--live);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
.resume-job:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* interlude — 정식 경력 사이의 학습 / 활동 라운드 */
.resume-job--interlude {
  background: var(--bg-2);
  border-style: dashed;
  padding: 16px 20px 14px;
}
.resume-job--interlude:hover {
  background: var(--surface);
}
.resume-job--interlude::before {
  background: var(--bg-2);
  border-color: var(--faint);
  border-style: dashed;
  width: 8px;
  height: 8px;
  top: 20px;
}
.resume-job--interlude .resume-job__company {
  font-size: 0.95rem;
  color: var(--text-2);
}
.resume-job--interlude .resume-job__role,
.resume-job--interlude .resume-job__period {
  color: var(--faint);
}
.resume-job--interlude .resume-job__intro {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.9rem;
}
.resume-job__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
}
.resume-job__company {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.resume-job__role {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0.04em;
}
.resume-job__period {
  color: var(--faint);
  white-space: nowrap;
}
.resume-job__intro {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.resume-job__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resume-job__bullets li {
  position: relative;
  padding-left: 14px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.resume-job__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}
.resume-job__bullets a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.resume-job__bullets a:hover { color: #fff; border-bottom-color: var(--text); }

/* skills */
.resume-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.resume-skill-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
}
.resume-skill-group__title {
  margin: 0 0 10px;
  color: var(--faint);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.resume-skill-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.resume-skill-group__list li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* education */
.resume-edu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resume-edu li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.95rem;
}
.resume-edu strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}
.resume-edu__period {
  color: var(--faint);
}

@media (max-width: 720px) {
  /* nav 가 좁아질 때 (Resume 등 항목 많음) */
  .nav__links { gap: 14px; font-size: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 540px) {
  .resume { padding: 28px 20px 72px; }

  .resume__hero {
    padding-bottom: 24px;
    margin-bottom: 28px;
  }
  .resume__name {
    font-size: 1.9rem;
    margin: 14px 0 10px;
    line-height: 1.2;
  }
  .resume__name-en {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    font-size: 0.9rem;
  }
  .resume__headline {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }
  .resume__meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  .resume__section { margin-top: 36px; }
  .resume__h2 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .resume-timeline { padding-left: 18px; gap: 18px; }
  .resume-timeline::before { left: 3px; }
  .resume-job { padding: 16px 16px 14px; }
  .resume-job::before { left: -19px; top: 20px; width: 8px; height: 8px; }
  .resume-job__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 10px;
  }
  .career-bar { padding: 22px 14px 12px; }
  .resume-job__company { font-size: 1rem; line-height: 1.35; }
  .resume-job__role {
    margin-left: 0;
    display: block;
    font-size: 0.74em;
  }
  .resume-job__period { font-size: 0.78em; margin-top: 2px; }
  .resume-job__intro { font-size: 0.92rem; }
  .resume-job__bullets li { font-size: 0.88rem; }

  .resume-skills { gap: 12px; }
  .resume-skill-group { padding: 14px 16px; }

  .resume-edu li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .nav { padding: 18px 20px; }
  .nav__links { gap: 16px; }
  .hero { padding: 48px 20px 72px; }
  .section { padding: 64px 20px; }
  .footer { padding: 24px 20px 32px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__meta { gap: 24px; }
  .contact__link { grid-template-columns: 60px 1fr auto; padding: 14px 16px; }
}

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

/* ---------- Detail page (project sub-page) ---------- */
.detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 96px;
}

.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.18s var(--ease);
}
.detail__back:hover { color: var(--text); }

.detail__hero {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.detail__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  margin: 0 0 24px;
  background: rgba(255, 255, 255, 0.015);
}

.detail__title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.2;
}

.detail__lead {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 36rem;
}

.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

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

.detail__section {
  margin-top: 56px;
}
.detail__section:first-of-type { margin-top: 0; }

.detail__h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text);
}

.detail__prose p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.detail__prose p:last-child { margin-bottom: 0; }

.detail__features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.detail__features li {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.detail__features li:last-child { border-bottom: 0; }
.detail__features strong {
  color: var(--text);
  font-weight: 600;
}
.detail__features span {
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 600px) {
  .detail__features li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Release notes */
.releases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.release {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}
.release__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.release__version {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.release__date {
  color: var(--faint);
}
.release__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.release__items li {
  position: relative;
  padding-left: 14px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.release__items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

/* clickable release item — links to its own detail page */
.release--clickable {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.release--clickable:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.release__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
}
.release__cover:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.release--clickable .release__head,
.release--clickable .release__items {
  pointer-events: none;
  position: relative;
  z-index: 2;
}
.release--clickable .release__version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.release--clickable .release__version::after {
  content: '→';
  font-size: 0.95em;
  color: var(--faint);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.release--clickable:hover .release__version::after {
  transform: translateX(3px);
  color: var(--text);
}

/* per-version DMG download link inside a release card — must sit above .release__cover */
.release__download {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-2);
}
.release__download a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.release__download a:hover {
  color: var(--text);
  border-bottom-color: var(--live);
}

/* major-version groups (collapsible) on releases index */
.release-group {
  margin-bottom: 14px;
}
.release-group + .release-group { margin-top: 4px; }
.release-group__head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  user-select: none;
}
.release-group__head::-webkit-details-marker { display: none; }
.release-group__head:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.release-group__version {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.release-group__meta {
  color: var(--faint);
  flex: 1;
}
.release-group__chevron {
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
  display: inline-block;
  width: 1em;
  text-align: center;
}
.release-group[open] > .release-group__head .release-group__chevron {
  transform: rotate(90deg);
  color: var(--text-2);
}
.release-group[open] > .release-group__head {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  background: var(--surface-2);
}
.release-group[open] > .releases {
  margin-top: 0;
  padding-top: 14px;
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: var(--bg-2);
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 14px;
}
@media (max-width: 540px) {
  .release-group__head { padding: 12px 14px; gap: 10px; }
  .release-group[open] > .releases { padding: 12px; }
}

/* architecture diagram */
.arch {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.arch__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  margin: 0 auto;
}
.arch__tier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--faint);
  letter-spacing: 0.06em;
}
.arch__title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  fill: var(--text);
}
.arch__title--muted { fill: var(--muted); }
.arch__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--muted);
  letter-spacing: 0.02em;
}
.arch__edge-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--faint);
  letter-spacing: 0.04em;
}
.arch__caption {
  display: block;
  margin: 14px 4px 4px;
  color: var(--muted);
  line-height: 1.6;
}

/* lessons learned ("Behind the scenes") */
.lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lesson {
  position: relative;
  padding: 22px 22px 22px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lesson:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.lesson__index {
  position: absolute;
  left: 22px;
  top: 24px;
  color: var(--faint);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.lesson__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.lesson__body {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.75;
}
.lesson__body a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lesson__body a:hover {
  color: #fff;
  border-bottom-color: var(--text);
}
.lesson__body + .lesson__body { margin-top: 14px; }
.lesson__quote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  background: var(--bg-2);
  border-radius: 0 6px 6px 0;
}
@media (max-width: 540px) {
  .lesson { padding: 56px 18px 20px; }
  .lesson__index { top: 20px; left: 18px; }
}

/* roadmap (upcoming features) */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roadmap-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.roadmap-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.roadmap-item__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.roadmap-item__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.roadmap-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.roadmap-item__desc {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.roadmap-item__desc a,
.detail__prose a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.roadmap-item__desc a:hover,
.detail__prose a:hover {
  color: #fff;
  border-bottom-color: var(--text);
}

/* release detail page */
.release-detail__date {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.7em;
  margin-left: 6px;
}
.release-detail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.release-detail__list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
}
.release-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

@media (max-width: 540px) {
  .detail { padding: 28px 20px 72px; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: 6px;
}
