:root {
  --wine: #7d1c2e;
  --wine-dark: #5f1423;
  --gray: #6b6b70;
  --gray-light: #e9e9eb;
  --line: #e2e2e4;
  --text: #222226;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 15px; font-weight: 700; letter-spacing: .28em; color: var(--text); }
.logo span { margin-left: .5em; color: var(--wine); }
nav a { margin-left: 28px; font-size: 14px; color: var(--gray); transition: color .15s; }
nav a:hover { color: var(--wine); }

/* hero */
.hero {
  margin-top: 28px;
  height: 440px;
  display: flex;
  align-items: flex-end;
  background:
    url("assets/hero.jpg") center / cover no-repeat,
    url("assets/hero.svg") center / cover no-repeat,
    #5c5c61;
  color: #fff;
}
.hero-text { padding: 0 44px 44px; }
.hero h1 { margin: 0 0 8px; font-size: 52px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.hero p { margin: 0 0 24px; font-size: 17px; color: rgba(255,255,255,.88); }
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s;
}
.btn:hover { background: var(--wine-dark); }

/* sections */
section.wrap { padding-top: 72px; }
h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
h2 i { font-style: normal; color: var(--wine); margin-left: 6px; }
.lead { margin: 0 0 28px; color: var(--gray); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.img { aspect-ratio: 4 / 3; background-color: var(--gray-light); background-size: cover; background-position: center; }
.img svg { display: block; width: 100%; height: 100%; }
.card { display: block; }
.card h3 { transition: color .15s; }
.card:hover h3 { color: var(--wine); }
.cards h3 { margin: 16px 0 4px; font-size: 17px; font-weight: 600; }
.cards p { margin: 0; font-size: 14.5px; color: var(--gray); }

.rows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.when { font-size: 14px; color: var(--gray); }
.rows b { display: block; font-weight: 600; }
.rows em { display: block; font-style: normal; font-size: 14px; color: var(--wine); }
.rows p { margin: 8px 0 0; font-size: 14.5px; color: var(--gray); }

.contact { margin: 14px 0 0; color: var(--gray); }
.contact a { color: var(--wine); border-bottom: 1px solid currentColor; }

footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray); }

@media (max-width: 760px) {
  nav a { margin-left: 16px; font-size: 13px; }
  .logo { letter-spacing: .18em; font-size: 13px; }
  .hero { height: 360px; }
  .hero-text { padding: 0 24px 28px; }
  .hero h1 { font-size: 38px; }
  .cards { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
}

/* multi-page additions */
nav a.on { color: var(--wine); }
.hero a.u { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.hero a.u:hover { border-bottom-color: #fff; }
.hero .dept { display: inline-block; margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.72); }
.page-head { padding-top: 64px; }
.title { margin: 6px 0 22px; font-size: 40px; font-weight: 700; letter-spacing: -.01em; }
.pdf { width: 100%; height: 1100px; border: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; }
.foot a { color: var(--gray); }
.foot a:hover { color: var(--wine); }
.bio { max-width: 720px; font-size: 17px; margin: 0; }
.plain { margin: 14px 0 0; }
.muted { color: #9a9aa0; }
.bul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--gray); }
.bul li { margin: 3px 0; }
.cites { margin: 18px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.65; }
.cites li { padding: 4px 0; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--gray); }
.rows .bul li { display: list-item; padding: 0; border: 0; margin: 3px 0; }
.lnk { color: var(--wine); border-bottom: 1px solid currentColor; }
.tiles { margin-top: 8px; border-top: 1px solid var(--line); }
.tile { display: flex; align-items: center; gap: 28px; padding: 30px 12px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .15s; }
.tile .ic { width: 56px; height: 56px; flex: none; }
.tile .ic svg { width: 100%; height: 100%; display: block; }
.tile h3 { margin: 0; flex: 1; font-size: 22px; font-weight: 600; transition: color .15s; }
.tile i { font-style: normal; font-size: 20px; color: var(--gray); transition: transform .15s, color .15s; }
.tile:hover { background: #fafafa; }
.tile:hover h3, .tile:hover i { color: var(--wine); }
.tile:hover i { transform: translateX(6px); }

/* icon hover animations */
.i-doc .lens { transition: transform .3s; }
.tile:hover .i-doc .lens { animation: scan 1.8s ease-in-out 1 both; }
@keyframes scan { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-10px,-8px); } 50% { transform: translate(-14px,2px); } 75% { transform: translate(-4px,-14px); } }
.i-pub .ln { stroke-dasharray: 1; stroke-dashoffset: 0; }
.i-pub .pen { transform: translate(40px,40px); }
.tile:hover .i-pub .ln { animation: write 1.8s linear 1 both; }
.tile:hover .i-pub .l2 { animation-name: write2; }
.tile:hover .i-pub .l3 { animation-name: write3; }
.tile:hover .i-pub .pen { animation: pen 1.8s linear 1 both; }
@keyframes write  { 0% { stroke-dashoffset: 1; } 28%,100% { stroke-dashoffset: 0; } }
@keyframes write2 { 0%,33% { stroke-dashoffset: 1; } 61%,100% { stroke-dashoffset: 0; } }
@keyframes write3 { 0%,66% { stroke-dashoffset: 1; } 90%,100% { stroke-dashoffset: 0; } }
@keyframes pen { 0% { transform: translate(20px,26px); } 28% { transform: translate(40px,26px); } 33% { transform: translate(20px,33px); } 61% { transform: translate(40px,33px); } 66% { transform: translate(20px,40px); } 90%,100% { transform: translate(34px,40px); } }
.tile:hover .i-wave .sig { animation: flow 1.2s linear 1 both; }
@keyframes flow { from { transform: translateX(0); } to { transform: translateX(-20px); } }
.i-mail .flapF { transform-box: fill-box; transform-origin: 50% 0; transition: transform .16s ease-in .16s; }
.i-mail .flapB { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .16s ease-out; }
.i-mail .letter { transition: transform .3s ease; }
.tile:hover .i-mail .flapF { transform: scaleY(0); transition: transform .16s ease-in; }
.tile:hover .i-mail .flapB { transform: scaleY(1); transition: transform .16s ease-out .16s; }
.tile:hover .i-mail .letter { transform: translateY(-13px); transition: transform .35s ease .3s; }
@media (prefers-reduced-motion: reduce) { .tile:hover .ic * { animation: none !important; transition: none !important; } }
.tile .ic { width: 72px; height: 72px; background: linear-gradient(135deg, #86868b, #47474c); }
.tile { padding: 20px 12px; }
.tile .ic { width: 96px; height: 96px; }
.tile .tt { flex: 1; }
.tile .tt p { margin: 4px 0 0; font-size: 14.5px; color: var(--gray); }
.hero + * , #home + section.wrap { padding-top: 32px; }
.tile .tt p b { font-weight: 600; color: var(--text); margin-right: 6px; }
.tile .tt p b ~ b { margin-left: 2px; }

.tile .ic { background: linear-gradient(135deg, #7a7a7f, #46464b); }
.tile:hover .i-pub .pen { animation-timing-function: steps(14); }
.tile { padding: 16px 12px; gap: 24px; }
.tile .ic { width: 76px; height: 76px; }
.tile h3 { font-size: 20px; }
