@import url("https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap");

:root {
  --bg: #fff8f2;
  --bg-strong: #fff1e2;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf5;
  --surface-accent: #fff3e6;
  --ink: #24160f;
  --muted: #6f5b4d;
  --line: rgba(122, 82, 49, 0.12);
  --line-strong: rgba(122, 82, 49, 0.18);
  --brand: #ff6b2c;
  --brand-deep: #e4571e;
  --brand-soft: #ffd7bf;
  --leaf: #d9e8d8;
  --sand: #f6e7d7;
  --shadow: 0 24px 70px rgba(125, 76, 38, 0.11);
  --shadow-soft: 0 16px 40px rgba(125, 76, 38, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --container: min(1160px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 130, 70, 0.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255, 226, 190, 0.9), transparent 24%),
    linear-gradient(180deg, #fff8f2 0%, #fffdf9 42%, #fff8f2 100%);
}

body.is-modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 248, 242, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(122, 82, 49, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), #ff965c);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 107, 44, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 99px;
}

.section {
  padding: 48px 0;
}

.hero-section {
  position: relative;
  padding: 72px 0 56px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-primary,
.hero-secondary {
  min-width: 0;
}

.hero-copy,
.hero-card,
.intro-panel,
.highlight-card,
.project-card,
.career-card,
.timeline-card,
.contact-panel,
.mini-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow,
.card-kicker,
.project-meta,
.career-period,
.timeline-step {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow,
.card-kicker,
.project-meta,
.career-period {
  color: var(--brand-deep);
}

.hero-copy h1,
.section-heading h2,
.intro-copy h2,
.contact-panel h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.hero-copy h1 {
  margin: 0 auto;
  font-size: clamp(2.9rem, 3.8vw, 4.7rem);
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
  font-family: "DM Serif Display", "Times New Roman", serif;
  color: var(--brand-deep);
  font-style: italic;
}

.hero-description,
.hero-card p,
.intro-copy p,
.mini-card p,
.highlight-card p,
.project-card p,
.career-card p,
.timeline-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-description {
  margin: 24px auto 0;
  font-size: 1.08rem;
}

.hero-actions,
.contact-links,
.pill-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #ff8d57);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  border-color: var(--line);
}

.hero-card,
.intro-panel,
.highlight-card,
.project-card,
.career-card,
.timeline-card,
.contact-panel,
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  width: min(860px, 100%);
  padding: 28px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(122, 82, 49, 0.12);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}


.hero-card .card-kicker {
  display: inline-block;
  padding: 0 14px 10px;
  border-bottom: 1px solid rgba(122, 82, 49, 0.12);
}

.hero-card h2 {
  margin: 18px 0 0;
  font-size: 1.3rem;
  line-height: 1.14;
  font-weight: 700;
}

.hero-card-summary {
  max-width: 56ch;
  margin: 12px auto 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-facts {
  display: grid;
  grid-auto-flow: column;
  gap: 14px 22px;
  justify-content: center;
  margin: 28px auto 0;
  max-width: 760px;
}

.fact-row {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(122, 82, 49, 0.08);
}

.fact-row dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-row dd {
  margin: 0;
  font-weight: 600;
  white-space: normal;
  line-height: 1.45;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px auto 0;
  max-width: 760px;
}

.stat-card {
  padding: 14px 10px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(122, 82, 49, 0.1);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.15rem;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.75;
}

.hero-orb-a {
  top: -70px;
  left: -90px;
  width: 300px;
  height: 300px;
  background: rgba(255, 107, 44, 0.1);
}

.hero-orb-b {
  right: -80px;
  top: 120px;
  width: 280px;
  height: 280px;
  background: rgba(217, 232, 216, 0.55);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 32px;
}

.intro-copy h2,
.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.intro-copy p {
  margin: 18px 0 0;
}

.intro-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.mini-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 244, 233, 0.95), rgba(255, 251, 247, 0.88));
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 236, 220, 0.85), rgba(255, 248, 242, 0)),
    transparent;
}

.section-accent {
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 107, 44, 0.12), transparent 20%),
    radial-gradient(circle at 86% 34%, rgba(217, 232, 216, 0.8), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 244, 235, 0.78));
}

