/* @font-face {
  font-family: "Pretendard Variable";
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations"),
       url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
} */

/* pretendard */
@font-face {
    font-family: 'Pretendard Variable';
    /* 1. IE(인터넷 익스플로러) 9~11 전용 (EOT) */
    src: url('/assets/fonts/pretendard/PretendardVariable.eot');
    /* 2. 모던 브라우저 및 구형 브라우저용 (WOFF2, WOFF) */
    src: url('/assets/fonts/pretendard/PretendardVariable.woff2') format('woff2'),
         url('/assets/fonts/pretendard/PretendardVariable.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
  --navy: #0d1b4b;
  --ink: #202020;
  --heading: #292e2d;
  --muted: #54545a;
  --border: #e0e2e9;
  --bg-soft: #f8f8f8;
  --dark-panel: #363c4e;
  --max-width: 1400px;
}

* {
  box-sizing: border-box;
  letter-spacing: -3%;
  line-height: 1.2;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

@media (max-width: 1024px) {
	html {
		font-size: 56.25%;
		/* 9px */
	}
}

@media (max-width: 768px) {
	html {
		font-size: 50%;
		/* 8px */
	}
}

@media (max-width: 680px) {
	html {
		font-size: 43.75%;
		/* 7px */
	}
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  font-size: 16px;
}

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

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

ul, ol, li {list-style: none; padding: 0; margin: 0;}

h1,h2,h3,h4,h5,p,span,label {margin: 0; padding: 0;}







.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 1430px) {
  .container {
    padding: 0 20px;
  }
}





.fade-top {opacity: 0; transform: translateY(20%);}
.fade-down {opacity: 0; transform: translateY(-20%);}
.fade-left {opacity: 0; transform: translateX(10%);}
.fade-right {opacity: 0; transform: translateX(-10%);}

.fade-top.trigger {animation: fade-animate 0.7s 0.2s forwards;}
.fade-down.trigger {animation: fade-animate 0.7s 0.2s forwards;}
.fade-left.trigger {animation: fade-animate 0.7s 0.2s forwards;}
.fade-right.trigger {animation: fade-animate 0.7s 0.2s forwards;}

.chars > .char {
  display: inline-block;
  opacity: 0; transform: translateY(20%);
}

.chars.trigger > .char {
  animation: fade-animate 0.7s forwards;
  animation-delay: calc(var(--delay) * 0.05s);
}


/* 애니메이션 개별 조정 */
.office.fade-top {transform: translateY(10%);}

/* 애니메이션 개별 조정 end */

@keyframes fade-animate {
  to {opacity: 1; transform: translateY(0);}
}


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header__bar {
  /* margin: 0 auto; */
  /* padding: 0 16px; */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 32px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 60px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

/* @media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
} */

.site-header__nav a {
  position: relative;
  transition: color 0.15s;
}

.site-header__nav a::before {
  content:'';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

@media (min-width: 1024px) {
  .site-header__nav a:hover::before,
  .site-header__nav a.active::before {
    width: 100%;
    right: unset;
    left: 0;
  }

  .site-header__nav a:hover,
  .site-header__nav a.active {
    color: var(--navy);
  }
}

.site-header__menu-btn {
  display: flex;
  height: 102%;
  width: 60px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
}

.site-header__menu-btn .menu_bar {
  width: 30px;
  height: 23px;
  position: relative;
  --line-h: 3px;
  --line-bg: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.site-header__menu-btn .menu_bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: var(--line-bg);
  width: 80%;
  height: var(--line-h);
  transition: inherit;
}

.site-header__menu-btn .menu_bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--line-bg);
  width: 60%;
  height: var(--line-h);
  transition: inherit;
}

.site-header__menu-btn .menu_bar > .line {
  width: 100%;
  height: var(--line-h);
  background: var(--line-bg);
  display: block;
  transition: inherit;
}

.site-header__menu-btn[aria-expanded="true"] .menu_bar::before {
  top: 50%; left: 50%; width: 100%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header__menu-btn[aria-expanded="true"] .menu_bar::after {
  bottom: unset; top: 50%; left: 50%; width: 100%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-header__menu-btn[aria-expanded="true"] .menu_bar > .line {
  opacity: 0;
}


@media (min-width: 1024px) {
  .site-header__bar {
    max-width: 1760px;
    margin: 0 auto;
    height: 100px;
    /* padding: 0 40px; */
  }

  .site-header__nav {
    margin-left: auto;
  }

  .site-header__menu-btn {
    display: none;
    margin-left: 80px;
    width: 103px;
  }

  .site-header__logo img {
    height: 40px;
  }
}

/* 모바일 */

@media (max-width: 1800px) {
  .site-header__bar {padding: 0 20px;}
}

@media (max-width: 1024px) {
  .site-header__bar {padding-right: 0;}
  .site-header__bar > * {
    position: relative;
    z-index: 3;
  }

  .site-header__bar::before {
    content:'';
    position: absolute;
    z-index: 2;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
  }

  .site-header__nav {
    display: none;
    position: absolute;
    z-index: 1;
    top: 100%; left: 0;
    width: 100%;
    gap: 0;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .site-header__nav.is-open {
    display: flex;
    animation: menu-show 0.3s forwards;
  }

  @keyframes menu-show {
    from {
      opacity: 0; visibility: hidden;
      transform: translateY(-120%);
    }

    to {
      opacity: 1; visibility: visible;
      transform: translateY(0);
    }
  }

  .site-header__nav a {
    padding: 20px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* background: var(--navy); */
  }

  .site-header__nav a.active {
    background: var(--navy);
    color: #fff;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 24px;
  text-align: center;
  color: #fff;
  background: url('/images/hero-bg.png') no-repeat center center / cover;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 930px;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  animation: hero-show 1s 0.5s forwards;
  opacity: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;

  opacity: 0; transform: translateY(10%);
  animation: subtit 0.7s 0.2s forwards;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 64px;
    margin-bottom: 30px;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 90px;
    letter-spacing: 2px;
    margin-bottom: 50px;
  }
}

.hero__subtitle {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 500;
  margin: 0;

  opacity: 0; transform: translateY(10%);
  animation: subtit 0.7s 0.4s forwards;
}

@media (min-width: 640px) {
  .hero__subtitle {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
  .hero__subtitle {
    font-size: 24px;
    letter-spacing: 0;
  }
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;

  opacity: 0; transform: translateY(10%);
  animation: subtit 0.7s 0.6s forwards;
}

.hero__scroll span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: -0.65px;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  animation: bounce 1.6s infinite;
}

.badge__box {
  display: flex; gap: 20px;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero__badge {
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  padding: 10px 15px;
  box-shadow: 0 0 30px rgba(81, 113, 230, 0.13);
  backdrop-filter: blur(2px);
  justify-content: center;
  flex-wrap: wrap;
  cursor: default;

  opacity: 0; transform: translateY(10%);
  animation: subtit 0.7s 0.8s forwards;
}

.hero__badge img {
  height: 40px;
  width: auto;
}

.hero__badge span {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}


/* hero 애니메이션 */

/* .hero__title > .char {
  display: inline-block;
  opacity: 0; transform: translateY(10%);
  animation: subtit 0.7s forwards;
  animation-delay: calc(var(--delay) * 0.08s);
} */


@keyframes subtit {
  to {opacity: 1; transform: translateY(0%);}
}

@keyframes hero-show {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* hero 애니메이션 end */

@media (min-width: 450px) {
  .hero__subtitle br:nth-of-type(1) {display: none;}
}

@media (min-width: 640px) {
  .badge__box {
    flex-direction: unset;
  }
}

@media (min-width: 1024px) {
  .hero__scroll, .badge__box{
    margin-top: 4rem;
  }
}


/* ---------- Generic section ---------- */
.section {
  padding: 70px 0;
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}

.section--soft {
  background: var(--bg-soft);
}

.section__heading {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: var(--navy);
  text-align: center;
  margin: 0 0 35px;
}

@media (min-width: 640px) {
  .section__heading {
    font-size: 50px;
  }
}

@media (min-width: 1024px) {
  .section__heading {
    font-size: 60px;
    letter-spacing: -3px;
    margin-bottom: 80px;
  }
}

/* ---------- Investment ---------- */

#investment {position: relative; overflow: hidden;}

#investment .circle_bg {
  position: absolute;
  top: 100px;
  right: 63px;
  z-index: -1;
  transform: rotate(180deg);
  width: 25.7rem;
}


.investment__intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 64px;
  text-align: center;
}

.investment__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
  margin: 0;
}

.investment__body p {
  margin: 0 0 16px;
  color: var(--heading);
}

@media (min-width: 1024px) {
  .investment__body {
    /* flex: 1; */
    /* max-width: 620px; */
  }
}

.investment__body p:first-child {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.investment__body p:last-child {
  font-size: 15px;
  line-height: 1.6;
}

.investment__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  filter: drop-shadow(0 0 15px rgba(81, 113, 230, 0.12));
}

.investment-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  border-radius: 20px;
  background: #fff;
  padding: 30px;
}

.investment-card img {
  width: 80px;
  height: 80px;
}

.investment-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
}

.investment-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .investment__cards {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(360px, auto);
  }
}

