/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:      #F5F5F0;
  --ink:     #181818;
  --ink-mid: rgba(24,24,24,0.45);
  --ink-dim: rgba(24,24,24,0.22);
  --accent:  #FF4FB6;
  --rule:    rgba(24,24,24,0.12);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.muted { color: var(--ink-mid); }

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav__logo-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.nav__logo-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}

.nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--ink); }

.nav__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf75;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* =====================
   HERO
   ===================== */
.hero {
  padding-top: 64px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 48px 48px;
  border-bottom: 1px solid var(--rule);
}

.hero__top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--ink-mid);
}

.hero__headline-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
}

.hero__line {
  display: block;
  font-family: var(--font-serif);
  letter-spacing: -0.03em;
}

.hero__line--thin {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
}

.hero__line--bold {
  font-size: clamp(80px, 12vw, 170px);
  font-weight: 700;
}

.hero__line--bold em {
  color: var(--ink);
  font-style: normal;
}

.hero__desc {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-mid);
  text-align: right;
  max-width: 280px;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 8px;
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
}

.hero__scroll-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  transition: gap 0.25s;
}

.hero__scroll-cta:hover { gap: 16px; }

.hero__index {
  color: var(--ink-dim);
}

/* marquee */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  white-space: nowrap;
  background: var(--bg);
}

.marquee__track {
  display: inline-flex;
  gap: 36px;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
}

.marquee__track .sep {
  color: var(--accent);
  font-size: 14px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================
   WORK
   ===================== */
.work {
  padding: 0;
}

.work__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  border-bottom: 1px solid var(--rule);
}

/* project group header */
.project-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.project-group-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-group-header__label {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.1em;
}

.project-group-header__sub {
  font-size: 10px;
}

/* project row list */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 48px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}

.project-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--row-bg, transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.project-row:hover::before { opacity: 0.15; }

.project-row:hover .project-row__thumb {
  opacity: 1;
  transform: scale(1.04);
}

.project-row:hover .project-row__title {
  transform: translateX(10px);
}

.project-row:hover .project-row__arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

.project-row__left {
  width: 80px;
  flex-shrink: 0;
}

.project-row__num {
  font-size: 12px;
  color: var(--ink-dim);
}

.project-row__mid {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

.project-row__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

.project-row__cat {
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.project-row__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.project-row__thumb {
  width: 120px;
  height: 80px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transform: scale(1);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

.project-row__thumb .mono {
  font-size: 9px;
  color: var(--ink);
  opacity: 0.4;
}

.thumb-www {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.45;
  letter-spacing: 0.02em;
}

.project-row__thumb--logo {
  background: #fff;
}

.project-row__thumb--logo img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

/* a square mark needs sizing off the height, or it overflows the thumb */
.project-row__thumb--mark img {
  width: auto;
  height: 46%;
}

.project-row__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

/* =====================
   ABOUT
   ===================== */
.about {
  border-top: 1px solid var(--rule);
}

/* portrait on the left at its own proportions, copy alongside it */
.about__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  padding: 80px 48px 96px;
}

.about__photo {
  margin: 0;
  align-self: start;
}

.about__photo img {
  display: block;
  width: 100%;
  height: auto;          /* 1280 x 1646 — keeps its own ratio */
  background: #E8DDD5;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}

.about__lead {
  font-family: var(--font-sans);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about__lead em {
  font-style: normal;
  font-weight: 700;
}

.about__desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: -0.01em;
  color: var(--ink-mid);
  word-break: keep-all;
}

.about__blocks {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 26px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}

.about__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}

.about__list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.about__when {
  flex: 0 0 116px;
  font-size: 11px;
  color: var(--ink-mid);
}

.about__skills {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 460px;
}

.about__skill {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
}

.about__skill-name { flex: 0 0 116px; }

.about__skill-bar {
  flex: 1;
  height: 3px;
  background: var(--rule);
  position: relative;
}

.about__skill-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: var(--ink);
}

.about__skill-pct {
  flex: 0 0 34px;
  text-align: right;
  font-size: 10px;
  color: var(--ink-mid);
}

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 24px 72px;
  }
  .about__photo {
    max-width: 190px;
  }
  .about__list li,
  .about__skill { flex-wrap: wrap; gap: 4px 14px; }
  .about__when,
  .about__skill-name { flex-basis: 100%; }
  .about__skill-bar { flex: 1; }
}

.skill {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s;
}

.skill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* =====================
   CONTACT
   ===================== */
.contact {
  border-top: 1px solid var(--rule);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 72px 48px 48px;
}

.contact__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}



.contact__bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__email {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  transition: color 0.2s;
}

.contact__email:hover { color: #3ecf75; }

.contact__email svg {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.contact__email:hover svg {
  transform: translate(6px, -6px);
}

.contact__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}




/* =====================
   REVEAL ANIMATIONS
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
