:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  background: #fff8ee;
}

body {
  margin: 0;
  background: #fff8ee;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.apply-page {
  --apply-ink: #2d1714;
  --apply-paper: #fff8ee;
  --apply-orange: #f25b2b;
  --apply-coral: #ff9365;
  --apply-line: rgba(45, 23, 20, 0.16);
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(45, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 23, 20, 0.035) 1px, transparent 1px),
    var(--apply-paper);
  background-size: 32px 32px;
  color: var(--apply-ink);
  font-family:
    "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.apply-page *,
.apply-page *::before,
.apply-page *::after {
  box-sizing: border-box;
}

.apply-page a {
  text-decoration: none;
}

.apply-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-160%);
}

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

.apply-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 88px;
  padding: 18px clamp(22px, 4vw, 64px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--apply-line);
  background: rgba(255, 248, 238, 0.9);
  backdrop-filter: blur(18px);
}

.apply-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apply-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.apply-brand b,
.apply-brand small {
  display: block;
}

.apply-brand b {
  font-family: "Arial Black", "Apple SD Gothic Neo", sans-serif;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.apply-brand small {
  margin-top: 2px;
  color: var(--apply-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.apply-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.apply-header nav > a {
  font-size: 14px;
  font-weight: 800;
}

.apply-header-cta {
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--apply-ink);
  color: var(--apply-paper) !important;
}

.apply-hero {
  display: grid;
  min-height: calc(100vh - 88px);
  grid-template-columns: minmax(440px, 0.92fr) minmax(480px, 1.08fr);
  border-bottom: 1px solid var(--apply-line);
}

.apply-hero-copy {
  display: flex;
  padding: clamp(58px, 8vw, 128px) clamp(26px, 6vw, 104px);
  flex-direction: column;
  justify-content: center;
}

.apply-kicker {
  display: flex;
  margin-bottom: clamp(48px, 8vh, 92px);
  align-items: center;
  justify-content: space-between;
  color: var(--apply-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.apply-eyebrow {
  margin: 0 0 13px;
  color: var(--apply-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.apply-hero h1 {
  margin: 0;
  font-family: "Arial Black", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(50px, 5.1vw, 82px);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

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

.apply-actions {
  display: flex;
  margin-top: 44px;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.apply-primary-button {
  display: inline-flex;
  min-height: 58px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-radius: 999px;
  background: var(--apply-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(196, 57, 19, 0.2);
  transition: transform 180ms ease, background 180ms ease;
}

.apply-primary-button:hover {
  background: var(--apply-ink);
  transform: translateY(-2px);
}

.apply-text-link {
  padding: 12px 4px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 800;
}

.apply-hero-art {
  position: relative;
  display: grid;
  min-height: 640px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 64px);
  place-items: center;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 241, 207, 0.45), transparent 25%),
    radial-gradient(ellipse at 50% 100%, rgba(87, 37, 24, 0.24), transparent 45%),
    var(--apply-orange);
}

.apply-hero-art::before {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(255, 248, 238, 0.42);
  border-radius: 32px;
  content: "";
}

.apply-hero-poster {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 238, 0.42);
  border-radius: clamp(24px, 3vw, 48px);
  box-shadow: 0 32px 80px rgba(94, 23, 8, 0.26);
  object-fit: cover;
}

.apply-hierarchy {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px clamp(24px, 5vw, 76px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(16px, 2.8vw, 44px);
  border-bottom: 1px solid var(--apply-line);
}

.apply-hierarchy-item {
  min-width: 0;
}

.apply-hierarchy-item span,
.apply-hierarchy-item strong {
  display: block;
}

.apply-hierarchy-item span {
  margin-bottom: 7px;
  color: var(--apply-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.apply-hierarchy-item strong {
  overflow: hidden;
  font-family: "Arial Black", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply-character,
.apply-format {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 170px) clamp(24px, 5vw, 76px);
}

.apply-section-intro {
  max-width: 820px;
}

.apply-section-intro h2,
.apply-format h2,
.apply-final h2 {
  margin: 0;
  font-family: "Arial Black", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1.03;
  word-break: keep-all;
}

.apply-character-tags {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 9px;
}

h2.apply-character-title {
  font-size: clamp(50px, 5.1vw, 82px);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.98;
  white-space: nowrap;
}

.apply-character .apply-section-intro {
  max-width: none;
}

.apply-character-tags span {
  padding: 10px 14px;
  border: 1px solid var(--apply-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.apply-format-heading > button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--apply-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--apply-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.apply-character-visuals {
  display: grid;
  margin-top: 50px;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1.58fr);
  gap: 20px;
}

.apply-character-visuals figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--apply-line);
  border-radius: 22px;
  background: #fff;
}

.apply-character-visuals figure img {
  display: block;
  width: 100%;
  height: auto;
}

.apply-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.apply-image-button img {
  transition: transform 220ms ease;
}

.apply-image-button:hover img {
  transform: scale(1.012);
}

.apply-character-visuals figcaption {
  padding: 15px 19px;
  border-top: 1px solid var(--apply-line);
  color: rgba(45, 23, 20, 0.55);
  font-size: 14px;
  font-weight: 800;
}

.apply-fullbody-visual img,
.apply-key-visual img {
  height: 650px;
}

.apply-fullbody-visual img {
  padding: 24px 14px 0;
  background: linear-gradient(145deg, #fff0de, #ffc096);
  object-fit: contain;
  object-position: bottom center;
}

.apply-key-visual img {
  object-fit: cover;
}

.apply-sheet-grid {
  display: grid;
  margin-top: 20px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.apply-sheet-grid img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.apply-lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 32px;
  place-items: center;
  background: rgba(24, 10, 8, 0.94);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
  overscroll-behavior: contain;
}

.apply-lightbox figure {
  display: grid;
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 64px);
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  cursor: default;
}

.apply-lightbox figure img {
  display: block;
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 118px);
  object-fit: contain;
}

.apply-lightbox figcaption {
  padding: 14px 20px;
  border-top: 1px solid var(--apply-line);
  color: var(--apply-ink);
  font-size: 14px;
  font-weight: 800;
}

.apply-lightbox-close {
  position: fixed;
  z-index: 1;
  top: 22px;
  right: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--apply-ink);
  cursor: pointer;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.apply-conditions {
  padding: clamp(90px, 11vw, 170px) clamp(24px, 8vw, 128px);
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 147, 101, 0.22), transparent 24%),
    var(--apply-ink);
  color: var(--apply-paper);
}

.apply-conditions > * {
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
}

.apply-section-intro--light .apply-eyebrow {
  color: var(--apply-coral);
}

.apply-conditions ol {
  margin-top: 62px;
  padding: 0;
  border-top: 1px solid rgba(255, 248, 238, 0.24);
  list-style: none;
}

.apply-conditions li {
  display: grid;
  min-height: 150px;
  padding: 28px 0;
  grid-template-columns: minmax(70px, 0.18fr) 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 248, 238, 0.24);
}

.apply-conditions li > span {
  color: var(--apply-coral);
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
}

.apply-conditions li div {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) 1fr;
  align-items: center;
  gap: 34px;
}

.apply-conditions h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.04em;
}

.apply-conditions li p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 248, 238, 0.68);
  font-size: 16px;
  font-weight: 620;
  line-height: 1.7;
  word-break: keep-all;
}

