@charset "utf-8";

:root {
  color-scheme: dark;
  --bg: #020202;
  --panel: rgba(0, 0, 0, 0.78);
  --panel-solid: rgba(5, 5, 5, 0.96);
  --gold: #e6a51a;
  --gold-bright: #ffd36b;
  --gold-pale: #f6df9b;
  --gold-soft: rgba(230, 165, 26, 0.42);
  --gold-faint: rgba(230, 165, 26, 0.16);
  --text: #efe4cb;
  --muted: #c9b98f;
  --dim: #8e7a4d;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #020202;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", "Noto Sans KR", serif;
  line-height: 1.78;
  word-break: keep-all;
  overflow-x: hidden;
}

/* 검은색 기반의 은은한 질감. 외부 배경 이미지는 쓰지 않음 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(180deg, #030303 0%, #000000 100%),
    #000000;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
}

.fixed-frame {
  position: fixed;
  inset: 18px;
  z-index: -2;
  pointer-events: none;
  border: 1px solid rgba(230, 165, 26, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 120, 0.10),
    inset 0 0 72px rgba(230, 100, 0, 0.045),
    0 0 28px rgba(230, 165, 26, 0.08);
  background: none;
  opacity: 1;
}

.fixed-frame::before,
.fixed-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  background: #020202;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 16px rgba(230, 165, 26, 0.28);
}
.fixed-frame::before { top: -8px; }
.fixed-frame::after { bottom: -8px; }

.embers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  background: none;
}

/* 모서리 장식은 CSS로만 생성 */
.embers::before,
.embers::after {
  content: "";
  position: fixed;
  top: 18px;
  width: 46px;
  height: 46px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.9;
}
.embers::before { left: 18px; }
.embers::after { right: 18px; transform: scaleX(-1); }

.bottom-corner-left,
.bottom-corner-right { display: none; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff0b8; text-shadow: 0 0 12px rgba(230, 165, 26, 0.32); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  width: min(calc(100% - 84px), var(--content));
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--gold-soft);
  background: rgba(0,0,0,0.84);
  box-shadow:
    inset 0 0 18px rgba(230, 165, 26, 0.04),
    0 16px 35px rgba(0,0,0,0.48);
  backdrop-filter: blur(8px);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: #020202;
  transform: translateY(-50%) rotate(45deg);
}
.site-header::before { left: -5px; }
.site-header::after { right: -5px; }

.brand {
  color: var(--gold-bright);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 0.28rem 0.62rem;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.site-nav a:hover {
  color: var(--gold-bright);
  border-color: var(--gold-faint);
  background: rgba(230, 165, 26, 0.055);
}

.site-main {
  width: min(calc(100% - 84px), var(--content));
  margin: 1.2rem auto 4.4rem;
}

.markdown-body {
  position: relative;
  padding: clamp(1.35rem, 3.2vw, 2.8rem);
  border: 1px solid var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), transparent 18rem),
    rgba(0,0,0,0.86);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.82),
    inset 0 0 74px rgba(230, 112, 0, 0.025),
    0 25px 80px rgba(0,0,0,0.66);
}
.markdown-body::before,
.markdown-body::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  background: #020202;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 14px rgba(230, 165, 26, 0.28);
}
.markdown-body::before { top: -8px; }
.markdown-body::after { bottom: -8px; }

.markdown-body > * { position: relative; z-index: 1; }
.markdown-body > p:first-child { margin: 0 0 1.4rem; }
.markdown-body > p:first-child img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--gold-soft);
  background: #000000;
  padding: clamp(0.35rem, 1.2vw, 0.9rem);
  box-shadow: 0 18px 48px rgba(0,0,0,0.68), 0 0 25px rgba(230,165,26,0.055);
  filter: contrast(1.03) saturate(0.96) brightness(0.96);
}

