/* ===========================================================
   ONE AUDIENCE - 원어디언스 찬양팀
   구성: 시네마틱 히어로 -> 밝은 본문 -> 어두운 푸터
   =========================================================== */

:root {
  /* 브랜드 */
  --sky:        #d8ecff;   /* 로고의 연파랑 */
  --sky-soft:   #eef7ff;
  --blue:       #2f7fd0;
  --blue-deep:  #1a5c9e;

  /* 어두운 톤 */
  --ink:        #0b1a2b;
  --ink-2:      #10263c;

  /* 글자 */
  --text:       #101f2e;
  --text-soft:  #3a4d61;
  --muted:      #6b8098;

  --paper:      #ffffff;
  --line:       #d6e6f6;

  --shadow-sm:  0 1px 2px rgba(11, 26, 43, .06), 0 2px 10px rgba(11, 26, 43, .05);
  --shadow-md:  0 6px 22px rgba(11, 26, 43, .12);
  --shadow-lg:  0 18px 50px rgba(11, 26, 43, .20);

  --wrap:       720px;
  --wrap-wide:  1080px;
  --pad:        22px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap--wide { max-width: var(--wrap-wide); }

/* ═══ 상단 바 ═════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .32s ease;
}
.topbar.is-on {
  transform: none;
  opacity: 1;
  border-bottom-color: var(--line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
}
.topbar__brand img { width: 28px; height: 28px; border-radius: 999px; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.iconbtn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.iconbtn:hover  { background: var(--sky-soft); color: var(--blue-deep); }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 17px; height: 17px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.pill:hover  { background: var(--blue-deep); transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.pill--sm { padding: 8px 16px; font-size: 13px; }

/* ═══ 히어로 ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

/* 사진 영역.
   좁은 화면에서 가로가 긴 사진을 화면 전체 높이로 덮으면 양옆이 심하게
   잘려 나가므로, 모바일에서는 위쪽 일부만 사진으로 두고 아래는 남색으로
   자연스럽게 이어지게 한다. 넓은 화면에서는 전체를 덮는다. */
.hero__media {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 58%;
  overflow: hidden;
  z-index: -1;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 34%;
  animation: heroIn 1.4s cubic-bezier(.22, 1, .36, 1) both;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 26, 43, .52) 0%,
    rgba(11, 26, 43, .06) 26%,
    rgba(11, 26, 43, .34) 58%,
    rgba(11, 26, 43, .92) 88%,
    var(--ink) 100%);
}
@keyframes heroIn { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }

.hero__inner {
  padding: 0 var(--pad) clamp(76px, 16vh, 132px);
  text-align: center;
  color: #fff;
}

.hero__mark {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), var(--shadow-lg);
  animation: rise .8s cubic-bezier(.22, 1, .36, 1) .2s both;
}

.hero__word {
  margin: 0;
  font-size: clamp(30px, 9.5vw, 62px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.06;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
  animation: rise .8s cubic-bezier(.22, 1, .36, 1) .32s both;
}

.hero__sub {
  margin: 12px 0 0;
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 600;
  letter-spacing: .12em;
  text-indent: .12em;
  color: rgba(255, 255, 255, .84);
  animation: rise .8s cubic-bezier(.22, 1, .36, 1) .44s both;
}

.hero__verse {
  margin: 26px auto 0;
  max-width: 30em;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.85;
  color: rgba(255, 255, 255, .8);
  animation: rise .8s cubic-bezier(.22, 1, .36, 1) .56s both;
}
.hero__verse span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .6);
}

/* 스크롤 안내.
   마우스가 있는 기기(노트북·데스크톱)에는 휠을 굴리는 그림을,
   손가락으로 쓰는 기기(휴대폰·태블릿)에는 쓸어올리는 화살표를 보여준다.
   판단 기준은 화면 폭이 아니라 실제 입력 장치(pointer/hover)다. */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}

/* ── 마우스가 있을 때: 휠 굴리는 그림 (기본) ─────── */
.hero__cue-mouse {
  width: 26px; height: 40px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.hero__cue-mouse span {
  width: 3px; height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .85);
  animation: cueWheel 1.7s ease-in-out infinite;
}
@keyframes cueWheel {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  55%      { transform: translateY(11px); opacity: .1; }
}

/* ── 손가락으로 쓸 때: 위로 쓸어올리는 화살표 ────── */
.hero__cue-touch { display: none; }
.hero__cue-touch svg {
  width: 30px; height: 30px;
  color: rgba(255, 255, 255, .85);
  stroke: currentColor;
  stroke-width: 2;
  animation: cueSwipe 1.9s ease-in-out infinite;
}
/* 손가락을 위로 쓸어올리는 느낌 */
@keyframes cueSwipe {
  0%       { transform: translateY(5px);  opacity: .35; }
  45%      { transform: translateY(-3px); opacity: 1; }
  70%      { transform: translateY(-3px); opacity: .8; }
  100%     { transform: translateY(5px);  opacity: .35; }
}

/* 마우스가 없고 손가락이 주 입력인 기기 */
@media (hover: none) and (pointer: coarse) {
  .hero__cue-mouse { display: none; }
  .hero__cue-touch { display: block; }
}

/* ═══ 섹션 공통 ═══════════════════════════════════════ */
.band { padding: clamp(64px, 13vw, 108px) 0; }
.band--light { background: var(--paper); }
.band--sky {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky) 100%);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--blue);
}

