/* ===== 하수구연구소 첫 화면(P1) — 모두 .hsg- 접두어, 다른 스타일과 충돌 없음 ===== */
:root{
  --hsg-ink:#343539;      /* 로고 글자색 (밝은 배경) */
  --hsg-drop:#2563EB;     /* 물방울 = 메인 파랑 */
  --hsg-navy:#0B1A33;
  --hsg-blue:#2563EB;
  --hsg-cyan:#06B6D4;
  --hsg-aqua:#A8F0E6;
}
.hsg-rf{fill:none;stroke:var(--hsg-ink);stroke-linecap:round}
.hsg-drop{fill:var(--hsg-drop);transform-box:fill-box;transform-origin:50% 100%}

/* 헤더용 작은 로고 (심볼 + 글자) */
.hsg-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--hsg-ink);font-weight:600;font-size:19px;letter-spacing:-.015em;white-space:nowrap}
.hsg-mini{width:58px;height:auto;display:block;overflow:visible}
@media (max-width:760px){.hsg-brand{font-size:17px}.hsg-mini{width:50px}}

/* 무대 */
.hsg-hero,.hsg-hero *{box-sizing:border-box}
.hsg-hero{--hsg-cy:130px;position:relative;isolation:isolate;margin:0;overflow:hidden;
  min-height:calc(100vh - var(--hsg-hdr,64px));min-height:calc(100svh - var(--hsg-hdr,64px));   /* --hsg-hdr = 헤더 높이 (기본 64px) */
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 0 72px;
  text-align:center;word-break:keep-all;font-family:inherit;color:var(--hsg-navy)}
/* 배경은 페이지 폭 전체를 채우고, 아래쪽 끝은 페이지 바탕색으로 자연스럽게 번진다 */
.hsg-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  background:linear-gradient(135deg,#E3EBFF,#E6F6FF 55%,#E7FBF6);               /* WebGL이 안 될 때의 대체 배경 */
  -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%)}
.hsg-rib{position:absolute;inset:0;width:100%;height:100%;display:block}
.hsg-veil{position:absolute;inset:0;background:rgba(255,255,255,.26);transition:background .6s}
.hsg-glow{position:absolute;left:50%;top:40%;width:92%;aspect-ratio:1.4;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(255,255,255,.78),rgba(255,255,255,0))}
.hsg-spot{position:absolute;inset:0;opacity:0;transition:opacity .5s;background:radial-gradient(440px circle at var(--hsg-mx,50%) var(--hsg-my,34%),rgba(37,99,235,.12),transparent 65%)}
.hsg-hero:hover .hsg-spot{opacity:1}
.hsg-rip{position:absolute;left:50%;top:var(--hsg-cy);width:1000px;height:1000px;border-radius:50%;border:1px solid rgba(37,99,235,.5);transform:translate(-50%,-50%) scale(.03);opacity:0}