@media (min-width: 1024px) {

  .investment__intro {
    text-align: left;
  }

  .investment__title {
    font-size: 50px;
    letter-spacing: -2.5px;
  }

  .investment__body p:first-child {
    font-size: 32px;
    letter-spacing: -1.6px;
  }

  .investment__body p:last-child {
    font-size: 22px;
    letter-spacing: -1.1px;
  }

  .investment-card img {
    width: 120px;
    height: 120px;
  }

  .investment-card {
    /* justify-content: space-between; */
    gap: 6rem;
  }
  .investment-card h3 {
    font-size: 34px;
  }

  .investment-card p {
    font-size: 16px;
  }
}

@media (max-width: 1180px) and (min-width: 1024px) {
  .investment-card {
    justify-content: space-between;
  }
}

@media (min-width: 1360px) {
  .investment__intro {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 80px;
  }

  .investment__title {
    flex: 0 0 420px;
    width: 420px;

  }
}

@media (max-width: 1430px) {
  #investment .circle_bg {
    top: -40px;
    right: -58px;
  }
}

@media (max-width: 768px) {
  .investment-card {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .investment__body p:last-child br {
    display: none;
  }
}

@media (max-width: 550px) {
  .investment__body p:first-child br {
    display: none;
  }
}

/* ---------- About / stats / timeline ---------- */

#about {
  position: relative;
  overflow: hidden;
}

