@font-face {
  font-family:"Pretendard Variable";
  src:url("assets/PretendardVariable.woff2") format("woff2");
  font-weight:45 920;
  font-style:normal;
  font-display:swap;
}
:root {
  color-scheme: dark;
  --bg:#0c0c0e;
  --green:#00ff0a;
  --blue:#00b8f4;
  --yellow:#ffd600;
  --pink:#ff24c9;
  --muted:#50a957;
  --line:#245127;
  font-family: "Pretendard Variable", "Malgun Gothic", sans-serif;
  background:var(--bg);
  color:var(--green);
}
* {box-sizing:border-box}
[hidden] {display:none !important}
body {margin:0}
button, a {color:inherit}
button {font:inherit; cursor:pointer}
a {text-decoration:none}
a:hover {text-decoration:underline; text-underline-offset:.25em}
:focus-visible {outline:2px solid white; outline-offset:4px}
main:focus {outline:none}
p, h1, h2, h3, ul, dl, dd {margin:0}
img, video {display:block; max-width:100%}
.wrap {width:min(88%, 1440px); margin-inline:auto}
.blue {--accent:var(--blue); color:var(--blue)}
.yellow {--accent:var(--yellow); color:var(--yellow)}
.pink {--accent:var(--pink); color:var(--pink)}
.green {--accent:var(--green); color:var(--green)}
.quiet, .education small {color:var(--muted)}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.top {display:flex; justify-content:flex-end; padding: clamp(18px,2.2vw,42px) 4%; position:relative; z-index:1}
.top nav {display:grid; grid-template-columns:repeat(3,1fr); border-radius:100px; background:var(--green); color:var(--bg); padding:1px; width:clamp(290px,32vw,605px)}
.top a {display:grid; place-items:center; padding:.58em .85em; font-size:clamp(1rem,1.65vw,2rem); font-weight:750; border-radius:100px}
.top a[aria-current] {background:var(--bg); color:var(--green)}
#intro {position:fixed; inset:0; background:var(--bg); padding:clamp(80px,15vw,300px) 6%; font-size:clamp(2rem,5.6vw,7rem); font-weight:800; letter-spacing:-.045em; line-height:1.48; overflow:auto; word-break:keep-all; overflow-wrap:anywhere}
#typing > div {min-height:1.48em}
.hero {text-align:center; min-height: min(58vw,1080px); display:grid; grid-template-rows:1fr auto; padding:clamp(62px,9vw,170px) 0 clamp(42px,6vw,114px)}
.hero-content {min-width:0; align-content:start; animation:appear .28s ease-out}
@keyframes appear {from {opacity:.3;transform:translateY(7px)} to {opacity:1;transform:none}}
.name-trigger, .preview-jump {border:0; padding:0; background:none}
.name-trigger {font-size:clamp(1rem,2.5vw,3rem); letter-spacing:.31em; padding-left:.31em}
.name-trigger:hover {text-shadow:0 0 16px #00ff0a80}
.expanded-name {font-size:clamp(2.4rem,7vw,8rem); font-weight:800; margin:.35em 0}
.hero-korean {margin:clamp(25px,4vw,78px) 0 .52em; color:var(--muted); font-weight:800; font-size:clamp(1.35rem,4.7vw,5.6rem); word-break:keep-all; letter-spacing:-.05em}
.hero h1 {font-size:clamp(2.45rem,6.6vw,8rem); line-height:.99; font-weight:900; letter-spacing:-.045em}
.hero-description {font-size:clamp(1rem,2.4vw,2.9rem); margin:1.2em 0 0; font-weight:750; word-break:keep-all}
.preview-jump {justify-self:center; margin-top:clamp(60px,8vw,155px); letter-spacing:.23em; color:var(--muted); font-size:clamp(1rem,1.8vw,2.1rem)}
.preview-jump span {display:block; letter-spacing:0; color:var(--green); font-size:2em; line-height:1.1}
.preview {padding-bottom:100px; scroll-margin-top:25px}
.metrics {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(6px,5vw,95px); margin-bottom:clamp(26px,4vw,75px)}
.metrics button {border:0; border-bottom:4px solid transparent; background:none; display:grid; gap:.48em; justify-items:center; padding:.3em .1em 1.1em; font-size:clamp(.8rem,1.75vw,2rem); min-width:0}
.metrics button[aria-pressed="true"] {border-bottom-color:currentColor}
.metrics button:hover {background:color-mix(in srgb, currentColor 7%, transparent)}
.metric-icon {font-size:1.7em}
.metrics b, .skills b {font-size:clamp(3.35rem,9vw,10rem); line-height:1.12; font-weight:400; text-shadow:0 0 .1em #ffffff55}
.cards {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,3.1vw,60px)}
.card {position:relative; display:grid; aspect-ratio:1.58; place-items:center; overflow:hidden; border:1px solid color-mix(in srgb, currentColor 45%, transparent); isolation:isolate; background:radial-gradient(ellipse at top,#22252a,#0c0c0e 70%); box-shadow:0 8px 28px #0007; text-align:center; transition:transform .2s, box-shadow .2s}
.card:hover, .card:focus-visible {transform:translateY(-4px);box-shadow:0 9px 28px color-mix(in srgb, currentColor 27%, transparent);text-decoration:none}
.card img:not(.card-medal) {position:absolute; inset:auto 0 0; width:100%;height:60%;object-fit:cover;opacity:.85; z-index:-2}
.card.full-cover img:not(.card-medal) {height:100%;opacity:.65}
.card::before {content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(#09090b66,#09090be8 54%,#09090b25)}
.card-copy {display:grid; justify-items:center; gap:.55em; padding:.7em; font-size:clamp(.8rem,1.24vw,1.3rem); word-break:keep-all}
.card-copy small {border-radius:30px; padding:.3em .7em; background:#08080a; font-size:.83em}
.card-copy strong {font-size:1.55em; line-height:1.12}
.all-projects, .play {display:table; margin:clamp(30px,5vw,80px) auto 0; border-bottom:1px solid; padding:.3em 0; font-size:clamp(1rem,1.65vw,1.65rem)}
.project-index, .project-header {padding:clamp(35px,5vw,100px) 0}
.project-index h1, .project-heading h1, .profile-intro h1, .profile-section h2 {font-size:clamp(2.7rem,6.3vw,7rem); line-height:1.03; letter-spacing:-.055em; overflow-wrap:anywhere}
.project-index h1 {margin-bottom:.65em}
.back {display:inline-block; margin-bottom:1.5rem; color:var(--muted)}
.project-heading {display:flex; align-items:center; justify-content:space-between; gap:1.5rem}
.project-heading p {margin-top:1em; font-weight:700; font-size:clamp(1rem,2vw,2rem); word-break:keep-all}
.award {display:grid; justify-items:center; text-align:center; flex:0 0 auto; max-width:11rem}
.award span {font-size:2.2rem; line-height:1.5; margin-bottom:.3rem; width:1.5em; border-radius:50%; background:var(--yellow); color:var(--bg)}
.gallery {position:relative; background:#08080a}
.gallery video,.gallery-photo {width:100%; aspect-ratio:16/9; object-fit:contain; max-height:76vh; margin:auto}
.gallery-controls {display:flex;align-items:center;justify-content:center;gap:.6rem;padding:.65rem;flex-wrap:wrap}
.gallery-controls button,.years button {border:1px solid var(--line); background:#161c17;padding:.42rem .75rem;border-radius:.32rem}
.gallery-position {min-width:5.4rem;text-align:center}
.project-visual,.project-next {background-image:linear-gradient(#0708079c,#070807ce),var(--cover);background-position:center;background-size:cover}
.project-visual {display:grid;place-items:center; min-height:clamp(230px,32vw,540px); text-align:center;padding:1rem;font-size:clamp(2rem,6vw,6rem)}
.game-description,.story,.contribution,.outcome {padding-block:clamp(55px,8vw,145px)}
.game-description h2,.story h2,.contribution h2,.outcome h2 {font-size:1.03rem; font-weight:500; margin-bottom:clamp(24px,4vw,65px)}
.game-description h3 {max-width:24ch;font-size:clamp(1.7rem,4.3vw,4.8rem);line-height:1.23;word-break:keep-all}
.game-description p,.story p,.contribution p,.outcome p {margin-top:1.2rem; max-width:70ch; line-height:2.1; font-size:clamp(1rem,1.5vw,1.5rem); color:#9edfa2; word-break:keep-all}
.facts {display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;border-block:1px solid var(--line);padding-block:1.35rem}
.facts dt {color:var(--muted);margin-bottom:.4rem}
.story-row {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5%;margin-bottom:clamp(28px,5vw,85px)}
.story-row p {margin:0}
.story-row img {width:100%}
.story.reverse img {order:-1}
.chips {display:flex; flex-wrap:wrap; gap:.65rem; padding:0; list-style:none}
.chips li {color:var(--bg); background:var(--accent,var(--green)); padding:.35em .7em; border-radius:40px; font-weight:750}
.bar {margin-top:1.2rem}
.bar meter {display:block;width:100%;height:1.7rem;accent-color:var(--accent)}
.bar meter::-webkit-meter-optimum-value {background:var(--accent)}
.project-next {display:grid;grid-template-columns:auto 1fr auto;align-items:center;text-align:center;gap:1rem;padding:clamp(45px,8vw,145px) 5%;margin-top:clamp(45px,8vw,145px)}
.next-title {font-size:clamp(1.35rem,4vw,4.5rem);font-weight:800;line-height:1.15;overflow-wrap:anywhere}
.profile-intro {display:grid;grid-template-columns:minmax(0,26%) 1fr;align-items:center;gap:8%;padding-block:clamp(65px,12vw,230px);font-size:clamp(1rem,1.55vw,1.8rem)}
.profile-intro img {width:100%;height:auto;box-shadow:clamp(6px,1.1vw,20px) clamp(6px,.9vw,17px) 0 var(--green)}
.education {margin:1.6em 0;line-height:1.6;word-break:keep-all}
.education small {display:inline-block;margin-left:.5em;font-size:.9em}
.education p {margin-top:.55em}
.profile-section {padding-bottom:clamp(60px,11vw,195px)}
.profile-section h2 {margin-bottom:.62em}
.years {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:680px;gap:.25rem}
.years button[aria-pressed="true"] {background:var(--green);color:var(--bg);font-weight:800}
.experience-list {list-style:none;padding:0;border-top:1px solid var(--line)}
.experience-list li {display:grid;grid-template-columns:6em 1fr auto;gap:1rem;align-items:center;padding:1.4em 0;border-bottom:1px solid var(--line);line-height:1.55;word-break:keep-all}
.experience-list .empty {display:block;color:var(--muted)}
.skills-heading {text-align:right}
.skills {display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.skills .chips {flex-direction:column;align-items:flex-start}
.skills p {margin:.3rem 0 1.2rem}
.profile-footer {padding:2rem 0 clamp(40px,8vw,120px);border-top:1px solid var(--line)}
.profile-footer h2 {font-size:clamp(1.8rem,4vw,4rem);margin-bottom:.45rem}
.contacts {display:flex; flex-wrap:wrap; justify-content:center; gap:.6em 2em}
.profile-footer .contacts {justify-content:space-between; margin-top:2.7em;font-size:clamp(1rem,2.4vw,2.5rem);font-weight:750}
@media(max-width:820px) {
  .hero {min-height:0}
  .cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-intro {grid-template-columns:30% 1fr}
}
@media(max-width:540px) {
  .top {justify-content:center}
  .top nav {width:min(100%,360px)}
  #intro {padding-top:24vh}
  .card {aspect-ratio:1.35}
  .card-copy strong {font-size:1.26em}
  .profile-intro,.story-row {grid-template-columns:1fr;gap:1.7rem}
  .profile-intro img {width:48%}
  .skills,.facts {grid-template-columns:repeat(2,1fr)}
  .project-heading {align-items:start;flex-direction:column}
  .award {display:flex;align-items:center;gap:.4rem;text-align:left}
  .award span {font-size:1.1rem;margin:0;text-align:center}
  .experience-list li {grid-template-columns:4.6em 1fr;gap:.25em .65em}
  .experience-list strong {grid-column:2;font-size:.88em;color:var(--muted)}
  .project-next span {display:none}
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after {animation:none !important;transition:none !important}
}

.experience-note,.experience-link {color:#9edfa2;font-size:.9rem;margin-top:.3em}
.experience-link {display:inline-block;text-decoration:underline;text-underline-offset:.2em}
.experience-list li > b {font-variant-numeric:tabular-nums;font-size:.92em}
.project-next {background-image:linear-gradient(#0708079c,#070807ce),var(--cover,none)}

/* Keep the desktop composition at the requested starting scale. */
@media (min-width: 900px) {
  #site { zoom: .825; }
}
.metrics .metric-icon {width:1.85em;height:1.85em;object-fit:contain}
.card .card-medal {
  position:absolute; inset:.7rem .7rem auto auto; width:clamp(22px,2.1vw,40px);
  height:auto; opacity:1; z-index:2; object-fit:contain;
}
.award > img {width:2.4rem;height:auto;margin-bottom:.45rem}
.project-index {padding:0 0 clamp(45px,8vw,140px)}
.project-summary {padding-top:clamp(65px,12vw,220px);text-align:center}
.project-summary h1 {font-size:clamp(2rem,4.85vw,6rem);word-break:keep-all;margin-bottom:clamp(54px,8vw,155px)}
.project-summary .metrics {width:92%;margin-inline:auto}
.project-gallery {position:relative;isolation:isolate;overflow:hidden;padding:clamp(26px,4vw,75px) 0 4rem}
.gallery-prompt {text-align:center;color:var(--green);font-size:clamp(1rem,1.5vw,1.85rem);margin-bottom:clamp(24px,6vw,110px)}
.gallery-glow {
  position:absolute;
  z-index:-1;
  pointer-events:none;
  left:15%;
  top:22%;
  width:clamp(260px,44vw,780px);
  aspect-ratio:678 / 1056;
  opacity:.65;
  background:url("assets/배경용 그라데이션 원.png") center / contain no-repeat;
  mask-image:linear-gradient(to right,transparent,black 24%);
  transform:translate(-50%,-50%);
  animation:gallery-drift 78s ease-in-out infinite;
}
@keyframes gallery-drift {
  0%,100% {left:15%;top:22%}
  25% {left:72%;top:30%}
  50% {left:86%;top:70%}
  75% {left:32%;top:78%}
}
.project-gallery .card {transition:transform .23s,box-shadow .23s}
.project-gallery .card:hover,.project-gallery .card:focus-visible {transform:scale(1.045);z-index:2}
.project-gallery .card img:not(.card-medal) {inset:0;width:100%;height:100%;opacity:1}
.project-gallery .card:where(:has(img:not(.card-medal)))::before {opacity:0;background:#080909c9;transition:opacity .23s}
.project-gallery .card:where(:has(img:not(.card-medal))) .card-copy {opacity:0;transition:opacity .23s}
.project-gallery .card:hover::before,.project-gallery .card:focus-visible::before,
.project-gallery .card:hover .card-copy,.project-gallery .card:focus-visible .card-copy {opacity:1}
@media (hover:none) {
  .project-gallery .card:where(:has(img:not(.card-medal)))::before {opacity:1;background:linear-gradient(transparent 20%,#080909df)}
  .project-gallery .card:where(:has(img:not(.card-medal))) .card-copy {opacity:1;align-self:end}
}
@media(max-width:540px) {
  .project-summary .metrics {width:100%}
  .award > img {width:1.25rem;margin:0}
}


.metrics .metric-icon {width:2.25em;height:2.25em}
.card .card-medal {width:clamp(28px,2.8vw,51px)}
.story,.contribution {padding-block:clamp(63.25px,9.2vw,166.75px)}
.story h2,.contribution h2 {font-size:1.1845rem;margin-bottom:clamp(27.6px,4.6vw,74.75px)}
.story p,.contribution p {font-size:clamp(1.15rem,1.725vw,1.725rem)}
.contribution .chips,.contribution .bar label {font-size:1.15rem}
.contribution .bar meter {height:1.955rem}
.github-link {text-decoration:underline;text-underline-offset:.2em}