.apply-format-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.apply-format-heading > button:hover,
.apply-format-heading > button:focus-visible {
  background: var(--apply-ink);
  color: var(--apply-paper);
}

.apply-format-grid {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--apply-ink);
  border-bottom: 2px solid var(--apply-ink);
}

.apply-format-grid article {
  min-height: 300px;
  padding: 26px 22px;
  border-right: 1px solid var(--apply-line);
}

.apply-format-grid article:last-child {
  border-right: 0;
}

.apply-format-grid article > span {
  color: var(--apply-orange);
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
}

.apply-format-grid h3 {
  margin: 48px 0 20px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.apply-format-grid ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(45, 23, 20, 0.65);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.apply-final {
  display: grid;
  max-width: 1320px;
  margin: 0 auto clamp(70px, 9vw, 130px);
  padding: clamp(36px, 5vw, 68px);
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  border-radius: 36px;
  background: var(--apply-orange);
  color: #fff;
}

.apply-final > img {
  width: 84px;
  filter: brightness(0) invert(1);
}

.apply-final .apply-eyebrow {
  color: #fff3ae;
}

.apply-final h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.apply-final h2 span {
  display: block;
}

.apply-final p:last-child {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.apply-final .apply-primary-button {
  background: #fff;
  color: var(--apply-ink);
  white-space: nowrap;
}

.apply-footer {
  display: flex;
  min-height: 88px;
  padding: 24px clamp(24px, 5vw, 76px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--apply-line);
  font-size: 13px;
  font-weight: 800;
}

.apply-footer span {
  font-weight: 900;
  letter-spacing: 0.05em;
}

.apply-footer a {
  border-bottom: 1px solid currentColor;
}

.apply-page button:focus-visible,
.apply-page a:focus-visible {
  outline: 3px solid var(--apply-orange);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .apply-header nav > a:not(.apply-header-cta) {
    display: none;
  }

  .apply-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .apply-hero-copy {
    min-height: 680px;
  }

  .apply-hero h1 {
    font-size: clamp(64px, 9vw, 86px);
  }

  .apply-hero-art {
    min-height: 0;
  }

  .apply-character-visuals {
    grid-template-columns: 1fr;
  }

  .apply-fullbody-visual img {
    height: 700px;
  }

  .apply-key-visual img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .apply-format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apply-format-grid article:nth-child(2) {
    border-right: 0;
  }

  .apply-format-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--apply-line);
  }

  .apply-conditions li div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .apply-final {
    margin-right: 24px;
    margin-left: 24px;
    grid-template-columns: 64px 1fr;
  }

  .apply-final > img {
    width: 64px;
  }

  .apply-final .apply-primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .apply-header {
    min-height: 72px;
    padding: 13px 18px;
  }

  .apply-brand img {
    width: 38px;
    height: 38px;
  }

  .apply-brand b {
    font-size: 15px;
  }

  .apply-brand small {
    font-size: 9px;
  }

  .apply-header-cta {
    padding: 10px 13px;
    font-size: 13px !important;
  }

  .apply-hero-copy {
    min-height: 560px;
    padding: 48px 22px 60px;
  }

  .apply-kicker {
    margin-bottom: 58px;
  }

  .apply-hero h1 {
    font-size: clamp(42px, 11.2vw, 58px);
  }

  .apply-primary-button {
    width: 100%;
  }

  .apply-hero-art {
    padding: 20px;
  }

  .apply-hero-art::before {
    inset: 12px;
    border-radius: 22px;
  }

  .apply-hero-poster {
    border-radius: 22px;
  }

  .apply-hierarchy {
    padding-top: 26px;
    padding-bottom: 26px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apply-hierarchy-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: center;
  }

  .apply-hierarchy-item span {
    margin: 0;
  }

  .apply-hierarchy-item strong {
    font-size: 18px;
  }

  .apply-character,
  .apply-format {
    padding: 88px 20px;
  }

  .apply-section-intro h2,
  .apply-format h2 {
    font-size: 40px;
  }

  h2.apply-character-title {
    white-space: normal;
  }

  .apply-format-grid {
    grid-template-columns: 1fr;
  }

  .apply-format-grid article,
  .apply-format-grid article:nth-child(2) {
    min-height: 0;
    padding: 26px 18px 34px;
    border-top: 1px solid var(--apply-line);
    border-right: 0;
  }

  .apply-format-grid article:first-child {
    border-top: 0;
  }

  .apply-format-grid h3 {
    margin-top: 34px;
  }

  .apply-character-tags {
    margin-top: 22px;
  }

  .apply-fullbody-visual img {
    height: 560px;
  }

  .apply-sheet-grid {
    grid-template-columns: 1fr;
  }

  .apply-character-visuals,
  .apply-sheet-grid {
    margin-top: 14px;
  }

  .apply-lightbox {
    padding: 14px;
  }

  .apply-lightbox figure {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    border-radius: 14px;
  }

  .apply-lightbox figure img {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 76px);
  }

  .apply-lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .apply-conditions {
    padding: 86px 22px;
  }

  .apply-conditions li {
    grid-template-columns: 52px 1fr;
  }

  .apply-conditions li > span {
    font-size: 25px;
  }

  .apply-conditions h3 {
    font-size: 20px;
  }

  .apply-conditions li p {
    font-size: 15px;
  }

  .apply-format-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .apply-format-heading > button {
    width: 100%;
  }

  .apply-format-grid article {
    min-height: 240px;
  }

  .apply-final {
    margin: 0 16px 70px;
    padding: 30px 22px;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .apply-final > img {
    width: 54px;
  }

  .apply-final h2 {
    font-size: 38px;
  }

  .apply-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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