#about .circle_bg {
  position: absolute;
  z-index: 1;
  top: 35%; left: -4%;
  width: 47.5rem;
}

#about > * {
  position: relative;
  z-index: 2;
}

.stats-band {
  position: relative;
  /* display: grid; */
  /* grid-template-columns: repeat(2, 1fr); */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 32px;
  column-gap: 24px;
  overflow: hidden;
  padding: 60px 20px;
  margin-bottom: 64px;
  background: url('/images/stats-bg.png') no-repeat center center / cover;
}

.stats-band > * {position: relative; z-index: 2;}

.stats-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.stat {
  text-align: center;
  color: #fff;
  width: calc(50% - 12px);
}

.stat__value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -5%;
  margin: 0 0 8px;
}

.stat__label {
  font-size: 15px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.timeline {
  max-width: 932px;
  margin: 0 auto;
}

.timeline li {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  grid-auto-rows: minmax(95px, auto);
  align-items: center;
  gap: 30px;
}

.timeline li:not(:last-child) {
  margin-bottom: 20px;
}

.timeline__year {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: -1px;
  height: fit-content;
}

.timeline__entry {
  position: relative;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}

.timeline__entry::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 4px solid var(--navy);
  background: #fff;
}

.timeline__entry p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--heading);
  margin: 0 0 4px;
}

