/* =========================================================
   케비지떡 광고 포트폴리오
   방향: 스크롤 = 아래로 파고들기 (하늘 → 흙 → 돌 → 심층암 → 기반암)
   서명: 마인크래프트 핫바 내비게이션 + 슬롯 위 이름/좌표 툴팁
   ========================================================= */

:root {
  /* 하늘 */
  --sky-1: #6FA8FF;
  --sky-2: #86B8FF;
  --sky-3: #A2C9FF;
  --sky-4: #BCD9FF;
  --ink: #0E2216;          /* 하늘 위 본문 */
  --ink-2: #2B4335;        /* 하늘 위 보조 */

  /* 땅속 레이어 배경 */
  --dirt: #4A3527;
  --dirt-raise: #5A4232;
  --stone: #44474A;
  --stone-raise: #515559;
  --deep: #2D2F34;
  --deep-raise: #393C42;
  --diamond: #24262B;
  --diamond-raise: #30333A;
  --bedrock: #19191B;
  --bedrock-raise: #242427;

  /* 어두운 레이어 위 텍스트 */
  --text: #F3EFEA;
  --text-2: #CFC8C0;
  --text-3: #A39C95;
  --line: rgba(243, 239, 234, 0.1);

  /* 퍼스널 컬러 (#95E497) */
  --leaf: #95E497;
  --leaf-press: #7FD382;
  --leaf-ink: #0F2A12;
  --leaf-deep: #2E7A33;   /* 밝은 배경 위 초록 텍스트 */

  --font-pixel: "Galmuri11", "Galmuri14", ui-monospace, monospace;
  --font-body: "SUIT Variable", "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --base: 240ms;

  --wrap: 1200px;
  --gutter: 32px;
  --block: 48px;
  --hotbar-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 0;
}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bedrock);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 8px 16px; border-radius: 8px;
  background: var(--leaf); color: var(--leaf-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 타이포 ---------- */
.h2 {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
}
.lead {
  margin-top: 16px;
  max-width: 36em;
  color: var(--text-2);
  font-size: 18px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--leaf); color: var(--leaf-ink);
  box-shadow: inset 0 -4px 0 rgba(15, 42, 18, 0.22);
}
.btn--primary:hover { background: var(--leaf-press); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.55); color: var(--ink);
  border-color: rgba(14, 34, 22, 0.16);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.8); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }

/* =========================================================
   HERO
   스크롤 트랙. 무대(stage)가 고정된 채 높이 제한에서 떨어지고,
   착지한 다음에 첫 화면(제목, 버튼, 쇼츠)이 떨어져 내려온다
   ========================================================= */
.hero {
  position: relative;
  height: 480vh;
  background: var(--sky-4);
  color: var(--ink);
}
.hero__stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(var(--sky-1) 0 25%, var(--sky-2) 25% 50%, var(--sky-3) 50% 75%, var(--sky-4) 75% 100%);
}
.hero__back, .hero__front {
  position: absolute; left: 0; top: 0;
  image-rendering: pixelated;
  pointer-events: none;
}
.hero__back { z-index: 0; }
.hero__front { z-index: 2; }

