/* ════════════════════════════════════════════
   Hub — Cinematic Landing · Final Retouch
   ════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   COSMOS-STYLE MOTION SYSTEM
   ════════════════════════════════════════════ */

/* ── Line Reveal — cosmos 핵심 텍스트 등장 방식 ── */
/* 각 라인을 overflow:hidden 래퍼로 감싸고
   텍스트가 translateY(100%) → 0 으로 밀려 올라옴 */
.line-wrap {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}
.line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out-expo);
  will-change: transform;
}
.line-inner.is-revealed {
  transform: translateY(0);
}

/* ── Fade Drift — 요소가 아래서 살짝 떠오르며 등장 ── */
.fade-drift {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease-out-expo),
    transform 1.1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.fade-drift.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-brand);
  z-index: var(--z-toast);
  transition: none;
}

/* ── Cinematic Hero — Full viewport ── */
.cin-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--content-px);
  overflow: visible;
}

/* Hero — 대형 SVG 로고 마크 */
.cin-hero-logomark {
  width: 180px;
  height: auto;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: cinRevealLogo 1.2s var(--ease) 0.2s forwards;
}
@keyframes cinRevealLogo {
  from { opacity: 0; transform: scale(0.94); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Hero — 라벨 */
.cin-hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-brand);
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: cinFadeUp 0.9s var(--ease) 0.5s forwards;
}
.cin-hero-label::before,
.cin-hero-label::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red-brand);
  opacity: 0.35;
}

/* Hero — 메인 타이틀 (단어별 분해 애니메이션) */
.cin-hero-title {
  font-size: clamp(40px, 7.5vw, 80px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.04;
  letter-spacing: -0.038em;
  margin-bottom: var(--space-10);
  max-width: 860px;
}
.cin-hero-title .word {
  display: inline;
}
.cin-hero-title .hero-char {
  display: inline-block;
  opacity: 0;
  filter: blur(3px);
  animation: cinCharReveal 1600ms cubic-bezier(0.25, 0, 0.15, 1) forwards;
  animation-delay: var(--cd, 0.8s);
}
.cin-hero-title .hero-char.accent { color: var(--red-brand); }
@keyframes cinCharReveal {
  to { opacity: 1; filter: blur(0); }
}

/* Hero — 서브텍스트 */
.cin-hero-desc {
  font-size: clamp(var(--text-base), 1.3vw, var(--text-md));
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.82;
  margin: 0 auto var(--space-12);
  opacity: 0;
  animation: cinFadeIn 1.2s cubic-bezier(0.25, 0, 0.15, 1) 3.0s forwards;
}
@keyframes cinFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Legacy — 다른 요소용 */
@keyframes cinFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Hero Entrance Gate — 시퀀스 완료 전 아래 콘텐츠 숨김 ── */
.cin-hero ~ * {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0, 0.15, 1);
}
body.hero-ready .cin-hero ~ * {
  opacity: 1;
}

/* ── Horizontal Marquee (무한 스크롤 태그) ── */
.cin-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
  background: var(--bg);
}
.cin-marquee-track {
  display: flex;
  gap: var(--space-10);
  width: max-content;
  animation: cinMarquee 40s linear infinite;
}
.cin-marquee:hover .cin-marquee-track {
  animation-play-state: paused;
}
.cin-marquee-item {
  font-family: var(--mono);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.cin-marquee-item .dot {
  width: 4px;
  height: 4px;
  background: var(--red-brand);
  border-radius: var(--radius-round);
  flex-shrink: 0;
}
@keyframes cinMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Manifesto Section — Sticky Scroll Reveal ── */
.cin-manifesto-wrap {
  position: relative;
  height: 250vh;
}
.cin-manifesto {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(32px, 8vw, 120px);
  max-width: 1200px;
  margin: 0 auto;
}
.cin-manifesto-text {
  font-family: var(--sans);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--ls-tightest);
  color: var(--charcoal);
}
.cin-manifesto-text .mf-word {
  display: inline;
}
.cin-manifesto-text .mf-char {
  display: inline-block;
  opacity: 0;
  filter: blur(var(--reveal-blur));
  transform: translateY(var(--reveal-shift));
  transition:
    opacity var(--reveal-dur-char) var(--reveal-ease),
    filter var(--reveal-dur-blur) var(--reveal-ease),
    transform var(--reveal-dur-char) var(--reveal-ease);
}
.cin-manifesto-text .mf-char.is-lit {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.cin-manifesto-text .mf-char.mf-keyword {
  color: var(--red-brand);
}
.cin-manifesto-sub {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--reveal-dur-line) var(--reveal-ease), transform var(--reveal-dur-line) var(--reveal-ease);
}
.cin-manifesto-sub.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mf-sub-line {
  font-family: var(--mono);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}