.timeline__entry p:last-child {
  margin-bottom: 0;
}


/* 반응형 */

@media (min-width: 768px) {
  .stat {
    width: auto;
  }

  .stats-band {
    /* grid-template-columns: repeat(4, 1fr); */
    flex-wrap: unset;
  }

  .stats-band {
    column-gap: 53px;
  }
  .stat__value {font-size: 50px;}
  .stat__label {font-size: 18px;}
}

@media (min-width: 1024px) {
  .stats-band {
    column-gap: 100px;
    padding: 80px 24px;
    margin-bottom: 80px;
    background-attachment: fixed;
  }

  .stat__value {font-size: 60px;}
  .stat__label {font-size: 18px;}


  .timeline__year {font-size: 40px;}
  .timeline__entry {padding: 30px;}
  .timeline__entry p {font-size: 27px;}
}

@media (min-width: 1230px) {
  .stats-band {
    column-gap: 120px;
  }
  .stat__value {font-size: 70px;}
  .stat__label {font-size: 18px;}
}

@media (max-width: 1024px) {

  .stats-band {margin-bottom: 40px;}


  .timeline li {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .timeline {padding: 0 20px;}
}

@media (max-width: 768px) {
  .stats-band {column-gap: 5px;}
  .stat {width: 35%;}
}

@media (max-width: 680px) {

  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: unset;
    gap: 10px;
  }

  .timeline li:not(:last-child) {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .stat {width: calc(50% - 3px);}
}

/* ---------- Portfolio ---------- */
#portfolio {
  position: relative;
  overflow: hidden;
}

#portfolio .bg_img {
  position: absolute;
  z-index: 1;
}

#portfolio .bg_img.circle {
  top: 33%;
  left: -25px;
  width: 27.5rem;
}

#portfolio .bg_img.dote {
  top: 10%;
  right: 0;
  width: 29.6rem;
}

#portfolio > * {
  position: relative;
  z-index: 2;
}

#portfolio .section__heading {
  text-align: left;
  margin-bottom: 8rem;
  line-height: 1;
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8rem;
}

.portfolio__filter {
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.portfolio__filter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  filter: drop-shadow(0 0 15px rgba(81, 113, 230, 0.12));
}

@media (min-width: 640px) {
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.portfolio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
  /* padding: 16px; */
  padding: 0 5px;
  overflow: hidden;
}

.portfolio-card img {
  /* 참고 사이트는 max-height 없음 - 우리 로고들은 세로가 최대 120px라 캡 없이는
     카드 밖으로 넘침, 그래서 이 한 줄만 리터럴 포팅에서 의도적으로 남겨둠 */
  /* max-height: 90px; */
  /* width: auto; */
  height: 100%;
  object-fit: contain;
}

.portfolio-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.portfolio-card:hover .portfolio-card__hover,
.portfolio-card:focus-visible .portfolio-card__hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portfolio-card__hover-link {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.portfolio-card__hover-desc {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.portfolio-card--text {
  flex-direction: column;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.portfolio-card--text strong {
  font-size: 18px;
}

.portfolio-card--text span {
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-card--extra {
  display: none;
}

.portfolio__more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.portfolio__more button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--heading);
  padding: 8px 28px 8px 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(81, 113, 230, 0.13);
}

.portfolio__more img {
  width: 48px;
  height: 48px;
}

@media (max-width: 1024px) {
  #portfolio .bg_img.dote {
    top: 0;
  }

  #portfolio .bg_img.circle {
    top: unset;
    bottom: -60px;
  }

  #portfolio .section__heading {
    margin-bottom: 40px;
  }

  .portfolio__filters {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .portfolio__filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__filter {
    min-width: auto;
    width: 100%;
    padding: 10px;
  }

  .portfolio__grid {
    grid-auto-rows: minmax(130px, auto);
  }

  .portfolio-card {
    height: 100%;
  }

  .portfolio-card--text {
    height: 100%;
  }
}

