/* ==========================================================================
   SEOHA — index 전용 스타일 (2026 리뉴얼)
   기존 style.css / reset.css 와 독립. index.html 만 이 파일을 사용.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  color-scheme: light;

  --bg:            #fbfbfa;
  --bg-elev:       #ffffff;
  --bg-sunken:     #f2f2ef;
  --text:          #16161a;
  --text-muted:    #6b6b73;
  --text-faint:    #9a9aa2;
  --line:          #e4e4df;
  --line-strong:   #d2d2cb;
  --accent:        #3d5afe;
  --accent-soft:   rgba(61, 90, 254, 0.09);
  --accent-text:   #2f47cc;

  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .05);
  --shadow-md: 0 4px 16px -4px rgba(20, 20, 30, .09), 0 1px 3px rgba(20, 20, 30, .05);
  --shadow-lg: 0 18px 44px -14px rgba(20, 20, 30, .22), 0 2px 8px rgba(20, 20, 30, .06);

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1120px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg:          #0e0e11;
    --bg-elev:     #17171c;
    --bg-sunken:   #131317;
    --text:        #f2f2f5;
    --text-muted:  #a1a1ac;
    --text-faint:  #6e6e79;
    --line:        #26262e;
    --line-strong: #35353f;
    --accent:      #8ea2ff;
    --accent-soft: rgba(142, 162, 255, 0.13);
    --accent-text: #a9b8ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 44px -14px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #0e0e11;
  --bg-elev:     #17171c;
  --bg-sunken:   #131317;
  --text:        #f2f2f5;
  --text-muted:  #a1a1ac;
  --text-faint:  #6e6e79;
  --line:        #26262e;
  --line-strong: #35353f;
  --accent:      #8ea2ff;
  --accent-soft: rgba(142, 162, 255, 0.13);
  --accent-text: #a9b8ff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 44px -14px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .4);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --- Layout primitives -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--sunken { background: var(--bg-sunken); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 48px; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-sub {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 58ch;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 16px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .18s ease, background-color .18s ease;
}
.nav__link:hover { color: var(--text); background: var(--bg-sunken); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none;
                stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 테마 아이콘: 현재 테마에 맞는 쪽만 노출 */
