/* (주)매직오브 회사 소개 www.magicorb.co.kr 첫 화면(2026-10-15 새 디자인). 짙은 남색 + 푸른·보랏빛 구슬. 모서리 8px. */
:root { --bg: #060D19; --card: #0A1422; --card-line: #1A2740; --line: #1F2A3D; --panel: #101C35; --accent: #91A6FF; --muted: #A8B5D1; --text: #F2F5FF; --r: 8px; --sans: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.corp { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.corp a { color: inherit; text-decoration: none; }
.corp img { display: block; max-width: 100%; }
.corp h1, .corp h2, .corp h3, .corp p, .corp dl, .corp dd { margin: 0; }
.corp ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .04em; margin-bottom: 18px !important; }
.muted { color: var(--muted); }
.arrow { width: 16px; height: 16px; flex: none; }
.corp a:focus-visible, .corp button:focus-visible { outline: 3px solid #9EB5FF; outline-offset: 4px; }

/* 머리 */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background-color .3s, box-shadow .3s; }
.hd.is-solid { background: rgba(6, 13, 25, .92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hd-in { display: flex; align-items: center; height: 96px; transition: height .3s; }
.hd.is-solid .hd-in { height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; font-size: 29px; font-weight: 500; color: #CAD4FF; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.brand img.brand-word { width: auto; height: 26px; }   /* 로고 글자는 폐하가 준 워드마크 그림(Montserrat 굵게, 2026-10-19) */
.nav { display: flex; align-items: center; gap: 44px; font-size: 16px; }
.nav a:not(.nav-btn):hover { color: var(--accent); }
/* 상담 문의: 테두리 없이 다른 메뉴와 같은 글자(2026-10-15 폐하 지시) */
.nav-btn { display: inline-flex; align-items: center; min-height: 44px; }
.nav-btn:hover { color: var(--accent); }
.hd-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; padding: 10px; margin-right: -10px; cursor: pointer; }
.hd-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hd-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 첫 화면 */
.hero { position: relative; min-height: 810px; display: flex; flex-direction: column; overflow: hidden; background: #04091C; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-in { position: relative; z-index: 1; flex: 1; padding-top: 210px; padding-bottom: 80px; }
.hero h1 { font-size: 56px; font-weight: 600; line-height: 1.48; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(4, 9, 28, .6); }
.hero h1 em { font-style: normal; color: var(--accent); margin-left: .25em; }
.hero-sub { margin-top: 36px !important; font-size: 23px; line-height: 1.9; text-shadow: 0 2px 20px rgba(4, 9, 28, .7); }
.hero-bar { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-bar .wrap { display: flex; gap: 0; height: 90px; align-items: center; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.hero-bar span { width: 230px; padding-left: 12px; }
.hero-bar span:first-child { padding-left: 12px; }

/* 구역 */
.sec { padding: 120px 0 0; }
.sec-head h2, .cta h2 { font-size: 43px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.sec-head.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: end; }
.sec-head.two .muted { font-size: 17px; line-height: 2; padding-bottom: 6px; }

/* 사업 카드 3장 */
.biz { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
/* 카드 5장(2026-10-17): PC 는 위 3장(01~03)·아래 2장(04·05) */
.biz > .card { grid-column: span 2; }   /* 01~08 모두 같은 폭(3개씩, 2026-10-19 GPT 시안 v5) */

.biz .card h3 { font-size: 27px; }
.biz .card .desc { font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.tags li { font-size: 12.5px; color: #CAD4FF; border: 1px solid #2B3B63; background: #0F1B33; border-radius: 14px; padding: 3px 10px; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r); padding: 32px 24px 24px; display: flex; flex-direction: column; }
.card .no { font-size: 14px; font-weight: 500; color: var(--accent); }
/* 번호는 제목 왼쪽 같은 줄에(2026-10-18 폐하 지시) */
.card .ttl { display: flex; align-items: baseline; gap: 14px; }
.card .ttl .no { flex: none; font-size: 20px; }
.biz .card .ttl h3 { margin-top: 0; }
@media (max-width: 767px) { .card .ttl .no { font-size: 17px; } .card .ttl { gap: 10px; } }
.card h3 { font-size: 31px; font-weight: 500; margin-top: 34px; letter-spacing: -.01em; }
.card .sub { font-size: 20px; color: var(--accent); margin-top: 8px !important; }
.card .desc { font-size: 18px; color: var(--muted); line-height: 1.75; margin-top: 18px !important; flex: 1; }
.shot { display: block; position: relative; margin-top: 30px; aspect-ratio: 384 / 280; border-radius: 6px; overflow: hidden; background: #0D1830; display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; height: 100%; object-fit: contain; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
a.shot { transition: box-shadow 280ms ease, outline-color 280ms; outline: 1px solid transparent; }
@media (hover: hover) { a.shot:hover { outline-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); } a.shot:hover img { transform: scale(1.03); } }
.shot-game img { object-fit: cover; }
.shot-live { position: relative; display: block; width: 100%; aspect-ratio: 960 / 647; overflow: hidden; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.shot-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .shot-live img { position: relative; display: block; transition: none; }
@media (hover: hover) { a.shot:hover .shot-live { transform: scale(1.03); } a.shot:hover .shot-live img { transform: none; } }
/* 02 영상 제작: 세로 영상 4개 나란히(2026-10-19) */
.shot-reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; align-items: center; }
.shot-reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #0D1830; display: block; }
.badge { position: absolute; top: 16px; right: 16px; padding: 8px 18px; border-radius: 20px; background: rgba(20, 24, 36, .82); color: var(--text); font-size: 15px; }

/* 일하는 방식 */
.way { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 52px; }
.way-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r); padding: 32px 28px 44px; overflow: hidden; }
.way-card .way-pic { display: block; width: calc(100% + 56px); max-width: none; height: 205px; margin: -32px -28px 26px; object-fit: cover; background: #070F1B; }
.way-card b { display: block; font-size: 39px; font-weight: 500; color: var(--accent); line-height: 1.2; }
.way-card h3 { font-size: 25px; font-weight: 500; margin-top: 18px; }
.way-card p { font-size: 17px; color: var(--muted); line-height: 1.95; margin-top: 22px !important; }

/* 회사 개요 */
/* 회사소개(2026-10-22 승인 시안): 왼쪽 제목·소개·그림·서비스 칩 / 오른쪽 회사 정보·연락처 카드 */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about h2 { font-size: 64px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.about-sub { font-size: 23px; color: var(--muted); line-height: 1.7; margin-top: 22px !important; }
.corp .about-pic { width: 100%; max-width: 700px; height: auto; margin-top: 34px; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }   /* 잘라 낸 그림 가장자리가 바탕에 스며들게 */
.about-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px !important; }
.about-chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid #2A3A66; border-radius: 999px; background: rgba(16, 28, 53, .55); font-size: 17px; }
.about-chips svg { width: 22px; height: 22px; color: #BFCBFF; flex: none; }
.about-r { display: grid; gap: 24px; }
.about-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 26px 32px 30px; }
.about-card h3 { display: flex; align-items: center; gap: 18px; font-size: 24px; font-weight: 700; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.about-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #111E3A; color: #9DB0FF; flex: none; }
.about-ico svg { width: 26px; height: 26px; }
.about-card dl > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.about-card dl > div:last-child { border-bottom: 0; }
.about-card dt { color: var(--muted); }
.about-card dd a:hover { color: var(--accent); }
.about-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.about-btn { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 70px; padding: 0 18px; border: 1px solid #5B66C9; border-radius: 12px; background: #0B1530; font-size: 19px; font-weight: 700; color: var(--text); transition: border-color .2s, background-color .2s; }
.about-btn:hover { border-color: var(--accent); background: #101D40; }
.corp .about-btn img { width: 34px; height: 34px; flex: none; }
.about-btn svg { width: 30px; height: 30px; color: #BFCBFF; flex: none; }
.mo-br { display: none; }

/* 상담 띠 */
.sec-cta { padding-bottom: 60px; }
.cta { background: var(--panel); border: 1px solid #22345A; border-radius: var(--r); padding: 54px 38px 60px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta .eyebrow { font-size: 12px; }
.cta h2 { font-size: 34px; }
.kakao { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 250px; min-height: 58px; padding: 0 18px 0 16px; background: #0D182C; border: 1px solid rgba(242, 245, 255, .55); border-radius: var(--r); font-size: 19px; font-weight: 500; transition: background-color .25s; }
.kakao img { width: 28px; height: 28px; }
.kakao .arrow { margin-left: auto; color: var(--muted); }
.kakao:hover { background: #15233F; }

/* 바닥 */
.ft { border-top: 1px solid var(--line); margin-top: 60px; color: var(--muted); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 376px); gap: 40px; padding-top: 52px; }
.ft-grid li { font-size: 16px; line-height: 1.4; padding: 6px 0; }
.ft-grid li + li { margin-top: 8px; }
.ft-grid a:hover, .ft-legal a:hover { color: var(--text); }
.ft-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 56px; padding: 34px 0 50px; font-size: 15px; }
.ft-bottom > span:last-child { min-width: 376px; }
.ft-legal a + a::before { content: '·'; margin: 0 8px; }

/* 스크롤 등장 */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* 태블릿 */
@media (max-width: 1180px) {
    .wrap { padding: 0 40px; }
    .nav { gap: 28px; }
    .hero h1 { font-size: 48px; }
    .biz, .way { gap: 18px; }
    .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .biz > .card { grid-column: auto; }
    .biz > .card:last-child:nth-child(odd) { grid-column: auto; }   /* 두 칸일 때 홀수 마지막 카드도 같은 폭으로 왼쪽 칸 */
    .card h3 { font-size: 26px; }
    .way-card b { font-size: 32px; }
    .way-card h3 { font-size: 21px; }
    .way-card p, .card .desc { font-size: 15px; }
    .about { grid-template-columns: 1fr; gap: 36px; }
    .about-card dl > div { grid-template-columns: 170px minmax(0, 1fr); }
    .ft-bottom > span:last-child { min-width: 0; }
}
@media (max-width: 900px) {
    .biz, .way { grid-template-columns: 1fr; }
    .sec-head.two { grid-template-columns: 1fr; gap: 16px; }
}

/* 휴대폰(시안 720 = 실제 360) */
@media (max-width: 767px) {
    .wrap { padding: 0 20px; }
    .hd-in, .hd.is-solid .hd-in { height: 64px; }
    .brand { font-size: 20px; gap: 10px; }
    .brand img { width: 32px; height: 32px; }
    .brand img.brand-word { width: auto; height: 20px; }
    .hd-toggle { display: block; }
    .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
    .nav.is-open { display: flex; }
    .nav a:not(.nav-btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    /* 휴대폰 메뉴에서만 상담 문의를 테두리 상자로(2026-10-15 폐하 지시) */
    .nav-btn { margin-top: 16px; justify-content: center; min-height: 48px; border: 1px solid rgba(242, 245, 255, .55); border-radius: 24px; }
    /* 첫 화면: 글 → 구슬(세로로, 겹치지 않게) */
    .hero { min-height: 0; background: var(--bg); }
    .hero-bg { position: relative; order: 2; inset: auto; aspect-ratio: 1000 / 941; }
    .hero-bg img { object-position: 50% 50%; }
    .hero-in { order: 1; padding-top: 100px; padding-bottom: 30px; flex: none; }
    .hero h1 { font-size: 26px; line-height: 1.5; }
    .hero h1 em { margin-left: 0; }
    .hero-sub { font-size: 14px; margin-top: 18px !important; line-height: 1.8; }
    .hero-bar { display: none; }
    .sec { padding-top: 64px; }
    .eyebrow { font-size: 11px; margin-bottom: 12px !important; }
    .sec-head h2 { font-size: 23px; }
    .about h2 { font-size: 40px; }
    .sec-head.two .muted { font-size: 14px; line-height: 1.85; }
    .biz { margin-top: 30px; gap: 16px; }
    .card { padding: 22px 16px 16px; }
    .card h3, .biz .card h3 { font-size: 22px; margin-top: 18px; }
    .card .sub { font-size: 15px; margin-top: 4px !important; }
    .card .desc, .biz .card .desc { font-size: 14px; margin-top: 10px !important; }
    .shot { margin-top: 18px; aspect-ratio: 16 / 10; }
    .badge { top: 10px; right: 10px; font-size: 12px; padding: 6px 12px; }
    .way { margin-top: 28px; gap: 14px; }
    .way-card { padding: 24px 20px 28px; }
    .way-card .way-pic { width: calc(100% + 40px); height: 190px; margin: -24px -20px 18px; }
    .way-card b { font-size: 28px; }
    .way-card h3 { font-size: 18px; margin-top: 10px; }
    .way-card p { font-size: 14px; margin-top: 12px !important; line-height: 1.8; }
    .about-sub { font-size: 16px; margin-top: 14px !important; }
    .about-chips { gap: 8px; }
    .about-chips li { min-height: 42px; padding: 0 16px; font-size: 14px; gap: 7px; }
    .about-chips svg { width: 18px; height: 18px; }
    .about-card { padding: 18px 18px 22px; }
    .about-card h3 { font-size: 19px; gap: 12px; padding-bottom: 16px; }
    .about-ico { width: 44px; height: 44px; }
    .about-ico svg { width: 22px; height: 22px; }
    .about-card dl > div { grid-template-columns: 112px minmax(0, 1fr); padding: 14px 2px; font-size: 14px; gap: 10px; }
    .about-btns { gap: 10px; }
    .about-btn { min-height: 54px; font-size: 15px; gap: 8px; padding: 0 8px; }
    .corp .about-btn img { width: 26px; height: 26px; }
    .about-btn svg { width: 24px; height: 24px; }
    .mo-br { display: inline; }
    .cta { padding: 30px 22px 34px; flex-direction: column; align-items: flex-start; gap: 22px; }
    .cta h2 { font-size: 20px; }
    .kakao { width: min(280px, 100%); min-height: 52px; font-size: 16px; }
    .ft { margin-top: 40px; }
    .ft-grid { grid-template-columns: 1fr; gap: 6px; padding-top: 34px; }
    .ft-grid li { font-size: 13px; padding: 4px 0; line-height: 1.5; }
    .ft-grid li + li { margin-top: 0; }
    .ft-bottom { margin-top: 26px; padding: 20px 0 40px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .corp *, .corp *::before, .corp *::after { transition: none !important; animation: none !important; }
    .corp [data-reveal] { opacity: 1 !important; transform: none !important; }
}
/* 설명글 ↔ 태그 간격(2026-10-31 폐하 지시 "갭이 크다"): 설명글이 늘어나 태그를 밀어내던 것(flex:1)을 빼고, 남는 자리는 그림 위로 — 같은 줄 그림 높이는 그대로 맞춤 */
.biz .card .desc { flex: none; }
.biz .card .tags { margin-top: 12px !important; }
.biz .card > .shot { margin-top: auto; }
.biz .card > :is(.desc, .tags):has(+ .shot) { margin-bottom: 26px; }
