/* Court floor: the hero is a navy hardwood floor with one basket end of the court painted on it.
   Everything below stays quiet so that one image carries the page. */
:root {
  --court: #0f1f3d;       /* hero, contact */
  --court-deep: #0a1428;  /* header, footer */
  --gold: #e0b43f;        /* CI gold: lines, primary button, on navy only */
  --gold-ink: #856512;    /* gold for small text on light backgrounds */
  --paper: #f3f5f8;       /* cool light ground that sits with navy */
  --white: #ffffff;
  --ink: #14213d;
  --muted: #566078;
  --line: #dde2ea;
  --on-court: #c9d1e0;
  --display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); word-break: keep-all; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; }
.draft-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Header sits on the court */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: 72px; padding: 0 max(20px, calc((100% - 1120px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: var(--court-deep); color: var(--white);
}
.brand img { width: 128px; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--gold); }
.site-header .nav-cta { border: 1px solid var(--gold); color: var(--gold); padding: 9px 20px; border-radius: 999px; }
.site-header .nav-cta:hover { background: var(--gold); color: var(--court-deep); }
.menu-button { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px; white-space: nowrap;
  font: 700 16px var(--body); border: 2px solid transparent; cursor: pointer;
}
.button.gold { background: var(--gold); color: var(--court-deep); }
.button.gold:hover { background: #ecc65f; }
.button.line { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.button.line:hover { border-color: var(--gold); color: var(--gold); }

/* Hero: the floor is the stage, one basket end of the court is painted on it, the message sits on the left */
.hero { position: relative; background: var(--court); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-floor {
  position: absolute; inset: 0; z-index: -3;
  background: url("assets/ai/court-floor.webp") 60% 30% / cover no-repeat, var(--court);
}
.court { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.paint { fill: #07101f; opacity: 0.45; }
.line { fill: none; stroke: #ffffff; stroke-width: 3.33; stroke-opacity: 0.82; }
.marks rect { fill: #ffffff; fill-opacity: 0.82; }
.line.soft { stroke-opacity: 0.3; stroke-dasharray: 14 12; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 20, 40, 0.92) 0%, rgba(10, 20, 40, 0.72) 38%, rgba(10, 20, 40, 0.15) 70%, rgba(10, 20, 40, 0) 100%),
    linear-gradient(0deg, rgba(10, 20, 40, 0.6) 0%, rgba(10, 20, 40, 0) 30%);
}
.hero-inner {
  min-height: min(760px, calc(100svh - 72px)); padding: 96px 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-logo { width: min(380px, 70vw); filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.5)); }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.18; margin-top: 36px; max-width: 12em; text-wrap: balance; }
.hero-lead { font-size: 18px; line-height: 1.8; color: var(--on-court); margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

@media (prefers-reduced-motion: no-preference) {
  .lines .line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2s cubic-bezier(.6, 0, .2, 1) both; }
  .paint, .marks, .soft { animation: fade 1s 1.2s ease both; }
  .hero-inner > * { animation: rise 0.8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.1s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.2s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.3s; }
  @keyframes draw { from { stroke-dashoffset: 1; } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* About */
.about { padding: 130px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.about h2 { font-size: clamp(34px, 4.2vw, 56px); padding-right: 64px; }
.about-copy { padding-left: 64px; border-left: 3px solid var(--gold); }
.about-copy p { font-size: 20px; line-height: 1.9; }
.about-copy .legal-name { font-size: 15px; color: var(--muted); margin-top: 24px; }

/* Shared section heading: title left, one line of context right */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head > p { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 26em; }

/* Statement band over the gold line photo */
.statement {
  position: relative; color: var(--white); padding: 150px 0; text-align: center;
  background: linear-gradient(rgba(10, 20, 40, 0.55), rgba(10, 20, 40, 0.7)), url("assets/ai/gold-line-detail.webp") center / cover no-repeat, var(--court);
}
.statement-text { font: 400 clamp(32px, 4.6vw, 60px)/1.3 var(--display); text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5); text-wrap: balance; }
.ai-tag { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: rgba(255, 255, 255, 0.65); }

/* Values: three portrait still-lifes */
.values { padding: 120px 0 56px; background: var(--paper); }
.value-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.value-grid figure { margin: 0 0 22px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: linear-gradient(160deg, #1b315c, var(--court-deep)); }
.value-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.value-grid li:hover img { transform: scale(1.03); }
.value-grid h3 { font: 400 clamp(26px, 2.6vw, 34px) var(--display); }
.value-grid span { display: block; font-size: 13px; font-weight: 700; color: var(--gold-ink); margin: 4px 0 10px; }
.value-grid p { font-size: 16px; line-height: 1.8; color: var(--muted); }

/* Join: dark floor, three clear tiles */
.join {
  padding: 120px 0; color: var(--white);
  background: linear-gradient(rgba(10, 20, 40, 0.86), rgba(10, 20, 40, 0.92)), url("assets/ai/court-floor.webp") center 40% / cover no-repeat, var(--court);
}
.join .section-head > p { color: var(--on-court); }
.join-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.join-grid a {
  display: grid; gap: 14px; align-content: start; height: 100%; padding: 36px 32px;
  border: 1px solid rgba(224, 180, 63, 0.35); border-radius: 6px; background: rgba(10, 20, 40, 0.45);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.join-grid a:hover { border-color: var(--gold); background: rgba(10, 20, 40, 0.7); transform: translateY(-3px); }
.join-grid h3 { font: 400 30px var(--display); }
.join-grid p { color: var(--on-court); font-size: 16px; line-height: 1.8; }
.join-cta {
  justify-self: start; margin-top: 10px; padding: 9px 20px; border-radius: 999px;
  background: var(--gold); color: var(--court-deep); font-weight: 700; font-size: 15px;
}

/* News: blog, Instagram, YouTube */
.news { padding: 120px 0; background: var(--white); }
.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0 24px; }
.news-tabs button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 15px var(--body);
}
.news-tabs button[aria-selected="true"] { background: var(--court); border-color: var(--court); color: var(--gold); }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-link { display: grid; height: 100%; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: box-shadow 0.2s; }
a.news-link:hover { box-shadow: 0 10px 30px rgba(15, 31, 61, 0.12); }
.news-card .thumb { aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; color: #b8c0cf; overflow: hidden; }
.news-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb svg { width: 56px; height: 56px; }
.news-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.news-body h3 { font-size: 17px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body time, .empty-note { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.chip svg { width: 16px; height: 16px; }
.news-notice { font-size: 14px; color: var(--muted); margin: -8px 0 18px; }
.news-card .thumb { position: relative; }
.news-card .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); }
.news-card .play svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
.news-card.is-demo .thumb img { object-position: center; }
.demo-tag { justify-self: start; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.channel-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.channel-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--ink); font-weight: 700; font-size: 15px;
}
.channel-link svg { width: 18px; height: 18px; }
.channel-link:hover { background: var(--court); color: var(--gold); border-color: var(--court); }
.channel-link.is-pending { border-color: var(--line); color: var(--muted); font-weight: 500; }
.channel-link.is-pending:hover { background: none; color: var(--muted); border-color: var(--line); }

/* Disclosure */
.disclosure { padding: 120px 0; background: var(--paper); }
.year-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 18px; }
.year-tabs button {
  min-height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 15px var(--body);
}
.year-tabs button[aria-selected="true"] { background: var(--court); border-color: var(--court); color: var(--gold); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc-table th { background: var(--court); color: var(--on-court); font-size: 13px; font-weight: 500; text-align: left; padding: 14px 20px; }
.doc-table th:last-child, .doc-table td:last-child { text-align: right; width: 140px; }
.doc-table td { padding: 22px 20px; border-bottom: 1px solid var(--line); }
.doc-title { font-weight: 700; }
.status { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* Contact */
.contact {
  color: var(--white); padding: 120px 0;
  background: linear-gradient(rgba(10, 20, 40, 0.82), rgba(10, 20, 40, 0.9)), url("assets/ai/court-floor.webp") center 70% / cover no-repeat, var(--court);
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-list { margin: 0; border-top: 1px solid rgba(224, 180, 63, 0.5); }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.contact-list dt { color: var(--gold); font-weight: 700; }
.contact-list dd { margin: 0; color: var(--on-court); }

/* Footer */
.site-footer { background: var(--court-deep); color: var(--on-court); padding: 56px 0; font-size: 13px; line-height: 1.8; }
.footer-inner { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
.footer-inner img { width: 140px; }
.footer-name { color: var(--white); font-weight: 700; }
.footer-links { display: flex; gap: 18px; margin-top: 10px; }
.footer-links a { color: var(--gold); }
.copyright { margin-top: 10px; }

dialog { border: 0; border-radius: 14px; padding: 32px; max-width: min(440px, 100% - 32px); }
dialog::backdrop { background: rgba(10, 20, 40, 0.6); }
dialog h2 { font-size: 24px; margin-bottom: 12px; }
dialog p { line-height: 1.8; color: var(--muted); margin-bottom: 20px; }

/* Mobile */
@media (max-width: 860px) {
  .site-header { height: 62px; }
  .brand img { width: 110px; }
  .menu-button {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
  }
  .menu-button span { height: 2px; background: var(--white); border-radius: 2px; }
  .site-header nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--court-deep); padding: 4px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .site-header .nav-cta { margin-top: 14px; text-align: center; border-bottom: 1px solid var(--gold); }
  html { scroll-padding-top: 66px; }

  .court { opacity: 0.8; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 20, 40, 0.75) 0%, rgba(10, 20, 40, 0.55) 55%, rgba(10, 20, 40, 0.85) 100%); }
  .hero-inner { min-height: 0; padding: 72px 0 64px; }
  .hero h1 { margin-top: 28px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 140px; padding: 0 16px; }

  .about, .values, .disclosure, .contact { padding: 72px 0; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-copy p { font-size: 16px; }
  .statement { padding: 96px 0; }
  .value-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .value-grid figure { aspect-ratio: 4 / 3; }
  .join, .news { padding: 72px 0; }
  .join-grid, .news-grid { grid-template-columns: 1fr; margin-top: 28px; gap: 14px; }
  .join-grid a { padding: 28px 24px; }
  .news-tabs { margin: 24px 0 18px; }
  .news-tabs button { padding: 0 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about h2 { padding-right: 0; }
  .about-copy { padding-left: 20px; }
  .about-copy p { font-size: 17px; }
  .doc-table th:last-child, .doc-table td:last-child { width: 96px; }
  .doc-table td { padding: 18px 12px; font-size: 15px; }
  .doc-table th { padding: 12px; }
}

/* ───────── 밝은 분위기 (body.hero-light, 기관 선택 시 사용) ───────── */
.hero-light .site-header { background: #fbf8f2; color: var(--ink); border-bottom: 1px solid #e7dfd0; }
.hero-light .site-header nav a:hover { color: var(--gold-ink); }
.hero-light .site-header .nav-cta { border-color: var(--ink); color: var(--ink); }
.hero-light .site-header .nav-cta:hover { background: var(--ink); color: var(--white); }
.hero-light .menu-button span { background: var(--ink); }
.hero-light .hero { background: #eadcc2; color: var(--ink); }
.hero-light .hero-floor { background: url("assets/ai/court-floor-light.webp") 60% 30% / cover no-repeat, #eadcc2; }
.hero-light .line { stroke: var(--court); stroke-opacity: 0.85; }
.hero-light .line.soft { stroke-opacity: 0.35; }
.hero-light .marks rect { fill: var(--court); fill-opacity: 0.85; }
.hero-light .paint { fill: var(--court); opacity: 0.14; }
.hero-light .hero-shade {
  background:
    linear-gradient(90deg, rgba(251, 248, 242, 0.94) 0%, rgba(251, 248, 242, 0.78) 38%, rgba(251, 248, 242, 0.1) 70%, rgba(251, 248, 242, 0) 100%);
}
.hero-light .hero h1 { text-shadow: none; }
.hero-light .hero-lead { color: #3d475c; }
.hero-light .hero-logo { filter: drop-shadow(0 8px 20px rgba(15, 31, 61, 0.25)); }
.hero-light .button.line { border-color: var(--ink); color: var(--ink); }
.hero-light .button.line:hover { background: var(--ink); color: var(--white); }
@media (max-width: 860px) {
  .hero-light .site-header nav { background: #fbf8f2; border-top-color: #e7dfd0; }
  .hero-light .site-header nav a { border-bottom-color: #e7dfd0; }
  .hero-light .hero-shade { background: linear-gradient(180deg, rgba(251, 248, 242, 0.88) 0%, rgba(251, 248, 242, 0.7) 55%, rgba(251, 248, 242, 0.9) 100%); }
}

/* 밝은 분위기: 어두웠던 영역도 밝은 원목 바닥으로 */
.hero-light .statement {
  color: var(--ink);
  background: linear-gradient(rgba(251, 248, 242, 0.5), rgba(251, 248, 242, 0.62)), url("assets/ai/court-floor-light.webp") center / cover no-repeat, #eadcc2;
}
.hero-light .statement-text { text-shadow: none; }
.hero-light .ai-tag { color: rgba(20, 33, 61, 0.55); }
.hero-light .join, .hero-light .contact {
  color: var(--ink);
  background: linear-gradient(rgba(251, 248, 242, 0.86), rgba(251, 248, 242, 0.9)), url("assets/ai/court-floor-light.webp") center 40% / cover no-repeat, #eadcc2;
}
.hero-light .join .section-head > p, .hero-light .join-grid p { color: var(--muted); }
.hero-light .join-grid a { background: rgba(255, 255, 255, 0.85); border-color: rgba(15, 31, 61, 0.14); }
.hero-light .join-grid a:hover { background: var(--white); border-color: var(--gold-ink); }
.hero-light .contact-list { border-top-color: var(--gold-ink); }
.hero-light .contact-list div { border-bottom-color: rgba(15, 31, 61, 0.14); }
.hero-light .contact-list dt { color: var(--gold-ink); }
.hero-light .contact-list dd { color: var(--ink); }
.hero-light .marquee { background: #fbf8f2; }
.hero-light .marquee span { -webkit-text-stroke-color: rgba(133, 101, 18, 0.55); }

/* ───────── 화려함: 절제된 움직임 ───────── */
/* 로고 위로 빛이 스침 (로고 모양 그대로 가림) */
.logo-shine { position: relative; display: inline-block; }
.logo-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%) -150% 0 / 200% 100% no-repeat;
  -webkit-mask: url("assets/ksscoop-logo.png") center / contain no-repeat;
          mask: url("assets/ksscoop-logo.png") center / contain no-repeat;
}

/* 키워드 띠 */
.marquee { overflow: hidden; background: var(--paper); padding: 8px 0 56px; }
.marquee-track { display: flex; width: max-content; gap: 64px; }
.marquee span {
  font: 400 clamp(48px, 7vw, 104px)/1.1 var(--display); letter-spacing: 0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(224, 180, 63, 0.75);
}

/* 버튼에 빛 스침 */
.button { position: relative; overflow: hidden; }
.button.gold { background: linear-gradient(135deg, #f0c95a, var(--gold) 55%, #c99a2a); }
.button::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat;
}

/* 카드: 떠오르며 금빛 테두리 */
.value-grid figure { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.value-grid h3 { display: inline-block; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size 0.35s ease; }
.value-grid li:hover h3 { background-size: 100% 3px; }
.join-grid a:hover { box-shadow: 0 0 0 1px var(--gold), 0 18px 40px rgba(224, 180, 63, 0.18); }
.news-link { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-card:hover .news-link { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 31, 61, 0.14); }
.news-card .thumb img { transition: transform 0.6s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }

@media (prefers-reduced-motion: no-preference) {
  .logo-shine::after { animation: shine 5s 2.2s ease-in-out infinite; }
  .button:hover::after { animation: shine 0.9s ease; }
  .marquee-track { animation: marquee 38s linear infinite; }
  .value-grid li:hover figure { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15, 31, 61, 0.22); }
  @keyframes shine { 0% { background-position: -150% 0; } 30%, 100% { background-position: 250% 0; } }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* 스크롤 등장: 스크립트가 켜질 때만 숨겼다가 보이게 함 */
  .reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

  /* 강조 문장 배경이 천천히 움직임 (데스크톱) */
  @media (min-width: 861px) and (hover: hover) {
    .statement { background-attachment: fixed; }
  }
}

.doc-table td a { color: var(--gold-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
