/* 글로벌참 공통: 머리·꼬리·흐르는 띠·나타나기. 색은 각 페이지 토큰(--bg, --fg, --muted, --line, --chrome-bg)을 따른다. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* 머리 */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--chrome-bg);
}
.gc-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--chrome-bg);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.gc-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .35); }
.gc-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; padding-block: 8px; }
.gc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; color: var(--fg); }
.gc-logo-mark { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.gc-logo-mark i { width: 7px; height: 7px; border-radius: 50%; display: block; animation: gc-hop 2.4s ease-in-out infinite; }
.gc-logo-mark i:nth-child(1) { background: #8a9d90; }
.gc-logo-mark i:nth-child(2) { background: #f5ad73; animation-delay: .18s; }
.gc-logo-mark i:nth-child(3) { background: #8077ea; animation-delay: .36s; }
@keyframes gc-hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.gc-logo small { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.gc-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.gc-nav a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 7px 12px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.gc-nav a:hover { color: var(--fg); background: var(--line); }
.gc-nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.gc-nav a.gc-cta { background: var(--fg); color: var(--bg); font-weight: 700; margin-left: 6px; }
.gc-nav a.gc-cta:hover { background: var(--fg); color: var(--bg); opacity: .88; }

/* 흐르는 띠 */
.gc-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gc-marquee-track { display: flex; width: max-content; animation: gc-flow var(--dur, 40s) linear infinite; }
.gc-marquee:hover .gc-marquee-track { animation-play-state: paused; }
@keyframes gc-flow { to { transform: translateX(-50%); } }

/* 나타나기: 기본은 보이는 상태. 지원 브라우저에서만 스크롤에 맞춰 살짝 떠오른다. */
@supports (animation-timeline: view()) {
  .rise { animation: gc-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes gc-rise { from { opacity: .001; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* 꼬리 */
.gc-footer { position: relative; z-index: 1; background: color-mix(in srgb, var(--card, var(--bg)) 72%, transparent); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; overflow: hidden; }
.gc-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 36px 28px; }
.gc-footer strong { color: var(--fg); font-weight: 700; }
.gc-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.gc-footer a { color: var(--muted); text-decoration: none; }
.gc-footer a:hover { color: var(--fg); text-decoration: underline; }
.gc-footer p { margin: 0; }
.gc-footer .sep { margin-inline: 8px; opacity: .45; }
.gc-bigline { font-weight: 700; font-size: clamp(56px, 11vw, 150px); line-height: 1.1; letter-spacing: -0.04em; color: var(--fg); white-space: nowrap; padding-block: 8px 24px; }
.gc-bigline .gc-marquee-track { gap: .5em; padding-right: .5em; }
.gc-bigline span { display: inline-flex; align-items: center; gap: .5em; }
.gc-bigline i { width: .32em; height: .32em; border-radius: 50%; display: inline-block; }
.gc-bigline a { text-decoration: none; color: inherit; }
.gc-bigline a:hover { color: var(--muted); text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .gc-logo small { display: none; }
  .gc-header .wrap { gap: 8px; flex-wrap: nowrap; }
  .gc-logo { font-size: 16px; gap: 8px; white-space: nowrap; }
  .gc-nav { flex-wrap: nowrap; gap: 0; }
  .gc-nav a { padding: 6px 6px; font-size: 13px; white-space: nowrap; }
  .gc-nav a.gc-cta { margin-left: 3px; padding: 6px 11px; }
}
@media (max-width: 400px) {
  .gc-logo { font-size: 15px; }
  .gc-nav a { padding: 6px 5px; font-size: 12.5px; }
  .gc-nav a.gc-cta { padding: 6px 9px; }
}
@media (max-width: 350px) {
  .gc-logo-mark { display: none; }
  .gc-nav a { padding: 5px 4px; font-size: 12px; }
}
