@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("./assets/fonts/SchibstedGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("./assets/fonts/NotoSansKR-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
}

:root {
  color-scheme: dark;
  --black: #010101;
  --ink: #f3f3f3;
  --muted: #bfbfbf;
  --line: rgba(243, 243, 243, 0.28);
  --panel: rgba(229, 229, 229, 0.045);
  --lemon: #efff80;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--black);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
}

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: none;
  animation: loader-exit 3.65s linear forwards;
}

.intro-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  animation: loader-backdrop 3s linear forwards;
}

.intro-loader img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(680px, 64vw);
  height: auto;
  filter:
    invert(1)
    drop-shadow(0 0 20px rgba(243, 243, 243, 0.12));
  opacity: 0;
  transform: translateX(14%) scale(0.99);
  animation: loader-mark 3.2s linear forwards;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 84px);
  opacity: 0;
  transform: translateY(10px);
  animation: page-enter 1300ms cubic-bezier(0.16, 1, 0.3, 1) 3.05s forwards;
}

.landing-copy {
  width: min(780px, 100%);
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(282px, 72vw);
  height: auto;
  margin: 0 auto clamp(28px, 3.6vw, 42px);
  filter: invert(1);
}

.organized-by {
  margin: 18px 0 0;
  color: rgba(243, 243, 243, 0.58);
  font-family: "Schibsted Grotesk", "Space Grotesk", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.035em;
}

h1 span {
  display: block;
}

.line-light {
  font-weight: 400;
  color: rgba(243, 243, 243, 0.78);
  text-shadow: 0 0 0 transparent;
}

.intro {
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
}

.principles {
  display: grid;
  gap: clamp(16px, 2vw, 25px);
  margin: clamp(36px, 4.5vw, 58px) 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  text-align: left;
}

.index {
  color: var(--lemon);
  font-family: "Space Grotesk", "Schibsted Grotesk", system-ui, sans-serif;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.35;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", "Schibsted Grotesk", system-ui, sans-serif;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.principles p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 450;
  line-height: 1.6;
  word-break: keep-all;
}

.cta-panel {
  width: min(420px, 100%);
  margin: clamp(40px, 4.7vw, 58px) auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.5;
}

.apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--lemon);
  border-radius: 3px;
  background: var(--lemon);
  color: var(--black);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: lowercase;
  box-shadow:
    0 0 18px rgba(239, 255, 128, 0.22),
    0 0 46px rgba(239, 255, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.apply-link:hover,
.apply-link:focus-visible {
  border-color: var(--lemon);
  background: #f5ff9e;
  color: var(--black);
  box-shadow:
    0 0 24px rgba(239, 255, 128, 0.34),
    0 0 72px rgba(239, 255, 128, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
  outline: none;
}

@keyframes loader-mark {
  0% {
    opacity: 0;
    transform: translateX(14%) scale(0.99);
  }

  12% {
    opacity: 0.06;
  }

  24% {
    opacity: 0.18;
  }

  36% {
    opacity: 0.36;
  }

  48% {
    opacity: 0.62;
  }

  60%,
  86% {
    opacity: 0.94;
  }

  93% {
    opacity: 0.42;
  }

  100% {
    opacity: 0;
    transform: translateX(14%) scale(0.99);
  }
}

@keyframes loader-exit {
  0%,
  99% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    visibility: hidden;
  }
}

@keyframes loader-backdrop {
  0%,
  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes page-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .page-shell {
    align-items: flex-start;
    padding: 34px 24px;
  }

  .principles li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .apply-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader {
    display: none;
  }

  .intro-loader img,
  .page-shell {
    animation: none;
  }

  .page-shell {
    opacity: 1;
    transform: none;
  }
}

.application-page {
  min-height: 100svh;
  background: var(--black);
}

.application-shell {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 4vw, 54px);
}

.back-link {
  position: fixed;
  left: clamp(22px, 4vw, 54px);
  bottom: clamp(22px, 4vw, 48px);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  text-decoration: none;
  opacity: 0.9;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--lemon);
  outline: none;
}

.application-copy {
  width: min(720px, 100%);
}

.application-logo {
  display: block;
  width: min(190px, 58vw);
  height: auto;
  margin: 0 auto clamp(18px, 3vw, 32px);
  filter: invert(1);
}

.application-kicker {
  margin: 0 0 8px;
  color: var(--lemon);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  text-align: center;
}

.application-copy h1 {
  margin: 0 0 clamp(26px, 4vw, 42px);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
}

.application-form {
  display: block;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  gap: clamp(22px, 3.1vw, 34px);
}

.application-form label {
  display: grid;
  gap: 10px;
}

.application-form span {
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.35;
}

.application-form input,
.application-form textarea {
  width: 100%;
  border: 1px solid rgba(243, 243, 243, 0.48);
  border-radius: 0;
  background: rgba(243, 243, 243, 0.1);
  color: var(--ink);
  font: 400 clamp(14px, 1.4vw, 18px) / 1.4 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0;
  outline: none;
}

.application-form input {
  min-height: 46px;
  padding: 9px 13px;
}

.application-form textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

.application-form input:focus,
.application-form textarea:focus {
  border-color: var(--lemon);
  box-shadow: 0 0 0 1px rgba(239, 255, 128, 0.32);
}

.application-form button {
  justify-self: center;
  min-width: 94px;
  min-height: 40px;
  margin-top: 2px;
  border: 1px solid var(--lemon);
  border-radius: 3px;
  background: var(--lemon);
  color: var(--black);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(239, 255, 128, 0.22),
    0 0 46px rgba(239, 255, 128, 0.08);
}

.application-form button:hover,
.application-form button:focus-visible {
  background: #f5ff9e;
  box-shadow:
    0 0 24px rgba(239, 255, 128, 0.34),
    0 0 72px rgba(239, 255, 128, 0.16);
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.application-form .ghost-button {
  border-color: rgba(243, 243, 243, 0.42);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.application-form .ghost-button:hover,
.application-form .ghost-button:focus-visible {
  border-color: var(--lemon);
  background: rgba(239, 255, 128, 0.08);
  color: var(--lemon);
  box-shadow: none;
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 700px) {
  .application-shell {
    align-items: flex-start;
  }

  .application-form button {
    width: 100%;
  }
}

.submitted-page {
  min-height: 100svh;
  background: var(--black);
}

.submitted-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(34px, 5vw, 72px);
}

.submitted-copy {
  width: min(620px, 100%);
  text-align: center;
}

.submitted-logo {
  display: block;
  width: min(214px, 58vw);
  height: auto;
  margin: 0 auto clamp(24px, 3vw, 38px);
  filter: invert(1);
}

.submitted-copy h1 {
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.submitted-copy p:not(.submitted-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
}

.submitted-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 34px;
  padding: 10px 16px;
  border: 1px solid rgba(243, 243, 243, 0.34);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  text-decoration: none;
}

.submitted-link:hover,
.submitted-link:focus-visible {
  border-color: var(--lemon);
  color: var(--lemon);
  outline: none;
}
