/* =========================================================
  YENE — Case Study
  Color system matched to stella0526.github.io/yene/
  Navy #0f223d · Blue #214da3 · Yellow #ffc400
========================================================= */
.yene-case {
  --yn-navy:      #0f223d;
  --yn-navy-mid:  #1a3560;
  --yn-blue:      #214da3;
  --yn-sky:       #2d8cff;
  --yn-yellow:    #ffc400;
  --yn-yellow-dk: #e6b000;
  --yn-bg:        #ffffff;
  --yn-soft:      #f4f6fa;
  --yn-ink:       #1c2433;
  --yn-muted:     #737b8a;
  --yn-line:      #dfe5ef;
  background: var(--yn-bg);
  color: var(--yn-ink);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

/* ---- Header (라이트) ---- */
.yene-case .site-header {
  background: color-mix(in srgb, var(--bg) 78%, transparent) !important;
  border-color: var(--line) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: none !important;
}
.yene-case .brand,
.yene-case .gnb a,
.yene-case .menu-toggle { color: var(--text); }
.yene-case .brand-sub { color: var(--dim); }
.yene-case .menu-toggle {
  border-color: var(--line);
  background: var(--glass);
}
@media (max-width: 860px) {
  .yene-case .menu-toggle + .gnb {
    background: var(--glass-strong) !important;
    border-color: var(--line) !important;
    box-shadow: none !important;
  }
  .yene-case .menu-toggle + .gnb a,
  .yene-case .menu-toggle + .gnb .gnb-archive {
    color: var(--text) !important;
  }
  .yene-case .menu-toggle + .gnb .gnb-aboutme {
    color: #fff !important;
  }
}
.yene-case .gnb-divider {
  background: var(--line);
}
.yene-case .skip-link { background: var(--yn-navy); color: #fff; }
.yene-case .scroll-progress { background: var(--yn-line); }
.yene-case .scroll-progress::before {
  content: ""; display: block; height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--yn-blue), var(--yn-yellow));
}

.yene-main { position: relative; z-index: 1; }

/* =========================================================
  HERO
========================================================= */
.yn-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.yn-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.yn-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.yn-hero-dim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,20,45,0.95) 0%,
    rgba(10,20,45,0.7) 45%,
    rgba(10,20,45,0.25) 75%,
    transparent 100%
  );
}

.yn-hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: clamp(120px,14vw,160px) clamp(24px,6vw,72px) clamp(60px,8vw,96px);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px; align-items: flex-end;
}

.yn-eyebrow {
  margin: 0 0 18px;
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700;
  color: var(--yn-yellow);
}
.yn-hero-title {
  margin: 0;
  font-size: clamp(68px,11vw,128px);
  font-weight: 900; line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
}
.yn-hero-sub {
  margin: 20px 0 0;
  font-size: clamp(17px,2.2vw,24px);
  font-weight: 700; line-height: 1.4;
  color: rgba(255,255,255,0.88);
}
.yn-hero-desc {
  margin: 16px 0 0;
  font-size: 16px; line-height: 1.85;
  color: rgba(255,255,255,0.52);
  max-width: 480px;
}
.yn-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.yn-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: 700;
  background: var(--yn-yellow); color: var(--yn-navy);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 8px 24px rgba(255,196,0,0.3);
}
.yn-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,196,0,0.4);
}
.yn-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: 700;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.22s ease, background 0.22s ease;
}
.yn-btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
}
.yn-btn-primary .material-symbols-rounded,
.yn-btn-ghost .material-symbols-rounded { font-size: 18px; }

.yn-hero-meta {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}
.yn-hero-meta li { display: flex; flex-direction: column; gap: 4px; }
.yn-hero-meta b {
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--yn-yellow); font-weight: 800;
}
.yn-hero-meta span { font-size: 14px; color: rgba(255,255,255,0.78); }

/* =========================================================
  TAG BAR
========================================================= */
.yn-tag-bar {
  background: var(--yn-navy);
  padding: 16px clamp(24px,6vw,72px);
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.yn-tag-bar span {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
}
.yn-tag-bar span:hover {
  border-color: var(--yn-yellow);
  color: var(--yn-yellow);
}

/* =========================================================
  SECTION SHELL
========================================================= */
.yn-section { background: var(--yn-bg); }
.yn-section + .yn-section { border-top: 1px solid var(--yn-line); }
.yn-section--soft { background: var(--yn-soft); }
.yn-section--navy { background: var(--yn-navy); }

.yn-wrap {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(64px,9vw,112px) clamp(24px,6vw,72px);
}

.yn-lede { margin-bottom: 52px; }
.yn-mark {
  display: block; margin-bottom: 16px;
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 800;
  color: var(--yn-blue);
}
.yn-mark--light { color: var(--yn-yellow); }

.yn-display {
  margin: 0;
  font-size: clamp(28px,3.8vw,48px);
  font-weight: 800; line-height: 1.18;
  letter-spacing: -0.025em; color: var(--yn-navy);
}
.yn-display--light { color: #fff; }
.yn-display-sub {
  margin: 14px 0 0; font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.yn-list-label {
  margin: 0 0 18px;
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700;
  color: var(--yn-muted);
}

.yn-section p { color: var(--yn-muted); }
.yn-section strong { color: var(--yn-ink); font-weight: 700; }

/* ---- Two col ---- */
.yn-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center; margin-bottom: 56px;
}
.yn-two-col p { margin: 0 0 16px; font-size: 16px; line-height: 1.85; }
.yn-figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(14,31,58,0.16);
}
.yn-figure img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; object-position: top; }

