/* ============================================================
   커넥트 이용 사례 — /connect/reference/
   시안: 리멤버 커넥트 · 이용사례 탭 시안_261019.html (remember-makers 리멤버 모드 토큰)
   ★ style.css 의 .intro / .cta / .hero 등과 이름이 겹치지 않게 전부 rf- 접두어를 쓴다.
   ★ LP 다른 페이지가 라이트 전용이라 시안의 다크 모드 토큰은 넣지 않았다.
   ★ 헤더(.gnb-wrap)가 position:fixed 라 본문 위쪽 여백에 헤더 높이를 포함한다.
   ============================================================ */
.page-ref {
  /* 의미 토큰 (시안 :root 그대로) */
  --rf-accent: #FC5D11;
  --rf-accent-hover: #FD9A6B;
  --rf-on-accent: #0A0A0A;
  --rf-highlight: rgba(253, 154, 107, .4);
  --rf-highlight-strong: rgba(253, 154, 107, .8);
  --rf-bg: #FAFAFA;
  --rf-bg-alt: #F2F2F2;
  --rf-bg-bright: #FFFFFF;
  --rf-bg-cool: #F2F8FD;
  --rf-text: #0A0A0A;
  --rf-text-muted: rgba(10, 10, 10, .64);
  --rf-text-faint: rgba(10, 10, 10, .42);
  --rf-text-on-dark: #F9F7EF;
  --rf-border: rgba(10, 10, 10, .12);
  --rf-scrim-strong: rgba(10, 10, 10, .72);
  --rf-scrim-soft: rgba(10, 10, 10, .25);
  --rf-scrim-none: rgba(10, 10, 10, 0);
  --rf-placeholder: rgba(10, 10, 10, .05);
  --rf-msg-me: #0074C7;
  --rf-msg-me-ink: #F9F7EF;
  --rf-radius-xs: 4px;
  --rf-radius-sm: 12px;
  --rf-radius-card: 16px;
  --rf-radius-pill: 999px;
  --rf-ls-head: -0.03em;
  --rf-ls-h3: -0.02em;
  --rf-ls-body: -0.01em;
  --rf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rf-dur-micro: 200ms;
  --rf-dur-reveal: 600ms;
  --rf-gutter: 20px;
  background: var(--rf-bg);
  color: var(--rf-text);
}
@media (min-width: 768px) { .page-ref { --rf-gutter: 32px; } }
@media (min-width: 1024px) { .page-ref { --rf-gutter: 40px; } }

/* 헤더 현재 탭 — 광고·메시지 페이지는 ads.css 에 있는 규칙. 이 페이지는 ads.css 를 안 불러서 여기 둔다 */
.page-ref .gnb__link.is-active { color: #0A0A0A; font-weight: 600; }

.rf { letter-spacing: var(--rf-ls-body); line-height: 1.6; }
.rf :focus-visible { outline: 2px solid var(--rf-text); outline-offset: 3px; border-radius: var(--rf-radius-xs); }
.rf [hidden] { display: none !important; }
.rf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--rf-gutter); }

/* ---------- 목록 ---------- */
.rf-list { padding: 152px 0 120px; }
.rf-intro h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; letter-spacing: var(--rf-ls-head); font-weight: 700; }
.rf-intro p { margin-top: 16px; color: var(--rf-text-muted); font-size: 18px; line-height: 1.6; max-width: 36em; }
.rf-intro .rf-count { margin-top: 24px; font-size: 13px; color: var(--rf-text-faint); }
.rf-intro .rf-count b { color: var(--rf-text); font-weight: 600; }
/* 형광펜 */
.rf-marker {
  padding: 0 .14em; margin: 0 -.14em;
  background-image: linear-gradient(100deg, transparent .6%, var(--rf-highlight-strong) 2.2%, var(--rf-highlight-strong) 97%, transparent 99.4%);
  background-repeat: no-repeat; background-size: 100% .48em; background-position: 0 86%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: rf-marker var(--rf-dur-reveal) var(--rf-ease) 200ms both;
}
@keyframes rf-marker { from { background-size: 0% .48em; } to { background-size: 100% .48em; } }

