/* RAS FESTIVAL — 공통 토큰·기본 요소 */
@font-face {
  font-family: "Geist Display";
  src: url(/fonts/geist-black.woff2?v=mXiSnhfcdf) format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Display";
  src: url(/fonts/geist-bold.woff2?v=YfiO-o15fw) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(/fonts/geist-mono.woff2?v=kVr7TBx2kA) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #1d1d1f;
  --paper: #ffffff;
  --gray: #f5f5f7;
  --gray-2: #e8e8ed;
  --line: #d2d2d7;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --volt: #d4f527;
  --volt-2: #c6ea12;
  --danger: #d93025;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --display: "Geist Display", var(--sans);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gnb-h: 64px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 28px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--gnb-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b, strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band-ink :focus-visible { outline-color: var(--volt); }

::selection { background: var(--volt); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: 10px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.kicker { color: var(--muted); margin-bottom: 18px; }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .kicker { color: rgba(255, 255, 255, .55); }
.band-gray { background: var(--gray); }

.h2 {
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}
.band-ink .lead { color: rgba(255, 255, 255, .62); }

.ico { width: 18px; height: 18px; flex: none; }

/* ---- 버튼 ---- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--volt); color: var(--ink); }
.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: #fff; }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.band-ink .btn--line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--line-ink { border-color: var(--ink); color: var(--ink); }
.btn--line-ink:hover { background: var(--ink); color: var(--volt); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--volt); color: var(--ink);
  font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}

/* ---- 상단바 ---- */
.gnb {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--gnb-h);
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.gnb.is-scrolled { border-bottom-color: rgba(0, 0, 0, .07); }
.gnb__inner {
  height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.gnb__ci { display: block; flex: none; }
.gnb__ci img { height: 40px; width: auto; }
.gnb__nav { display: flex; gap: 26px; margin-left: auto; }
.gnb__nav a { font-size: 15px; font-weight: 600; color: rgba(10, 10, 10, .72); transition: color .2s; }
.gnb__nav a:hover, .gnb__nav a.is-current { color: var(--ink); }
.gnb__actions { display: flex; align-items: center; gap: 16px; }
.gnb__link { font-size: 15px; font-weight: 600; color: rgba(10, 10, 10, .72); }
.gnb__link:hover { color: var(--ink); }
.gnb__burger { display: none; }

.mnav[hidden] { display: none; }

@media (max-width: 960px) {
  :root { --gnb-h: 56px; }
  .gnb__ci img { height: 34px; }
  .gnb__nav, .gnb__link { display: none; }
  .gnb__actions { margin-left: auto; gap: 10px; }
  .gnb__burger {
    display: grid; place-content: center; gap: 6px;
    width: 40px; height: 40px; margin-right: -8px; padding: 0;
    border: 0; background: none; border-radius: 10px;
  }
  .gnb__burger span:not(.sr-only) {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .35s var(--ease);
  }
  .gnb__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .gnb__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .mnav {
    position: fixed; inset: var(--gnb-h) 0 0 0;
    display: flex; flex-direction: column; gap: 4px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: #fff; overflow-y: auto;
  }
  .mnav a:not(.btn) {
    padding: 12px 0; font-size: 28px; font-weight: 800; letter-spacing: -0.04em;
    border-bottom: 1px solid var(--gray-2);
  }
  .mnav .btn { margin-top: 24px; }
  .mnav.is-open a { animation: mnav-in .5s var(--ease) both; }
  .mnav.is-open a:nth-child(2) { animation-delay: .03s; }
  .mnav.is-open a:nth-child(3) { animation-delay: .06s; }
  .mnav.is-open a:nth-child(4) { animation-delay: .09s; }
  .mnav.is-open a:nth-child(5) { animation-delay: .12s; }
  .mnav.is-open a:nth-child(6) { animation-delay: .15s; }
  .mnav.is-open a:nth-child(7) { animation-delay: .18s; }
}
@keyframes mnav-in { from { opacity: 0; transform: translateY(14px); } }

/* ---- 바닥글 ---- */
.footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-2); background: #fff; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer__org { display: flex; align-items: center; gap: 16px; }
.footer__org img { width: 52px; height: auto; }
.footer__name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.footer__meta { font-size: 14px; color: var(--muted); }
.footer__meta a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.footer__links { display: flex; gap: 22px; font-size: 14px; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { grid-column: 1 / -1; color: var(--muted-2); }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---- 공통 등장 효과(JS가 켜졌을 때만 숨긴다) ---- */
.motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