.hsg-stage{display:flex;flex-direction:column;align-items:center;width:100%;padding:24px 32px 0}
.hsg-logo{width:190px;height:auto;overflow:visible;display:block}
.hsg-wm{margin:20px 0 0;padding:0;line-height:0;color:var(--hsg-ink)}
.hsg-wm-svg{display:block;width:250px;height:auto}
@media (max-width:760px){.hsg-wm{margin-top:16px}.hsg-wm-svg{width:195px}}
.hsg-rule{display:block;width:44px;height:1px;margin:26px 0 30px;background:linear-gradient(90deg,var(--hsg-cyan),var(--hsg-blue));transform-origin:50% 50%}
.hsg-h1{margin:0;font-size:clamp(30px,5.2vw,56px);line-height:1.26;font-weight:700;letter-spacing:-.03em;color:var(--hsg-navy)}
.hsg-ln{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.hsg-ln>span{display:block}
.hsg-hl{font-style:normal;color:var(--hsg-blue)}
.hsg-hero[data-mode="vivid"] .hsg-hl{color:var(--hsg-aqua)}
.hsg-lead{margin:24px 0 0;max-width:34em;font-size:clamp(15px,1.7vw,18px);line-height:1.75;font-weight:400;color:#56627A}
.hsg-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:34px}
.hsg-b1,.hsg-b2{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:15px;font-weight:600;line-height:1.2;border-radius:14px;padding:14px 22px;border:0;text-decoration:none;cursor:pointer;transition:transform .2s,box-shadow .2s}
.hsg-b1{background:var(--hsg-blue);color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.3)}
.hsg-b2{background:rgba(255,255,255,.7);color:var(--hsg-navy);box-shadow:0 0 0 1px rgba(11,26,51,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.hsg-b1:hover,.hsg-b2:hover{transform:translateY(-2px)}
.hsg-b1:focus-visible,.hsg-b2:focus-visible{outline:3px solid var(--hsg-navy);outline-offset:3px}

/* 하단 안내 띠 (기존 칩/문구 개수에 상관없이 균등 분할) */
.hsg-strip{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;width:min(920px,calc(100% - 48px));margin:64px 0 0;padding:0;list-style:none;overflow:hidden;
  border-radius:18px;border:1px solid rgba(255,255,255,.85);box-shadow:0 14px 34px rgba(11,26,51,.07);
  background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3)}
.hsg-strip li{display:flex;align-items:center;justify-content:center;gap:8px;padding:19px 10px;font-size:14px;font-weight:500;color:#33415C}
.hsg-strip li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--hsg-cyan);flex:none}
.hsg-strip li+li{box-shadow:inset 1px 0 0 rgba(11,26,51,.07)}