.rf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin-top: 56px; }
.rf-card { display: flex; flex-direction: column; min-width: 0; color: inherit; }
.rf-card h3 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: var(--rf-ls-h3); }
.rf-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.rf-thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 20px; }
.rf-photo { position: absolute; inset: 0; border-radius: var(--rf-radius-sm); overflow: hidden; background: var(--rf-placeholder); }
.rf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transition: transform var(--rf-dur-micro) ease; }
.rf-card:hover .rf-photo img { transform: scale(1.03); }
/* 썸네일 텍스트 — 번호 태그형 */
.rf-cv {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: var(--rf-text-on-dark); border-radius: var(--rf-radius-sm);
  background: linear-gradient(to top, var(--rf-scrim-strong) 0%, var(--rf-scrim-soft) 45%, var(--rf-scrim-none) 65%);
}
.rf-barrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rf-bar { display: block; width: 24px; height: 3px; background: var(--rf-accent); }
.rf-no { font-size: 13px; font-weight: 600; letter-spacing: var(--rf-ls-body); }
.rf-cv strong { display: block; font-size: clamp(24px, 2.4vw, 28px); font-weight: 700; letter-spacing: var(--rf-ls-h3); line-height: 1.2; }
.rf-org { display: block; margin-top: 6px; font-size: 13px; }
.rf-logo-chip {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  background: #fff; border-radius: var(--rf-radius-pill);
}
.rf-logo-chip img { height: 15px; width: auto; max-width: 88px; object-fit: contain; }
/* 심볼+글자형 로고는 살짝 크게 (시각 보정, 사례 데이터 logoSize:"l") */
.rf-logo-chip--lg img { height: 18px; max-width: 108px; }

