/* =====================================================================
   HITBOOX — Games Studio 홈페이지 스타일
   디자인: 묵직한 모노톤(블랙~화이트) + Gotham 폰트
   포인트 컬러(빨강/초록/파랑/노랑)는 선택·호버 등 상호작용 순간에만 살짝
   ===================================================================== */

/* ---------- Gotham 웹폰트 (self-hosted, assets/fonts/) ---------- */
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Thin.woff2')        format('woff2'); font-weight:100;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-ThinItalic.woff2')  format('woff2'); font-weight:100;     font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-XLight.woff2')       format('woff2'); font-weight:200;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-XLightItalic.woff2') format('woff2'); font-weight:200;     font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Light.woff2')        format('woff2'); font-weight:300;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-LightItalic.woff2')  format('woff2'); font-weight:300;     font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Book.woff2')         format('woff2'); font-weight:400;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-BookItalic.woff2')   format('woff2'); font-weight:400;     font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Medium.woff2')       format('woff2'); font-weight:500;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-MediumItalic.woff2') format('woff2'); font-weight:500;     font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Bold.woff2')         format('woff2'); font-weight:600 700; font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-BoldItalic.woff2')   format('woff2'); font-weight:600 700; font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Black.woff2')        format('woff2'); font-weight:800;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-BlackItalic.woff2')  format('woff2'); font-weight:800;     font-style:italic; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Ultra.woff2')        format('woff2'); font-weight:900;     font-style:normal; font-display:swap; }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-UltraItalic.woff2')  format('woff2'); font-weight:900;     font-style:italic; font-display:swap; }

:root {
    /* ---- 모노 팔레트 ---- */
    --black:      #0b0b0c;
    --ink:        #111113;   /* 제목/브랜드 (거의 블랙) */
    --dark:       #141416;   /* 다크 섹션/히어로 */
    --gray-900:   #1c1c1f;
    --text:       #3f3f43;   /* 본문 */
    --text-light: #8a8a8f;   /* 보조 텍스트 */
    --border:     #e4e4e7;
    --bg:         #ffffff;
    --bg-light:   #f5f5f6;

    /* ---- 포인트 컬러 (상호작용 시에만) ---- */
    --pop-red:    #ff453a;
    --pop-green:  #32d74b;
    --pop-blue:   #0a84ff;
    --pop-yellow: #ffd60a;
    --accent:     var(--pop-red);   /* 기본 포인트 = 빨강 */

    --container:  1240px;
    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 20px 50px rgba(0, 0, 0, .13);
    --shadow-sm:  0 8px 24px rgba(0, 0, 0, .08);

    /* ---- 폰트: Gotham 중점, 없으면 Montserrat(가장 흡사한 무료 지오메트릭) ---- */
    --font-body:    'Gotham', 'Gotham SSm', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Gotham', 'Gotham SSm', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.14; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 공통 유틸 ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 26px; height: 2px;
    background: var(--accent);   /* 작은 빨강 포인트 */
    display: inline-block;
}