.cin-manifesto-attr {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-10);
  opacity: 0;
  transition: opacity var(--reveal-dur-fade) var(--reveal-ease);
}
.cin-manifesto-attr.is-visible {
  opacity: 1;
}

/* ── 4-Layer Architecture — Staggered Reveal ── */
.cin-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
}
.cin-layer {
  background: var(--bg);
  padding: var(--card-py) var(--card-px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease);
  text-decoration: none;
  color: inherit;
}
.cin-layer:hover {
  background: var(--bg-card);
}
.cin-layer:hover .cin-layer-num {
  color: var(--red-brand);
  opacity: 0.2;
}
.cin-layer:hover .cin-layer-bar {
  transform: scaleX(1);
}
.cin-layer-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease);
}
.cin-layer-num {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--charcoal);
  opacity: 0.04;
  line-height: 1;
  margin-bottom: var(--space-7);
  transition: color var(--dur-hover) var(--ease), opacity var(--dur-hover) var(--ease);
}
.cin-layer-title {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.cin-layer-en {
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.cin-layer-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}
.cin-layer-link {
  font-family: var(--mono);
  font-size: var(--text-11);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--dur-normal) var(--ease);
}
.cin-layer:hover .cin-layer-link {
  gap: var(--space-3);
}

/* ── Showcase — Full-bleed Dark Section ── */
.cin-showcase {
  position: relative;
  z-index: 1;
  background: var(--black);
  color: var(--text-inverse);
  padding: var(--section-gap) 0;
  overflow: hidden;
}
.cin-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(150,30,35,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cin-showcase-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-px);
}
.cin-showcase-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: end;
  margin-bottom: 64px;
}
.cin-showcase-label {
  font-family: var(--mono);
  font-size: var(--text-11);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-brand-visible);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cin-showcase-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: rgba(150,30,35,0.7);
}
.cin-showcase-title {
  font-size: clamp(var(--text-3xl), 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}
.cin-showcase-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 400px;
  justify-self: end;
  align-self: end;
}

/* Showcase — 3-column Feature Preview */
.cin-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.cin-preview-card {
  background: rgba(255,255,255,0.02);
  padding: var(--space-8);
  transition: background var(--dur-hover) var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cin-preview-card:hover {
  background: rgba(255,255,255,0.05);
}
.cin-preview-card:hover .cin-preview-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}
.cin-preview-visual {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* ▼ 이미지 플레이스홀더 — 내일 아침 교체 필요 */
.cin-preview-visual .placeholder-note {
  font-family: var(--mono);
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.2);
  text-align: center;
  letter-spacing: 0.06em;
}
.cin-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.cin-preview-tag {
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.cin-preview-arrow {
  color: rgba(255,255,255,0.3);
  transition: all var(--dur-normal) var(--ease);
  opacity: 0.5;
}
.cin-preview-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--space-2);
}
.cin-preview-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}



