:root {
  --ink: #f7f4ef;
  --muted: #aaa29a;
  --line: #2a2724;
  --paper: #0a0908;
  --soft: #151311;
  --panel: #11100e;
  --accent: #d7c2aa;
  --hot: #b42535;
  --max: 1240px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(180, 37, 53, 0.16), transparent 28rem),
    linear-gradient(180deg, #0a0908 0%, #0f0d0b 46%, #070606 100%);
  color: var(--ink);
  font-family: "Inter", "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 54px);
  background: rgba(10, 9, 8, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, height 180ms ease;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.brand {
  display: grid;
  gap: 2px;
  letter-spacing: 0.14em;
}

.brand-main {
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.desktop-nav {
  display: none;
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle,
.menu-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 220ms ease;
}

.site-menu.is-open {
  background: rgba(255, 255, 255, 0.12);
  pointer-events: auto;
}

.menu-panel {
  width: min(390px, 86vw);
  height: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #0e0c0b;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.site-menu.is-open .menu-panel {
  transform: translateX(0);
}

.menu-close {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  font-size: 34px;
  line-height: 1;
}

.menu-panel a {
  font-size: clamp(27px, 7vw, 46px);
  font-weight: 900;
  line-height: 1;
}

.menu-meta {
  margin-top: auto;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.menu-meta strong {
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 0 clamp(16px, 3vw, 42px) clamp(72px, 8vw, 102px);
  overflow: hidden;
}

.hero-track {
  position: relative;
  height: min(660px, 68vh);
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.22)),
    var(--bg);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 650ms ease, transform 650ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  width: min(720px, 88vw);
  padding: clamp(30px, 6vw, 72px);
  color: #ffffff;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.68);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: min(760px, 56vw);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 950;
  line-height: 0.94;
}

.hero p:not(.eyebrow) {
  max-width: 510px;
  margin: 22px 0 0;
  color: rgba(247, 244, 239, 0.84);
  font-size: clamp(15px, 1.8vw, 19px);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-link::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--accent);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) 0;
  scroll-margin-top: 150px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 950;
}

.section-head a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.media-section {
  padding-top: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
  border: 1px solid var(--line);
  filter: grayscale(28%) contrast(1.08) brightness(0.84);
  transition: filter 220ms ease, transform 220ms ease;
}

