@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("assets/fonts/LINESeedKR-Rg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("assets/fonts/LINESeedKR-Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #050505;
  --black-soft: #111111;
  --white: #f4f4f0;
  --muted: #92928d;
  --line: rgba(244, 244, 240, 0.18);
  --orange: #ff6b1a;
  --page-padding: clamp(1.25rem, 3vw, 3.75rem);
  --max-width: 112rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --type-opening: clamp(2.75rem, 7.2vw, 7.5rem);
  --type-hero: clamp(5rem, 15.5vw, 20rem);
  --type-section: clamp(2.25rem, 4.8vw, 5.2rem);
  --type-section-feature: clamp(2.75rem, 6.4vw, 6.5rem);
  --type-project: clamp(2.25rem, 4.8vw, 5rem);
  --type-contact: clamp(2.5rem, 6.5vw, 7rem);
  --project-icon-size: clamp(7.5rem, 11vw, 11rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 107, 26, 0.07), transparent 28rem),
    var(--black);
  color: var(--white);
  font-family: "LINE Seed Sans KR", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

body.is-loading {
  overflow: hidden;
}

.no-js body.is-loading {
  overflow: auto;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: var(--page-padding);
  background: #000;
}

.no-js .opening {
  display: none;
}

.opening::after {
  position: absolute;
  right: var(--page-padding);
  bottom: var(--page-padding);
  width: clamp(2.5rem, 5vw, 5rem);
  height: 0.22rem;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  animation: opening-progress 2.35s 150ms var(--ease-out) forwards;
}

.opening__sequence {
  width: min(100%, 92rem);
}

.opening__line {
  margin: -0.07em 0;
  color: var(--white);
  font-size: var(--type-opening);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  opacity: 0;
  transform: translateX(-105%);
  animation: opening-line 740ms var(--delay) var(--ease-out) forwards;
}

.opening__line--brand {
  color: var(--orange);
}

.opening__index {
  position: absolute;
  top: var(--page-padding);
  right: var(--page-padding);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.opening.is-leaving {
  animation: opening-exit 680ms var(--ease-out) forwards;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(1rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 6.6rem;
  min-height: 2.75rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-size: 0.875rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--orange);
}

.site-nav span {
  margin-left: 0.35rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.site-nav__contact {
  padding: 0 1.15rem;
  border-radius: 0.65rem;
  background: var(--orange);
  color: var(--black);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav__contact:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.75rem var(--page-padding) 0;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 23%;
  right: 5%;
  width: clamp(8rem, 18vw, 20rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 107, 26, 0.68);
  border-radius: 50%;
  content: "";
  opacity: 0.5;
  transform: translate3d(22%, -12%, 0);
}

.hero__wordmark {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__title {
  margin: 0;
  font-size: var(--type-hero);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.8;
}

.hero__word {
  display: block;
}

.hero__word--studio {
  padding-left: clamp(2rem, 24vw, 28rem);
  color: #c7c7c1;
}

.hero__since {
  position: absolute;
  top: 50%;
  left: 0;
  margin: 0.7rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) var(--page-padding);
  border-top: 1px solid var(--line);
}

.section__label {
  display: grid;
  grid-template-columns: minmax(2rem, 7rem) 1fr;
  gap: 1rem;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement__content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.statement__title {
  max-width: 67rem;
  margin: 0;
  font-size: var(--type-section);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.statement__title span {
  color: #777773;
}

.statement__body {
  margin: 0;
  color: #b4b4ae;
  font-size: 1.05rem;
  line-height: 1.8;
}

.work__heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.work__heading h2 {
  margin: 0;
  font-size: var(--type-section-feature);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.work__heading p {
  max-width: 26rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.project {
  display: grid;
  grid-template-columns: 4rem var(--project-icon-size) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 5rem);
  padding: clamp(2rem, 4.5vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

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

.project__number {
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.project__visual {
  position: relative;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: clamp(1.2rem, 2.5vw, 2.4rem);
  background: #f2f0ec;
}

.project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms var(--ease-out),
    filter 700ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

.project__visual .project__image--alternate {
  position: absolute;
  inset: 0;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
}

.project__visual--koin {
  background: #4da089;
}

.project__visual--moto {
  background: #18171b;
}

@media (hover: hover) {
  .project:hover .project__visual img {
    filter: contrast(1.03);
    transform: scale(1.04);
  }

  .project:hover .project__visual--moto .project__image--primary {
    opacity: 0;
  }

  .project:hover .project__visual--moto .project__image--alternate {
    opacity: 1;
    transform: scale(0.92);
  }
}

.project__content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0.9rem rgba(255, 107, 26, 0.72);
}

.project h3 {
  margin: clamp(3.5rem, 8vw, 8rem) 0 1rem;
  font-size: var(--type-project);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.project p {
  max-width: 39rem;
  margin: 0 0 2rem;
  color: #b4b4ae;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.7;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
}

.project__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 3rem;
  gap: 0.6rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, gap 260ms var(--ease-out);
}

.project__link:hover {
  gap: 0.95rem;
  color: var(--orange);
}

.project__link--disabled {
  border-color: var(--line);
  color: var(--muted);
}

.contact {
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

.contact__content p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact__content h2 {
  margin: 0;
  font-size: var(--type-contact);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact__content a {
  transition: color 240ms ease;
}

.contact__content a:hover {
  color: var(--orange);
}

.contact__content a span {
  display: inline-block;
  color: var(--orange);
  font-size: 0.42em;
  transform: translateY(-0.45em);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  min-height: 14rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--page-padding);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer img {
  width: 8.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  justify-self: end;
  min-height: 2.75rem;
  padding-top: 0.7rem;
  color: var(--white);
}

.js .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

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

@keyframes opening-line {
  0% {
    opacity: 0;
    transform: translateX(-105%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes opening-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes opening-exit {
  0% {
    transform: translateY(0);
  }
  100% {
    visibility: hidden;
    transform: translateY(-102%);
  }
}

@media (max-width: 60rem) {
  .statement__content,
  .work__heading {
    grid-template-columns: 1fr;
  }

  .statement__body,
  .work__heading p {
    max-width: 38rem;
  }

  .project {
    grid-template-columns: 2.4rem minmax(9rem, 0.6fr) minmax(0, 1.4fr);
    gap: 1.3rem;
  }

  .project h3 {
    margin-top: 3.5rem;
  }
}

@media (max-width: 42rem) {
  .site-header {
    min-height: 4.2rem;
  }

  .brand {
    width: 5.8rem;
  }

  .site-nav > a:not(.site-nav__contact) {
    display: none;
  }

  .site-nav__contact {
    padding: 0 1rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 4.2rem;
  }

  .hero::after {
    top: 17%;
    right: -8%;
  }

  .hero__word--studio {
    padding-left: 0;
  }

  .hero__since {
    position: static;
    margin-top: 2rem;
  }

  .section__label {
    margin-bottom: 3.5rem;
  }

  .project {
    grid-template-columns: 2rem 1fr;
    padding: 2.5rem 0 3.5rem;
  }

  .project__visual {
    grid-column: 2;
    width: var(--project-icon-size);
  }

  .project__content {
    grid-column: 2;
  }

  .project__meta {
    margin-top: 1.5rem;
  }

  .project h3 {
    margin-top: 3rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer img {
    grid-column: 1 / -1;
  }

  .site-footer p {
    align-self: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .opening {
    display: none;
  }

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