.section-heading {
  display: grid;
  gap: 12px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.highlight-grid,
.stack-grid,
.project-list,
.career-list,
.timeline {
  display: grid;
  gap: 18px;
}

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

.highlight-card,
.timeline-card {
  padding: 26px;
}

.highlight-card h3,
.project-card h3,
.career-card h3,
.timeline-card h3 {
  margin: 14px 0 0;
  line-height: 1.3;
}

.highlight-card h3 {
  font-size: 1.28rem;
}

.stack-panel {
  padding: 40px 42px;
  background:
    linear-gradient(180deg, rgba(255, 239, 224, 0.9), rgba(255, 247, 239, 0.96)),
    #fff7ef;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(122, 82, 49, 0.1);
}

.stack-panel .section-heading {
  justify-items: center;
  text-align: center;
}

.stack-panel .section-heading.compact {
  margin-bottom: 30px;
}

.stack-panel .section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.stack-grid {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 22px 26px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(122, 82, 49, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(125, 76, 38, 0.1);
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
}

.skill-row + .skill-row {
  border-top: 1px solid rgba(122, 82, 49, 0.08);
}

.skill-label {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.35;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(122, 82, 49, 0.12);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(122, 82, 49, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.skill-tag-1 {
  background: rgba(255, 226, 204, 0.9);
}

.skill-tag-2 {
  background: rgba(255, 242, 230, 0.9);
}

.skill-tag-3 {
  background: rgba(247, 236, 224, 0.9);
}

.skill-tag-4 {
  background: rgba(255, 233, 214, 0.9);
}

.skill-tag-5 {
  background: rgba(250, 240, 229, 0.9);
}

.skill-tag-6 {
  background: rgba(255, 228, 208, 0.9);
}

.pill {
  background: rgba(255, 239, 224, 0.72);
}

.project-list {
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  padding: 28px;
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 44, 0.12);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-detail {
  display: grid;
  gap: 16px;
  align-content: center;
}

.project-note {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(122, 82, 49, 0.08);
}

.project-note strong {
  display: block;
  margin-bottom: 8px;
}

.project-more-button {
  justify-self: start;
  min-width: 112px;
  cursor: pointer;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 24px;
}

.project-modal.is-open {
  display: grid;
  place-items: center;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 22, 15, 0.42);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(122, 82, 49, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 244, 235, 0.98)),
    var(--surface-strong);
  box-shadow: 0 30px 90px rgba(55, 31, 15, 0.24);
  outline: none;
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
}

.project-modal-close span {
  font-size: 1.5rem;
  line-height: 1;
}

.project-modal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-right: 48px;
}

.project-modal h2 {
  margin: 18px 48px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.project-modal-media {
  margin: 22px 0 0;
  border: 1px solid rgba(122, 82, 49, 0.1);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.project-modal-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.project-modal-media-grid.is-single {
  grid-template-columns: 1fr;
}

.project-modal-media-grid .project-modal-media {
  margin-top: 0;
}

.project-modal-media-grid.is-single .project-modal-media {
  max-width: 920px;
  margin-inline: auto;
}

.project-modal-media img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 780px);
  object-fit: contain;
  background: #fffdf9;
}

.project-modal-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 107, 44, 0.14), rgba(255, 243, 230, 0.9)),
    repeating-linear-gradient(
      135deg,
      rgba(122, 82, 49, 0.06) 0,
      rgba(122, 82, 49, 0.06) 1px,
      transparent 1px,
      transparent 18px
    );
}

.project-modal-image-placeholder span {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 107, 44, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal-media figcaption {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-modal-description,
.project-modal-section p,
.project-modal-section li {
  color: var(--muted);
  line-height: 1.75;
}

.project-modal-description {
  margin: 18px 0 0;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 16px;
  margin: 24px 0;
}

.project-modal-section {
  padding: 20px;
  border: 1px solid rgba(122, 82, 49, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.project-modal-section strong {
  display: block;
  margin-bottom: 12px;
}

.project-modal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.project-modal-section p {
  margin: 0;
}

.career-list {
  gap: 16px;
}

.career-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
}

.career-company {
  display: grid;
  gap: 10px;
  align-content: start;
}

.career-company h3 {
  margin: 0;
  font-size: 1.4rem;
}

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

.career-role-list {
  display: grid;
  /* align-content: start; */
}

.career-role {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 0 0 8px;
  border-top: 1px solid rgba(122, 82, 49, 0.08);
}

.career-role + .career-role {
  margin-top: 0;
}

.career-role strong {
  display: block;
  margin: 0;
  line-height: 1.45;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card {
  min-height: 100%;
}

.timeline-step {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.contact-links a {
  min-width: 130px;
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .intro-panel,
  .project-card,
  .project-modal-grid,
  .career-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .highlight-grid,
  .timeline,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-card {
    padding: 20px 0 0;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .highlight-grid,
  .timeline,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stack-panel {
    padding: 28px 20px;
  }

  .stack-grid {
    padding: 14px 18px;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .intro-panel,
  .hero-card,
  .highlight-card,
  .project-card,
  .career-card,
  .timeline-card,
  .contact-panel {
    padding: 24px;
  }

  .button,
  .contact-links a,
  .project-more-button {
    width: 100%;
  }

  .project-modal {
    padding: 14px;
  }

  .project-modal-panel {
    max-height: calc(100vh - 28px);
    padding: 24px;
    border-radius: 24px;
  }

  .project-modal h2 {
    margin-right: 0;
  }

  .project-modal-media-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-image-placeholder {
    min-height: 180px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
