/* 티파이브 캐릭터 홈 시안 공통 — 색·글꼴·머리글·바닥글·차례로 나타남.
   색은 캐릭터 스튜디오(t5-character-studio) 팔레트, 나머지는 DESIGN.md 값. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --cobalt: #1659ef;      /* 스튜디오 코발트 블루 — 강조 한 가지 */
  --sky: #a8c9f8;         /* 스카이 블루 — 캐릭터 몸 */
  --mist: #f3f5f8;        /* 미스트 블루 — 옅은 띠 */
  --ivory: #fff4e5;       /* 웜 아이보리 — 말풍선 얼굴 */
  --charcoal: #303238;    /* 차콜 */
  --cream: #fffdf8;       /* 스튜디오 크림 */
  --paper: #f5f2eb;       /* 소개 이미지 바탕 */

  --ink: #111110;
  --text: #282827;
  --grey: #6d6d69;
  --hair: rgba(0, 0, 0, .07);
  --line: #e7e7e5;
  --success: #36815c;
  --danger: #b63e3e;
  --focus: #3978a4;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  --glide: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --card-shadow: 0 1px 2px rgba(17, 17, 16, .04), 0 12px 32px -12px rgba(17, 17, 16, .14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 16px/1.7 var(--font); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.blue { color: var(--cobalt); }

/* 머리글 */
.t5-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--hair); }
.t5-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.t5-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.t5-brand img { width: 30px; height: 30px; }
.t5-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.t5-nav a { text-decoration: none; color: var(--grey); }
.t5-nav a:hover { color: var(--ink); }

/* 버튼 */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn:active { transform: scale(.96); }
.pill-btn.sm { height: 40px; padding: 0 18px; font-size: 15px; }
.pill-btn.blue { background: var(--cobalt); color: #fff; }
.pill-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.count-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; color: var(--grey); }
.count-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; }
.count-chip b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 바닥글 */
.t5-foot { padding: 40px 0 56px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--grey); }
.t5-foot .wrap { display: grid; gap: 8px; }
.t5-foot p { margin: 0; }
.t5-foot .biz { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.t5-foot .note { color: var(--grey); }

/* 차례로 나타남 — kinetics.colorion.co Stagger Entrance 값 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--glide), transform .45s var(--glide); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .t5-nav { display: none; }
  .t5-head .wrap { height: 56px; gap: 12px; }
  .t5-head .pill-btn { margin-left: auto; }
}

/* 동작 줄이기: 움직임 없이 마지막 화면 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
