/*
Theme Name: DANBI FILM
Theme URI: https://danbifilm.co.kr
Author: DANBI FILM
Author URI: https://danbifilm.co.kr
Description: 단비필름 — 시네마틱 브랜드 영상 스튜디오 원페이지 테마. 메인 히어로 영상, 유튜브 연동 포트폴리오, 문의 폼을 포함합니다. (HTML/CSS 시안 1:1 포팅)
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danbifilm
Tags: one-page, portfolio, video, dark, korean, cinematic
*/

/* =========================================================
   DANBI FILM — Landing Page
   ========================================================= */

:root {
  --black:        #0c0d16;
  --ink:          #15172a;   /* deep navy ink (process bg) */
  --indigo:       #1d1f44;   /* what-we-do top */
  --indigo-2:     #2a2c57;   /* what-we-do bottom */
  --contact-1:    #14213a;
  --contact-2:    #0d1626;
  --white:        #ffffff;
  --paper:        #fdfdfd;
  --text-dark:    #1a1c2b;
  --text-mid:     #6c6f80;
  --text-light:   #b9bdd0;
  --muted:        #8b90a8;
  --gold:         #c5a467;   /* bronze / gold accent */
  --gold-soft:    #d8c08c;
  --line:         #e4e4ea;
  --maxw:         1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .35em;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.eyebrow.gold  { color: var(--gold); }
.eyebrow.center { text-align: center; }

.quote-lg {
  font-family: 'Noto Serif KR', serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.5;
  letter-spacing: -.01em;
}
.quote-lg.dark   { color: var(--text-dark); }
.quote-lg.light  { color: #f3f1ea; }
.quote-lg.center { text-align: center; }

.body-copy {
  margin-top: 34px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-mid);
  font-weight: 300;
}

.section-head { padding: 0 24px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
}
.header.scrolled {
  background: rgba(12, 13, 22, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
}
.logo-mark span {
  width: 6px; height: 16px;
  background: linear-gradient(180deg, #e9e4d4, #b7ae93);
  display: block;
}
.logo-mark span:nth-child(2) { height: 22px; }
.logo-mark span:nth-child(3) { height: 22px; }
.logo-text {
  font-size: 12px;
  letter-spacing: .25em;
  font-weight: 700;
  color: #efeadd;
  line-height: 1.25;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 500;
  color: rgba(235,235,245,.78);
  transition: color .25s;
}
.nav a:hover { color: var(--gold-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #eee; display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: #0f1117;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,9,14,.55) 0%, rgba(8,9,14,.25) 40%, rgba(8,9,14,.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 120px;
}
.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.4;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero-sub {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(225,227,238,.72);
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 7px; border-radius: 2px;
  background: rgba(255,255,255,.8);
  transform: translateX(-50%);
  animation: scrolldot 1.7s infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* =========================================================
   BRAND PHILOSOPHY
   ========================================================= */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.philosophy-text {
  padding: clamp(60px, 9vw, 140px) clamp(40px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.philosophy-image {
  min-height: 420px;
  background-color: #11203a;
  background-image:
    linear-gradient(120deg, rgba(16,24,44,.16), rgba(16,24,44,.02)),
    url('assets/img/brand-philosophy.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   WHAT WE DO
   ========================================================= */
.what {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-2) 100%);
  color: #fff;
  padding: clamp(80px, 9vw, 130px) 0 clamp(90px, 10vw, 140px);
}
.what .section-head { margin-bottom: 70px; }
.what-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.what-item { text-align: center; }
.what-circle {
  display: grid;
  place-items: center;
  width: 132px; height: 132px;
  margin: 0 auto 26px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background-color: #353a5e;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.what-circle::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(15,16,38,.42);
}
.what-circle em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .04em;
  color: #f0eee6;
  font-weight: 500;
}
.what-item h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #f1f0ea;
  margin-bottom: 14px;
}
.what-item p {
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(190,194,215,.65);
}

/* =========================================================
   STYLE
   ========================================================= */
.style {
  display: grid;
  grid-template-columns: 1fr 1.67fr;
  background: var(--white);
}
.style-text {
  padding: clamp(60px, 9vw, 130px) clamp(40px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
}
.divider { width: 46px; height: 1px; background: #cfcfd6; margin: 30px 0 26px; }
.keywords li {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 2.15;
  letter-spacing: .02em;
  font-weight: 300;
}
.style-strips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 560px;
}
.style-strips .strip {
  background-color: #1b2030;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) contrast(1.02);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  position: relative;
  background:
    url('assets/img/process-bg.webp') center/cover no-repeat,
    var(--ink);
  color: #fff;
  padding: clamp(80px, 9vw, 130px) 0 clamp(90px, 10vw, 130px);
  overflow: hidden;
}
.process-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,20,.92), rgba(13,15,28,.95));
}
.process .section-head { position: relative; z-index: 1; margin-bottom: 80px; }
.process-track {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.process-line {
  position: absolute;
  top: 33px;
  left: 13%;
  right: 13%;
  height: 1px;
  background: rgba(197,164,103,.4);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 1px solid rgba(197,164,103,.6);
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 16px;
  letter-spacing: .05em;
  font-weight: 400;
}
.step-icon {
  display: block;
  font-size: 22px;
  margin-bottom: 16px;
  filter: grayscale(1) brightness(1.6);
}
.step h3 {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #efeee8;
  margin-bottom: 12px;
}
.step p {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(180,184,205,.6);
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
  display: grid;
  grid-template-columns: 0.78fr 1.6fr;
  gap: clamp(30px, 5vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 130px) 40px;
}
.portfolio-aside { padding-top: 6px; }
.view-all {
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 5px;
}
.aside-note {
  margin-top: 40px;
  font-size: 11px;
  line-height: 2;
  color: var(--text-mid);
  font-weight: 300;
}
.aside-note.light { color: rgba(200,204,222,.6); }

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}
.tab {
  flex: 1;
  padding: 13px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-mid);
  background: #f2f2f5;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s;
}
.tab.active {
  background: #14182c;
  color: #fff;
  border-color: #14182c;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  opacity: 0;
  transition: opacity .5s ease;
}
.works-grid.ready { opacity: 1; }
.work.is-hidden { display: none; }
.work {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1d2236;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.work::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,26,.1), rgba(12,14,26,.65));
  transition: background .3s;
}
.work:hover::before { background: linear-gradient(180deg, rgba(12,14,26,.2), rgba(12,14,26,.8)); }
.work .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(2px);
}
.work .play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.work b {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  background:
    url('assets/img/contact-bg.webp') center/cover no-repeat,
    var(--contact-2);
  color: #fff;
  overflow: hidden;
}
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16,28,52,.94), rgba(9,16,30,.92));
}
.contact-aside,
.contact-form {
  position: relative;
  z-index: 1;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  padding: clamp(80px, 9vw, 130px) clamp(40px, 7vw, 110px);
}
.contact-aside { display: flex; flex-direction: column; justify-content: center; }