/* ---------- People ---------- */

#people .section__heading {
  text-align:left;
  margin-bottom: 8rem;
}

.people-group {
  margin-bottom: 40px;
  position: relative;
}

.people-group:nth-of-type(1) {z-index: 3;}
.people-group:nth-of-type(2) {z-index: 2; margin-bottom: 0;}

.people-group__label {
  display: inline-flex;
  border-radius: 50px;
  background: var(--navy);
  color: #fff;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  filter: drop-shadow(0 0 15px rgba(81, 113, 230, 0.13));
}

.people-card {
  position: relative;
  min-height: 140px;
  z-index: var(--z-index);
}

.people-card--has-bio {
  cursor: pointer;
}

.people-card--has-bio:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.people-card__face {
  position: relative;
  height: 100%;
  min-height: 140px;
  background: #fff;
  padding: 30px;
  display: flex;
}

/* 열렸을 때는 얼굴 카드를 레이아웃에서 완전히 빼서 경력 카드가 자기 내용만큼 자연스럽게 늘어나게 한다 */
.people-card--has-bio.is-open .people-card__face {
  display: none;
}

.people-card__watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-weight: 900;
  font-size: clamp(20px, 1.77vw, 34px);
  line-height: 1.1;
  color: #DEE0E8;
  text-align: right;
  z-index: 0;
}

.people-card__name {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  z-index: 1;
}

.people-card__name strong {
  font-size: 25px;
  font-weight: 600;
}

.people-card__name span {
  font-size: 20px;
  color: var(--navy);
}

/* 경력 카드: 기본은 숨김(display:none) — 클릭으로 is-open이 붙을 때만 보임.
   position:absolute + top/left/right만 고정(bottom은 안 고정)이라 카드 자기 칸 높이만큼만
   차지하는 게 아니라 내용 길이에 맞춰 아래로 자유롭게 늘어난다. absolute라 문서 흐름에서
   빠지므로 옆/아래 카드는 전혀 밀리거나 커지지 않는다 — 그냥 그 위에 떠서 덮는다. */
.people-card__bio {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 30px 20px;
  color: #fff;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(13, 27, 75, 0.35);
  background: url('/images/people-card__bg.png') no-repeat center center / cover;
}

.people-card--has-bio.is-open .people-card__bio {
  display: flex;
  animation: bio-show 0.6s forwards;
}

/* PC(진짜 마우스가 있는 기기)에서는 클릭 없이 hover만으로 열고 닫힘.
   터치 기기는 hover 자체가 없으니 이 블록이 적용되지 않고, JS의 클릭 토글(.is-open)로 동작한다. */
@media (hover: hover) and (pointer: fine) {
  .people-card--has-bio:hover .people-card__face,
  .people-card--has-bio:focus-visible .people-card__face {
    display: none;
  }

  .people-card--has-bio:hover .people-card__bio,
  .people-card--has-bio:focus-visible .people-card__bio {
    display: flex;
    animation: bio-show 0.3s forwards;
  }
}

@keyframes bio-show {
  from {opacity: 0; visibility: hidden; top: -10px;}
  to {opacity: 1; visibility: visible; top: 0;}
}

.people-card__bio-name {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px 8px;
  font-weight: 700;
  flex-wrap: wrap;
}

.people-card__bio-name strong {
  font-size: 25px;
  font-weight: 700;
}

.people-card__bio-name span {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.people-card__bio-list {
  position: relative;
  margin: 0;
}

.people-card__bio-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.6;
}

.people-card__bio-list li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
}