/* ---- Problem rows ---- */
.yn-problem-list { border-top: 1px solid var(--yn-line); }
.yn-row {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) minmax(0,1.7fr);
  gap: 20px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--yn-line);
  transition: padding-left 0.25s ease;
}
.yn-row:hover { padding-left: 8px; }
.yn-row-no {
  font-size: 18px; font-weight: 800;
  color: var(--yn-yellow);
}
.yn-row h4 {
  margin: 0;
  font-size: clamp(18px,2vw,24px);
  color: var(--yn-navy); font-weight: 700;
}
.yn-row p { margin: 0; font-size: 16px; color: var(--yn-muted); }

/* =========================================================
  BEFORE / AFTER SECTION
========================================================= */
.yn-ba-section {
  background: var(--yn-navy);
  padding: clamp(64px,9vw,112px) 0;
}
.yn-ba-section .yn-lede { margin-bottom: 56px; }

.yn-ba-block { margin-bottom: clamp(48px,6vw,72px); }
.yn-ba-block:last-child { margin-bottom: 0; }

.yn-ba-page-label {
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.3);
  margin: 0 0 18px;
}

.yn-ba-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 0;
}

.yn-ba-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--yn-navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
}

.yn-ba-img-wrap {
  position: relative;
  overflow: hidden;
  height: 420px;
}
.yn-ba-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Before — 고정 크롭 */
.yn-ba-card--before .yn-ba-img-wrap img {
  height: 420px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(25%) brightness(0.82);
}

/* After 메인 — 전체 이미지를 위→아래로 천천히 */
.yn-ba-card--after .yn-ba-img-wrap img {
  height: auto;
  min-height: 100%;
  object-fit: unset;
  animation: yn-scroll-down 18s ease-in-out infinite;
}

@keyframes yn-scroll-down {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(calc(-100% + 420px)); }
  100% { transform: translateY(0); }
}

.yn-ba-badge {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 10px 14px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 1;
}
.yn-ba-card { position: relative; }

.yn-ba-badge--before {
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.6);
}
.yn-ba-badge--after {
  background: var(--yn-yellow);
  color: var(--yn-navy);
}

.yn-ba-caption {
  padding: 18px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: flex-start; gap: 12px;
}
.yn-ba-icon--bad { font-size: 20px; color: rgba(255,255,255,0.25); flex-shrink: 0; margin-top: 2px; }
.yn-ba-icon--good { font-size: 20px; color: var(--yn-yellow); flex-shrink: 0; margin-top: 2px; }

.yn-ba-caption ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.yn-ba-caption li {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
.yn-ba-card--before .yn-ba-caption li {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
.yn-ba-card--after .yn-ba-caption li {
  background: rgba(255,196,0,0.15);
  color: var(--yn-yellow);
}

.yn-ba-divider {
  display: flex; justify-content: center; align-items: center;
}
.yn-ba-divider .material-symbols-rounded {
  font-size: 24px;
  color: var(--yn-yellow);
  background: rgba(255,196,0,0.12);
  border: 1px solid rgba(255,196,0,0.22);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
  SOLUTION
========================================================= */
.yn-solution-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
}
.yn-solution-card {
  padding: 30px 26px; border-radius: 12px;
  background: var(--yn-soft);
  border: 1px solid var(--yn-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.yn-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14,31,58,0.1);
}
.yn-solution-card .material-symbols-rounded {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  font-size: 24px; color: var(--yn-blue);
  background: #fff;
  border: 1px solid var(--yn-line);
  border-radius: 10px;
  margin-bottom: 18px;
}
.yn-solution-card h4 { margin: 0 0 8px; font-size: 17px; color: var(--yn-navy); font-weight: 700; }
.yn-solution-card p { margin: 0; font-size: 16px; }

.yn-gallery {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-top: 36px;
}
.yn-gallery figure { margin: 0; border-radius: 10px; overflow: hidden; }
.yn-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.yn-gallery figure:hover img { transform: scale(1.06); }

/* =========================================================
  MY ROLE
========================================================= */
.yn-role-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center;
}
.yn-role-copy p { margin: 0 0 28px; font-size: 16px; line-height: 1.85; }
.yn-contribution {
  display: flex; align-items: baseline; gap: 14px;
  padding: 26px 30px; border-radius: 14px;
  background: var(--yn-navy);
}
.yn-contribution-num {
  font-size: 54px; font-weight: 900;
  line-height: 1; color: var(--yn-yellow);
}
.yn-contribution-num i { font-style: normal; font-size: 26px; }
.yn-contribution-label { font-size: 14px; color: rgba(255,255,255,0.55); }
.yn-role-list { list-style: none; margin: 0; padding: 0; }
.yn-role-list li {
  position: relative; padding: 15px 0 15px 26px;
  border-top: 1px solid var(--yn-line);
  font-size: 16px; color: var(--yn-ink);
}
.yn-role-list li:last-child { border-bottom: 1px solid var(--yn-line); }
.yn-role-list li::before {
  content: "check";
  font-family: "Material Symbols Rounded";
  position: absolute; left: 0; top: 14px;
  font-size: 17px; color: var(--yn-blue);
}

/* =========================================================
  OUTCOME
========================================================= */
.yn-outcome-wrap {
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 52px; align-items: center;
}
.yn-outcome-figure {
  margin: 0; border-radius: 14px; overflow: hidden;
}
.yn-outcome-figure img { width: 100%; display: block; }
.yn-outcome-copy { display: flex; flex-direction: column; gap: 24px; }
.yn-outcome-copy p { margin: 0; font-size: 16px; line-height: 1.85; }
.yn-outcome-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.yn-outcome-copy li {
  position: relative; padding-left: 22px;
  font-size: 16px; font-weight: 600; color: var(--yn-ink);
}
.yn-outcome-copy li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--yn-yellow); transform: rotate(45deg);
}