h1 {
  margin: 0.9rem 0 0.7rem;
  color: var(--gold-bright);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(230, 165, 26, 0.18), 0 2px 0 rgba(0,0,0,0.85);
}
h1 + p {
  max-width: 820px;
  color: #ddcfad;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

h2 {
  position: relative;
  margin: clamp(3rem, 6vw, 4.6rem) 0 1.15rem;
  padding: 0.9rem 0.2rem 0.8rem;
  color: #f2bd45;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid rgba(230, 165, 26, 0.12);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
h2::before {
  content: "";
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.72rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg) translateY(-0.12rem);
  box-shadow: 0 0 11px rgba(230, 165, 26, 0.25);
}

h3 {
  margin: 2.1rem 0 0.7rem;
  color: #ffe09a;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

p, li, td { color: var(--muted); }
p { margin: 0.7rem 0 1.05rem; }
ul, ol { margin: 0.8rem 0 1.4rem; padding-left: 1.35rem; }
li { margin: 0.34rem 0; }
li::marker { color: var(--gold); }

blockquote {
  margin: 1.1rem 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(230,165,26,0.055), rgba(0,0,0,0.2));
  color: #f5dfaa;
  box-shadow: inset 0 0 22px rgba(230,165,26,0.02);
}

code {
  padding: 0.13rem 0.4rem;
  border: 1px solid var(--gold-faint);
  background: rgba(230, 165, 26, 0.055);
  color: #ffd579;
  font-family: Consolas, "Courier New", monospace;
}

hr {
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid var(--gold-soft);
}

.markdown-body > p:not(:first-child) img {
  display: block;
  width: 100%;
  margin: 1rem auto;
  border: 1px solid var(--gold-soft);
  background: #060606;
  box-shadow: 0 18px 48px rgba(0,0,0,0.58);
}
.markdown-body > p img[src*="shields.io"] {
  display: inline-block;
  width: auto;
  margin: 0.16rem 0.16rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: saturate(0.9) brightness(0.9);
}
.markdown-body > p[align="center"] {
  margin: -0.25rem auto 1.4rem;
  text-align: center;
  color: var(--dim);
}
.markdown-body > p[align="center"] sub { color: var(--dim); }

/* 팀 소개를 네모난 카드형으로 변경 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.72rem;
  margin: 1.35rem -0.72rem;
}
td {
  vertical-align: top;
  padding: 1rem;
  border: 1px solid var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent),
    rgba(0,0,0,0.56);
  box-shadow: inset 0 0 24px rgba(230, 165, 26, 0.024);
}
.markdown-body table:first-of-type {
  table-layout: fixed;
}
.markdown-body table:first-of-type tr:first-child td {
  min-height: 210px;
  padding: 1.1rem 0.8rem;
  background:
    linear-gradient(180deg, rgba(230,165,26,0.045), rgba(0,0,0,0.42)),
    #050505;
  border: 1px solid rgba(230, 165, 26, 0.52);
}
.markdown-body table:first-of-type tr:nth-child(2) td {
  padding: 0.72rem 0.5rem;
  min-height: auto;
  background: rgba(230, 165, 26, 0.045);
  color: #d6c28e;
  font-size: 0.92rem;
}
td img {
  width: 96px;
  height: 96px;
  border-radius: 0;
  border: 1px solid rgba(230, 165, 26, 0.7);
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.55), 0 0 20px rgba(230, 165, 26, 0.14);
}
td b {
  display: inline-block;
  margin-top: 0.45rem;
  color: #ffda7d;
  font-size: 1.05rem;
}
td sub { color: var(--dim); }

/* details는 UI 패널처럼 각지게 */
details {
  margin: 0.72rem 0;
  border: 1px solid var(--gold-soft);
  background: rgba(0,0,0,0.48);
  box-shadow: inset 0 0 24px rgba(230,165,26,0.02);
}
summary {
  cursor: pointer;
  padding: 0.95rem 1.05rem;
  color: #ffda86;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}
details[open] summary::after { content: "−"; }
details > :not(summary) { margin-left: 1.05rem; margin-right: 1.05rem; }
details br { display: block; margin-bottom: 0.22rem; content: ""; }

@media (max-width: 860px) {
  body { word-break: normal; }
  .fixed-frame { inset: 10px; }
  .site-header, .site-main { width: min(calc(100% - 34px), var(--content)); }
  .site-header {
    top: 10px;
    margin-top: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav { justify-content: flex-start; }
  .markdown-body { padding: 1.1rem 0.95rem 1.7rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  table, tbody, tr, td { display: block; width: 100%; }
  table { border-spacing: 0; margin: 1rem 0; }
  td { margin: 0.7rem 0; }
}

@media print {
  body { background: white; color: black; }
  .fixed-frame, .embers, .site-header { display: none; }
  .site-main { width: 100%; margin: 0; }
  .markdown-body { border: 0; background: white; box-shadow: none; }
  h1, h2, h3, p, li, td { color: black; }
}


/* 강제 수정: 팀 소개 이미지는 절대 원형이 되지 않도록 고정 */
.markdown-body table:first-of-type td img,
.markdown-body table:first-of-type tr:first-child td img,
table:first-of-type td img,
td[align="center"] img {
  width: 104px !important;
  height: 104px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto 0.55rem !important;
  border: 1px solid rgba(230, 165, 26, 0.76) !important;
  box-shadow: 0 0 0 2px #050505, 0 0 18px rgba(230, 165, 26, 0.12) !important;
}

.markdown-body table:first-of-type tr:first-child td {
  border-radius: 0 !important;
}

/* 강제 수정: 둥근 배경 효과 제거 */
body::before,
body::after,
.embers {
  border-radius: 0 !important;
  mask-image: none !important;
}


/* Video / Download link panels */
.link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 1.8rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(230, 165, 26, 0.5);
  background:
    linear-gradient(90deg, rgba(230, 165, 26, 0.08), rgba(0, 0, 0, 0.52)),
    #030303;
  box-shadow: inset 0 0 28px rgba(230, 165, 26, 0.035), 0 12px 32px rgba(0, 0, 0, 0.36);
}
.link-panel strong {
  display: block;
  color: var(--gold-bright);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}
.link-panel p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.action-link {
  flex: 0 0 auto;
  min-width: 128px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--gold);
  background: rgba(230, 165, 26, 0.1);
  color: var(--gold-bright);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.action-link:hover {
  background: rgba(230, 165, 26, 0.18);
}

/* New square team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0 1.7rem;
}
.team-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(230, 165, 26, 0.55);
  background:
    linear-gradient(180deg, rgba(230, 165, 26, 0.055), rgba(0, 0, 0, 0.35)),
    #040404;
  box-shadow: inset 0 0 24px rgba(230, 165, 26, 0.025);
}
.team-photo {
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(230, 165, 26, 0.42) !important;
  border-radius: 0 !important;
  clip-path: none !important;
  margin: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
}
.team-info {
  padding: 0.95rem;
  text-align: center;
}
.team-info strong {
  display: block;
  color: #ffda7d;
  font-size: 1.08rem;
}
.team-info span {
  display: block;
  margin-top: 0.18rem;
  color: var(--dim);
  font-size: 0.9rem;
}
.team-info p {
  margin: 0.55rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.team-info a {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(230, 165, 26, 0.35);
}

@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-photo { height: 240px !important; }
}
@media (max-width: 620px) {
  .link-panel { align-items: stretch; flex-direction: column; }
  .action-link { width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { height: 260px !important; }
}

/* Embedded video section */
.video-panel {
  margin: 1.1rem 0 1.8rem;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(230, 165, 26, 0.58);
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.85),
    inset 0 0 38px rgba(230, 165, 26, 0.04),
    0 18px 46px rgba(0,0,0,0.55);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}
.video-caption a {
  margin-left: 0.35rem;
}

/* Disabled download button */
.link-panel.is-disabled {
  opacity: 0.92;
}
.action-link-disabled,
.action-link-disabled:hover {
  cursor: not-allowed;
  opacity: 0.55;
  color: var(--dim);
  border-color: rgba(230, 165, 26, 0.28);
  background: rgba(255,255,255,0.025);
  text-shadow: none;
}
button.action-link {
  font-family: inherit;
}

/* Final team image fix: do not crop or enlarge member photos */
.team-photo {
  width: 100% !important;
  height: auto !important;
  max-height: 260px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: #000 !important;
}

@media (max-width: 860px) {
  .team-photo {
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
  }
}


/* Final team photo frame: same white canvas, original photo centered */
.team-photo-frame {
  width: 100% !important;
  height: 230px !important;
  padding: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f0e7 !important;
  border-bottom: 1px solid rgba(230, 165, 26, 0.42) !important;
  overflow: hidden !important;
}
.team-photo-frame .team-photo,
.team-card .team-photo {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 960px) {
  .team-photo-frame { height: 240px !important; }
}
@media (max-width: 620px) {
  .team-photo-frame { height: 260px !important; }
}


/* Motion/AI bottom GIF pair: place the last two GIFs side by side */
.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
}
.media-pair img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid rgba(230, 165, 26, 0.34) !important;
  background: #000 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

/* Strong team photo canvas fix: pure white square canvas */
.team-photo-frame {
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(230, 165, 26, 0.42) !important;
  padding: 16px !important;
}
.team-photo-frame .team-photo,
.team-card .team-photo {
  background: #ffffff !important;
}

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