@font-face {
  font-family: 'Noto Sans KR';
  src: url('noto-sans-kr.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('geist.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4f1e9;
  --ink: #1b1f18;
  --muted: #57584d;
  --line: #cfcbbf;
  --work: #20241e;
  --work-line: #5a5d51;
  --work-text: #ddddd1;
  --accent: #e4ec9c;
  --rust: #8f392c;
  --gutter: clamp(1.25rem, 5.1vw, 6.25rem);
  --sans: Geist, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
:target { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - var(--gutter) * 2, 88rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--accent);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  justify-self: start;
  font-weight: 650;
  font-size: 1.17rem;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--rust); }
.site-nav, .languages { display: flex; align-items: center; }
.site-nav { gap: clamp(.9rem, 2.55vw, 2.75rem); }
.site-nav a, .languages a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.languages { justify-self: end; gap: .15rem; }
.languages a {
  min-width: 2.65rem;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}
.languages a[aria-current='page'] { color: var(--ink); font-weight: 650; }
.languages a:hover { background: #e8e4d9; }

.hero {
  min-height: min(45rem, 82svh);
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.65rem, 5vw, 5.5rem);
  padding-block: clamp(3.2rem, 6.2vw, 6rem);
}
.hero-copy { padding-bottom: .25rem; }
.role { font-size: .95rem; font-weight: 600; color: var(--muted); }
.hero-title {
  margin: clamp(1.1rem, 2.6vw, 2rem) 0 clamp(1.5rem, 2.55vw, 2.25rem);
  font-size: clamp(4rem, 10.7vw, 10rem);
  font-weight: 500;
  letter-spacing: -.068em;
  line-height: .79;
}
.hero-title em {
  display: block;
  padding: .11em .07em .08em 0;
  font: italic 400 .93em/.91 var(--serif);
  letter-spacing: -.047em;
  white-space: nowrap;
}
.lead {
  max-width: 25rem;
  color: #3e4035;
  font-size: clamp(1.05rem, 1.54vw, 1.31rem);
  line-height: 1.57;
  letter-spacing: -.023em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.45rem; margin-top: 1.65rem; }
.button, .contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: .62rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 550;
  font-size: .94rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}
.button { color: var(--paper); background: var(--ink); }
.button:hover { color: var(--ink); background: var(--accent); }
.button:focus-visible { outline-color: var(--ink); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .29em;
}
.text-link:hover { text-decoration-thickness: 2px; }
.hero-image { width: 100%; max-width: 29rem; margin-inline: auto 0; background: #712a22; }
.hero-image img { width: 100%; aspect-ratio: 4 / 4.57; height: auto; object-fit: cover; object-position: 50% 48%; }

.work { color: var(--paper); background: var(--work); }
.work-inner { padding-block: clamp(3.65rem, 7vw, 7rem); }
.section-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.section-header h2, .about h2, .contact h2 {
  font-weight: 500;
  font-size: clamp(2.5rem, 5.8vw, 5.45rem);
  line-height: .99;
  letter-spacing: -.075em;
}
:lang(ko) .section-header h2, :lang(ko) .about h2, :lang(ko) .contact h2 { font-size: clamp(2.15rem, 4.8vw, 4.85rem); line-height: 1.15; letter-spacing: -.075em; }
.section-header .text-link { color: var(--accent); }
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(1.7rem, 5vw, 5rem);
  margin-top: clamp(1.9rem, 4vw, 3.5rem);
}
.feature + .feature { padding-top: clamp(1rem, 5.3vw, 5.25rem); }
.project-frame {
  display: grid;
  place-items: center;
  padding: clamp(.85rem, 2.5vw, 2.3rem);
  overflow: hidden;
  background: #818d70;
  aspect-ratio: 1.58;
}
.project-frame.eujobs { background: #cfb49a; }
.project-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 8px 24px #1018103b;
  transition: transform 350ms ease;
}
@media (hover: hover) { .project-frame:hover img { transform: scale(1.035); } }
.feature-info { margin-top: 1.45rem; }
.project-kind, .index-kind { font-size: .9rem; color: var(--work-text); }
.feature h3 { font-size: clamp(2.15rem, 3.85vw, 3.6rem); font-weight: 500; letter-spacing: -.053em; line-height: 1.07; margin: .35rem 0 .65rem; }
.feature-info > p:last-of-type, .index-detail p { color: var(--work-text); max-width: 34rem; }
.link-list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .35rem; }
.work .link-list a:hover { color: var(--accent); }

