:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #fff;
  --text: #111;
  --muted: #656560;
  --line: #d8d8d2;
  --soft: #ededE8;
  --inverse: #111;
  --inverse-text: #fff;
  --accent: #244cff;
  --header: rgba(247, 247, 244, 0.88);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #141414;
  --text: #f1f1ed;
  --muted: #999994;
  --line: #343432;
  --soft: #1c1c1a;
  --inverse: #f1f1ed;
  --inverse-text: #111;
  --accent: #8fa3ff;
  --header: rgba(13, 13, 13, 0.88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transition: color .25s ease, background-color .25s ease;
}
button, a { font: inherit; }
a { color: inherit; }
::selection { color: var(--inverse-text); background: var(--inverse); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wordmark {
  width: max-content;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
}
.wordmark span { color: var(--muted); }
nav { display: flex; gap: 30px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
nav a:hover { color: var(--text); }
.theme-toggle {
  justify-self: end;
  min-width: 84px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  background: var(--surface);
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.theme-icon {
  width: 13px;
  height: 13px;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 6px 0 0 var(--text);
}

.hero {
  height: 190svh;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  padding: 130px clamp(20px, 7vw, 110px) 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 850px; }
.eyebrow, .section-number, .project-type, .cookie-kicker {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: var(--text); }
h1 {
  margin: 26px 0;
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: 1.04;
}
h1 em { color: var(--muted); font-style: normal; }
.hero-line { display: block; will-change: transform, opacity; }
.hero-detail { will-change: transform, opacity; }
.hero-description {
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
}
.text-link, .closing-copy a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
}
.text-link span, .closing-copy a span { transition: transform .2s ease; }
.text-link:hover span, .closing-copy a:hover span { transform: translate(3px, 3px); }
.hero-index {
  position: absolute;
  top: 110px;
  right: clamp(20px, 4vw, 64px);
  color: var(--muted);
  font: 10px ui-monospace, monospace;
  letter-spacing: .1em;
}
.parallax-word {
  position: absolute;
  right: -2vw;
  bottom: -7vw;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font-size: clamp(130px, 27vw, 420px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .8;
  user-select: none;
  pointer-events: none;
}
.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: 31vw; height: 31vw; min-width: 290px; min-height: 290px; right: 8vw; top: 22%; }
.orbit-two { width: 13vw; height: 13vw; min-width: 130px; min-height: 130px; right: 2vw; top: 13%; }
.scroll-note {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 36px;
  color: var(--muted);
  font: 9px ui-monospace, monospace;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}
.scroll-note span { margin-top: 10px; color: var(--text); }

.closing {
  padding: clamp(80px, 11vw, 170px) clamp(20px, 7vw, 110px);
}
.manifesto {
  height: 180svh;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: clip;
}
.manifesto-sticky {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 100svh;
  padding: clamp(100px, 11vw, 170px) clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 4fr;
  gap: 40px;
  align-items: start;
}
.manifesto-backdrop {
  position: absolute;
  z-index: 0;
  right: -2vw;
  top: -20vh;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font-size: clamp(110px, 20vw, 310px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .65;
  text-align: right;
  pointer-events: none;
  will-change: transform;
}
.manifesto-copy > p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 66px);
  font-weight: 450;
  letter-spacing: -.045em;
  line-height: 1.22;
}
.manifesto-meta {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 30px;
  font: 10px ui-monospace, monospace;
  letter-spacing: .1em;
}

.work {
  height: 720svh;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.work-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 92px clamp(20px, 7vw, 110px) 28px;
  overflow: hidden;
}
.work-backdrop {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font-size: clamp(150px, 31vw, 480px);
  font-weight: 800;
  letter-spacing: -.1em;
  line-height: .8;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.work-progress {
  position: absolute;
  z-index: 5;
  right: clamp(20px, 4vw, 64px);
  bottom: 24px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px ui-monospace, monospace;
}
.work-progress i { width: 54px; height: 1px; background: var(--line); }
.section-heading {
  position: relative;
  z-index: 4;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}
.section-heading > p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.project-grid {
  position: absolute;
  z-index: 3;
  inset: 190px 0 54px;
  pointer-events: none;
}
.project-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 72vw);
  max-height: calc(100svh - 260px);
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.1fr);
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .12);
}
.project-card.is-active { pointer-events: auto; }
.card-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.project-number { color: var(--muted); font: 10px ui-monospace, monospace; }
.status {
  padding: 4px 7px;
  border: 1px solid var(--line);
  font: 9px ui-monospace, monospace;
  letter-spacing: .08em;
}
.status.live { color: #078044; }
[data-theme="dark"] .status.live { color: #6edb9f; }
.status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.archived { color: var(--muted); }
.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.github-button {
  padding: 4px 8px;
  border: 1px solid var(--text);
  color: var(--inverse-text);
  background: var(--inverse);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font: 9px ui-monospace, monospace;
  letter-spacing: .04em;
  transition: opacity .2s ease, transform .2s ease;
}
.github-button svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.github-button:hover {
  opacity: .78;
  transform: translateY(-1px);
}
.project-visual {
  min-height: 220px;
  height: 100%;
  padding: 18px;
  color: #111;
  background: #e8e8e2;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: end;
}
.project-visual > span {
  position: relative;
  z-index: 2;
  font-size: clamp(27px, 3.4vw, 48px);
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: .85;
}
.project-visual svg {
  position: absolute;
  right: 4%;
  top: 8%;
  width: 50%;
  height: 82%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.project-visual > span,
.project-visual svg,
.parallax-word,
.orbit {
  will-change: transform;
}
.visual-pokemon { background: #ffd9dc; }
.visual-cex { background: #d7e3ff; }
.visual-random { background: #ffe6a8; }
.visual-giwa { background: #dcd3ff; }
.visual-arc { background: #cfeee9; }
.visual-robin { background: #d9edc9; }
.card-copy { padding: 8px 0; align-self: center; }
.card-copy h3 {
  margin: 8px 0 10px;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 550;
  letter-spacing: -.025em;
}
.card-copy > p:not(.project-type) {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font: 9px ui-monospace, monospace;
  text-transform: uppercase;
}
.card-copy a, .archive-note {
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-copy a span { margin-left: 8px; }
.card-copy a:hover { color: var(--accent); }
.archive-note { color: var(--muted); }

.project-overview {
  padding: clamp(80px, 10vw, 150px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.overview-heading {
  margin-bottom: 42px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.overview-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: 1;
}
.overview-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.overview-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px) scale(.97);
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.2, .75, .25, 1),
    border-color .2s ease;
}
.overview-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.overview-card:hover { border-color: var(--text); }
.overview-card .card-top {
  order: 2;
  margin: 0;
  padding: 14px 16px 0;
}
.overview-card .project-visual {
  order: 1;
  min-height: 0;
  height: 156px;
  padding: 16px;
}
.overview-card .project-visual > span {
  font-size: clamp(24px, 2.6vw, 38px);
}
.overview-card .project-visual svg {
  width: 48%;
  height: 78%;
}
.overview-card .card-copy {
  order: 3;
  padding: 10px 16px 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.overview-card .card-copy h3 {
  margin: 5px 0 7px;
  font-size: 18px;
}
.overview-card .card-copy > p:not(.project-type) {
  display: -webkit-box;
  min-height: 58px;
  overflow: hidden;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.overview-card .tags { margin: 14px 0; }
.overview-card .card-copy > a,
.overview-card .archive-note { margin-top: auto; }

.closing {
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}
.closing-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: clamp(80px, 12vw, 170px) auto 0;
  text-align: center;
}
.closing-copy h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.closing-word { left: -4vw; right: auto; bottom: -3vw; }
footer {
  min-height: 100px;
  padding: 30px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font: 9px ui-monospace, monospace;
  letter-spacing: .1em;
}
footer a { text-decoration: none; color: var(--text); }

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid var(--text);
  color: var(--text);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--text);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 5px 0 8px; font-size: 18px; font-weight: 600; }
.cookie-banner p:not(.cookie-kicker) { margin: 0; color: var(--muted); font-size: 12px; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.cookie-actions button {
  min-width: 82px;
  padding: 8px 14px;
  border: 1px solid var(--text);
  cursor: pointer;
  font-size: 12px;
}
.button-primary { color: var(--inverse-text); background: var(--inverse); }
.button-secondary { color: var(--text); background: transparent; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .site-header { height: 60px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero-scene { padding: 100px 20px 42px; align-items: center; }
  .hero-index { display: none; }
  .orbit-one { right: -40%; top: 55%; }
  .orbit-two { right: -15%; top: 43%; }
  .scroll-note { display: none; }
  .manifesto-sticky { grid-template-columns: 1fr; gap: 44px; padding: 100px 20px 50px; }
  .manifesto-backdrop { right: -18vw; font-size: 34vw; }
  .manifesto-meta { flex-direction: column; gap: 10px; }
  .work { height: 660svh; }
  .work-sticky { padding: 78px 14px 24px; }
  .section-heading { align-items: start; flex-direction: row; margin-bottom: 10px; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 32px; }
  .project-grid { inset: 145px 0 46px; }
  .project-card {
    width: calc(100vw - 28px);
    max-height: calc(100svh - 205px);
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 170px 1fr;
    row-gap: 0;
  }
  .card-top { grid-column: auto; margin-bottom: 8px; }
  .card-copy { padding: 12px 2px 2px; }
  .card-copy h3 { margin: 5px 0 6px; font-size: 19px; }
  .card-copy > p:not(.project-type) { font-size: 11px; line-height: 1.5; }
  .tags { margin: 10px 0; }
  .project-visual { min-height: 0; height: 170px; }
  .project-visual svg { width: 55%; }
  .work-progress { right: 18px; bottom: 16px; }
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .overview-heading > p { display: none; }
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .overview-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
  .overview-card .card-top { grid-column: 1 / -1; grid-row: 1; }
  .overview-card .project-visual { grid-column: 1; grid-row: 2; height: 150px; }
  .overview-card .project-visual > span { font-size: 23px; }
  .overview-card .card-copy { grid-column: 2; grid-row: 2; padding: 8px 12px 12px; }
  .overview-card .card-copy h3 { font-size: 16px; }
  .overview-card .card-copy > p:not(.project-type) { min-height: 0; -webkit-line-clamp: 2; }
  .overview-card .tags { margin: 8px 0; }
  footer { align-items: flex-start; flex-direction: column; }
  .cookie-banner { right: 14px; bottom: 14px; width: calc(100vw - 28px); box-shadow: 5px 5px 0 var(--text); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .project-card { width: min(700px, 86vw); }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero, .manifesto, .work { height: auto; min-height: 100svh; }
  .hero-scene, .manifesto-sticky, .work-sticky { position: relative; height: auto; min-height: 100svh; }
  .project-grid { position: relative; inset: auto; display: grid; gap: 12px; }
  .project-card { position: relative; left: auto; top: auto; width: auto; max-height: none; opacity: 1; transform: none !important; pointer-events: auto; }
}
