:root {
  --paper: #f2f0e8;
  --ink: #131313;
  --muted: #77766f;
  --line: rgba(19, 19, 19, 0.22);
  --acid: #d9ff43;
  --white: #fffef7;
  --page-gutter: clamp(1.25rem, 3.2vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translate(-50%, -120%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0.5rem);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--page-gutter);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(242, 240, 232, 0.9);
  backdrop-filter: blur(14px);
}

.wordmark {
  justify-self: start;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark span {
  position: relative;
  top: -0.45em;
  margin-left: 0.12rem;
  font-size: 0.45em;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.8rem);
  font-size: 0.82rem;
  font-weight: 600;
}

nav a,
footer a {
  position: relative;
}

nav a::after,
footer a::after {
  position: absolute;
  bottom: -0.24rem;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
footer a:hover::after,
footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.availability {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.availability span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #7bd43c;
  box-shadow: 0 0 0 0 rgba(123, 212, 60, 0.6);
  animation: ping 2.2s infinite;
}

@keyframes ping {
  55% {
    box-shadow: 0 0 0 0.38rem rgba(123, 212, 60, 0);
  }
}

.hero {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem var(--page-gutter) 2.5rem;
}

.hero-kicker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker span:nth-child(2) {
  justify-self: center;
}

.hero-kicker span:last-child {
  justify-self: end;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: auto 0;
  font-size: clamp(3.75rem, 10.5vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.84;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-indent {
  align-self: flex-end;
}

.hero h1 em,
.about-copy h2 em,
.contact-section h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 em {
  position: relative;
  z-index: 1;
}

.hero h1 em::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.02em;
  left: -0.02em;
  z-index: -1;
  height: 0.22em;
  content: "";
  background: var(--acid);
  transform: rotate(-1deg);
}

.hero-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.hero-footer p {
  max-width: 27rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.98rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.round-link {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.round-link:hover,
.round-link:focus-visible {
  background: var(--ink);
  color: var(--acid);
  transform: translateY(0.25rem);
}

.round-link svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.work-section {
  padding: 8rem var(--page-gutter) 10rem;
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 254, 247, 0.28);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.section-heading > span {
  color: var(--acid);
  font-size: 0.75rem;
  vertical-align: top;
}

.section-heading p {
  justify-self: end;
  color: #a5a49e;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 12rem;
}

.project {
  min-width: 0;
}

.project-large {
  grid-column: 1 / 10;
}

.project-medium {
  grid-column: 5 / 13;
}

.project-tall {
  grid-column: 2 / 8;
}

.project figure {
  position: relative;
  overflow: hidden;
  background: #e6e4db;
}

.project img {
  transition: transform 800ms cubic-bezier(0.18, 0.8, 0.2, 1), filter 450ms ease;
}

.project-large img {
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  object-position: center 23%;
}

.project-medium img {
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.project-tall img {
  aspect-ratio: 0.9 / 1;
  object-fit: cover;
  object-position: center 18%;
}

.project a:hover img,
.project a:focus-visible img {
  filter: contrast(1.04);
  transform: scale(1.025);
}

.project-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: rgba(242, 240, 232, 0.88);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.project-meta-light {
  background: rgba(19, 19, 19, 0.78);
  color: var(--white);
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 1.2rem;
}

.project h3 {
  font-size: clamp(1.9rem, 4.3vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.project-arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 254, 247, 0.4);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.project a:hover .project-arrow,
.project a:focus-visible .project-arrow {
  background: var(--acid);
  color: var(--ink);
  transform: rotate(45deg);
}

.about-section {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 2rem;
  padding: 9rem var(--page-gutter) 12rem;
}

.section-label {
  display: flex;
  height: fit-content;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.about-copy h2 {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(2.5rem, 6.2vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

.about-copy h2 em {
  padding: 0 0.06em;
  font-size: 1.03em;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 58rem;
  margin: 6rem 0 7rem auto;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.85;
  word-break: keep-all;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: center;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.services li:last-child {
  border-bottom: 1px solid var(--line);
}

.services span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 10rem var(--page-gutter) 5rem;
  background: var(--acid);
  color: var(--ink);
}

.contact-section > p {
  margin-bottom: 3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section h2 {
  max-width: 11ch;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.84;
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8rem;
  padding: 1.5rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.3rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.email-link span {
  transition: transform 200ms ease;
}

.email-link:hover span,
.email-link:focus-visible span {
  transform: translate(0.25rem, -0.25rem);
}

.contact-orbit {
  position: absolute;
  top: 4.8rem;
  right: var(--page-gutter);
  display: grid;
  width: 9rem;
  height: 9rem;
  place-items: center;
  border: 1px solid rgba(19, 19, 19, 0.35);
  border-radius: 50%;
}

.contact-orbit::after {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  content: "";
  background: var(--ink);
}

.contact-orbit span {
  position: absolute;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: orbit 14s linear infinite;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--page-gutter);
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #4c68ff;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .availability {
    font-size: 0.66rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-kicker {
    grid-template-columns: 1fr 1fr;
  }

  .hero-kicker span:nth-child(2) {
    display: none;
  }

  .hero-kicker span:last-child {
    justify-self: end;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15.2vw, 6.4rem);
    line-height: 0.9;
  }

  .hero h1 span,
  .hero h1 .hero-indent {
    align-self: auto;
    white-space: normal;
  }

  .hero-footer p br {
    display: none;
  }

  .hero-footer p {
    max-width: 19rem;
    padding-right: 2rem;
  }

  .round-link {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
  }

  .work-section {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .section-heading {
    grid-template-columns: auto auto;
    margin-bottom: 3.5rem;
  }

  .section-heading p {
    display: none;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    gap: 7rem;
  }

  .project-large img,
  .project-medium img {
    aspect-ratio: 1.15 / 1;
  }

  .project-tall img {
    aspect-ratio: 0.82 / 1;
  }

  .project-meta {
    padding: 0.75rem;
    font-size: 0.62rem;
  }

  .project h3 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .about-section {
    display: block;
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .section-label {
    margin-bottom: 4rem;
  }

  .about-copy h2 {
    font-size: clamp(2.4rem, 11vw, 5rem);
    line-height: 1.12;
    word-break: keep-all;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 4rem 0 5rem;
  }

  .services li {
    grid-template-columns: 3rem 1fr;
  }

  .contact-section {
    padding-top: 8rem;
  }

  .contact-section h2 {
    font-size: clamp(3.5rem, 16vw, 7rem);
  }

  .contact-orbit {
    top: 2.5rem;
    right: 1.5rem;
    width: 6rem;
    height: 6rem;
  }

  .contact-orbit span {
    display: none;
  }

  .email-link {
    margin-top: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