.icon-sun  { display: none; }
.icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"]  .icon-sun  { display: block; }
:root[data-theme="dark"]  .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun  { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 11vw, 132px) clamp(56px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(48% 52% at 22% 32%, var(--accent-soft) 0%, transparent 68%),
    radial-gradient(40% 44% at 78% 18%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero__title .accent { color: var(--accent); }

.hero__roles {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(14px, 1.7vw, 16px);
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.hero__roles .sep { color: var(--text-faint); margin-inline: 8px; }

.hero__lead {
  margin-top: 22px;
  max-width: 52ch;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--text-muted);
  line-height: 1.78;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none;
           stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
:root[data-theme="dark"] .btn--primary { color: #10101a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { color: #10101a; }
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.btn:active { transform: translateY(0); }

/* Hero 우측 프로필 카드 */
.hero__aside { display: flex; justify-content: center; }

.profile-card {
  position: relative;
  width: min(320px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}

.profile-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
}
.profile-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 사진이 준비되면 <img>를 넣고 이 자리표시자는 지우면 됩니다. */
.photo-placeholder {
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 16px;
}
.photo-placeholder svg {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

.profile-card__meta { margin-top: 18px; display: grid; gap: 9px; }
.profile-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
}
.profile-card__row dt { color: var(--text-faint); }
.profile-card__row dd { margin: 0; font-weight: 550; text-align: right; }

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg-elev); padding: 24px 22px; }
.stat__num {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.stat__num span { font-size: .58em; color: var(--accent); margin-left: 2px; }
.stat__label { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }

/* --- About -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-body p + p { margin-top: 18px; }
.about-body p { color: var(--text-muted); font-size: 16.5px; line-height: 1.85; }
.about-body strong { color: var(--text); font-weight: 620; }

.fact-list { display: grid; gap: 2px; }
.fact {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.fact:first-child { border-top: 1px solid var(--line); }
.fact__key { color: var(--text-faint); font-size: 13.5px; padding-top: 2px; }
.fact__val { color: var(--text); }
.fact__val a { color: var(--accent-text); text-decoration: underline;
               text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fact__val a:hover { text-decoration-thickness: 2px; }

/* --- Skills ------------------------------------------------------------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.skill-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.skill-card__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}
.skill-card__icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none;
                        stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skill-card__title { font-size: 15.5px; font-weight: 650; letter-spacing: -0.02em; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-sunken);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Projects ----------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.project__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}
.project__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.project:hover .project__thumb img { transform: scale(1.045); }

.project__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.project__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.project__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.project__title {
  margin-top: 9px;
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.025em;
}
.project__desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.68;
}
.project__stack {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project__stack span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.project__stack span:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--line-strong); }

/* 카드 전체를 클릭 영역으로 */
.project__link::after { content: ""; position: absolute; inset: 0; }
.project__link {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
}
.project__link svg { width: 15px; height: 15px; stroke: currentColor; fill: none;
                     stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
                     transition: transform .2s ease; }
.project:hover .project__link svg { transform: translateX(3px); }

/* --- Career timeline ---------------------------------------------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line) 70%, transparent);
}

.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
}
.tl-item--now::before { border-color: var(--accent); background: var(--accent); }

.tl-period {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: .02em;
}
.tl-role {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.022em;
}
.tl-org { color: var(--text-muted); font-weight: 500; font-size: 14.5px; }
.tl-desc { margin-top: 7px; font-size: 14.5px; color: var(--text-muted); line-height: 1.72; }
.tl-stack {
  margin-top: 11px;
  display: flex; flex-wrap: wrap; gap: 6px;
}

/* --- Contact ------------------------------------------------------------ */
.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 320px;
  background: radial-gradient(50% 60% at 50% 100%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.contact-card > * { position: relative; }

.contact-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.28;
}
.contact-sub { margin-top: 14px; color: var(--text-muted); font-size: 16px; }

.contact-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  background: var(--bg-sunken);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-faint);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elev);
  color: var(--text-muted);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-social a:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

/* --- Scroll reveal ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { order: -1; justify-content: flex-start; }
  .profile-card { width: min(260px, 100%); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 12px 14px; font-size: 16px; }
  .nav__link.is-active::after { display: none; }

  .fact { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-links .btn { width: 100%; justify-content: center; }
}

/* --- Client strip -------------------------------------------------------- */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.client-strip__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 6px;
}
.client-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

/* --- Now (현재 학습 중) --------------------------------------------------- */
.now-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.now-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}
.now-card__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none;
                      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.now-card h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.022em; }
.now-card p { margin-top: 7px; font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* --- Timeline: 접기/펼치기 ------------------------------------------------ */
.tl-item[hidden] { display: none; }

.tl-more-wrap { margin-top: 8px; padding-left: 30px; }
.btn--more {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 11px 20px;
}
.btn--more:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-2px); }
.btn--more svg { transition: transform .22s ease; }
.btn--more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 프리랜서/파견 배지 */
.tl-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-sunken);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-faint);
  vertical-align: 2px;
}

/* 굵은 고객사 표기 */
.tl-client { color: var(--text); font-weight: 620; }