.project-index {
  margin-top: clamp(3rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(9rem, .34fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.project-index h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; padding-top: 1rem; letter-spacing: -.04em; }
.index-rows { border-top: 1px solid var(--work-line); }
.index-rows details { border-bottom: 1px solid var(--work-line); }
.index-rows summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) 1.35rem;
  gap: 1rem;
  align-items: center;
  min-height: 4.55rem;
  padding: .72rem .15rem;
  list-style: none;
  cursor: pointer;
}
.index-rows summary::-webkit-details-marker { display: none; }
.index-rows summary:hover .index-name, details[open] .index-name { color: var(--accent); }
.index-name { font: italic 400 clamp(2.05rem, 3.55vw, 3.45rem)/1.05 var(--serif); }
.index-icon { position: relative; display: block; width: 1.2rem; height: 1.2rem; }
.index-icon::before, .index-icon::after {
  content: '';
  position: absolute;
  inset: 50% 12% auto;
  border-top: 1px solid currentColor;
}
.index-icon::after { transform: rotate(90deg); }
details[open] .index-icon::after { display: none; }
.index-detail { padding: .05rem 1rem .9rem .15rem; }

.about { display: grid; grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr); gap: clamp(1rem, 6vw, 5.75rem); padding-block: clamp(4rem, 9vw, 8.75rem); }
.about-label, .contact-label { font-size: .94rem; font-weight: 600; }
.about-label { padding-top: .32rem; color: var(--muted); }
.about h2 { max-width: 48rem; }
.about-body { max-width: 40rem; margin-top: 1.65rem; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #414337; line-height: 1.7; }
.about-body p + p { margin-top: 1.1rem; }
.contact { background: var(--accent); }
.contact-inner { padding-top: clamp(3rem, 6.8vw, 6.2rem); }
.contact h2 { margin-block: .75rem 1.15rem; }
.contact-intro > p:last-of-type { max-width: 31rem; color: #383d26; }
.contact-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.45rem; }
.contact-link:hover { color: var(--accent); background: var(--ink); }
.footer-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-top: 1px solid #abb472;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-block: .75rem;
}

@media (max-width: 780px) {
  .hero { gap: 1.6rem; min-height: 0; padding-block: 4rem 3.75rem; }
  .hero-title { font-size: clamp(3.2rem, 10.6vw, 6rem); }
  .featured { gap: 1.55rem; }
  .project-index, .about { grid-template-columns: minmax(7rem, .33fr) minmax(0, 1fr); }
}

@media (max-width: 580px) {
  .site-header { grid-template-columns: 1fr auto; column-gap: .65rem; row-gap: 0; min-height: 0; padding-top: .45rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.55rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2.65rem 2.75rem; gap: 2rem; }
  .hero-title { font-size: clamp(3.65rem, 15.45vw, 6rem); margin-block: 1.15rem 1.25rem; }
  .hero-actions { gap: 1.15rem; margin-top: 1.25rem; }
  .hero-image { max-width: none; }
  .hero-image img { aspect-ratio: 1.08; object-position: 50% 30%; }
  .featured, .project-index, .about { grid-template-columns: minmax(0, 1fr); }
  .featured { gap: 2.2rem; }
  .feature + .feature { padding-top: 0; }
  .feature-info { margin-top: 1.15rem; }
  .project-index h3 { padding-top: 0; }
  .index-rows summary { grid-template-columns: minmax(0, 1fr) 1.25rem; gap: .22rem .75rem; min-height: 4.6rem; }
  .index-kind { grid-row: 2; line-height: 1.15; }
  .index-icon { grid-column: 2; grid-row: 1 / span 2; }
  .about { row-gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