.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section--light { background: var(--bg-light); }
.section--dark  { background: var(--dark); color: #b8b8bd; }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
/* 강조 단어: Gotham 라이트 이탤릭으로 리듬만 살림 */
.section-title .serif { font-weight: 300; font-style: italic; }
.section-sub { margin-top: 16px; color: var(--text-light); font-size: 17px; }

/* ---------- 버튼 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
/* 기본은 블랙, 호버 시에만 포인트 컬러로 살짝 */
.btn-accent  { background: var(--ink); color: #fff; }
.btn-accent:hover  { background: var(--pop-red); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--pop-blue); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 112px;          /* 로고가 자연스럽게 보이도록 넉넉히 */
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: var(--ink);
}
/* 로고 이미지 (원본 166x100) */
.brand-logo {
    height: 64px;           /* 헤더(112px) 안에서 위아래 여백 두고 자연스럽게 */
    width: auto;
    display: block;
}
.brand-logo--footer { height: 58px; }
.brand-mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-link {
    position: relative;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    border-radius: 999px;
    transition: color .2s ease, background .2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: 4px;
    height: 2px;
    background: var(--accent);   /* 선택/호버 시 빨강 포인트 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent); }
.header-cta { margin-left: 8px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   페이지 상단 히어로 (일반)
   ===================================================================== */
.page-hero {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: 130px 0 96px;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 320px at 20% 0%, rgba(255,255,255,.08), transparent 60%),
        radial-gradient(600px 300px at 85% 100%, rgba(255,255,255,.05), transparent 60%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.page-hero .hero-sub { margin-top: 14px; font-size: 18px; color: #b5b5ba; }
.breadcrumb {
    margin-top: 22px;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9a9aa0;
    display: flex; gap: 10px; justify-content: center;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* =====================================================================
   OUR GAMES — 유튜브 배경 히어로
   ===================================================================== */
.video-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}
.video-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
/* 16:9 유튜브 iframe 을 화면에 꽉 차게 cover.
   scale(1.5)로 확대해 상단 제목바/하단 컨트롤바를 화면 밖으로 밀어냄.
   pointer-events:none 으로 마우스 hover 시 컨트롤이 뜨는 것도 차단. */
.video-hero__bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw;          /* 16:9 */
    min-height: 100%;
    min-width: 177.77vh;      /* 16:9 */
    transform: translate(-50%, -50%) scale(1.5);
    border: 0;
    pointer-events: none;
}
.video-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,10,12,.38), rgba(10,10,12,.72)),
        radial-gradient(800px 400px at 15% 20%, rgba(0,0,0,.35), transparent 60%);
}
.video-hero__inner { position: relative; z-index: 2; width: 100%; padding: 90px 0; }
.video-hero .eyebrow { color: #fff; }
.video-hero .eyebrow::before { background: var(--accent); }
.video-hero h1 {
    color: #fff;
    font-size: clamp(44px, 7vw, 92px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: .98;
    text-transform: uppercase;
}
.video-hero h1 .serif { font-weight: 300; font-style: italic; color: #fff; }
.video-hero p { margin-top: 20px; max-width: 560px; font-size: 18px; color: #c8c8cd; }
.video-hero__scroll {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff; opacity: .7;
    font-size: 20px;
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ---------- 장르 필터 ---------- */
.games-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-chip {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
/* 선택된 필터: 블랙 + 하단 빨강 포인트 */
.filter-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--accent);
}

/* ---------- 게임 그리드 ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    transition: transform .35s ease, box-shadow .35s ease;
    isolation: isolate;
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.game-card[data-card-url] { cursor: pointer; }
.game-card__art {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover;
    background-position: center;
}
/* 이미지가 없을 때: 모노 그라디언트 + 미세 패턴 */
.game-card__fallback {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.10), transparent 55%),
        linear-gradient(150deg, #2a2a2e, #0c0c0e 130%);
}
.game-card__fallback::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
    opacity: .7;
}
.game-card::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, transparent 35%, rgba(6,6,8,.88) 100%);
}
/* 장르 뱃지: 검은색으로 통일 */
.game-card__badge {
    position: absolute;
    top: 18px; left: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--black);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}
