/* ============================================================
   Wanted Lab Partners — modern redesign
   ============================================================ */

:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --accent: #3366ff;
  --accent-soft: #eaf0ff;
  --radius: 16px;
  --header-h: 64px;
  --shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 16px 40px rgba(17, 24, 39, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.scroll-lock,
html.scroll-lock body {
  overflow: hidden;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

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

ul {
  list-style: none;
}

section {
  scroll-margin-top: var(--header-h);
}

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  box-shadow: 0 10px 24px rgba(51, 102, 255, 0.35);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  font-family: inherit;
}

.btn--outline:hover {
  border-color: var(--ink);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo img {
  /* 다크 헤더 위에서 로고 가독성 확보 */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

#header.is-scrolled .header__logo img,
#header.is-open .header__logo img {
  filter: none;
}

.header__nav {
  flex: 1;
}

.header__nav ul {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.header__nav a:hover {
  color: #fff;
}

#header.is-scrolled .header__nav a {
  color: var(--muted);
}

#header.is-scrolled .header__nav a:hover {
  color: var(--ink);
}

.header__cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: opacity 0.2s ease;
}

.header__cta:hover {
  opacity: 0.85;
}

/* mobile menu button */
.header__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.header__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

#header.is-scrolled .header__menu-btn span,
#header.is-open .header__menu-btn span {
  background: var(--ink);
}

.header__menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  /* backdrop-filter 조상이 fixed 기준을 헤더로 바꾸므로 bottom 대신 height 사용 */
  height: calc(100dvh - var(--header-h));
  background: #fff;
  padding: 24px;
  overflow-y: auto;
}

#header.is-open {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#header.is-open .mobile-nav {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 18px 4px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav__cta {
  color: var(--accent);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #0a0f1e 0%, #0e1630 60%, #101a3c 100%);
  color: #fff;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__glow--1 {
  width: 560px;
  height: 560px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, #3366ff 0%, transparent 70%);
}

.hero__glow--2 {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, #1f8fff 0%, transparent 70%);
  opacity: 0.35;
}

.hero__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9db4ff;
  border: 1px solid rgba(157, 180, 255, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #6f9bff, #38d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.br-mobile {
  display: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(10px);
    opacity: 0.2;
  }
}

/* ------------------------------------------------------------
   Sections (common)
   ------------------------------------------------------------ */
.section {
  padding: 120px 0;
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ------------------------------------------------------------
   About
   ------------------------------------------------------------ */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about__body p {
  font-size: 17px;
  color: #374151;
  line-height: 1.85;
}

/* ------------------------------------------------------------
   Team
   ------------------------------------------------------------ */
.team {
  background: var(--bg-soft);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.member__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f5;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.member:hover .member__photo img {
  transform: scale(1.04);
}

.member--no-photo {
  background: linear-gradient(135deg, #eef3ff, #f7f9ff);
  display: flex;
  align-items: flex-end;
}

.member__info {
  padding: 24px;
}

.member__info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.member__info h3 span {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-left: 8px;
}

.member__info ul li {
  font-size: 14px;
  color: var(--muted);
  padding: 2px 0;
}

/* Leader group */
.team__leaders {
  margin-top: 64px;
}

.team__leaders-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.team__leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.leader {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.leader__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.leader p {
  font-size: 14px;
  color: var(--muted);
  padding: 2px 0;
}

.leader p strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 6px;
}

/* ------------------------------------------------------------
   Portfolio
   ------------------------------------------------------------ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.portfolio__item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.portfolio__item img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.portfolio__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.portfolio__item:hover img {
  filter: none;
  opacity: 1;
}

/* ------------------------------------------------------------
   Notice
   ------------------------------------------------------------ */
.notice {
  background: var(--bg-soft);
}

.notice__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice__item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.notice__item-title {
  font-size: 16px;
  font-weight: 600;
}

.notice__item-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.notice__item-meta .date {
  font-size: 14px;
  color: var(--muted);
}

.notice__item-meta .download {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.notice__empty {
  text-align: center;
  padding: 64px 0;
  font-size: 17px;
  color: var(--muted);
}

.notice__more {
  display: none;
  justify-content: center;
  margin-top: 32px;
}

.notice__more.is-visible {
  display: flex;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.contact__info dl {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact__info dl:first-child {
  padding-top: 0;
}

.contact__info dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact__info dd {
  font-size: 16px;
  line-height: 1.7;
}

.contact__info dd a {
  color: var(--accent);
  font-weight: 600;
}

.contact__map {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.contact__map:hover img {
  transform: scale(1.02);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
#footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__inner p {
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .portfolio__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .header__nav,
  .header__cta {
    display: none;
  }

  .header__inner {
    justify-content: space-between;
    gap: 0;
  }

  .header__menu-btn {
    display: flex;
  }

  .br-pc {
    display: none;
  }

  .br-mobile {
    display: inline;
  }

  .hero__inner {
    padding: 120px 24px 80px;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .notice__item a {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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