/* 반응형 */

@media (min-width: 768px) {
  .people-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
}

@media (max-width: 1024px) {
  .people-card__face {padding: 20px;}
  .people-card__name {flex-wrap: wrap; height: fit-content;}
  .people-card__name strong {font-size: 20px;}
  .people-card__name span {font-size: 14px;}

  .people-card__bio {
    padding: 20px 15px;
  }
  .people-card__bio-name strong {font-size: 20px;}
  .people-card__bio-name span {font-size: 14px;}

  #people .section__heading {
    margin-bottom: 40px;
  }
}

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

/* ---------- Contact ---------- */
.contact {
  position: relative;
  color: #fff;
  background: url('/images/contact-bg.png') no-repeat center center / cover;
}

.contact > * {
  position: relative;
  z-index: 2;
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(53, 56, 65, 0.8);
  z-index: 1;
}

.contact .section__heading {
  color: #fff;
}

.contact__intro {
  margin-bottom: 40px;
}

.contact__intro p {
  font-size: 20px;
  font-weight: 500;
  margin: 12px 0 0;
}

@media (min-width: 1024px) {
  .contact__intro p {
    font-size: 32px;
    letter-spacing: -1.6px;
  }
}

.office__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.office {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .office__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(640px, auto);
  }
  .office {
    grid-template-rows: 450px minmax(0, 1fr);
  }
}

.office__map {
  height: 260px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.office__map .root_daum_roughmap_landing {
  width: 100% !important;
}

@media (min-width: 1024px) {
  .office__map {
    height: 450px;
  }
}

.office__info {
  background: var(--dark-panel);
  box-shadow: 0 0 15px rgba(81, 113, 230, 0.13);
  padding: 20px;
  min-height: 16.3rem;
}

.office__info h3 {
  font-size: 20px;
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 1024px) {
  .office__info {
    min-height: unset;
  }
  .office__info h3 {
    font-size: 24px;
  }
}

.office__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 16px;
  font-weight: 500;
}

.office__meta :is(span:nth-child(1), span.mail) {
  width: 100%;
}

.office__meta > * {
  line-height: 1.4;
}

.office__meta .ic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.office__meta .ic.tel::before {
  content:'';
  width: 14px; height: 14px;
  min-width: 14px;
  background: url('/images/call-icon.svg') no-repeat center center / cover;
}

.office__meta .ic.dupl::before {
  content:'';
  width: 15px; height: 15px;
  min-width: 15px;
  background: url('/images/duplicator-icon.svg') no-repeat center center / cover;
}

.office__meta .ic.mail::before {
  content:'';
  width: 15px; height: 12px;
  min-width: 15px;
  background: url('/images/mail-icon.svg') no-repeat center center / cover;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-panel);
  color: #fff;
  padding: 30px 0;
  font-size: 15px;
}

.site-footer__office {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.site-footer__office span {
  line-height: 1.4;
}

.site-footer__tag {
  border: 0.5px solid #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
}

.site-footer__copyright p {
  margin: 0;
}


@media (max-width: 1024px) {
  .site-footer__office {margin-bottom: 20px;}
}


/* ---------- Admin ---------- */
.admin-body {
  background: #f4f5f7;
  min-height: 100vh;
}

.admin-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header a {
  color: #fff;
}

.admin-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.admin-flash--success {
  background: #e6f7ed;
  color: #0a7a3d;
}

.admin-flash--error {
  background: #fdeaea;
  color: #b3261e;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table img {
  height: 32px;
  width: auto;
}

.admin-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}

.admin-form input[type="text"],
.admin-form textarea,
.admin-form select,
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
  min-height: 70px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-danger {
  background: #fdeaea;
  color: #b3261e;
}

.btn-secondary {
  background: #eee;
  color: var(--ink);
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 32px;
}

.login-card h1 {
  font-size: 22px;
  margin: 0 0 24px;
  text-align: center;
}