/* ── Persona Section — Editorial 2-column ── */
.cin-editorial {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 120px var(--content-px);
}
.cin-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.cin-editorial-left {
  position: sticky;
  top: 120px;
}
.cin-editorial-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.cin-persona-card {
  padding: var(--card-py) var(--card-px);
  border: 1px solid var(--border);
  transition: all var(--dur-hover) var(--ease);
  position: relative;
  overflow: hidden;
}
.cin-persona-card:hover {
  border-color: rgba(150,30,35,0.15);
  box-shadow: var(--shadow-lg);
}
.cin-persona-card:hover .cin-persona-initial {
  color: var(--red-brand);
  opacity: 0.15;
}
.cin-persona-initial {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--charcoal);
  opacity: 0.04;
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  transition: all var(--dur-hover) var(--ease);
}
.cin-persona-role {
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.cin-persona-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
}
.cin-persona-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── CTA — Cinematic Banner ── */
.cin-cta {
  position: relative;
  z-index: 1;
  background: var(--charcoal);
  color: var(--text-inverse);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cin-cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-px);
  position: relative;
  z-index: 1;
}
.cin-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 100%, rgba(150,30,35,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 0%, rgba(150,30,35,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cin-cta-label {
  font-family: var(--mono);
  font-size: var(--text-11);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-brand-visible);
  margin-bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.cin-cta-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(150,30,35,0.7);
}
.cin-cta-title {
  font-size: clamp(var(--text-3xl), 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: var(--space-6);
}
.cin-cta-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin: 0 auto var(--space-10);
  line-height: 1.8;
}
.cin-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--white);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: all var(--dur-hover) var(--ease);
  text-decoration: none;
}
.cin-cta-btn:hover {
  background: var(--red-brand);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(150,30,35,0.25);
}

/* ── Footer ── */
.cin-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: var(--space-10) var(--content-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}
.cin-footer-logo {
  font-family: var(--serif);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--charcoal);
}
.cin-footer-logo .dot { color: var(--red-brand); }
.cin-footer-copy {
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Layers — 클립패스 reveal ── */
.cin-layer {
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.9s var(--ease-out-expo),
    background var(--dur-hover) var(--ease);
}
.cin-layer.is-visible {
  clip-path: inset(0 0 0% 0);
}


/* ── Showcase 다크 섹션 — 글로우 버스트 ── */
.cin-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(150,30,35,0.12) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease);
}
.cin-showcase.is-glowing::after {
  opacity: 1;
}

/* ── Persona 카드 — 패럴랙스 offset ── */
.cin-persona-card {
  will-change: transform;
}

/* ── 섹션 진입 마커 — 레드 스캔라인 ── */
.cin-section-marker {
  position: absolute;
  left: 0; top: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--red-brand), transparent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}
.cin-section-has-marker {
  position: relative;
  overflow: visible;
}
.cin-section-has-marker .cin-section-marker {
  animation: none;
}
.cin-section-has-marker.marker-fired .cin-section-marker {
  animation: sectionScan 1s var(--ease-out-expo) forwards;
}
@keyframes sectionScan {
  from { width: 0%; opacity: 0.6; }
  to   { width: 100%; opacity: 0; }
}

/* ── Preview 카드 — 수직 클립 ── */
.cin-preview-card {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.cin-preview-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .cin-layers { grid-template-columns: repeat(2, 1fr); }
  .cin-preview-grid { grid-template-columns: 1fr; }
  .cin-manifesto {
    padding: 0 clamp(20px, 4.2vw, 56px);
  }
  .cin-editorial-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .cin-editorial-left { position: static; }
  .cin-showcase-header { grid-template-columns: 1fr; gap: var(--space-6); }
  /* Hero responsive adjustments */
  .cin-hero { padding: var(--space-8) var(--content-px); }
  .cin-hero-title { max-width: 100%; }
  .cin-hero-desc { max-width: 100%; }
}
@media (max-width: 640px) {
  .cin-layers { grid-template-columns: 1fr; }
  .cin-manifesto {
    padding: 0 var(--content-px-mobile);
  }
  .cin-manifesto-text {
    font-size: clamp(28px, 7.4vw, 38px);
    line-height: 1.3;
  }
  .cin-manifesto-sub {
    flex-direction: column;
    gap: var(--space-3);
  }
  .cin-hero-title { letter-spacing: -0.03em; font-size: clamp(28px, 6vw, 48px); }
  .cin-hero-desc { font-size: clamp(var(--text-sm), 1.1vw, var(--text-base)); line-height: 1.6; }
  .cin-hero-logomark { width: 120px; }
  .cin-hero-label { font-size: 10px; }
  .cin-hero-label::before,
  .cin-hero-label::after { width: 20px; }
  .cin-marquee-track { gap: var(--space-6); }
  .cin-marquee-item { font-size: var(--text-xs); }
}
