:root {
  color-scheme: light;
  --background: #f5f5f5;
  --ink: #121212;
  /* Figma's 1440px frame, with readable minimum sizes on small screens. */
  --header-height: clamp(40px, 5.556vw, 80px);
  --identity-height: clamp(96px, 13.889vw, 200px);
  --section-gap: clamp(20px, 3.333vw, 48px);
  --content-gap: clamp(64px, 19.583vw, 282px);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
::selection { background:#121212; color:#f5f5f5; }
.contact-page { display:flex; flex-direction:column; min-height:max(100svh,min(900px,62.5vw)); }
.contact-content { view-transition-name:page-content; flex:1; display:grid; place-items:center; min-height:360px; padding:40px 24px; }
.contact-card { width:max-content; max-width:100%; }
.contact-card h1 { text-align:center; font-size:clamp(18px,1.389vw,20px); font-weight:400; margin:0 0 40px; }
.contact-list { margin:0; font-size:clamp(14px,1.111vw,16px); line-height:1.2; }
.contact-list>div { display:grid; grid-template-columns:32px minmax(0,1fr); gap:24px; margin-bottom:21px; }
.contact-list>div:nth-child(2) { margin-bottom:16px; }
.contact-list>div:last-child { margin-bottom:0; }
.contact-list dd { margin:0; }
.contact-list a { color:#121212; text-decoration:none; transition:color 600ms ease; }
.contact-list a:hover,.contact-list a:focus-visible { color:#878787; }
.contact-social { display:flex; gap:12px; align-items:baseline; }
@media(prefers-reduced-motion:reduce) { .contact-list a { transition:none; } }
body { margin: 0; min-width: 280px; min-height: 100svh; }
.copyright {
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.389vw, 20px);
  padding: 0 20px;
  font-size: clamp(10px, 1.389vw, 20px);
  line-height: 1.2;
}
.copyright-symbol { font-weight: 700; }
.identity {
  view-transition-name: white-bezel;
  height: var(--identity-height);
  display: grid;
  place-items: center;
  background: #fff;
}
h1 { margin: 0; font-size: clamp(18px, 1.667vw, 24px); line-height: 1.2; font-weight: 700; }
.navigation {
  view-transition-name: site-navigation;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(10px, 1.667vw, 24px);
  margin-top: var(--section-gap);
  padding: 0 16px;
  font-size: clamp(16px, 1.667vw, 24px);
  line-height: 1.2;
}
button { font: inherit; color: inherit; }
.project-grid { view-transition-name: page-content; width:83.334%; max-width:1200px; margin:48px auto 64px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.project-card { display:block; color:inherit; }
.project-thumbnail { position:relative; aspect-ratio:387/516; overflow:hidden; }
.project-thumbnail img { position:absolute; width:227.413%; height:106.6%; max-width:none; left:-58.933%; top:-4%; object-fit:cover; }
.project-thumbnail::after { content:""; position:absolute; inset:0; background:linear-gradient(to bottom,rgba(245,245,245,.35) 0%,rgba(245,245,245,.35) 65%,rgba(245,245,245,.95) 100%); opacity:0; transition:opacity 600ms ease; pointer-events:none; }
.project-title { position:absolute; z-index:1; left:12px; bottom:12px; font-size:clamp(14px,1.667vw,24px); line-height:1.2; color:#878787; opacity:0; transition:opacity 600ms ease; }
.project-card:focus-visible .project-thumbnail::after,.project-card:focus-visible .project-title { opacity:1; }
@media(hover:hover) { .project-card:hover .project-thumbnail::after,.project-card:hover .project-title { opacity:1; } }
@media(hover:none), (max-width:700px) { .project-title,.project-thumbnail::after { display:none; } }
@media(prefers-reduced-motion:reduce) { .project-title,.project-thumbnail::after { transition:none; } }
.site-footer { height:clamp(72px,8.056vw,116px); background:#fff; }
.home-page,.about-page { display:flex; flex-direction:column; min-height:max(100svh,min(1561px,108.403vw)); }
.home-page>main { flex:1; }
.site-footer { flex-shrink:0; }
.about-page .profile { flex:1; margin-bottom:80px; }
.biography .korean-name { color:#878787; font-size:16px; font-weight:400; margin-left:12px; white-space:nowrap; }
.copyright img { display:block; max-width:100%; height:auto; }
@media(max-width:700px) {
  .home-page,.about-page { min-height:100svh; }
  .project-grid { width:auto; margin:32px 24px 40px; grid-template-columns:minmax(0,1fr); }
  .project-card { max-width:387px; }
}
.greeting {
  view-transition-name: page-content;
  margin: var(--content-gap) 16px 32px;
  text-align: center;
  font-size: clamp(18px, 1.667vw, 24px);
  line-height: 1.2;
}
.navigation button, .navigation a {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-underline-offset: 5px;
  color: inherit;
  text-decoration: none;
}
.navigation button:hover, .navigation a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
dialog {
  width: min(440px, calc(100% - 40px));
  padding: 28px;
  border: 0;
  background: #fff;
  color: var(--ink);
}
dialog::backdrop { background: rgb(18 18 18 / 24%); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
h2 { margin: 0; font-size: 24px; }
.close { border: 0; padding: 0 4px; background: transparent; font-size: 28px; cursor: pointer; }
dialog p { margin: 24px 0 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 340px) {
  .copyright { padding-inline: 12px; font-size: 9px; }
  .navigation { padding-inline: 12px; }
}
.about-header {
  view-transition-name: white-bezel;
  min-height: clamp(72px, 8.056vw, 116px);
  padding-inline: max(24px, 8.333vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}
.home-link { color: inherit; text-decoration: none; font-size: clamp(18px, 1.667vw, 24px); font-weight: 700; }
.about-header .navigation { margin: 0; padding: 0; }
.navigation [aria-current="page"] { color: #878787; }
.profile {
  view-transition-name: page-content;
  width: min(1200px, 83.334%);
  margin: clamp(32px, 5.486vw, 79px) auto 196px;
  display: grid;
  grid-template-columns: 271fr 843fr;
  gap: clamp(32px, 5.972vw, 86px);
  align-items: start;
}
.portrait { display: block; width: 100%; height: auto; outline: 1.2px solid #121212; }
.profile-content { min-width: 0; padding-top: clamp(80px, 13.125vw, 189px); font-size: clamp(14px, 1.111vw, 16px); line-height: 1.25; }
.biography h1, .profile-section h2 { font-size: clamp(18px, 1.389vw, 20px); line-height: 1.2; font-weight: 400; }
.biography h1 { margin: 0 0 40px; }
.biography p { margin: 0 0 8px 12px; }
.biography p { letter-spacing:0; }
.biography p:first-of-type { margin-bottom:12px; }
.biography [lang="ko"] { color: #878787; word-break: keep-all; overflow-wrap: break-word; }
.profile-section { margin-top: 80px; }
.profile-section h2 { margin: 0 0 40px; }
.history { margin: 0 0 0 12px; }
.history > div { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 24px; margin-bottom: 12px; align-items: baseline; }
.history dt { overflow-wrap: break-word; }
.history dd { margin: 0; color: #878787; white-space: nowrap; }
@media (max-width: 700px) {
  .about-header { flex-wrap: wrap; padding-block: 20px; gap: 16px; }
  .about-header .navigation { font-size: 16px; }
  .profile { width: auto; margin: 32px 24px 64px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait { width: clamp(120px, 36vw, 200px); }
  .profile-content { padding-top: 0; line-height: 1.55; }
  .biography h1 { margin-bottom: 24px; }
  .bio-break { display:none; }
  .biography p { margin-left: 0; margin-bottom: 12px; word-break: normal; overflow-wrap: break-word; }
  .biography [lang="ko"] { word-break: keep-all; }
  .profile-section { margin-top: 40px; }
  .profile-section h2 { margin-bottom: 20px; }
  .history { margin-left: 0; }
  .history > div { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-bottom: 20px; }
  .history dd { font-size: 12px; }
}

/* Keep the header, name and navigation continuous across document navigation. */
@view-transition { navigation: auto; }
.copyright { view-transition-name: copyright; }
.identity h1, .home-link { view-transition-name: site-name; }
::view-transition-group(*) {
  animation-duration: 1600ms;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}
::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(page-content) { animation: none; }
::view-transition-old(page-content) {
  animation: content-out 360ms ease-out both;
}
::view-transition-new(page-content) {
  animation: content-in 1200ms cubic-bezier(.22, 1, .36, 1) 400ms both;
}
@keyframes content-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes content-in {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}



