/* =========================================================
   Jinjinyoo — 피그마 시안 v4 (2026-11-24) 새 섹션 모양
   ---------------------------------------------------------
   머리글 · 첫 화면 · 문제 제기 · 고객 후기(펼침 카드) · 진행 과정.
   구성과 움직임은 allia.health 를 참고했고, 나머지 섹션
   (Selected Projects · 고객의 말 · 마무리 · 푸터)은 site.css 그대로.
   색을 바꾸려면 아래 --ag- 변수만 고치면 된다.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500&display=swap");

:root {
  --ag-ink: #041415;          /* 진한 청록 바탕 */
  --ag-lime: #e2f57c;         /* 형광 버튼 */
  --ag-line: rgba(255, 255, 255, 0.1);
  --ag-grey: #8c8c8c;
  --ag-frame: 1280px;         /* 세로 안내선 사이 폭 */
  --ag-inner: 1200px;         /* 내용 폭 */
  --ag-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ag-serif: "Noto Serif KR", "Source Serif 4", serif;
}

/* ---------- 공통 ---------- */
.ag-h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400; font-size: 48px; line-height: 1.15; letter-spacing: -0.03em;
}
.ag-lead { margin: 24px 0 0; font-size: 16px; line-height: 1.4; letter-spacing: -0.02em; color: rgba(0, 0, 0, 0.5); }
.ag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 9px 0 8px;
  border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.09), 0 4px 4px rgba(0, 0, 0, 0.04);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.ag-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ag-ease), background-color 0.25s, filter 0.25s;
}
.ag-btn:active { transform: scale(0.97); }
.ag-btn--lg { height: 41px; padding: 0 18px; font-size: 15px; }
.ag-btn--white { background: #fff; color: #000; }
.ag-btn--lime { background: var(--ag-lime); color: #000; }
.ag-btn--ghost { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.7); }
.ag-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ag-btn--white:hover, .ag-btn--lime:hover { filter: brightness(0.94); }
.ag-arrow { width: 12px; height: 12px; transition: translate 0.25s var(--ag-ease); }
.ag-btn:hover .ag-arrow { translate: 2px 0; }
.ag-chev { width: 12px; height: 12px; opacity: 0.5; transition: rotate 0.25s; }

/* ---------- 머리글 (화면 맨 위에 붙어 있다가 함께 올라감 — allia 와 같음) ---------- */
.ag-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
}
.ag-header__in {
  position: relative;
  display: flex; align-items: center;
  max-width: var(--ag-frame); height: 84px; margin-inline: auto;
  padding: 0 39px 0 51px;
  border-inline: 1px solid var(--ag-line);
}
.ag-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ag-line); }
.ag-logo span {
  display: block;
  font-family: "Belanosima", var(--font-heading); font-weight: 400; font-size: 26px; line-height: 30px; letter-spacing: -0.06em;
  color: #eff1f0;
}
.ag-menu { display: flex; align-items: center; gap: 4px; margin-left: 32px; }
.ag-menu__item { position: relative; }
.ag-menu__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, background-color 0.2s;
}
.ag-menu__item:hover .ag-menu__link, .ag-menu__link:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ag-menu__item:hover .ag-chev, .ag-menu__item:focus-within .ag-chev { rotate: 180deg; }
.ag-drop {
  position: absolute; top: calc(100% + 10px); left: 0;
  display: grid; min-width: 200px; padding: 8px;
  border-radius: 14px; background: #0b2324; box-shadow: 0 0 0 1px var(--ag-line), 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; translate: 0 -6px;
  transition: opacity 0.2s, translate 0.3s var(--ag-ease), visibility 0.2s;
}
.ag-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ag-drop a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.ag-drop a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ag-menu__item:hover .ag-drop, .ag-menu__item:focus-within .ag-drop { opacity: 1; visibility: visible; translate: 0; }
.ag-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ag-link { padding: 6px 12px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.ag-link:hover { color: #fff; }
.ag-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.ag-burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: translate 0.3s, rotate 0.3s; }
.ag-burger i:first-child { top: 16px; } .ag-burger i:last-child { top: 23px; }
.ag-burger[aria-expanded="true"] i:first-child { translate: 0 3.5px; rotate: 45deg; }
.ag-burger[aria-expanded="true"] i:last-child { translate: 0 -3.5px; rotate: -45deg; }
.ag-mobile {
  display: grid; gap: 4px; padding: 12px 24px 24px;
  background: var(--ag-ink); border-bottom: 1px solid var(--ag-line);
}
.ag-mobile[hidden] { display: none; }
.ag-mobile > a { padding: 12px 0; font-size: 18px; color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid var(--ag-line); }
.ag-mobile__btns { display: flex; gap: 8px; margin-top: 16px; }
.ag-mobile__btns .ag-btn { flex: 1; height: 44px; }

/* ---------- 1. 첫 화면 ---------- */
.ag-hero { background: var(--ag-ink); color: #fff; }
.ag-frame {
  max-width: var(--ag-frame); margin-inline: auto;
  border-inline: 1px solid var(--ag-line);
  padding: 200px 40px 120px;
}
.ag-hero__copy { text-align: center; }
.ag-eyebrow { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: #f2f5f5; }
.ag-hero__title {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-weight: 400; font-size: 72px; line-height: 1.05; letter-spacing: -0.03em;
}
.ag-hero__sub { margin: 16px auto 0; font-size: 16px; line-height: 1.4; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.7); }
.ag-hero__btns { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.ag-hero__note { margin: 12px 0 0; font-size: 12px; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.7); }

.ag-hero__media { display: grid; grid-template-columns: 856fr 328fr; gap: 16px; max-width: var(--ag-inner); margin: 74px auto 0; }
.ag-hero__photo { position: relative; margin: 0; height: 400px; border-radius: 12px; overflow: hidden; }
.ag-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.ag-glass {
  position: absolute; z-index: 1; top: 32px; left: 32px; width: 280px;
  display: grid; gap: 12px; padding: 16px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--ag-ink);
}
.ag-glass strong { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.ag-glass span { font-size: 14px; line-height: 1.3; letter-spacing: -0.02em; opacity: 0.8; }
.ag-hero__quote {
  position: relative; margin: 0; height: 400px; padding: 32px;
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: var(--ag-lime); color: #000;
}
.ag-hero__quote > *:not(img) { position: relative; }
.ag-quote-mark { width: 27px; height: 20px; }
.ag-hero__quote p { margin: auto 0 0; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.ag-hero__quote footer { display: grid; gap: 2px; margin-top: 32px; font-size: 14px; font-weight: 500; }
.ag-hero__quote footer span { opacity: 0.5; }

/* 흐르는 서비스 줄 */
.ag-marquee {
  margin: 48px -40px 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 8%, #000 50%, transparent 93%);
  mask: linear-gradient(90deg, transparent 8%, #000 50%, transparent 93%);
}
.ag-marquee__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ag-marquee 60s linear infinite; }
.ag-marquee:hover .ag-marquee__track { animation-play-state: paused; }
.ag-marquee li {
  display: flex; align-items: center; gap: 8px; padding-right: 56px;
  font-size: 20px; font-weight: 500; line-height: 26px; color: rgba(255, 255, 255, 0.8); white-space: nowrap;
}
.ag-marquee svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ag-marquee { to { transform: translateX(-50%); } }

/* 첫 화면 등장: 흐림에서 또렷하게, 아래에서 위로 (allia 와 같은 느낌) */
.js .ag-in { opacity: 0; filter: blur(10px); translate: 0 16px; }
.js .is-ready .ag-in {
  opacity: 1; filter: blur(0); translate: 0;
  transition: opacity 0.9s var(--ag-ease), filter 0.9s var(--ag-ease), translate 1s var(--ag-ease);
  transition-delay: var(--d, 0s);
}

/* ---------- 2. 문제 제기 ---------- */
.ag-problem { padding: 120px 24px 140px; background: linear-gradient(#d7e4ea, #fff); color: #000; }
.ag-problem__head { text-align: center; }
.ag-stats { display: flex; justify-content: center; gap: 24px; margin-top: 80px; }
.ag-stat {
  display: flex; flex-direction: column;
  width: 284px; height: 360px; padding: 32px 24px 24px;
  margin-top: var(--off, 0);
  border-radius: 12px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0.1));
}
.ag-stat .ag-chip { align-self: flex-start; height: 24px; font-size: 12px; font-weight: 400; border-radius: 6px; padding: 0 8px 0 7px; }
.ag-stat .ag-chip svg { width: 14px; height: 14px; }
.ag-stat__num { margin: 16px 0 0; font-family: var(--font-heading); font-size: 64px; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.ag-stat__num small { font-size: 32px; font-weight: 600; margin-left: 2px; }
.ag-stat__text { margin: auto 0 0; font-size: 14px; line-height: 1.3; letter-spacing: -0.02em; }

/* ---------- 4. 고객 후기 (펼쳐지는 카드) ---------- */
.ag-voices { padding: 100px 24px 100px; background: #fff; color: #000; text-align: center; }
.ag-voices .ag-h2 { margin-top: 20px; }
.ag-acc { display: flex; justify-content: center; gap: 16px; height: 450px; margin-top: 60px; }
.ag-acc__card {
  position: relative; flex: 0 0 200px; margin: 0;
  border-radius: 16px; overflow: hidden; background: #1a1a1a; color: #fff;
  cursor: pointer; text-align: left;
  transition: flex-basis 0.8s var(--ag-ease), opacity 0.5s;
  opacity: 0.7;
}
.ag-acc__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(21deg, rgba(0, 0, 0, 0.4) 15%, rgba(0, 0, 0, 0.25) 30%, transparent 72%);
  transition: opacity 0.5s;
}
.ag-acc__card img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  transition: inset 0.8s var(--ag-ease), width 0.8s var(--ag-ease), height 0.8s var(--ag-ease), top 0.8s var(--ag-ease), left 0.8s var(--ag-ease), border-radius 0.8s;
}
.ag-acc__card figcaption {
  position: absolute; top: 32px; bottom: 32px; left: 216px; width: 360px;
  display: flex; flex-direction: column;
  opacity: 0; translate: 12px 0; transition: opacity 0.3s, translate 0.5s var(--ag-ease);
}
.ag-acc__card p { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.ag-acc__card footer { display: grid; gap: 2px; margin-top: auto; font-size: 14px; }
.ag-acc__card footer strong { font-weight: 500; }
.ag-acc__card footer span { opacity: 0.6; }
.ag-acc__card.is-active { flex-basis: 628px; opacity: 1; cursor: default; }
.ag-acc__card.is-active::after { opacity: 0; }
.ag-acc__card.is-active img { top: 12px; left: 12px; width: 176px; height: calc(100% - 24px); border-radius: 8px; }
.ag-acc__card.is-active figcaption { opacity: 1; translate: 0; transition-delay: 0.35s; }

/* ---------- 5. 진행 과정 ---------- */
.ag-flow { padding: 100px 24px 100px; background: #fff; color: #000; }
.ag-flow__head, .ag-steps, .ag-flow__media { max-width: var(--ag-inner); margin-inline: auto; }
.ag-flow .ag-h2 { margin-top: 20px; }
.ag-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 60px; }
.ag-step {
  display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit;
}
.ag-step__bar { display: block; height: 3px; margin-bottom: 22px; background: #f2f2f2; overflow: hidden; }
.ag-step__bar i { display: block; height: 100%; width: 100%; background: #1a1a1a; transform: scaleX(0); transform-origin: left; }
.ag-step strong { font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: #1a1a1a; }
.ag-step > span:last-child { font-size: 16px; line-height: 1.4; letter-spacing: -0.02em; color: var(--ag-grey); opacity: 0.4; transition: opacity 0.4s; }
.ag-step.is-active > span:last-child, .ag-step:hover > span:last-child { opacity: 1; }
.ag-flow__media { position: relative; height: 643px; margin-top: 48px; border-radius: 16px; overflow: hidden; }
.ag-flow__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ag-flow__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.ag-flow__card {
  position: absolute; z-index: 1; left: 48.9%; top: 55.4%; width: 46%;
  display: grid; gap: 22px; color: #fff;
  transition: opacity 0.3s, translate 0.4s var(--ag-ease);
}
.ag-flow__card.is-swapping { opacity: 0; translate: 0 8px; }
.ag-flow__card-row { display: flex; align-items: center; gap: 18px; }
.ag-flow__card-title, .ag-flow__card-next { margin: 0; font-size: 34px; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; white-space: nowrap; }
.ag-flow__card-line { position: relative; flex: 1; height: 0; border-top: 1.5px dashed rgba(226, 245, 124, 0.7); margin-right: 14px; }
.ag-flow__card-line::after {
  content: ""; position: absolute; right: -14px; top: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ag-lime); box-shadow: 0 0 0 3px rgba(226, 245, 124, 0.35);
}
.ag-flow__card ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ag-flow__card li { display: flex; align-items: center; gap: 16px; font-size: 22.7px; line-height: 1.2; letter-spacing: -0.02em; }
.ag-flow__card li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--ag-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7.5 12.3 3 3 6-6.3' fill='none' stroke='%23365314' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px no-repeat;
}

/* ---------- 작은 화면 ---------- */
@media (max-width: 1100px) {
  .ag-menu, .ag-actions { display: none; }
  .ag-burger { display: block; }
  .ag-header__in { padding: 0 16px 0 24px; height: 72px; border-inline: 0; }
  .ag-frame { padding: 150px 24px 80px; border-inline: 0; }
  .ag-hero__title { font-size: clamp(40px, 9vw, 72px); }
  .ag-hero__sub br { display: none; }
  .ag-hero__media { grid-template-columns: 1fr; }
  .ag-hero__quote { height: auto; min-height: 280px; }
  .ag-marquee { margin-inline: -24px; }
  .ag-h2 { font-size: clamp(30px, 6.4vw, 48px); }
  .ag-stats { flex-wrap: wrap; }
  .ag-stat { margin-top: 0; }
  .ag-acc { height: auto; flex-direction: column; align-items: stretch; max-width: 640px; margin-inline: auto; }
  .ag-acc__card, .ag-acc__card.is-active { flex: none; height: 420px; opacity: 1; }
  .ag-acc__card::after { opacity: 0; }
  .ag-acc__card img, .ag-acc__card.is-active img { top: 12px; left: 12px; width: 40%; height: calc(100% - 24px); border-radius: 8px; }
  .ag-acc__card figcaption { opacity: 1; translate: 0; left: calc(40% + 28px); width: auto; right: 20px; }
  .ag-acc__card p { font-size: 18px; }
  .ag-acc__card p br { display: none; }
  .ag-steps { grid-template-columns: 1fr; gap: 28px; }
  .ag-step br { display: none; }
  .ag-flow__media { height: 520px; }
  .ag-flow__card { left: 40%; width: 56%; top: 50%; }
  .ag-flow__card-title, .ag-flow__card-next { font-size: 26px; }
  .ag-flow__card li { font-size: 18px; }
}
@media (max-width: 600px) {
  .ag-hero__btns { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .ag-glass { position: static; width: auto; margin: 0; border-radius: 0; background: #e9efee; }
  .ag-hero__photo { height: auto; }
  .ag-hero__photo img { height: 260px; }
  .ag-lead br, .ag-stat__text br { display: none; }
  .ag-stat { width: 100%; height: 300px; }
  /* 진행 과정 사진: 좌우 여백을 절반(24 → 12px)으로 줄여 사진을 넓게 */
  .ag-flow__media { margin-inline: -12px; }
  .ag-flow__card { left: 20px; right: 20px; width: auto; top: auto; bottom: 28px; gap: 16px; }
  .ag-flow__card-title, .ag-flow__card-next { font-size: 21px; }
  .ag-flow__card li { font-size: 15px; gap: 10px; }
  .ag-flow__card li::before { width: 20px; height: 20px; background-size: 20px; }
  .ag-flow__card ul { gap: 10px; }
  .ag-acc__card, .ag-acc__card.is-active { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .ag-acc__card img, .ag-acc__card.is-active img { position: static; width: auto; height: 300px; margin: 12px 12px 0; }
  .ag-acc__card figcaption { position: static; padding: 20px 20px 24px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-marquee__track { animation: none; }
  .js .ag-in { opacity: 1; filter: none; translate: 0; }
}
