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

:root {
  --background: #f7f5ee;
  --surface: #eeeee5;
  --surface-strong: #e4e8dd;
  --ink: #1e2923;
  --muted: #6b736d;
  --line: #d7d9d0;
  --accent: #173e2e;
  --sidebar-width: 26vw;
  --content-width: 74vw;
  --page-padding: clamp(2rem, 5vw, 5.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }
.site-content { width: var(--content-width); }

.site-sidebar {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 3.5rem) 2rem;
  overflow-y: auto;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.profile {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1.4rem;
}

.profile__image {
  display: grid;
  width: min(88%, 14rem);
  height: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  align-self: center;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #b8cbe5;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(3%) scale(.92);
}

.profile__eyebrow, .profile__name, .profile__role { margin: 0; }

.profile__eyebrow {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile__name {
  margin-top: .3rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
}

.profile__role {
  color: var(--muted);
  font-size: .92rem;
}

.profile__contact {
  display: grid;
  width: 100%;
  padding-top: 1rem;
  gap: .6rem;
  border-top: 1px solid var(--line);
}

.profile__contact a {
  color: #4f5953;
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.profile__contact span {
  display: block;
  margin-bottom: .05rem;
  color: #969d97;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-nav {
  display: flex;
  margin: clamp(2.5rem, 6vh, 4.5rem) 0 auto;
  flex-direction: column;
  gap: .2rem;
}

.section-nav__link {
  display: flex;
  padding: .65rem 0;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
  font-size: clamp(.95rem, 1.08vw, 1.08rem);
  text-decoration: none;
  transition: color 160ms ease;
}

.section-nav__link span {
  width: 1.5rem;
  color: #989e98;
  font-size: .65rem;
  letter-spacing: .08em;
}

.section-nav__link::after {
  width: 0;
  height: 1px;
  margin-left: auto;
  background: var(--accent);
  content: "";
  transition: width 160ms ease;
}

.section-nav__link:hover, .section-nav__link.is-active { color: var(--accent); }
.section-nav__link.is-active { font-weight: 600; }
.section-nav__link.is-active::after { width: 2rem; }

.sidebar__footer {
  margin: 0;
  color: #929891;
  font-size: .68rem;
  letter-spacing: .04em;
}

.section {
  min-height: 90vh;
  padding: clamp(6rem, 11vw, 10rem) var(--page-padding);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: flex;
  min-height: 100vh;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(4rem, 8vh, 7rem);
  flex-direction: column;
  justify-content: space-between;
}

.section-kicker {
  display: flex;
  margin: 0 0 2rem;
  align-items: center;
  gap: .75rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1, .section-heading h2, .contact h2 {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
  letter-spacing: -.045em;
}

.hero h1 {
  display: flex;
  max-width: 13em;
  flex-direction: column;
  font-size: clamp(2.65rem, 5.2vw, 5.6rem);
  line-height: 1.15;
}

.hero__hello {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .34em;
  font-weight: 500;
  letter-spacing: -.02em;
}

.hero__statement {
  margin-bottom: .35em;
  color: var(--ink);
  font-size: .55em;
  line-height: 1.35;
}

.hero h1 strong {
  color: var(--accent);
  font-size: .82em;
  font-weight: 700;
  line-height: 1.28;
}

.hero__description {
  max-width: 39rem;
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.9;
}

.hero__meta {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__meta span + span::before {
  margin-right: 1.5rem;
  color: #abb0aa;
  content: "·";
}

.scroll-cue {
  display: flex;
  width: fit-content;
  margin-top: 4rem;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span:last-child {
  color: var(--accent);
  font-size: 1.2rem;
}

.section-heading { margin-bottom: clamp(4rem, 8vw, 7rem); }

.section-heading h2, .contact h2 {
  max-width: 12em;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.3;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(14rem, .7fr);
  gap: 3rem;
  align-items: end;
}

.section-heading--split > p {
  max-width: 20rem;
  margin: 0 0 .5rem;
  color: var(--muted);
  font-size: .9rem;
}

.timeline {
  margin-left: .35rem;
  border-left: 1px solid var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  padding-left: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(8rem, .55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.timeline__marker {
  position: absolute;
  top: .45rem;
  left: -.4rem;
  width: .75rem;
  height: .75rem;
  border: 2px solid var(--background);
  border-radius: 50%;
  background: var(--accent);
  outline: 1px solid var(--accent);
}

.timeline__period {
  display: flex;
  padding-top: .15rem;
  gap: .55rem;
  color: var(--muted);
  font-size: .78rem;
}

.timeline__content h3, .timeline__company { margin: 0; }

.timeline__company {
  margin-bottom: .35rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.timeline__content h3 {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.timeline__summary {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  color: var(--muted);
}

.detail-list {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.detail-list li {
  position: relative;
  padding: .35rem 0 .35rem 1.15rem;
  color: #4f5953;
  font-size: .9rem;
}

.detail-list li::before {
  position: absolute;
  top: 1.03rem;
  left: 0;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.project-grid {
  display: flex;
  width: 100%;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.project-card {
  display: grid;
  width: 100%;
  min-height: 23rem;
  padding: clamp(2rem, 4vw, 3.75rem) 0;
  grid-template-columns: minmax(13rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.project-card__visual {
  position: relative;
  display: flex;
  min-height: 18rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
}

.project-card__visual::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .18;
  content: "";
}

.project-card__visual span,
.project-card__visual small {
  position: relative;
  z-index: 1;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-card__visual strong {
  position: relative;
  z-index: 1;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.05;
}

.project-card__visual--acre {
  background: #fff;
  color: var(--accent);
}

.project-card__visual--flower,
.project-card__visual--graduation,
.project-card__visual--dadok { background: #fff; }

.project-card__visual--image::after { display: none; }

.project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 2vw, 1.75rem);
  object-fit: contain;
}

.project-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-card__top {
  display: flex;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-card__status {
  padding: .2rem .6rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
}

.project-card__type {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -.04em;
  line-height: 1.25;
}

.project-card__body > div > p:last-child {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.project-card__facts {
  display: grid;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.project-card__facts div {
  display: grid;
  padding: .75rem 0;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: .75rem;
  border-bottom: 1px solid var(--line);
}

.project-card__facts dt,
.project-card__facts dd {
  margin: 0;
}

.project-card__facts dt {
  color: #8d958f;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-card__facts dd {
  color: #465049;
  font-size: .8rem;
  line-height: 1.6;
}

.tag-list, .skill-list {
  display: flex;
  margin: 1.5rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
}

.tag-list li {
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: #4d5851;
  font-size: .72rem;
}

.project-card__link {
  display: inline-flex;
  width: fit-content;
  margin-top: 2rem;
  font-size: .76rem;
  text-decoration: none;
}

.project-card__link--disabled { color: #959c96; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-card {
  min-height: 22rem;
  padding: 2rem clamp(1.25rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.skill-card:last-child { border-right: 0; }
.skill-card__number { color: #969d97; font-size: .68rem; }

.skill-card h3 {
  margin: 3.5rem 0 2rem;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
}

.skill-list {
  flex-direction: column;
  gap: 0;
}

.skill-list li {
  padding: .65rem 0;
  border-top: 1px solid var(--line);
  color: #4c5650;
  font-size: .9rem;
}

.activity-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.activity-list li {
  display: grid;
  min-height: 8rem;
  padding: 1.5rem 0;
  align-items: center;
  grid-template-columns: minmax(5rem, .35fr) minmax(0, 1fr) auto;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.activity-list__year, .activity-list__type {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.activity-list h3, .activity-list p { margin: 0; }

.activity-list h3 {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.activity-list p {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .82rem;
}

.contact {
  display: grid;
  min-height: 85vh;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .75fr);
  gap: 4rem;
  align-items: center;
  border-bottom: 0;
  background: var(--surface-strong);
}

.contact__links { border-top: 1px solid var(--ink); }

.contact__links a, .contact__placeholder {
  display: flex;
  min-height: 6.5rem;
  padding: 1.3rem 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact__links a { transition: color 160ms ease, padding 160ms ease; }
.contact__links a:hover { padding-left: .5rem; color: var(--accent); }

.contact__links small {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact__placeholder { color: #8e958f; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 29vw; --content-width: 71vw; }
  .profile { align-items: flex-start; flex-direction: column; }
  .section-heading--split, .contact { grid-template-columns: 1fr; }
  .section-heading--split > p { margin: 0; }
  .timeline__item { grid-template-columns: 1fr; gap: 1.2rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .skill-card:last-child { border-bottom: 0; }
  .skill-card h3 { margin: 1.5rem 0; }
}

@media (max-width: 800px) {
  :root { --page-padding: clamp(1.4rem, 6vw, 3rem); }
  html { scroll-padding-top: 1rem; }
  .site-content, .site-sidebar { width: 100%; }
  .site-sidebar {
    position: relative;
    height: auto;
    padding: 1.5rem var(--page-padding) 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }
  .profile { padding-bottom: 1.4rem; align-items: flex-start; flex-direction: column; }
  .profile__image { width: min(13rem, 70vw); height: auto; }
  .profile__contact { max-width: 30rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .section-nav {
    margin: 0 calc(var(--page-padding) * -1);
    padding: 0 var(--page-padding);
    overflow-x: auto;
    flex-direction: row;
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav__link { position: relative; flex: 0 0 auto; padding: .9rem 0; font-size: .75rem; }
  .section-nav__link span, .section-nav__link::after { display: none; }
  .section-nav__link.is-active::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
  }
  .sidebar__footer { display: none; }
  .section { min-height: auto; padding-top: 6rem; padding-bottom: 6rem; }
  .hero { min-height: calc(100vh - 9rem); padding-top: 5rem; }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 4rem); }
  .project-card { min-height: auto; gap: clamp(1.5rem, 4vw, 3rem); }
  .project-card__visual { min-height: 16rem; }
  .activity-list li { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.25rem; }
  .activity-list__type { display: none; }
  .contact { gap: 5rem; }
}

@media (max-width: 480px) {
  body { word-break: normal; }
  .hero__meta { align-items: flex-start; flex-direction: column; }
  .hero__meta span + span::before { display: none; }
  .section-heading--split { gap: 1.5rem; }
  .timeline__period { flex-wrap: wrap; }
  .activity-list li { grid-template-columns: 1fr; gap: .5rem; }
}

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

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