.heading {
  margin: 0 0 30px;
  font-size: clamp(26px, 6.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.display {
  margin: 0 0 40px;
  font-size: clamp(25px, 6.4vw, 40px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.02em;
}
.display b {
  font-weight: 800;
  background: linear-gradient(180deg, transparent 70%, rgba(47, 127, 208, .26) 70%);
}

/* ── 말씀 인용 ────────────────────────────────────── */
.quote {
  margin: 0;
  padding: 26px 0 0 24px;
  border-left: 3px solid var(--blue);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(15px, 3.9vw, 18px);
  line-height: 1.9;
  color: var(--text-soft);
}
.quote blockquote::before { content: '“'; }
.quote blockquote::after  { content: '”'; }
.quote figcaption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ═══ 함께하기 카드 ═══════════════════════════════════ */
.acts {
  display: grid;
  gap: 12px;
}

/* hidden 속성은 브라우저 기본 스타일의 display:none 이라 우선순위가 가장 낮다.
   아래 .act 의 display:flex 가 그걸 덮어써서 숨긴 카드가 그대로 보이는
   일이 있었다. 그래서 명시적으로 다시 숨긴다. */
[hidden] { display: none !important; }

.act {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1),
              box-shadow .18s ease, background .18s ease;
}
.act:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.act:active { transform: translateY(-1px); }

.act__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue-deep);
}
.act__icon svg { width: 22px; height: 22px; }

.act__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.act__desc  { font-size: 13px; color: var(--muted); }

.act__go {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}
.act__go svg { width: 20px; height: 20px; }
.act:hover .act__go { transform: translateX(4px); color: var(--blue); }

/* 지원서 / 사역 신청서는 조금 더 강조 */
.act--key {
  background: #fff;
  border-color: rgba(47, 127, 208, .22);
}
.act--key .act__icon {
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.act--key .act__title { font-size: 17px; }

/* ═══ 사진 그리드 ═════════════════════════════════════ */
/* 포스터(세로)와 사진(가로)이 섞여 있어도 잘리지 않도록 단으로 쌓는다.
   어느 단에 넣을지는 main.js 가 사진 비율을 보고 정한다. */
.grid {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.grid__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot {
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shot img {
  width: 100%;
  height: auto;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.shot:hover img { transform: scale(1.04); }

.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(11, 26, 43, 0) 0%, rgba(11, 26, 43, .72) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 푸터 ════════════════════════════════════════════ */
.foot {
  padding: clamp(56px, 11vw, 84px) 0 calc(38px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, .74);
  text-align: center;
}

.foot__mark {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
}
.foot__word {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #fff;
}
.foot__tag {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: .06em;
}

.foot__links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 30px;
}
.foot__links a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .8);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.foot__links a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: translateY(-2px);
}
.foot__links svg { width: 19px; height: 19px; }

.foot__copy {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
}

/* ═══ 플로팅 문의 버튼 ════════════════════════════════ */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 19px;
  border-radius: 999px;
  background: #fee500;              /* 카카오 노랑 */
  color: #191600;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .34s ease, box-shadow .2s ease;
}
.fab.is-on { transform: none; opacity: 1; }
.fab:hover { box-shadow: var(--shadow-lg); }
.fab svg { width: 18px; height: 18px; stroke-width: 2; }

/* ═══ 라이트박스 ══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  background: rgba(6, 15, 25, .94);
  backdrop-filter: blur(4px);
  animation: fade .18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0;
  max-width: min(100%, 960px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto; height: auto;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox__figure figcaption {
  color: #dbe7f3;
  font-size: 13px;
  text-align: center;
  min-height: 1em;
}

.lightbox__close,
.lightbox__nav {
  flex: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover  { background: rgba(255, 255, 255, .24); }
.lightbox__nav:active { transform: scale(.92); }

.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  width: 40px; height: 40px;
  font-size: 27px; line-height: 1;
}
.lightbox__nav {
  width: 44px; height: 44px;
  font-size: 30px; line-height: 1;
  padding-bottom: 4px;
}
.lightbox--single .lightbox__nav { display: none; }

/* ═══ 토스트 ══════════════════════════════════════════ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  z-index: 200;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(11, 26, 43, .94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═══ 스크롤 등장 ═════════════════════════════════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
              transform .7s cubic-bezier(.22, 1, .36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ═══ 넓은 화면 ═══════════════════════════════════════ */
@media (min-width: 760px) {
  /* 넓은 화면에서는 사진이 화면 전체를 덮어도 잘림이 크지 않다 */
  .hero__media { height: 100%; }
  .hero__media img { object-position: center 42%; }
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(11, 26, 43, .55) 0%,
      rgba(11, 26, 43, .10) 26%,
      rgba(11, 26, 43, .52) 58%,
      rgba(11, 26, 43, .82) 80%,
      rgba(11, 26, 43, .96) 100%);
  }
}

@media (min-width: 700px) {
  .acts { grid-template-columns: 1fr 1fr; }
  .act  { padding: 22px 20px; }

  .grid, .grid__col { gap: 14px; }

  .quote { padding-left: 30px; }
}

@media (min-width: 1024px) {
  .hero__word { letter-spacing: .1em; }
}

/* ═══ 좁은 화면 ═══════════════════════════════════════ */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .act { padding: 15px 14px; gap: 12px; }
  .act__icon { width: 42px; height: 42px; }
  .fab { padding: 12px 16px; font-size: 13px; }
}

/* ═══ 모션 최소화 설정 존중 ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