/* --- Education ----------------------------------------------------------- */
.edu {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  font-size: 15px;
}
.edu__key {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.edu__val { color: var(--text-muted); }
.edu__val strong { color: var(--text); font-weight: 620; }

@media (max-width: 720px) {
  .now-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .client-strip { padding: 20px; }
}

/* 실제 사진이 들어간 프로필 영역 */
.profile-card__photo.has-photo { border-style: solid; border-color: var(--line); }

/* ==========================================================================
   Preloader — 로고가 그려지고, 진행 바가 차면 사라짐
   ========================================================================== */
.preload-lock { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity .5s ease, visibility .5s;
}
.preloader[data-done="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner { display: grid; justify-items: center; gap: 20px; }

.preloader__mark {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  animation: pl-fade .5s ease forwards;
}
.preloader__mark span { color: var(--accent); }

.preloader__bar {
  position: relative;
  width: 132px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: translateX(-100%);
  animation: pl-sweep 1.05s cubic-bezier(.65, .05, .36, 1) infinite;
}

.preloader__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: pl-fade .5s ease .12s forwards;
}

@keyframes pl-fade  { to { opacity: 1; } }
@keyframes pl-sweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* 모션을 줄이는 설정에서는 바를 정지시키고 즉시 통과 */
@media (prefers-reduced-motion: reduce) {
  .preloader__bar::after { animation: none; transform: none; }
  .preloader__mark, .preloader__hint { opacity: 1; animation: none; }
}

/* 스크립트가 죽어도 페이지가 가려지지 않도록 하는 안전장치 */
.no-js .preloader { display: none; }

/* ==========================================================================
   Sub page — 프로젝트 상세 / About / Contact 공통
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 52px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 460px;
  background: radial-gradient(46% 52% at 26% 34%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-muted);
  transition: color .18s ease, gap .18s ease;
}
.back-link:hover { color: var(--text); gap: 10px; }
.back-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none;
                 stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-title {
  margin-top: 22px;
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.042em;
}
.page-tagline {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--text-muted);
}
.page-lead {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(15.5px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--text-muted);
}

/* 프로젝트 개요 표 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: var(--bg-elev);
  padding: 20px 22px;
}
.spec__key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.spec__val {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
.spec__val small { display: block; margin-top: 3px; font-size: 13px; font-weight: 450; color: var(--text-muted); }

/* 스크린샷 + 캡션 */
.shots { display: grid; gap: clamp(48px, 7vw, 84px); }

.shot { display: grid; gap: 20px; }
.shot__frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sunken);
  box-shadow: var(--shadow-md);
}
.shot__frame img { width: 100%; height: auto; display: block; }

.shot__caption { max-width: 66ch; }
.shot__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent-text);
}
.shot__title {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.shot__desc {
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* 강조 노트 */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.note svg { width: 19px; height: 19px; margin-top: 2px; color: var(--accent-text);
            stroke: currentColor; fill: none; stroke-width: 1.7;
            stroke-linecap: round; stroke-linejoin: round; }
.note p { font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.note strong { color: var(--text); font-weight: 620; }

/* 경력 타임라인 안에 들어가는 강조 노트 — 본문 폭에 맞춰 축소 */
.note--tl { margin-top: 12px; padding: 15px 17px; gap: 12px; }
.note--tl svg { width: 17px; margin-top: 1px; }
.note--tl p { font-size: 14px; line-height: 1.75; }

/* 이전/다음 프로젝트 */
.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.pager__item {
  display: grid;
  gap: 5px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pager__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pager__item--next { text-align: right; }
.pager__key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pager__name { font-size: 17px; font-weight: 650; letter-spacing: -0.025em; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.field label .req { color: var(--accent-text); margin-left: 3px; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e5484d; }

.field__error {
  font-size: 12.5px;
  color: #e5484d;
  min-height: 1em;
}

.form-status {
  margin-top: 18px;
  font-size: 14.5px;
  min-height: 1.4em;
}
.form-status[data-state="ok"]   { color: #17914a; }
.form-status[data-state="err"]  { color: #e5484d; }
:root[data-theme="dark"] .form-status[data-state="ok"] { color: #4ade80; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status[data-state="ok"] { color: #4ade80; }
}

.btn[disabled] { opacity: .55; pointer-events: none; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pager__item--next { text-align: left; }
}