/* =========================================================
  REFLECTION
========================================================= */
.yn-reflection-body p {
  font-size: 16px; margin: 0 0 24px;
  color: rgba(255,255,255,0.6) !important;
}
.yn-reflection-body blockquote {
  margin: 0;
  padding: 28px 32px;
  border-left: 3px solid var(--yn-yellow);
  background: rgba(255,255,255,0.05);
  border-radius: 0 12px 12px 0;
  font-size: clamp(16px,2vw,22px);
  font-weight: 700; line-height: 1.55;
  color: rgba(255,255,255,0.88);
}

/* ---- Buttons ---- */
.yn-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.yn-btn-accent, .yn-btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 8px;
  font-size: 16px; font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.yn-btn-accent {
  background: var(--yn-yellow); color: var(--yn-navy);
  box-shadow: 0 10px 28px rgba(255,196,0,0.25);
}
.yn-btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(255,196,0,0.35);
}
.yn-btn-outline {
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}
.yn-btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
}
.yn-btn-accent .material-symbols-rounded,
.yn-btn-outline .material-symbols-rounded { font-size: 18px; }

/* ---- Reveal animation ---- */
.yn-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.72s cubic-bezier(.2,.7,.2,1), transform 0.72s cubic-bezier(.2,.7,.2,1);
}
.yn-reveal.is-visible { opacity: 1; transform: none; }

/* ---- Scroll to top ---- */
.yn-top-btn {
  position: fixed; right: clamp(18px,3vw,36px); bottom: clamp(18px,3vw,36px);
  z-index: 60; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 8px;
  color: var(--yn-navy); background: var(--yn-yellow);
  border: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(255,196,0,0.3);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.yn-top-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.yn-top-btn:hover { transform: translateY(-3px); }
.yn-top-btn .material-symbols-rounded { font-size: 22px; }

/* =========================================================
  RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .yn-hero-inner { grid-template-columns: 1fr; }
  .yn-two-col,
  .yn-role-wrap,
  .yn-outcome-wrap { grid-template-columns: 1fr; gap: 32px; }
  .yn-solution-grid { grid-template-columns: 1fr; }
  .yn-gallery { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 720px) {
  .yn-hero-inner {
    padding: 100px 20px 48px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .yn-hero-title {
    font-size: clamp(44px, 12vw, 68px);
  }

  .yn-hero-sub {
    font-size: 17px;
  }

  .yn-hero-desc {
    font-size: 15px;
  }

  .yn-btn-primary,
  .yn-btn-ghost {
    font-size: 15px;
    padding: 12px 20px;
  }

  /* 최소 12px 보장 — 라벨/태그류 */
  .yn-eyebrow,
  .yn-label,
  .yn-tag-bar span,
  .yn-ba-page-label,
  .yn-ba-caption li,
  .yn-hero-meta b { font-size: 12px; }

  /* 메타 값, 기여도 라벨 */
  .yn-hero-meta span,
  .yn-contribution-label { font-size: 15px; }

  /* 본문 15px 통일 */
  .yn-two-col p,
  .yn-row p,
  .yn-solution-card p,
  .yn-role-copy p,
  .yn-outcome-copy p,
  .yn-outcome-copy li,
  .yn-role-list li,
  .yn-reflection-body p,
  .yn-display-sub { font-size: 15px; }

  .yn-wrap {
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
  }

  .yn-ba-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .yn-ba-divider { transform: rotate(90deg); margin: 4px 0; }

  .yn-ba-card--before .yn-ba-img-wrap img {
    height: 260px;
  }

  .yn-gallery { grid-template-columns: 1fr; }
  .yn-row {
    grid-template-columns: 44px 1fr;
    gap: 6px 14px;
  }
  .yn-row p { grid-column: 2; }
}

@media (max-width: 480px) {
  .yn-hero-meta { gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .yn-reveal { transition: none; }
  .yn-ba-card--after .yn-ba-img-wrap img { animation: none !important; }
}