.contact-form { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.field { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold-soft);
  margin-bottom: 12px;
  font-weight: 500;
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 8px 0;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  resize: none;
  transition: border-color .25s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(180,186,210,.4); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--gold); }

.submit-btn {
  align-self: flex-start;
  margin-top: 10px;
  padding: 14px 40px;
  background: var(--gold);
  color: #16182a;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 700;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background .25s, transform .15s;
}
.submit-btn:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #08090f;
  color: rgba(180,184,205,.55);
  padding: 56px 40px 48px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-name {
  font-size: 14px;
  letter-spacing: .14em;
  font-weight: 700;
  color: #e9e4d4;
}
.footer-name em { font-style: normal; font-weight: 400; color: rgba(233,228,212,.6); }
.footer-info {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 48px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: .01em;
}
.footer-copy {
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(180,184,205,.35);
}
@media (max-width: 620px) {
  .footer-info { grid-template-columns: 1fr; gap: 7px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav a { font-size: 10px; }
  .what-grid { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .process-track { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .process-line { left: 10%; right: 10%; }
}

@media (max-width: 860px) {
  .nav-inner { padding: 16px 22px; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 250px;
    flex-direction: column;
    gap: 26px;
    background: rgba(12,13,22,.97);
    padding: 90px 30px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 110; }

  .hero-content { padding-bottom: 90px; }

  .philosophy,
  .style,
  .portfolio,
  .contact { grid-template-columns: 1fr; }

  .philosophy-image { min-height: 320px; order: -1; }
  .style-strips { min-height: 360px; }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process-line { display: none; }
  .portfolio { gap: 50px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav-inner { padding: 14px 18px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .what-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1 1 40%; }
}

/* =========================================================
   CLIENT REVISION — 시안 1:1 보정 오버라이드
   · 실제 이미지(webp) 적용  · 각 섹션 풀스크린(100vh)
   · 문구 오렌지 막대바  · PROCESS 골드 라인 아이콘
   ========================================================= */
:root { --orange: #f6ae3c; }

/* ---------- 로고 이미지 ---------- */
.logo-img { height: 96px; width: auto; display: block; object-fit: contain; }
.footer-brand .logo-img { height: 140px; width: auto; display: block; object-fit: contain; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; }
@media (max-width: 640px) { .logo-img { height: 74px; } .footer-brand .logo-img { height: 112px; } }

/* ---------- 오렌지 막대바 (문구 악센트) ---------- */
.bar {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin: 24px 0;
}
.bar.center { margin-left: auto; margin-right: auto; }
.divider { background: var(--orange); height: 2px; }          /* STYLE 구분선도 오렌지 */
.what-item h3, .step h3 { margin-bottom: 0; }
.what-item .bar, .step .bar { margin: 11px auto; }
.philosophy .body-copy { margin-top: 0; }
.contact .aside-note { margin-top: 0; }

/* ---------- 실제 배경 이미지 (picsum 제거) ---------- */
.hero { background: #0f1117; }

.philosophy-image {
  background-image:
    linear-gradient(120deg, rgba(16,24,44,.16), rgba(16,24,44,.02)),
    url('assets/img/brand-philosophy.webp');
}

.what {
  background:
    linear-gradient(180deg, rgba(21,23,52,.74) 0%, rgba(30,32,72,.80) 100%),
    url('assets/img/what-bg.webp') center/cover no-repeat;
}

.process {
  background:
    url('assets/img/process-bg.webp') center/cover no-repeat,
    var(--ink);
}
.process-overlay {
  background: linear-gradient(180deg, rgba(10,11,20,.80), rgba(13,15,28,.86));
}

.contact {
  background:
    url('assets/img/contact-bg.webp') center/cover no-repeat,
    var(--contact-2);
}
.contact-overlay {
  background: linear-gradient(120deg, rgba(14,24,48,.80), rgba(9,16,30,.82));
}

/* ---------- WHAT WE DO 원형: 사진이 살짝 더 보이게 ---------- */
.what-circle::after { background: rgba(15,16,38,.38); }

/* ---------- PROCESS 골드 라인 아이콘 ---------- */
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-bottom: 16px;
  filter: none;
}
.step-icon svg { width: 30px; height: 30px; color: var(--gold-soft); }

/* ---------- 각 섹션 세로 풀스크린 (데스크탑) ---------- */
@media (min-width: 861px) {
  .philosophy,
  .style { min-height: 100vh; }

  .what,
  .process {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .portfolio { min-height: 100vh; align-items: center; }
  .contact   { min-height: 100vh; align-items: center; }
}

/* =========================================================
   PROCESS — 아이콘/글씨 가독성 보정 (추가 수정)
   · 아이콘 흰색(강제) + 확대
   · 숫자/제목/설명 글씨 시안 비율로 확대 + 설명 대비 강화
   ========================================================= */
.step-num {
  width: 78px;
  height: 78px;
  font-size: 20px;
  color: #e7b24f;
  border-color: rgba(225,176,80,.65);
}
.process-line {
  top: 39px;
  background: rgba(225,176,80,.42);
}
.step-icon {
  height: 38px;
  margin-bottom: 18px;
}
.step-icon svg {
  width: 38px;
  height: 38px;
  color: #ffffff !important;   /* 아이콘 흰색 (강제) */
  stroke-width: 1.6;
}
/* 아이콘 흰색 강제 — currentColor 요소만 정확히 지정 (채워진 삼각형 테두리 방지) */
.step-icon svg [stroke="currentColor"] { stroke: #ffffff !important; }
.step-icon svg [fill="currentColor"]   { fill: #ffffff !important; }
.step h3 {
  font-size: 16px;
  letter-spacing: 0;
  color: #f3f1ea;
}
.step .bar { margin: 12px auto 13px; }
.step p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(210,214,232,.85);   /* 흐릿함 → 선명하게 */
}

/* =========================================================
   섹션 등장 애니메이션 v2 — 스크롤 진입마다 재생
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-56px); }
.reveal-zoom  { transform: scale(1.08); }
.reveal-strip { transform: translateY(80px); }
.reveal.is-in { opacity: 1; transform: none; }

/* 이동/줌 애니메이션이 이웃 섹션을 침범하지 않게 클리핑 */
.philosophy, .style { overflow: hidden; }

/* 히어로 첫 로드 인트로 */
.hero-content {
  animation: dfHeroIn 1.15s cubic-bezier(.22, 1, .36, 1) .25s both;
}
@keyframes dfHeroIn {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
}