.game-card__logo {
    position: absolute;
    top: 16px; right: 18px;
    font-size: 22px;
    color: #fff;
    opacity: .95;
    text-shadow: 0 2px 6px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.5);
}
.game-card__body { padding: 26px 24px; position: relative; }
.game-card__title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-shadow: 0 2px 6px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.5);
}
.game-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}
.game-card__platforms {
    display: flex;
    gap: 8px;
    color: #fff;
}
/* 각 플랫폼 아이콘을 정사각형 둥근 테두리 박스로 감쌈 (COMMING SOON 필과 같은 두께의 테두리) */
.game-card__platforms .platform-link,
.game-card__platforms > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;              /* 정사각형 비율 */
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 9px;
    font-size: 17px;           /* 아이콘 약 20% 확대 */
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.55);
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
/* 호버 시: 박스(아이콘 외 부분)가 컬러로 채워지고 아이콘은 뚫린 것처럼 어둡게 */
.game-card__platforms .platform-link:hover,
.game-card__platforms > i:hover {
    color: var(--ink);
    text-shadow: none;
    transform: translateY(-3px);
}
/* 플랫폼별 호버 색상 */
.game-card__platforms .pf-android:hover     { background: #9acd32; border-color: #9acd32; }  /* 연두 */
.game-card__platforms .pf-ios:hover         { background: #7fd0ff; border-color: #7fd0ff; }  /* 하늘 */
.game-card__platforms .pf-steam:hover       { background: #1e6fff; border-color: #1e6fff; }  /* 파랑 */
.game-card__platforms .pf-playstation:hover { background: #9aa0a6; border-color: #9aa0a6; }  /* 회색 */
.game-card__platforms .pf-xbox:hover        { background: #107c10; border-color: #107c10; }  /* 녹색 */
.game-card__platforms .pf-switch:hover      { background: #e60012; border-color: #e60012; }  /* 빨강 */
.game-card__details {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s ease, transform .3s ease;
}
.game-card:hover .game-card__details { opacity: 1; transform: translateX(0); }
/* platforms 가 비어있을 때: 링크 없이 COMING SOON 표기 */
.game-card__soon {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}
.games-empty { text-align: center; color: var(--text-light); padding: 60px 0; }

/* =====================================================================
   ABOUT — 스토리
   ===================================================================== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.story-quote {
    font-weight: 300;
    font-style: italic;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.45;
    color: var(--ink);
}
.story-lead h2 { font-size: clamp(30px, 4vw, 48px); }
.story-lead p { margin: 22px 0 30px; color: var(--text-light); font-size: 17px; }

/* ---------- 타임라인 (마일스톤) ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 22px 46px;
    margin-bottom: 10px;
}
/* 좌우 배치는 side 클래스로 지정 (DB의 side 값) */
.timeline-item.side-left  { left: 0; }
.timeline-item.side-right { left: 50%; }
/* 중앙선 위의 점 */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 34px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--ink);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--ink);
    z-index: 2;
}
.timeline-item.side-left::after  { right: -8px; }
.timeline-item.side-right::after { left: -8px; }

/* 카드 + 아이콘을 한 줄로. 항상 중앙선 쪽으로 붙임 */
.timeline-inner {
    display: flex;
    gap: 18px;
    align-items: stretch;
    justify-content: flex-end;
}
/* 왼쪽 카드: [카드][아이콘] → 아이콘이 우측(중앙쪽)
   오른쪽 카드: row-reverse 로 [아이콘][카드] → 아이콘이 좌측(중앙쪽) */
.timeline-item.side-right .timeline-inner { flex-direction: row-reverse; }

.timeline-card {
    flex: 1 1 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.timeline-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.timeline-card h4 { font-size: 19px; margin-bottom: 8px; }
.timeline-card p { color: var(--text-light); font-size: 15px; }

/* 아이콘 이미지: 카드 높이에 맞춘 정사각형 */
.milestone-icon {
    flex: 0 0 auto;
    align-self: stretch;      /* 카드 높이만큼 늘어남 */
    aspect-ratio: 1 / 1;      /* 높이 기준 정사각형 */
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
}

.timeline-year {
    display: inline-block;
    font-weight: 900;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: .12em;
    margin-bottom: 8px;
}

/* ---------- 코어 밸류 ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
/* 아이콘: 평소엔 모노, 카드 호버 시 포인트 컬러 (카드마다 빨강/초록/파랑/노랑) */
.value-icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--ink);
    font-size: 22px;
    margin-bottom: 22px;
    transition: background .3s ease, color .3s ease;
}
.value-card:nth-child(1):hover .value-icon { background: var(--pop-red);    color: #fff; }
.value-card:nth-child(2):hover .value-icon { background: var(--pop-green);  color: #fff; }
.value-card:nth-child(3):hover .value-icon { background: var(--pop-blue);   color: #fff; }
.value-card:nth-child(4):hover .value-icon { background: var(--pop-yellow); color: #111; }
.value-card h4 { font-size: 19px; margin-bottom: 10px; }
.value-card p { color: var(--text-light); font-size: 15px; }

/* ---------- 팀 ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
.team-card { text-align: center; }
.team-photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #303034, var(--ink));
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.92);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    transition: transform .3s ease;
}
/* 사진이 있을 때: 배경 이미지(모노 → 호버 시 컬러) */
.team-photo.has-photo {
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: transform .3s ease, filter .3s ease;
}
.team-card:hover .team-photo { transform: translateY(-6px); }
.team-card:hover .team-photo.has-photo { filter: grayscale(0%); }
.team-name { font-size: 18px; font-weight: 800; }
.team-role { color: var(--text-light); font-size: 14px; margin-top: 3px; }

/* ---------- 파트너 로고 (검은 배경 로고 월) ---------- */
.partners-section { background: var(--black); }
.partners-section .section-title { color: #fff; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* 데스크톱: 한 줄 5개 */
    gap: 40px 48px;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 10px;
}
.partner-logo img {
    max-height: 132px;       /* 기존 44px의 약 3배 */
    max-width: 100%;
    width: auto;
    object-fit: contain;
    opacity: .6;
    transition: opacity .3s ease, transform .3s ease;
}
.partner-logo:hover img { opacity: 1; transform: translateY(-3px); }

/* ---------- 하단 CTA ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--gray-900), var(--black));
    color: #fff;
    border-radius: 26px;
    padding: 66px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
/* 왼쪽 얇은 빨강 포인트 바 */
.cta-band::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--accent);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.5vw, 44px); text-transform: uppercase; }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 10px; }

/* =====================================================================
   HOME — 풀스크린 히어로
   ===================================================================== */
/* HOME 전용: 네비게이션을 히어로 위에 오버레이. 최상단에선 숨기고 스크롤 시 등장 */
.page-index .site-header {
    position: fixed;
    left: 0; right: 0; top: 0;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    transform: translateY(-100%);
    transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.page-index .site-header.revealed {
    transform: translateY(0);
    background: rgba(255,255,255,.92);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}
.home-hero__content { position: relative; z-index: 2; padding: 40px 24px; }
.home-hero__logo {
    width: min(840px, 88vw);        /* 기존의 2배 */
    height: auto;
    margin: 0 auto 26px;
    filter: drop-shadow(0 24px 50px rgba(0,0,0,.55));
}
.home-hero__title {
    color: #fff;
    font-size: clamp(13px, 1.7vw, 20px);   /* 작게 */
    font-weight: 300;                        /* 얇게 */
    letter-spacing: .32em;
    text-transform: uppercase;
    opacity: .92;
}

/* ---------- HOME — Our Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}
.features-grid.has-visual { grid-template-columns: 1.1fr .9fr; }
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 36px;
}
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--ink);
    font-size: 20px;
    transition: background .3s ease, color .3s ease;
}
.feature-item:hover .feature-icon { background: var(--ink); color: #fff; }
.feature-item h4 { font-size: 18px; margin-bottom: 6px; }
.feature-item p { color: var(--text-light); font-size: 14px; }
.features-visual { display: flex; justify-content: center; align-items: center; }

/* 게임 아이콘 플로팅 스택: 첫 아이콘이 가장 크고 20% 씩 작아지며 겹쳐서 둥둥 뜬다 */
.icon-float {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
}
.icon-float__item {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--size, 50%);
    transform: translate(-50%, -50%);
}
.icon-float__drift { display: block; will-change: transform; }
.icon-float__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24%;                 /* 끝이 둥근 게임 아이콘 */
    background: #fff;
    transform: rotate(var(--rot, 0deg));
    filter: drop-shadow(0 20px 34px rgba(17, 17, 17, .26));
    animation: iconBob var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
    will-change: transform;
}
@keyframes iconBob {
    0%,
    100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%  { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 2.5deg)); }
}
/* JS 활성 시 처음엔 숨겼다가 화면에 들어오면 큰 아이콘부터 순차 등장 */
.js .icon-float__item {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.84);
    transition: opacity .8s ease var(--delay-in, 0s),
                transform .8s cubic-bezier(.2, .8, .25, 1) var(--delay-in, 0s);
}
.js .icon-float.in .icon-float__item {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
@media (prefers-reduced-motion: reduce) {
    .js .icon-float__item { opacity: 1; transform: translate(-50%, -50%); }
    .icon-float__img { animation: none; }
}
.features-visual__placeholder {
    width: 100%;
    min-height: 340px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.features-visual__placeholder i { font-size: 52px; opacity: .35; }

/* ---------- HOME — 카운터 ---------- */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.counter-num {
    font-size: clamp(40px, 6vw, 74px);
    font-weight: 500;                /* 덜 굵게 */
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: baseline;
}
.counter-suffix { color: #fff; }     /* 붉은색 제거 */
.counter-label {
    margin-top: 12px;
    color: #b8b8bd;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- HOME — 최신 게임 자동 스크롤 ---------- */
.games-marquee {
    overflow: hidden;
    width: 100%;
    padding: 24px 0;      /* hover 시 카드가 위로 떠도 상단이 잘리지 않도록 여백 */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.games-marquee__track {
    display: flex;
    width: max-content;
    animation: gmarquee 90s linear infinite;
}
.games-marquee:hover .games-marquee__track { animation-play-state: paused; }
.games-marquee__item {
    flex: 0 0 360px;
    width: 360px;
    margin-right: 30px;   /* gap 대신 margin → seamless 루프 */
}
/* 트랙에 세트를 4벌 복제하고 절반(=2벌)만큼 이동 → 넓은 화면에서도 빈 공간 없이 이어짐 */
@keyframes gmarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .games-marquee__track { animation: none; }
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}
.contact-info-list { margin-top: 34px; display: grid; gap: 22px; }
.contact-info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.contact-info-item .ci-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--ink);
    font-size: 19px;
    transition: background .3s ease, color .3s ease;
}
/* 항목별 포인트 컬러 (빨강/초록/파랑) — 호버 시 점등 */
.contact-info-item:nth-child(1):hover .ci-icon { background: var(--pop-red);   color: #fff; }
.contact-info-item:nth-child(2):hover .ci-icon { background: var(--pop-green); color: #fff; }
.contact-info-item:nth-child(3):hover .ci-icon { background: var(--pop-blue);  color: #fff; }
.contact-info-item h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; font-weight: 700; }
.contact-info-item p, .contact-info-item a { font-size: 17px; color: var(--ink); font-weight: 600; }
.contact-info-item a:hover { color: var(--accent); }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg-light);
    transition: border-color .2s ease, background .2s ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }
/* 포커스 시 파랑 포인트 */
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--pop-blue);
    background: #fff;
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: var(--pop-red); }
.field-error { color: var(--pop-red); font-size: 13px; margin-top: 6px; display: none; }
.form-field.invalid .field-error { display: block; }

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 600;
}
.alert-success { background: rgba(50,215,75,.14); color: #1c7a34; border: 1px solid rgba(50,215,75,.45); }
.alert-error   { background: rgba(255,69,58,.10); color: #c1271c; border: 1px solid rgba(255,69,58,.4); }

/* ---------- 지사 위치 카드 ---------- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.location-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.location-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.location-card .loc-flag { font-size: 26px; margin-bottom: 16px; color: var(--ink); transition: color .3s ease; }
/* 카드별 포인트 컬러 (빨강/초록/파랑) — 호버 시 점등 */
.location-card:nth-child(1):hover .loc-flag { color: var(--pop-red); }
.location-card:nth-child(2):hover .loc-flag { color: var(--pop-green); }
.location-card:nth-child(3):hover .loc-flag { color: var(--pop-blue); }
.location-card h4 { font-size: 20px; margin-bottom: 8px; }
.location-card p { color: var(--text-light); font-size: 15px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--black); color: #a0a0a6; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.5fr;
    gap: 40px;
    padding: 74px 24px 56px;
}
.brand--footer { color: #fff; margin-bottom: 20px; }
.brand--footer .brand-name { color: #fff; }
.footer-tagline { font-size: 14px; color: #85858b; max-width: 320px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 15px;
    transition: background .25s ease, transform .25s ease;
}
/* 소셜 아이콘 호버 시 각기 다른 포인트 컬러 */
.footer-social a:hover { transform: translateY(-3px); }
.footer-social a:nth-child(1):hover { background: var(--pop-blue); }
.footer-social a:nth-child(2):hover { background: var(--pop-red); }
.footer-social a:nth-child(3):hover { background: #fff; color: var(--ink); }
.footer-social a:nth-child(4):hover { background: var(--pop-red); }
.footer-social a:nth-child(5):hover { background: var(--pop-blue); }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #85858b; font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-newsletter .footer-email { color: #fff; font-weight: 600; display: inline-block; margin-bottom: 16px; }
.footer-newsletter .footer-email:hover { color: var(--accent); }
.footer-note { font-size: 13px; color: #85858b; margin-bottom: 14px; }
.newsletter-form {
    display: flex;
    background: rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 5px;
}
.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 0; outline: none;
    color: #fff;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
}
.newsletter-form input::placeholder { color: #6f6f75; }
.newsletter-form button {
    width: 40px; height: 40px;
    border: 0; border-radius: 50%;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.newsletter-form button:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    font-size: 13px;
    color: #6f6f75;
    flex-wrap: wrap;
    gap: 8px;
}

/* =====================================================================
   반응형
   ===================================================================== */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 860px) {
    .section { padding: 76px 0; }
    .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        inset: 112px 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px;
        transform: translateY(-140%);
        transition: transform .35s ease;
        box-shadow: var(--shadow);
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { width: 100%; padding: 14px 8px; border-radius: 8px; }
    .nav-link::after { display: none; }

    .story-grid { grid-template-columns: 1fr; gap: 34px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 44px 32px; }
    .features-grid.has-visual { grid-template-columns: 1fr; }
    .icon-float { max-width: 420px; }
    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    /* 타임라인 → 한쪽 정렬, 아이콘은 카드 아래로 스택 */
    .timeline::before { left: 8px; }
    .timeline-item,
    .timeline-item.side-left,
    .timeline-item.side-right { width: 100%; left: 0; padding: 16px 0 16px 40px; }
    .timeline-item::after,
    .timeline-item.side-left::after,
    .timeline-item.side-right::after { left: 0; right: auto; }
    .timeline-inner,
    .timeline-item.side-right .timeline-inner { flex-direction: column; align-items: stretch; }
    .milestone-icon { align-self: auto; width: 100%; aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
    .games-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .games-marquee__item { flex-basis: 300px; width: 300px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
    .partner-logo { min-height: 110px; }
    .partner-logo img { max-height: 90px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 26px; }
    .video-hero { min-height: 70vh; }
}