.media-card span {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.media-card:hover img {
  filter: grayscale(0%) contrast(1.04) brightness(0.96);
  transform: translateY(-2px);
}

.media-card time,
.release-body time {
  color: var(--muted);
  font-size: 12px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.release-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.release-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(35%) contrast(1.08) brightness(0.86);
  transition: filter 220ms ease, transform 220ms ease;
}

.release-card:hover img {
  filter: grayscale(0%) contrast(1.04) brightness(0.94);
  transform: translateY(-2px);
}

.release-body {
  padding: 18px;
}

.release-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.notice-board {
  border-top: 2px solid var(--accent);
}

.notice-board a {
  display: grid;
  grid-template-columns: 72px 1fr 130px;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding-left 180ms ease;
}

.notice-board a:hover {
  padding-left: 14px;
  background: rgba(215, 194, 170, 0.06);
}

.notice-board span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.notice-board strong {
  min-width: 0;
  font-size: 16px;
}

.notice-board time {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.site-footer {
  display: grid;
  grid-template-columns: 138px 1fr auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 56px clamp(22px, 4vw, 54px);
  background: #f7f4ef;
  color: #0a0908;
}

.footer-logo {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.footer-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.footer-info {
  display: grid;
  gap: 4px;
}

.footer-info strong {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.footer-info p,
.copyright {
  margin: 0;
  color: rgba(10, 9, 8, 0.62);
  font-size: 13px;
}

.copyright {
  align-self: end;
  text-align: right;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .media-grid,
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .copyright {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .brand-main {
    font-size: 18px;
  }

  .hero {
    padding: 0 12px 52px;
  }

  .hero-track {
    height: 62vh;
    min-height: 430px;
  }

  .hero-slide {
    background-position: 80% center;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero h1,
  .hero h2 {
    max-width: 100%;
    font-size: clamp(28px, 8.8vw, 34px);
  }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 54px 0;
  }

  .media-grid,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .notice-board a {
    grid-template-columns: 48px 1fr;
    gap: 8px 12px;
    padding: 15px 0;
  }

  .notice-board time {
    grid-column: 2;
    text-align: left;
  }

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

.menu-panel {
  width: 100%;
  padding: clamp(34px, 5vw, 72px);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.menu-logo {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: 0.1em;
}

.menu-nav {
  width: min(var(--max), 100%);
  margin: clamp(48px, 8vw, 92px) auto 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 34px);
  align-items: start;
}

.menu-group {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.menu-title {
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(247, 244, 239, 0.9);
  font-size: clamp(18px, 1.55vw, 26px) !important;
  font-weight: 950;
  line-height: 1.1 !important;
  letter-spacing: 0;
  word-break: keep-all;
}

.menu-sub {
  display: grid;
  gap: 12px;
}

.menu-sub a {
  color: var(--muted);
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.menu-sub a:hover,
.menu-title:hover {
  color: var(--accent);
}

.page-title {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 136px) 0 clamp(32px, 5vw, 58px);
  border-bottom: 2px solid var(--ink);
}

.page-title h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 100px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
}

.page-title p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.board-list {
  padding-top: clamp(32px, 5vw, 56px);
}

.notice-head {
  color: var(--accent);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.person-card {
  min-width: 0;
  display: grid;
  background: #0d0c0b;
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(25%) contrast(1.05) brightness(0.88);
  transition: filter 220ms ease, transform 220ms ease;
}

.person-card strong {
  margin: 17px 18px 2px;
  font-size: 18px;
  font-weight: 950;
}

.person-card span {
  margin: 0 18px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.person-card:hover img {
  filter: grayscale(0%) contrast(1.03) brightness(0.98);
  transform: scale(1.015);
}

.profile-detail {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.profile-photo {
  background: var(--line);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.profile-copy p {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.profile-copy h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
}

.profile-copy h2 {
  margin: 12px 0 42px;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 36px);
}

.profile-copy dl {
  margin: 0 0 42px;
  display: grid;
  border-top: 2px solid var(--ink);
}

.profile-copy dl div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.profile-copy dt {
  color: var(--accent);
  font-weight: 950;
}

.profile-copy dd {
  margin: 0;
  color: rgba(247, 244, 239, 0.82);
}

.detail-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 136px) 0 clamp(72px, 9vw, 120px);
}

.detail-page > time {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.detail-page h1 {
  margin: 12px 0 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.08;
}

.detail-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
}

.detail-body {
  margin: 32px 0 44px;
  color: rgba(247, 244, 239, 0.82);
  font-size: 17px;
}

.list-button {
  min-width: 112px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.list-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-page {
  max-width: 900px;
  color: rgba(247, 244, 239, 0.82);
  font-size: 18px;
}

.text-page h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 46px);
}

.text-page h2:not(:first-child) {
  margin-top: 48px;
}

.audition-form {
  width: min(760px, calc(100% - 32px));
  display: grid;
  gap: 18px;
}

.audition-form label {
  display: grid;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.audition-form input,
.audition-form select,
.audition-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0d0c0b;
  color: var(--ink);
  font: inherit;
}

.audition-form textarea {
  min-height: 160px;
  resize: vertical;
}

.audition-form button {
  min-height: 52px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .menu-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-panel {
    width: min(420px, 88vw);
    padding: 30px;
  }

  .menu-nav {
    margin-top: 34px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .menu-title {
    padding-bottom: 10px;
  }

  .menu-sub {
    gap: 8px;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-detail {
    grid-template-columns: 1fr;
  }

  .profile-copy dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}