/* 비비드 (data-mode="vivid") — 임팩트를 더 키우고 싶을 때만 */
.hsg-hero[data-mode="vivid"]{--hsg-ink:#fff;--hsg-drop:#fff;color:#fff}
.hsg-hero[data-mode="vivid"] .hsg-veil{background:rgba(255,255,255,0)}
.hsg-hero[data-mode="vivid"] .hsg-glow{background:radial-gradient(closest-side,rgba(8,22,64,.5),rgba(8,22,64,0))}
.hsg-hero[data-mode="vivid"] .hsg-spot{background:radial-gradient(460px circle at var(--hsg-mx,50%) var(--hsg-my,34%),rgba(168,240,230,.22),transparent 65%)}
.hsg-hero[data-mode="vivid"] .hsg-rip{border-color:rgba(168,240,230,.7)}
.hsg-hero[data-mode="vivid"] .hsg-h1{color:#fff}
.hsg-hero[data-mode="vivid"] .hsg-lead{color:rgba(255,255,255,.82)}
.hsg-hero[data-mode="vivid"] .hsg-rule{background:linear-gradient(90deg,var(--hsg-aqua),#fff)}
.hsg-hero[data-mode="vivid"] .hsg-b1{background:#fff;color:#1D4ED8;box-shadow:0 12px 30px rgba(8,22,64,.35)}
.hsg-hero[data-mode="vivid"] .hsg-b2{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.hsg-hero[data-mode="vivid"] .hsg-strip{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);box-shadow:0 14px 34px rgba(8,22,64,.25)}
.hsg-hero[data-mode="vivid"] .hsg-strip li{color:rgba(255,255,255,.9)}
.hsg-hero[data-mode="vivid"] .hsg-strip li+li{box-shadow:inset 1px 0 0 rgba(255,255,255,.12)}
.hsg-hero[data-mode="vivid"] .hsg-strip li::before{background:var(--hsg-aqua)}

@media (max-width:760px){
  .hsg-hero{padding:36px 0 56px}
  .hsg-stage{padding:16px 22px 0}
  .hsg-logo{width:150px}
  .hsg-rule{margin:22px 0 24px}
  .hsg-strip{margin-top:48px;width:calc(100% - 32px);border-radius:16px}
  .hsg-strip li{font-size:12.5px;padding:16px 4px}
  .hsg-strip li::before{display:none}
}

/* 등장 모션: 지붕선 → 쉼 → 이름 → 제목 → 문장 → 버튼 → 안내 띠 (.hsg-go는 마크업 바로 뒤 인라인 스크립트가 붙임) */
.hsg-dl{--s:-1.02}.hsg-dr{--s:1.02}.hsg-ll,.hsg-lr{--s:1.02}
@keyframes hsg-draw{0%{stroke-dashoffset:var(--s);opacity:0}1%{opacity:1}100%{stroke-dashoffset:0;opacity:1}}
@keyframes hsg-dropfade{0%{opacity:0}100%{opacity:1}}
@keyframes hsg-dropmove{
  0%{transform:translateY(-72px) scale(.84,1.22);animation-timing-function:cubic-bezier(.5,0,.9,.55)}
  56%{transform:translateY(0) scale(.88,1.14);animation-timing-function:cubic-bezier(.2,.8,.3,1)}
  67%{transform:translateY(0) scale(1.24,.72);animation-timing-function:cubic-bezier(.3,.7,.4,1)}
  83%{transform:translateY(-3px) scale(.95,1.07);animation-timing-function:ease-in-out}
  100%{transform:translateY(0) scale(1,1)}}
@keyframes hsg-up{0%{transform:translateY(14px);opacity:0}100%{transform:none;opacity:1}}
@keyframes hsg-wm{0%{transform:translateY(10px);opacity:0;filter:blur(6px)}100%{transform:none;opacity:1;filter:blur(0)}}
@keyframes hsg-rise{0%{transform:translateY(112%)}100%{transform:none}}
@keyframes hsg-grow{0%{transform:scaleX(0);opacity:0}100%{transform:scaleX(1);opacity:1}}
@keyframes hsg-fade{0%{opacity:0}100%{opacity:1}}
@keyframes hsg-ripple{0%{transform:translate(-50%,-50%) scale(.03);opacity:.7}100%{transform:translate(-50%,-50%) scale(1);opacity:0}}
.hsg-go .hsg-rf{stroke-dasharray:1 2}
.hsg-go .hsg-dl,.hsg-go .hsg-dr{animation:hsg-draw 560ms cubic-bezier(.65,0,.2,1) 580ms both}
.hsg-go .hsg-ll,.hsg-go .hsg-lr{animation:hsg-draw 320ms cubic-bezier(.3,.7,.3,1) 1020ms both}
.hsg-go .hsg-logo .hsg-drop{animation:hsg-dropfade 60ms linear 0ms both,hsg-dropmove 720ms linear 0ms both}
.hsg-go .hsg-bg{animation:hsg-fade 1400ms ease both}
.hsg-go .hsg-rip{animation:hsg-ripple 2400ms cubic-bezier(.15,.6,.3,1) 480ms both}
.hsg-go .hsg-rip2{animation-delay:900ms}
.hsg-go .hsg-wm{animation:hsg-wm 800ms cubic-bezier(.2,.8,.2,1) 1750ms both}
.hsg-go .hsg-rule{animation:hsg-grow 600ms cubic-bezier(.6,0,.2,1) 2150ms both}
.hsg-go .hsg-ln:nth-child(1)>span{animation:hsg-rise 950ms cubic-bezier(.2,.8,.2,1) 2300ms both}
.hsg-go .hsg-ln:nth-child(2)>span{animation:hsg-rise 950ms cubic-bezier(.2,.8,.2,1) 2420ms both}
.hsg-go .hsg-lead{animation:hsg-up 700ms cubic-bezier(.2,.8,.2,1) 2800ms both}
.hsg-go .hsg-ctas{animation:hsg-up 700ms cubic-bezier(.2,.8,.2,1) 2950ms both}
.hsg-go .hsg-strip{animation:hsg-fade 900ms ease 3100ms both}
@media (prefers-reduced-motion:reduce){
  .hsg-go *{animation:none!important}
  .hsg-go .hsg-rf{stroke-dasharray:none}
  .hsg-rip,.hsg-spot{display:none}
  .hsg-b1,.hsg-b2{transition:none}
}
@media (hover:none){.hsg-spot{display:none}}

/* 전화 상담 버튼: PC는 번호까지, 모바일(760px 이하)은 '전화 상담'만 */
.hsg-tn{display:inline-block;margin-left:12px;padding-left:12px;border-left:1px solid rgba(255,255,255,.42);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.hsg-hero[data-mode="vivid"] .hsg-tn{border-left-color:rgba(29,78,216,.28)}
@media (max-width:760px){.hsg-tn{display:none}}

/* ===== 하단 안내 띠: 아이콘 카드 (⑰) ===== */
.hsg-strip.hsg-strip--icons{--dv:rgba(11,26,51,.09);width:min(980px,calc(100% - 48px));margin-top:56px;background:rgba(255,255,255,.95);border:1px solid #fff;border-radius:22px;box-shadow:0 20px 48px rgba(11,26,51,.13)}
.hsg-strip.hsg-strip--icons li{gap:12px;padding:20px 12px;font-size:16px;font-weight:600;color:var(--hsg-navy);letter-spacing:-.01em}
.hsg-strip.hsg-strip--icons li::before{display:none}
.hsg-strip.hsg-strip--icons li+li{box-shadow:none;border-left:1px solid var(--dv)}
.hsg-strip--icons .hsg-ic{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#E6EFFF}
.hsg-strip--icons .hsg-ic svg{width:20px;height:20px;fill:none;stroke:var(--hsg-blue);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:860px){
  .hsg-strip.hsg-strip--icons{grid-auto-flow:row;grid-template-columns:1fr 1fr;grid-auto-columns:auto;margin-top:40px;width:calc(100% - 32px);border-radius:18px}
  .hsg-strip.hsg-strip--icons li{justify-content:flex-start;padding:14px 18px}
  .hsg-strip.hsg-strip--icons li+li{border-left:0}
  .hsg-strip.hsg-strip--icons li:nth-child(even){border-left:1px solid var(--dv)}
  .hsg-strip.hsg-strip--icons li:nth-child(n+3){border-top:1px solid var(--dv)}
}
@media (max-width:760px){
  .hsg-strip.hsg-strip--icons li{gap:9px;padding:13px 10px 13px 14px;font-size:13.5px}
  .hsg-strip--icons .hsg-ic{width:30px;height:30px}
  .hsg-strip--icons .hsg-ic svg{width:16px;height:16px}
}

/* ===== ⑲ 카카오톡 버튼에 채널 ID 표기 · 헤드라인 강조(연구/정성) ===== */
.hsg-kn{display:inline-block;margin-left:12px;padding-left:12px;border-left:1px solid rgba(11,26,51,.18);font-weight:700;letter-spacing:.01em}
.hsg-hero[data-mode="vivid"] .hsg-kn{border-left-color:rgba(255,255,255,.42)}
@media (max-width:760px){.hsg-kn{display:none}}
.hsg-gr{font-style:normal;font-weight:800;color:#2563EB;background:linear-gradient(95deg,#1E40AF 0%,#2563EB 34%,#0EA5E9 72%,#06B6D4 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hsg-hero[data-mode="vivid"] .hsg-gr{background:none;color:var(--hsg-aqua);-webkit-text-fill-color:var(--hsg-aqua)}

/* ===== ⑳ 첫 화면 카카오톡 버튼 노란색(카카오 노랑, 상단바 카톡 버튼과 같은 색) ===== */
.hsg-b2{background:#FEE500;color:#191600;box-shadow:0 10px 24px rgba(254,229,0,.4)}
.hsg-b2:hover{box-shadow:0 14px 30px rgba(254,229,0,.55)}
.hsg-kn,.hsg-hero[data-mode="vivid"] .hsg-kn{border-left-color:rgba(25,22,0,.25)}
.hsg-hero[data-mode="vivid"] .hsg-b2{background:#FEE500;color:#191600;box-shadow:0 12px 30px rgba(8,22,64,.35)}