/* 상단 바: 낙하 중에도 계속 보인다 */
.topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand__avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--leaf);
  box-shadow: 0 0 0 2px rgba(14, 34, 22, 0.12);
}
.brand__name {
  font-family: var(--font-pixel); font-weight: 700; font-size: 22px; line-height: 1;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.hero__hint {
  position: absolute; left: 50%; bottom: 136px; z-index: 4;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-pixel); font-size: 14px; line-height: 1.6;
  text-shadow: 2px 2px 0 #3f3f3f;
  white-space: nowrap;
  pointer-events: none;
}
.hero__hint svg { animation: nudge 1.4s steps(2, end) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ---------- 마인크래프트 채팅 (낙하 중 자막) ---------- */
.chat {
  position: absolute; left: 24px; bottom: 112px; z-index: 4;
  width: min(800px, calc(100% - 48px));
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: "Galmuri14", var(--font-pixel);
  font-size: 28px; line-height: 1.5;
  color: #fff;
  text-shadow: 3px 3px 0 #3f3f3f;
  pointer-events: none;
  transition: opacity 240ms ease-out;
}
.chat__line {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.5);
  animation: chat-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chat__line { padding: 4px 12px; width: fit-content; max-width: 100%; }
.chat__line.is-old { display: none; }
.chat__line:first-child { border-radius: 4px 4px 0 0; }
.chat__line:last-child { border-radius: 0 0 4px 4px; }
.chat__line:only-child { border-radius: 4px; }
.chat .n { color: #95E497; }
.chat .v { color: #9ED8FF; }
.chat .sys { color: #FFFF55; }
.chat .adv { color: #55FF55; }
@keyframes chat-in {
  from { opacity: 0; transform: translateY(100%); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}
.hero.is-landed .chat { opacity: 0; transition: opacity 360ms ease-in 650ms; }

/* ---------- 착지 후 첫 화면 ---------- */
.hero__content {
  position: absolute; inset: 0; z-index: 1;
  display: flex;
  opacity: 0;
  pointer-events: none;
}
.hero.is-landed .hero__content { opacity: 1; pointer-events: auto; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px 320px;
  align-items: end;
  gap: 32px;
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 104px var(--gutter) calc(var(--block) * 3 + 40px);
}
.hero__slot { align-self: stretch; }

.hero__title {
  font-family: var(--font-pixel);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.hero__title > span { display: block; }
.hero__t1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.55);
}
.hero__t2, .hero__t3 {
  font-size: min(128px, 9vw, 13vh);
  line-height: 1.04;
  /* 블록처럼 튀어나온 글자: 퍼스널 컬러로 옆면을 쌓는다 */
  text-shadow:
    3px 3px 0 #95E497, 6px 6px 0 #95E497,
    9px 9px 0 #5FAE62, 12px 12px 0 #3F7F42;
}
.hero__t3 { margin-left: 0.5em; }
.hero__lead {
  margin-top: 32px;
  max-width: 30em;
  font-size: 18px;
  color: var(--ink-2);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
/* 수치는 마크 아이템 툴팁처럼 */
.hero__facts div {
  display: flex; flex-direction: column-reverse;
  padding: 6px 12px 8px;
  border-radius: 4px;
  background: rgba(16, 0, 16, 0.86);
  box-shadow: inset 0 0 0 2px #2A0D5E;
  color: #fff;
}
.hero__facts dt { font-size: 13px; color: #B9B9B9; }
.hero__facts dd {
  font-family: var(--font-pixel); font-weight: 700; font-size: 20px; line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px 0 #3f3f3f;
}

/* 쇼츠 폰: 땅에서 솟아올라 살짝 기울어 선다 */
.hero__short {
  position: relative;
  width: 300px;
  justify-self: end;
}
.phone {
  position: relative; display: block;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1a1a;
  border: 6px solid #1c1d20;
  box-shadow: 0 24px 48px -16px rgba(14, 34, 22, 0.5);
  transform: rotate(4deg);
  transition: transform var(--base) var(--ease);
}
.phone:hover { transform: rotate(2deg) translateY(-6px); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone__views {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  font-family: var(--font-pixel); font-size: 13px; line-height: 1.6;
}

/* 등장 연출: 착지하면 시작, 위로 되돌아가면 사라진다 */
.hero.is-landed [data-drop] {
  animation: drop 900ms both;
  animation-delay: var(--delay, 0ms);
}
.hero.is-landed [data-rise] {
  animation: rise 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}
.hero.is-landed [data-spring] {
  animation: spring 1000ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
  animation-delay: var(--delay, 0ms);
}
.hero.is-landed .comment--hero {
  animation: pop-in 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1250ms;
}
@keyframes drop {
  0%   { transform: translateY(-110vh); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  60%  { transform: translateY(0);      animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  73%  { transform: translateY(-24px);  animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  85%  { transform: translateY(0);      animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1); }
  93%  { transform: translateY(-6px);   animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes spring {
  0% { transform: translateY(90vh); }
  70% { transform: translateY(-14px); }
  100% { transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: rotate(-4deg) scale(0.6); }
  to { opacity: 1; transform: rotate(-4deg); }
}

/* 댓글 카드 (영상 첫 장면의 요청 댓글) */
.comment {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0f0f0f;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}
.comment__avatar {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #95E497 var(--head, none) center / cover no-repeat;
  image-rendering: pixelated;
}
.comment__who { display: block; font-size: 12px; color: #606060; line-height: 1.5; }
.comment__text { font-size: 15px; font-weight: 600; line-height: 1.45; }
.comment__meta { display: block; margin-top: 6px; font-size: 13px; color: #606060; font-variant-numeric: tabular-nums; }

.comment--hero {
  position: absolute;
  left: -96px; top: 32px; z-index: 1;
  width: 280px;
  transform: rotate(-4deg);
}
.comment--hero .comment__text { min-height: 2.9em; }
.caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 1px;
  background: currentColor; vertical-align: -2px;
}

/* 도전 과제 토스트 */
.toast {
  position: absolute; right: 24px; top: 96px; z-index: 6;
  display: flex; align-items: center; gap: 12px;
  width: 300px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #212121;
  border: 2px solid #555;
  box-shadow: inset 0 0 0 2px #000;
  color: #fff;
  font-family: var(--font-pixel);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.toast.is-in {
  opacity: 1; transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.toast.is-out {
  opacity: 0; transform: translateY(-8px);
  transition: opacity 240ms ease-in, transform 240ms ease-in;
}
.toast__icon {
  flex: none; width: 32px; height: 32px;
  background: var(--gem, none) center / contain no-repeat;
  image-rendering: pixelated;
}
.toast__title { display: block; color: #FFE45C; font-size: 13px; font-weight: 700; line-height: 1.5; }
.toast__body { display: block; font-size: 13px; line-height: 1.5; }
.toast--static { position: static; opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================
   레이어 섹션 공통
   ========================================================= */
.layer {
  position: relative;
  padding: 0 0 128px;
  overflow: hidden;
}
.layer > :not(.ores) { position: relative; z-index: 1; }
/* 깊이에 따라 박혀 있는 큰 광석 블록 (JS가 배치) */
.ores {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.ore { position: absolute; will-change: transform; }
.ore > span {
  display: block; width: 100%; height: 100%;
  background-size: 100% 100%;
  image-rendering: pixelated;
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.4);
  transition:
    opacity 360ms ease-out,
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ore.is-in > span { opacity: 1; transform: none; }

/* 스크롤하면 아래에서 위로 등장 */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease) var(--d, 0ms),
    transform 800ms var(--ease) var(--d, 0ms);
}
.strip {
  height: var(--block);
  margin-bottom: 96px;
  background-repeat: repeat-x;
  background-size: auto var(--block);
  image-rendering: pixelated;
}
/* 광물 캐는 터널: 블록 4줄 높이 (위 블록, 통로 2줄, 바닥 블록) */
.strip--tunnel {
  --tblock: 64px;
  height: calc(var(--tblock) * 4);
  background-repeat: repeat;
  background-size: var(--tblock) var(--tblock);
  overflow: hidden;
}
.strip--tunnel canvas { display: block; image-rendering: pixelated; }
.layer--dirt { background: var(--dirt); --raise: var(--dirt-raise); }
.layer--dirt .strip { background-color: #6E4A30; }
.layer--stone { background: var(--stone); --raise: var(--stone-raise); }
.layer--stone .strip { background-color: #7A7A7A; }
.layer--deep { background: var(--deep); --raise: var(--deep-raise); }
.layer--deep .strip { background-color: #4B4B53; }
.layer--diamond { background: var(--diamond); --raise: var(--diamond-raise); }
.layer--diamond .strip { background-color: #3F3F47; }
.layer--bedrock { background: var(--bedrock); --raise: var(--bedrock-raise); padding-bottom: calc(var(--hotbar-h) + 32px); }
.layer--bedrock .strip { background-color: #3A3A3A; }

.section-head { margin-bottom: 48px; }
.section-head--sub { margin-top: 96px; margin-bottom: 32px; }

/* =========================================================
   소개
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px 80px;
  align-items: start;
}
.steps {
  margin-top: 48px;
  counter-reset: step;
  display: grid; gap: 32px;
}
.steps li {
  position: relative;
  padding-left: 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-pixel); font-weight: 700; font-size: 18px;
  color: var(--leaf);
}
.steps h3 { font-size: 19px; font-weight: 600; line-height: 1.5; }
.steps p { margin-top: 4px; color: var(--text-2); }

.about__wall {
  display: grid; gap: 16px;
  padding-top: 8px;
}
.about__wall .comment:nth-child(odd) { margin-right: 48px; }
.about__wall .comment:nth-child(even) { margin-left: 48px; }
.comment--card {
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.comment--card:hover { transform: translateY(-2px); background: #F4F9F3; }

.profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 32px;
  gap: 24px;
}
.profile dt { font-size: 14px; color: var(--text-3); }
.profile dd { margin-top: 4px; font-weight: 500; }

/* =========================================================
   영상
   ========================================================= */
.shorts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.shorts li:first-child { grid-row: span 2; grid-column: span 2; }
.short { display: block; text-decoration: none; }
.short__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--raise);
}
.shorts li:not(:first-child) .short__thumb { aspect-ratio: 4 / 5; }
.short__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--base) var(--ease);
}
.short:hover .short__thumb img { transform: scale(1.03); }
.short__rank {
  position: absolute; left: 8px; top: 8px;
  min-width: 32px; padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7); color: #fff;
  font-family: var(--font-pixel); font-weight: 700; font-size: 13px; line-height: 1.7;
  text-align: center;
}
.shorts li:first-child .short__rank { background: var(--leaf); color: var(--leaf-ink); font-size: 15px; padding: 4px 12px; }
.short__title {
  margin-top: 12px;
  font-weight: 600; font-size: 15px; line-height: 1.5;
}
.shorts li:first-child .short__title { font-size: 20px; }
.short__views {
  margin-top: 2px;
  font-family: var(--font-pixel); font-size: 13px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.shorts li:first-child .short__views { color: var(--leaf); font-size: 15px; }
/* 1위 카드는 두 줄 높이를 꽉 채운다 (작은 카드가 줄 높이를 정함) */
.shorts li:first-child .short { display: flex; flex-direction: column; height: 100%; }
.shorts li:first-child .short__thumb { flex: 1; aspect-ratio: auto; min-height: 0; }
.shorts li:first-child .short__thumb img { position: absolute; inset: 0; object-position: center 30%; }

.longform {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.lite {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite__play {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  display: grid; place-items: center;
  border: 0; border-radius: 12px;
  background: var(--leaf); color: var(--leaf-ink);
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(15, 42, 18, 0.22);
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.lite__play:hover { background: var(--leaf-press); }
.lite__play:active { transform: scale(0.96); }
.lite__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.lite__title { font-weight: 600; font-size: 18px; line-height: 1.45; color: #fff; }
.lite__meta { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; }
.lite.is-playing .lite__play, .lite.is-playing .lite__info, .lite.is-playing img { display: none; }

.longlist { display: grid; gap: 4px; }
.longlist a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}
.longlist a:hover { background: var(--raise); }
.longlist img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--raise); width: 100%; }
.longlist__title { font-weight: 600; font-size: 15px; line-height: 1.5; }
.longlist__meta { margin-top: 2px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* =========================================================
   지표
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  padding: 24px;
  border-radius: 14px;
  background: var(--raise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stat dt { font-size: 14px; color: var(--text-2); }
.stat dd {
  margin-top: 8px;
  font-size: 16px; color: var(--text-2);
}
.stat .num {
  font-family: var(--font-pixel); font-weight: 700; font-size: 40px; line-height: 1.2;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat:first-child .num { color: var(--leaf); }
.stat__note { margin-top: 8px; font-size: 13px; color: var(--text-3); }

.chart {
  margin-top: 48px;
  padding: 32px;
  border-radius: 16px;
  background: var(--raise);
}
.chart figcaption p { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.bars { margin-top: 32px; display: grid; gap: 12px; }
.bar {
  display: grid;
  grid-template-columns: 32px minmax(0, 20em) minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}
.bar__rank { font-family: var(--font-pixel); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bar__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bar__title a { text-decoration: none; }
.bar__title a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.bar__track { display: block; height: 16px; }
.bar__fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: #6B6F77;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
  transform-origin: left center;
}
.bar:first-child .bar__fill { background: var(--leaf); }
.bar:first-child .bar__title { color: var(--text); font-weight: 600; }
.bar__value { text-align: right; font-family: var(--font-pixel); font-variant-numeric: tabular-nums; color: var(--text); }
.chart.is-ready .bar__fill { animation: grow 700ms var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   광고
   ========================================================= */
.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.offer {
  padding: 32px;
  border-radius: 16px;
  background: var(--raise);
}
.offer p { margin-top: 12px; color: var(--text-2); }
.offer .comment__text { margin-top: 0; color: #0f0f0f; }
.offer .offer__demo-label { margin-top: 0; color: var(--ink-2); }
.offer--main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 40px;
}
.offer--main .h3 { font-size: 28px; font-family: var(--font-pixel); font-weight: 700; }
.ticks { margin-top: 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; background: var(--leaf);
}
.offer__demo {
  position: relative;
  display: grid; gap: 16px; justify-items: start;
  padding: 32px;
  border-radius: 12px;
  background: var(--sky-2);
  background-image: linear-gradient(var(--sky-2) 0 60%, var(--sky-3) 60% 100%);
}
.offer__demo-label {
  position: absolute; right: 16px; top: 12px;
  font-size: 12px; color: var(--ink-2);
}
.offer__demo .comment { max-width: 340px; }
.offer__demo .toast { justify-self: end; width: auto; }
.comment__avatar--brand { background: #212121; border-radius: 8px; }
.fineprint { margin-top: 32px; font-size: 14px; color: var(--text-3); }

/* =========================================================
   문의
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: start;
}
.contact .btn { margin-top: 32px; }
.channels { display: grid; gap: 8px; }
.channel {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 8px 8px 8px 20px;
  border-radius: 12px;
  background: var(--raise);
}
.channel__label { font-size: 14px; color: var(--text-3); }
.channel__value { font-family: var(--font-pixel); font-size: 17px; overflow-wrap: anywhere; }
.channel__link { text-decoration: none; grid-column: 2 / -1; }
.channel__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy {
  min-width: 64px; min-height: 44px; padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(243, 239, 234, 0.16);
  background: transparent;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.copy:hover { background: rgba(243, 239, 234, 0.08); }
.copy.is-done { background: var(--leaf); color: var(--leaf-ink); border-color: transparent; }

.footer {
  margin-top: 128px;
  padding-top: 24px;
  background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-size: 13px; color: var(--text-3);
}
.footer p:last-child { max-width: 52em; }

/* =========================================================
   HOTBAR (서명 요소)
   ========================================================= */
.hotbar {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.hotbar__tip {
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 15px; line-height: 1.6;
  text-shadow: 2px 2px 0 #3f3f3f;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: opacity var(--base) var(--ease);
}
.hotbar__y { color: #c8c8c8; margin-left: 8px; }
.hotbar__slots {
  display: flex;
  padding: 4px;
  background: rgba(20, 20, 20, 0.72);
  border: 2px solid #8b8b8b;
  box-shadow: 0 0 0 2px #1a1a1a, 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.slot {
  position: relative;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 2px solid #5b5b5b;
  background: rgba(139, 139, 139, 0.18);
  outline-offset: 0;
  transition: background-color var(--fast) var(--ease);
}
.slot + .slot, li + li .slot { margin-left: -2px; }
.slot:hover { background: rgba(255, 255, 255, 0.16); }
.slot svg { width: 32px; height: 32px; }
.slot::after {
  content: attr(data-key);
  position: absolute; right: 3px; bottom: 0;
  font-family: var(--font-pixel); font-size: 11px; line-height: 1.4;
  color: #fff; text-shadow: 1px 1px 0 #3f3f3f;
}
.slot[aria-current="true"] {
  z-index: 1;
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
  background: rgba(255, 255, 255, 0.14);
}

.copied {
  position: fixed; left: 50%; bottom: calc(var(--hotbar-h) + 48px); z-index: 60;
  transform: translate(-50%, 8px);
  padding: 8px 16px; border-radius: 8px;
  background: #fff; color: #111; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.copied.is-in { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 112px 260px; gap: 24px; }
  .hero__short { width: 260px; }
  .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shorts li:first-child { grid-column: span 3; grid-row: auto; }
  .shorts li:first-child .short { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: end; }
  .shorts li:first-child .short__title { margin-top: 0; }
  .shorts li:first-child .short__thumb { flex: none; aspect-ratio: 9 / 16; }
  .shorts li:nth-child(n+8) { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment--hero { left: -72px; width: 250px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 96px; }
  .hero__slot, .hero__short { display: none; }
  .hero__t2, .hero__t3 { font-size: min(104px, 16vw, 11vh); }
  .about, .longform, .contact { grid-template-columns: 1fr; }
  .offer--main { grid-template-columns: 1fr; gap: 32px; }
  .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { right: 16px; top: 80px; width: 260px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --block: 32px; }
  body { font-size: 16px; }
  .h2 { font-size: 33px; }
  .hero__inner { padding-top: 80px; padding-bottom: calc(var(--block) * 3 + 24px); }
  .strip--tunnel { --tblock: 48px; }
  .hero__t1 { font-size: 24px; }
  .hero__t2, .hero__t3 {
    font-size: min(68px, 18vw);
    text-shadow: 2px 2px 0 #95E497, 4px 4px 0 #95E497, 6px 6px 0 #5FAE62, 8px 8px 0 #3F7F42;
  }
  .hero__lead, .lead { font-size: 16px; }
  .hero__lead { margin-top: 20px; }
  .brand__name { font-size: 18px; }
  .topbar { padding-top: 16px; padding-bottom: 16px; }
  .hero__facts { gap: 6px; }
  .hero__facts div { padding: 4px 10px 6px; }
  .hero__facts dd { font-size: 16px; }
  .toast { left: 16px; right: 16px; top: 72px; width: auto; }
  .hero__hint { bottom: auto; top: 80px; font-size: 13px; }
  .chat { left: 8px; bottom: 132px; width: calc(100% - 16px); font-size: 18px; text-shadow: 2px 2px 0 #3f3f3f; }
  .layer { padding-bottom: 96px; }
  .strip { margin-bottom: 64px; }
  .about__wall .comment:nth-child(odd) { margin-right: 24px; }
  .about__wall .comment:nth-child(even) { margin-left: 24px; }
  .steps li { padding-left: 56px; }
  .profile { grid-template-columns: 1fr; gap: 16px; }
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .shorts li:first-child { grid-column: span 2; }
  .shorts li:first-child .short { display: block; }
  .shorts li:first-child .short__thumb { aspect-ratio: 4 / 5; }
  .shorts li:first-child .short__title { margin-top: 12px; font-size: 18px; }
  .shorts li:nth-child(n+6) { display: none; }
  .longlist a { grid-template-columns: 120px minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat .num { font-size: 28px; }
  .chart { padding: 20px 16px; }
  .bar { grid-template-columns: 20px minmax(0, 1fr) 56px; grid-template-rows: auto auto; gap: 4px 12px; }
  .bar__rank { grid-row: 1 / 3; }
  .bar__title { grid-column: 2 / 4; }
  .bar__track { grid-column: 2 / 3; height: 12px; }
  .bar__value { grid-column: 3 / 4; }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer--main { padding: 24px; }
  .offer__demo { padding: 24px 16px; }
  .channel { grid-template-columns: 1fr auto; padding-left: 16px; }
  .channel__label { grid-column: 1 / -1; margin-bottom: -12px; }
  .channel__link { grid-column: 1 / -1; }
  .slot { width: 52px; height: 52px; }
  .slot svg { width: 28px; height: 28px; }
  .hotbar__tip { font-size: 13px; }
}

/* OS에서 애니메이션을 꺼 둔 경우: 핵심 연출은 유지하고 반복 움직임만 멈춘다 */
@media (prefers-reduced-motion: reduce) {
  .hero__hint svg { animation: none; }
}
