/* =========================================================
   withEarth — 환경 봉사활동 랜딩
   style.css
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #F4F3EE;
  --ink: #16201A;
  --muted: #5E6960;
  --muted-2: #3B443C;
  --brand: #2FA36B;
  --brand-hover: #98E4B2;
  --dark: #101711;
  --light-green: #7FD69E;
  --card-border: rgba(22, 32, 26, 0.07);
  --card-shadow: 0 20px 44px -34px rgba(22, 32, 26, 0.3);
  --maxw: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 10vh, 130px);
  --header-h: 70px;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Pretendard', sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  letter-spacing: -0.015em;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(47, 163, 107, 0.5); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Keyframes ---------- */
@keyframes weFill { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes weMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes weMarqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes weFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes weFloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes weFloat3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, -30px); } }
@keyframes weDriftL { 0% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(34px,-40px) rotate(-2deg); } 100% { transform: translate(0,0) rotate(-8deg); } }
@keyframes weDriftR { 0% { transform: translate(0,0) rotate(7deg); } 50% { transform: translate(-38px,34px) rotate(13deg); } 100% { transform: translate(0,0) rotate(7deg); } }
@keyframes wePan { 0% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-38%,-58%) scale(1.18); } 100% { transform: translate(-50%,-50%) scale(1); } }
@keyframes weBlobA { 0% { transform: translate(0,0) scale(1); } 33% { transform: translate(6%,4%) scale(1.18); } 66% { transform: translate(-4%,7%) scale(0.9); } 100% { transform: translate(0,0) scale(1); } }
@keyframes weBlobB { 0% { transform: translate(0,0) scale(1); } 33% { transform: translate(-7%,5%) scale(0.88); } 66% { transform: translate(5%,-4%) scale(1.2); } 100% { transform: translate(0,0) scale(1); } }
@keyframes weBlobC { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,-6%) scale(1.15); } 100% { transform: translate(0,0) scale(1); } }
@keyframes weColDrift1 { 0%,100% { transform: translate(0,0) rotate(-2deg); } 50% { transform: translate(10px,-22px) rotate(2deg); } }
@keyframes weColDrift2 { 0%,100% { transform: translate(0,0) rotate(2deg); } 50% { transform: translate(-12px,18px) rotate(-2deg); } }
@keyframes weColDrift3 { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(14px,20px) rotate(1deg); } }
@keyframes weColDrift4 { 0%,100% { transform: translate(0,0) rotate(3deg); } 50% { transform: translate(-10px,-24px) rotate(-2deg); } }
@keyframes weGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes weTextGradient { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ---------- Loading intro ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__word { position: relative; font-family: var(--font-display); font-size: clamp(14px, 2.4vw, 24px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.loader__word .ghost { color: rgba(22, 32, 26, 0.12); }
.loader__word .fill { position: absolute; inset: 0; color: var(--brand); clip-path: inset(0 0 100% 0); animation: weFill 1.3s cubic-bezier(0.65,0,0.35,1) forwards; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(12px, 1.6vw, 18px) var(--pad-x);
  background: transparent;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(22, 32, 26, 0.06), 0 8px 24px -16px rgba(22, 32, 26, 0.18);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand__name .e { color: var(--brand); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.nav a { text-decoration: none; color: var(--muted-2); font-size: 16.5px; font-weight: 600; transition: color .3s; }
.nav a:hover { color: var(--brand); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.btn-apply-header {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  border: none; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .3s, background .3s;
}
.btn-apply-header:hover { transform: translateY(-2px); background: var(--brand); }

/* Burger */
.burger { position: relative; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex: none; display: none; }
.burger span { position: absolute; left: 50%; top: 50%; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s cubic-bezier(0.65,0,0.35,1); }
.burger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-5px); }
.burger span:nth-child(2) { transform: translate(-50%, -50%) translateY(5px); }
.burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(22,32,26,0.4); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 88vw); z-index: 95; background: #fff; transform: translateX(100%); transition: transform .55s cubic-bezier(0.65,0,0.35,1); box-shadow: -30px 0 60px -30px rgba(22,32,26,0.3); }
.drawer.is-open { transform: translateX(0); }
.drawer__inner { display: flex; flex-direction: column; height: 100%; padding: clamp(80px,10vh,120px) clamp(28px,6vw,44px) clamp(28px,5vw,40px); }
.drawer__label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--brand); margin-bottom: 28px; }
.drawer__links { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.drawer__links a { text-decoration: none; color: var(--ink); font-size: clamp(28px,7vw,38px); font-weight: 700; letter-spacing: -0.02em; padding: 8px 0; transition: color .3s, transform .3s; }
.drawer__links a:hover { color: var(--brand); transform: translateX(6px); }
.drawer__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.drawer__cta .btn-apply { width: 100%; padding: 17px; border: none; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 700; cursor: pointer; }
.btn-kakao { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 17px; border-radius: 14px; background: #FEE500; color: #3C1E1E; font-family: var(--font-body); font-size: 16px; font-weight: 700; text-decoration: none; }

/* ---------- Section headings ---------- */
.section { padding: var(--section-y) 0; }
.h2 { margin: 0 auto clamp(40px,6vh,64px); max-width: 20ch; text-align: center; font-size: clamp(26px,3.6vw,48px); font-weight: 800; line-height: 1.16; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.h2 .accent, .accent-green { color: var(--brand); }
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(120px,17vh,190px) 0 clamp(60px,8vh,96px); background: linear-gradient(120deg, #E8F3EC 0%, #F4F3EE 30%, #E7EFF6 55%, #F5F1E7 80%, #EAF3EC 100%); background-size: 280% 280%; animation: weGradient 20s ease-in-out infinite; }
.hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; filter: blur(20px); }
.blob--a { top: -8%; left: -6%; width: 46%; height: 60%; background: radial-gradient(circle, rgba(126,206,150,0.5), transparent 68%); animation: weBlobA 18s ease-in-out infinite; }
.blob--b { top: -4%; right: -8%; width: 44%; height: 58%; background: radial-gradient(circle, rgba(150,203,232,0.45), transparent 68%); animation: weBlobB 22s ease-in-out infinite; }
.blob--c { bottom: 0; left: 30%; width: 44%; height: 42%; background: radial-gradient(circle, rgba(240,224,160,0.4), transparent 70%); animation: weBlobC 20s ease-in-out infinite; }
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgba(22,32,26,0.12); border-radius: 999px; background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: var(--muted-2); margin-bottom: clamp(24px,3vh,34px); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
.hero h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(38px,6.6vw,88px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.hero h1 .accent-green {
  background: linear-gradient(90deg, #2FA36B, #7FD69E, #96CBE8, #2FA36B);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: weTextGradient 6s linear infinite;
}
.hero__sub { margin: clamp(20px,3vh,28px) auto 0; max-width: 560px; font-size: clamp(15px,1.5vw,19px); line-height: 1.65; color: var(--muted); }
.hero__formwrap { margin: clamp(28px,4vh,38px) auto 0; max-width: 520px; }

/* Inline email form (light) */
.email-form { display: flex; gap: 8px; padding: 8px; background: #fff; border: 1px solid rgba(22,32,26,0.1); border-radius: 999px; box-shadow: 0 16px 40px -24px rgba(22,32,26,0.35); flex-wrap: wrap; }
.email-form input { flex: 1; min-width: 180px; border: none; background: transparent; padding: 12px 18px; font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.email-form input:focus { outline: none; }
.email-form button { border: none; border-radius: 999px; background: var(--ink); color: #fff; padding: 14px 26px; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .3s; }
.email-form button:hover { background: var(--brand); }
.form-success { padding: 18px 24px; border-radius: 16px; background: #E7F4EC; border: 1px solid rgba(47,163,107,0.3); color: #1B5E3C; font-size: 15px; font-weight: 600; }
.is-hidden { display: none !important; }

.hero__social { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(22px,3vh,30px); flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); background-size: cover; background-position: center; display: inline-block; box-shadow: 0 2px 6px -2px rgba(22,32,26,0.3); }
.avatars span + span { margin-left: -10px; }
.hero__count { font-size: 14px; color: var(--muted); font-weight: 500; }
.hero__count strong { color: var(--ink); }

/* Collage */
.collage { position: relative; z-index: 2; max-width: 1240px; margin: clamp(48px,7vh,84px) auto 0; padding: 0 var(--pad-x); }
.collage__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px,1.4vw,18px); }
.collage__item { position: relative; aspect-ratio: 2/3; border-radius: 20px; overflow: hidden; will-change: transform; }
.collage__item--a { background: linear-gradient(150deg,#A8D8B4,#5EA574); }
.collage__item--b { margin-top: clamp(18px,3vw,40px); background: linear-gradient(150deg,#9CCBE4,#5E8FA5); }
.collage__item:nth-child(1) { animation: weColDrift1 15s ease-in-out infinite; }
.collage__item:nth-child(2) { animation: weColDrift2 17s ease-in-out infinite; }
.collage__item:nth-child(3) { animation: weColDrift3 16s ease-in-out infinite; }
.collage__item:nth-child(4) { animation: weColDrift4 18s ease-in-out infinite; }
.collage__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,23,17,0.6), transparent 52%); }
.collage__cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.25); }

/* ---------- Why ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,290px),1fr)); gap: clamp(16px,2vw,24px); }
.card { background: #fff; border: 1px solid var(--card-border); border-radius: 24px; padding: clamp(28px,3vw,38px); box-shadow: var(--card-shadow); transition: transform .4s; }
.card:hover { transform: translateY(-6px); }
.card__icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 22px; }
.card h3 { margin: 0 0 12px; font-size: clamp(19px,1.8vw,23px); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.72; color: var(--muted); }

/* ---------- Who (dark marquee) ---------- */
.who { background: var(--dark); overflow: hidden; }
.who__head { max-width: var(--maxw); margin: 0 auto clamp(40px,5vh,56px); padding: 0 var(--pad-x); text-align: center; }
.who__head .eyebrow { color: var(--light-green); }
.who__head h2 { margin: 0; font-size: clamp(26px,3.6vw,48px); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; color: var(--bg); }
.marquee { position: relative; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee__track { display: inline-flex; gap: 14px; padding-right: 14px; }
.marquee__track--l { animation: weMarquee 34s linear infinite; }
.marquee__track--r { animation: weMarqueeR 38s linear infinite; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: rgba(244,243,238,0.06); border: 1px solid rgba(244,243,238,0.14); color: var(--bg); font-size: clamp(15px,1.6vw,19px); font-weight: 600; white-space: nowrap; }
.chip__dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Features ---------- */
.features__head { text-align: center; margin-bottom: clamp(36px,5vh,52px); }
.features__head h2 { margin: 0 auto 14px; max-width: 18ch; font-size: clamp(26px,3.6vw,48px); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.features__head p { margin: 0 auto clamp(24px,3vh,30px); max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.toggle { display: inline-flex; padding: 5px; background: #fff; border: 1px solid rgba(22,32,26,0.1); border-radius: 999px; gap: 4px; }
.toggle button { padding: 11px 22px; border: none; border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s; background: transparent; color: var(--muted); }
.toggle button.is-active { background: var(--ink); color: #fff; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,270px),1fr)); gap: clamp(14px,1.6vw,20px); }
.fcard { background: #fff; border: 1px solid var(--card-border); border-radius: 22px; padding: clamp(24px,2.6vw,32px); box-shadow: 0 20px 44px -36px rgba(22,32,26,0.3); display: flex; flex-direction: column; gap: 18px; transition: transform .4s; }
.fcard:hover { transform: translateY(-5px); }
.fcard__media { aspect-ratio: 3/2; border-radius: 14px; position: relative; overflow: hidden; }
.fcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,23,17,0.5), transparent 55%); }
.fcard__badge { position: absolute; left: 14px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.4); }
.fcard h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.fcard p { margin: 0; font-size: 14px; line-height: 1.68; color: var(--muted); }

/* ---------- Gallery (활동내역) ---------- */
.gallery__head { text-align: center; margin-bottom: clamp(36px,5vh,52px); }
.gallery__head .eyebrow { margin-bottom: 14px; }
.gallery__head h2 { margin: 0 auto 14px; font-size: clamp(26px,3.6vw,48px); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; color: var(--ink); }
.gallery__head p { margin: 0 auto; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.6vw,20px); }
.gallery__item { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3/2; box-shadow: var(--card-shadow); background: linear-gradient(150deg,#DDECE1,#C3DBCB); }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(0.22,1,0.36,1); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,23,17,0.68), rgba(16,23,17,0.08) 46%, transparent 62%); }
.gallery__item figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.gallery__tag { align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: rgba(47,163,107,0.92); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Reserve / FAQ ---------- */
.reserve { background: var(--bg); padding: clamp(20px,3vh,40px) 0 var(--section-y); }
.reserve__inner { max-width: 960px; margin: 0 auto; padding: 0 var(--pad-x); }
.reserve__banner { background: linear-gradient(135deg,#E7F4EC,#DCEEF6); border: 1px solid rgba(22,32,26,0.06); border-radius: 28px; padding: clamp(32px,4vw,56px); text-align: center; margin-bottom: clamp(48px,7vh,80px); }
.reserve__banner .eyebrow { color: var(--brand); }
.reserve__banner h2 { margin: 0 0 12px; font-size: clamp(26px,3.6vw,44px); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; color: var(--ink); }
.reserve__banner p { margin: 0 auto clamp(24px,3vh,30px); max-width: 440px; font-size: 15px; line-height: 1.65; color: #41564A; }
.btn-dark { border: none; border-radius: 999px; background: var(--ink); color: #fff; padding: 16px 32px; font-family: var(--font-body); font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .3s, background .3s; }
.btn-dark:hover { transform: translateY(-3px); background: var(--brand); }
.faq-title { margin: 0 0 clamp(20px,3vh,28px); text-align: center; font-size: clamp(22px,2.6vw,32px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: #fff; border: 1px solid rgba(22,32,26,0.08); border-radius: 16px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: transparent; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); font-size: clamp(15px,1.5vw,17px); font-weight: 700; color: var(--ink); }
.faq__icon { font-size: 20px; color: var(--brand); transition: transform .3s; flex: none; }
.faq.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; transition: max-height .4s ease; max-height: 0; }
.faq.is-open .faq__a { max-height: 320px; }
.faq__a p { margin: 0; padding: 0 24px 22px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* ---------- Final CTA ---------- */
.join { position: relative; background: var(--dark); padding: clamp(72px,11vh,150px) 0; overflow: hidden; }
.join__bg { position: absolute; inset: 0; pointer-events: none; }
.join__card { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.6); }
.join__card img { width: 100%; height: 100%; object-fit: cover; }
.join__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(16,23,17,0.15), rgba(16,23,17,0.5)); }
.join__card--l { top: 12%; left: 4%; width: 288px; height: 192px; opacity: 0.92; animation: weDriftL 16s ease-in-out infinite; }
.join__card--r { bottom: 9%; right: 5%; width: 312px; height: 208px; opacity: 0.92; animation: weDriftR 19s ease-in-out infinite; }
.join__card--s { top: 14%; right: 24%; width: 210px; height: 140px; border-radius: 16px; opacity: 0.8; animation: weFloat3 13s ease-in-out infinite; }
.join__glow { position: absolute; top: 50%; left: 50%; width: 70%; height: 80%; background: radial-gradient(circle, rgba(126,214,158,0.16), transparent 65%); filter: blur(30px); animation: wePan 20s ease-in-out infinite; }
.join__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 var(--pad-x); text-align: center; }
.join h2 { margin: 0 0 18px; font-size: clamp(30px,5vw,68px); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; color: var(--bg); text-wrap: balance; }
.join h2 span { color: var(--light-green); }
.join__sub { margin: 0 auto clamp(30px,4vh,40px); max-width: 460px; font-size: clamp(15px,1.5vw,18px); line-height: 1.6; color: rgba(244,243,238,0.66); }
.email-form--dark { max-width: 520px; margin: 0 auto; background: rgba(255,255,255,0.08); border: 1px solid rgba(244,243,238,0.16); box-shadow: none; }
.email-form--dark input { color: var(--bg); }
.email-form--dark input::placeholder { color: rgba(244,243,238,0.5); }
.email-form--dark button { background: var(--light-green); color: #0E1710; }
.email-form--dark button:hover { background: var(--brand-hover); }
.form-success--dark { max-width: 520px; margin: 0 auto; background: rgba(126,214,158,0.14); border: 1px solid rgba(126,214,158,0.35); color: #BDE9CD; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--muted); padding: clamp(56px,8vh,84px) 0 clamp(28px,4vh,40px); }
.footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: clamp(32px,4vw,56px); padding-bottom: clamp(36px,5vh,52px); border-bottom: 1px solid rgba(22,32,26,0.1); }
.footer__brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.footer__desc { margin: 16px 0 0; font-size: 14px; line-height: 1.7; max-width: 280px; }
.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a { color: var(--muted); transition: color .3s; }
.socials a:hover { color: var(--brand); }
.footer__col-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: rgba(22,32,26,0.4); margin-bottom: 16px; }
.biz-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; border: none; padding: 0; cursor: default; color: var(--ink); font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-align: left; }
.biz-chevron { font-size: 16px; color: var(--muted); transition: transform .3s; display: none; }
.biz.is-open .biz-chevron { transform: rotate(45deg); }
.biz-body { overflow: hidden; transition: max-height .4s ease, opacity .4s ease; max-height: 260px; opacity: 1; }
.biz-body dl { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.6; padding-top: 14px; margin: 0; }
.biz-body dl div { display: block; }
.sitemap a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 11px; }
.sitemap a:hover { color: var(--brand); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer__copy { font-size: 12.5px; color: rgba(22,32,26,0.45); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer__legal a:hover { color: var(--brand); }

/* ---------- Floating: TOP button ---------- */
.top-btn { position: fixed; right: clamp(16px,2vw,28px); bottom: clamp(20px,3vh,32px); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; height: 58px; justify-content: center; border: 1px solid rgba(22,32,26,0.1); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 12px 30px -12px rgba(22,32,26,0.3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s, transform .4s, visibility .4s, bottom .4s; }
.top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.top-btn .arrow { font-size: 16px; line-height: 1; }
.top-btn .label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }

/* ---------- Mobile fixed CTA ---------- */
.fixed-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(244,243,238,0.94); backdrop-filter: blur(10px); border-top: 1px solid rgba(22,32,26,0.1); }
.fixed-cta.is-visible { display: flex; }
.fixed-cta .btn-apply { flex: 1; padding: 16px; border: none; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; }
.fixed-cta .btn-kakao { width: auto; padding: 16px 22px; }

/* ---------- Apply modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(16,23,17,0.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal { position: fixed; left: 50%; top: 50%; z-index: 115; width: min(480px,92vw); max-height: 88vh; overflow-y: auto; padding: clamp(28px,4vw,40px); border-radius: 24px; background: #F7F6F1; box-shadow: 0 40px 90px -30px rgba(16,23,17,0.5); transform: translate(-50%,-50%) scale(0.94); opacity: 0; visibility: hidden; transition: opacity .35s, transform .4s cubic-bezier(0.22,1,0.36,1), visibility .35s; }
.modal.is-open { transform: translate(-50%,-50%) scale(1); opacity: 1; visibility: visible; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(22,32,26,0.06); color: var(--ink); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.modal__close:hover { background: rgba(22,32,26,0.12); }
.modal h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.modal__lead { margin: 0 0 24px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.modal__fields { display: flex; flex-direction: column; gap: 14px; }
.modal__fields label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted-2); }
.modal__fields input, .modal__fields textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(22,32,26,0.14); border-radius: 12px; padding: 13px 15px; font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; transition: border-color .25s; }
.modal__fields textarea { resize: vertical; }
.modal__fields input:focus, .modal__fields textarea:focus { outline: none; border-color: var(--brand); }
.modal__agree { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-size: 13.5px !important; line-height: 1.5; color: var(--muted-2) !important; font-weight: 400 !important; cursor: pointer; margin-top: 2px; }
.modal__agree input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.modal__agree a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.modal__submit { width: 100%; margin-top: 24px; padding: 16px; border: none; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .3s, transform .3s; }
.modal__submit:hover { background: var(--brand); transform: translateY(-2px); }
.modal__done { text-align: center; padding: 8px 4px; }
.modal__done-icon { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: #E7F4EC; display: flex; align-items: center; justify-content: center; }
.modal__done p { margin: 0 auto; max-width: 330px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.modal__done .btn-dark { margin-top: 26px; padding: 14px 34px; }

/* ---------- Scroll reveal ---------- */
[data-anim] { opacity: 0; transform: translateY(30px); transition: transform .8s cubic-bezier(0.22,1,0.36,1), opacity .8s cubic-bezier(0.22,1,0.36,1); }
[data-anim].is-in { opacity: 1; transform: none; }

/* ---------- Policy pages ---------- */
.policy { min-height: 100vh; background: var(--dark); color: #ECEAE1; }
.policy__header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px,4vw,56px); background: rgba(16,23,17,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(236,234,225,0.08); }
.policy__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: #ECEAE1; }
.policy__brand .e { color: var(--light-green); }
.policy__back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(236,234,225,0.2); border-radius: 999px; text-decoration: none; color: #ECEAE1; font-size: 14px; font-weight: 600; transition: all .3s; }
.policy__back:hover { background: #ECEAE1; color: var(--dark); }
.policy__main { max-width: 820px; margin: 0 auto; padding: clamp(48px,8vh,96px) clamp(20px,4vw,40px) clamp(64px,10vh,120px); }
.policy__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--light-green); margin-bottom: 18px; }
.policy__main h1 { margin: 0 0 14px; font-size: clamp(30px,4.4vw,52px); font-weight: 800; letter-spacing: -0.03em; color: #ECEAE1; }
.policy__intro { margin: 0 0 clamp(40px,6vh,64px); font-size: 15px; color: rgba(236,234,225,0.55); line-height: 1.7; }
.policy__section { padding: clamp(24px,3vh,32px) 0; border-top: 1px solid rgba(236,234,225,0.1); }
.policy__section h2 { margin: 0 0 16px; font-size: clamp(18px,2vw,22px); font-weight: 700; color: #ECEAE1; letter-spacing: -0.02em; }
.policy__section .body { font-size: 15px; line-height: 1.85; color: rgba(236,234,225,0.72); white-space: pre-line; }
.policy__note { margin-top: clamp(40px,6vh,56px); padding: 24px 28px; background: #141B15; border: 1px solid rgba(236,234,225,0.08); border-radius: 16px; font-size: 14px; line-height: 1.8; color: rgba(236,234,225,0.62); }
.policy__note strong { color: #ECEAE1; }
.policy__footer { background: #060907; color: rgba(236,234,225,0.5); padding: 32px clamp(20px,4vw,56px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.policy__footer .copy { font-size: 12.5px; }
.policy__footer nav { display: flex; gap: 20px; }
.policy__footer a { text-decoration: none; font-size: 13px; }
.policy__footer a.active { color: #A6D07E; font-weight: 600; }
.policy__footer a:not(.active) { color: rgba(236,234,225,0.6); }

/* ---------- Carousel controls (mobile) ---------- */
.carousel__controls { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.carousel__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--card-border); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -12px rgba(22,32,26,0.35); padding: 0; }
.carousel__arrow:active { transform: scale(0.94); }
.carousel__dots { display: flex; gap: 7px; align-items: center; }
.carousel__dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(22,32,26,0.2); padding: 0; cursor: pointer; transition: width .3s, background .3s, border-radius .3s; }
.carousel__dot.is-active { background: var(--brand); width: 20px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  /* --- compact app-like spacing --- */
  :root { --section-y: clamp(40px, 6vh, 60px); }

  .nav { display: none; }
  .btn-apply-header { display: none; }
  .burger { display: block; }
  [data-anim] { transform: translateY(12px); }
  .top-btn.push-up { bottom: 82px; }

  /* Hero */
  .hero { padding: 92px 0 40px; }
  .hero h1 { font-size: 29px; line-height: 1.1; max-width: 18ch; }
  .hero__sub { font-size: 13.5px; line-height: 1.6; margin-top: 16px; }
  .badge { font-size: 11.5px; padding: 6px 13px; margin-bottom: 18px; }
  .hero__formwrap { margin-top: 22px; }
  .email-form { padding: 6px; }
  .email-form input { padding: 10px 14px; font-size: 14px; min-width: 140px; }
  .email-form button { padding: 12px 18px; font-size: 13.5px; }
  .hero__count { font-size: 12.5px; }
  .avatars span { width: 30px; height: 30px; }
  .collage { margin-top: 32px; }
  .collage__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Section headings — smaller */
  .h2, .features__head h2, .who__head h2, .gallery__head h2, .reserve__banner h2, .join h2 { font-size: 22px !important; line-height: 1.22 !important; }
  .faq-title { font-size: 20px; }
  .features__head p, .gallery__head p { font-size: 13.5px; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .h2 { margin-bottom: 26px; }

  /* Why cards — compact */
  .cards-grid { gap: 12px; }
  .card { padding: 20px; border-radius: 18px; }
  .card__icon { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; margin-bottom: 14px; }
  .card h3 { font-size: 16.5px; margin-bottom: 8px; }
  .card p { font-size: 13.5px; line-height: 1.65; }

  /* Who chips — smaller */
  .chip { padding: 9px 16px; font-size: 13.5px; gap: 8px; }
  .chip__dot { width: 9px; height: 9px; }

  /* Features toggle */
  .toggle button { padding: 9px 16px; font-size: 13px; }
  .fcard { padding: 16px; border-radius: 18px; gap: 12px; }
  .fcard h3 { font-size: 16px; }
  .fcard p { font-size: 13px; }
  .fcard__badge { width: 34px; height: 34px; font-size: 18px; }

  /* Gallery */
  .gallery__item figcaption { font-size: 13.5px; left: 14px; right: 14px; bottom: 13px; }
  .gallery__tag { font-size: 10.5px; padding: 3px 9px; }

  /* Reserve banner */
  .reserve__banner { padding: 26px 20px; border-radius: 22px; }
  .reserve__banner p { font-size: 13.5px; }
  .btn-dark { padding: 14px 26px; font-size: 14.5px; }
  .faq__q { padding: 16px 18px; font-size: 14.5px; }
  .faq__a p { padding: 0 18px 18px; font-size: 13.5px; }

  /* Join */
  .join__sub { font-size: 13.5px; }
  .join__card { display: none; } /* hide heavy floating photos on mobile for clean scroll */

  /* --- image sliders (Features · Gallery) --- */
  .features__grid[data-carousel],
  .gallery__grid[data-carousel] {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(-1 * var(--pad-x));
    padding-inline: var(--pad-x);
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .features__grid[data-carousel]::-webkit-scrollbar,
  .gallery__grid[data-carousel]::-webkit-scrollbar { display: none; }
  .features__grid[data-carousel] > *,
  .gallery__grid[data-carousel] > * { flex: 0 0 82%; scroll-snap-align: center; }
  .carousel__controls { display: flex; }

  /* Footer — hide sitemap/quick links on mobile */
  .sitemap { display: none; }
  .biz-toggle { cursor: pointer; }
  .biz-chevron { display: inline; }
  .biz.is-collapsed .biz-body { max-height: 0; opacity: 0; }
  .footer__desc { font-size: 13px; }

  /* --- lighten animations for smooth mobile scroll --- */
  .hero { animation: none; background: linear-gradient(150deg, #EAF3EC, #F4F3EE 55%, #EDF0F4); }
  .hero__blobs { display: none; }
  .collage__item { animation: none !important; }
  .join__glow { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}
