/* ==========================================================
   C.G.TAE Entertainment (시지티타임)  |  CGTae Technology
   ========================================================== */

:root {
  --bg: #0E0F14;
  --bg-2: #14161D;
  --surface: #1B1E27;
  --surface-2: #232733;
  --line: rgba(255, 255, 255, .09);
  --text: #F3F4F8;
  --muted: #A4A9B8;
  --accent: #FF3D6E;
  --accent-2: #FFB547;
  --accent-soft: rgba(255, 61, 110, .14);

  --radius: 16px;
  --container: 1160px;
  --header-h: 76px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
html[lang="ja"] body { font-family: "Pretendard JP Variable", "Pretendard JP", "Pretendard Variable", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; word-break: normal; line-break: strict; }
html[lang="zh-CN"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif; word-break: normal; line-break: strict; }
html[lang="en"] body { word-break: normal; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 14px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
section { padding: 112px 0; }
.alt { background: var(--bg-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(255, 61, 110, .35); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(14, 15, 20, .86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; height: 100%; gap: 36px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav > a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .82); position: relative; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav > a:hover, .nav > a.active { color: #fff; }
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); padding: 4px 9px; border-radius: 999px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { background: var(--accent); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 96px; overflow: hidden; background: #000; }
.hero-bg { position: absolute; inset: 0; background: url("../images/hero.jpg") center right / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .container { position: relative; }
.hero-text { max-width: 620px; }
.hero .kicker { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.12; letter-spacing: -.035em; }
.hero p { font-size: 19px; color: rgba(255, 255, 255, .78); margin: 24px 0 38px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: bob 2s ease-in-out infinite; }
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .2s, border-color .2s; }
.value:hover { transform: translateY(-4px); border-color: rgba(255, 61, 110, .45); }
.value .num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.value h3 { font-size: 24px; margin: 14px 0 10px; }
.value p { color: var(--muted); font-size: 15px; }
.tagline { margin-top: 64px; text-align: center; font-size: clamp(22px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.tagline span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.about-photo::after { content: ""; position: absolute; inset: 0; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.about .hello { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin-bottom: 28px; }
.about .hello em { font-style: normal; color: var(--accent); }
.about h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.vision { font-size: 18px; color: rgba(255, 255, 255, .88); margin-bottom: 34px; }
.vision b { display: block; font-size: 22px; color: #fff; margin-bottom: 6px; }
.missions { display: grid; gap: 12px; }
.missions li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; }
.missions b { color: #fff; font-size: 16px; }
.missions span { color: var(--muted); font-size: 15px; }

/* ---------- members ---------- */
.members { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.member { text-align: left; }
.member .ph { border-radius: 18px; overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1; position: relative; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.member:hover .ph img { transform: scale(1.05); }
.member b { display: block; font-size: 18px; margin-top: 14px; }
.member span { font-size: 14px; color: var(--accent); font-weight: 600; }

/* ---------- works ---------- */
.works-group + .works-group { margin-top: 64px; }
.works-group h3 { font-size: 22px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.works-group h3 small { font-size: 12px; font-weight: 700; color: var(--bg); background: var(--accent-2); padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.works-group > p { color: var(--muted); margin-bottom: 22px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; color: inherit; padding: 0; transition: transform .2s, border-color .2s; display: block; width: 100%; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 61, 110, .45); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 61, 110, .92); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.thumb .play svg { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.card .body { padding: 20px 22px 24px; }
.card h4 { font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }
.card time { font-size: 13px; color: var(--muted); }

/* highlights (horizontal) */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- story (사연 보내기) ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.story .lead { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.story-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .85); margin-bottom: 10px; }
.story-points svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #6E7486; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-info li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.contact-info .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-info .ic svg { width: 18px; height: 18px; }
.contact-info b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-info span, .contact-info a { font-size: 15px; color: #fff; }
.contact-info a { word-break: break-all; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- footer ---------- */
.footer { background: #08090C; color: rgba(255, 255, 255, .55); padding: 48px 0 28px; font-size: 13px; border-top: 1px solid var(--line); }
.footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer .logo img { height: 34px; margin-bottom: 14px; }
.footer li { margin-bottom: 6px; line-height: 1.55; }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 12px; }
.lang { display: flex; gap: 6px; flex-wrap: wrap; }
.lang a { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; }
.lang a.on, .lang a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-box { width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .members { grid-template-columns: repeat(3, 1fr); }
  .about, .story, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 520px; }
  .highlights, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 32px); }
  section { padding: 76px 0; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header.open { background: rgba(14, 15, 20, .97); }
  .header.open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; top: var(--header-h); left: 0; right: 0; background: rgba(14, 15, 20, .97); padding: 10px 16px 20px; border-bottom: 1px solid var(--line); }
  .header.open .nav > a { padding: 12px 6px; font-size: 16px; width: 100%; }
  .header.open .nav > a::after { display: none; }
  .header.open .lang-switch { margin-top: 8px; }
  .header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo img { height: 34px; }
  .hero { min-height: 640px; padding-bottom: 110px; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.35) 100%); }
  .hero p { font-size: 17px; }
  .values { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .highlights, .cards { grid-template-columns: 1fr; }
  .missions li { grid-template-columns: 1fr; gap: 2px; }
  .form { padding: 24px 20px; }
  .section-head { margin-bottom: 36px; }
  .footer .top { flex-direction: column; }
}