/* ---------- 상세 (인터뷰형) ---------- */
.rf-detail { max-width: 880px; margin: 0 auto; padding: 136px var(--rf-gutter) 120px; }
.rf-back { padding: 0; color: var(--rf-text-muted); font-size: 16px; margin-bottom: 40px; }
.rf-back:hover { color: var(--rf-text); }
.rf-hero-photo { margin: 0 0 48px; }
.rf-hero-photo img { width: 100%; height: auto; border-radius: var(--rf-radius-card); }
.rf-head { padding-bottom: 28px; border-bottom: 2px solid var(--rf-text); margin-bottom: 40px; }
.rf-series { margin-bottom: 12px; font-size: 16px; color: var(--rf-text-muted); }
.rf-series b { color: var(--rf-text); font-weight: 700; }
.rf-head h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; letter-spacing: var(--rf-ls-head); font-weight: 700; }
/* 회사 로고 위, 이름·소속 아래 */
.rf-byline { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--rf-text-muted); font-size: 17px; }
.rf-byline b { color: var(--rf-text); font-weight: 600; }
.rf-co-logo { height: 20px; width: auto; max-width: 140px; object-fit: contain; }
/* 이름·소속 아래 외부 링크 (사례 데이터 links) */
.rf-ext-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.rf-ext-links a { color: var(--rf-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--rf-dur-micro) ease; }
.rf-ext-links a:hover { color: var(--rf-text-muted); }
.rf-ext-links i { font-style: normal; color: var(--rf-text-faint); }
.rf-lead { margin-bottom: 40px; }
.rf-lead p { font-size: 18px; line-height: 1.85; }
.rf-lead p + p { margin-top: 14px; }   /* 시안 .lead p + p — 사례 02 리드가 5문단이라 빠진 걸 발견해 채움 (2026-11-09) */
.rf-sec { display: flex; align-items: center; gap: 10px; margin-top: 88px; font-size: 16px; font-weight: 700; }
.rf-sec::before { content: ""; width: 18px; height: 2px; background: var(--rf-text); }
.rf-qa { margin-top: 60px; }
.rf-sec + .rf-qa { margin-top: 28px; }
.rf-qa h2 { margin-bottom: 16px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.4; letter-spacing: var(--rf-ls-h3); }
.rf-body { font-size: 18px; line-height: 1.85; }
.rf-body + .rf-body { margin-top: 14px; }
.rf-body b { font-weight: 700; }
.rf-detail mark { background: var(--rf-highlight); color: inherit; padding: 1px 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rf-shot { margin-top: 28px; }
.rf-shot img { width: 100%; height: auto; border-radius: var(--rf-radius-card); }
.rf-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--rf-text-faint); }
/* 사례에 메시지 문구가 있을 때 */
.rf-msgbox { background: var(--rf-bg-cool); border-radius: var(--rf-radius-card); padding: 28px 24px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.rf-msgbox small { align-self: center; color: var(--rf-text-faint); font-size: 13px; margin-bottom: 6px; }
.rf-msgbox .rf-m { max-width: 82%; padding: 12px 16px; border-radius: var(--rf-radius-card); font-size: 16px; line-height: 1.6; }
.rf-msgbox .rf-m.me { align-self: flex-end; background: var(--rf-msg-me); color: var(--rf-msg-me-ink); border-bottom-right-radius: var(--rf-radius-xs); }
.rf-msgbox .rf-m.them { align-self: flex-start; background: var(--rf-bg-bright); color: var(--rf-text); border: 1px solid var(--rf-border); border-bottom-left-radius: var(--rf-radius-xs); }
/* 하단 CTA — 한 문장 정의 인용 + 버튼 */
.rf-cta { margin-top: 80px; background: var(--rf-bg-alt); border-radius: var(--rf-radius-card); padding: 48px 40px; }
.rf-cta-quote { margin: 0 0 32px; }
.rf-cta-quote small { display: block; font-size: 13px; color: var(--rf-text-faint); margin-bottom: 12px; }
.rf-cta-quote blockquote { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; font-weight: 700; letter-spacing: var(--rf-ls-h3); }
.rf-cta-quote .rf-cta-sub { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--rf-text-muted); }
.rf-cta-quote figcaption { margin-top: 24px; font-size: 16px; color: var(--rf-text-muted); }
.rf-btn {
  display: inline-block; white-space: nowrap;
  background: var(--rf-accent); color: var(--rf-on-accent);
  border-radius: var(--rf-radius-pill); padding: 12px 28px;
  font-size: 17px; font-weight: 600; line-height: 1.4;
  transition: background-color var(--rf-dur-micro) ease, transform var(--rf-dur-micro) ease;
}
.rf-btn:hover { background: var(--rf-accent-hover); }
.rf-btn:active { transform: scale(.98); }
/* 다른 이용사례 */
.rf-related { border-top: 1px solid var(--rf-border); margin-top: 80px; }
.rf-related h2 { margin: 32px 0 8px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; letter-spacing: var(--rf-ls-h3); }
.rf-related a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--rf-border); padding: 18px 0; font-size: 17px; font-weight: 600; }
.rf-related a span { color: var(--rf-text-faint); font-size: 13px; font-weight: 400; white-space: nowrap; }
.rf-related a:hover { color: var(--rf-text-muted); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .rf-list { padding: 112px 0 64px; }
  .rf-intro p { font-size: 16px; }
  .rf-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 40px; }
  .rf-detail { padding: 104px var(--rf-gutter) 64px; }
  .rf-hero-photo { margin-bottom: 32px; }
  .rf-head h1 { font-size: 26px; }
  .rf-byline, .rf-body, .rf-lead p { font-size: 16px; }
  .rf-cta { padding: 40px 24px; }
  .rf-btn { white-space: normal; }
  /* 다른 이용사례 — 소속이 긴 사례(02 "MARQVISION · Sales Development Representative")가 한 줄에 못 들어가 화면 밖으로 밀려서 제목 아래로 내린다 */
  .rf-related a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rf-related a span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-marker { animation: none; }
  .rf-photo img, .rf-btn { transition: none; }
  .rf-card:hover .rf-photo img, .rf-btn:active { transform: none; }
}
