/* Sparkle Shore: 낮 해변에서 시작해 스크롤할수록 노을, 밤하늘, 밤바다로 저무는 한 페이지.
   하루의 흐름 자체가 디자인이라 OS 다크 모드와 상관없이 같은 색 흐름을 쓴다. */

:root {
  --ink: #13212d;
  --day: #eef4f8;
  --dusk: #1c2547;
  --night: #0c1830;
  --deep: #060d1a;
  --white: #f7fafc;
  --mist: rgba(235, 243, 250, 0.78);
  --accent: #e8935f;
  --glow: #6ff3ff;
  --radius: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 언어 토글: 현재 언어가 아닌 쪽을 숨긴다 */
html[data-lang="en"] [data-l="ko"],
html[data-lang="ko"] [data-l="en"] { display: none !important; }
html[data-lang="ko"] body { word-break: keep-all; }

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  z-index: 30;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* 장면 배경: 생성한 영상과 이미지 (화면을 꽉 채우고 넘치는 부분은 잘라낸다) */
.bg-video, .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 히어로: 넓고 낮은 화면에서도 하늘 높이 뜬 해가 잘리지 않게 위쪽을 기준으로 자른다 */
.hero .bg-video { object-position: 50% 12%; }

/* ---------- Liquid glass ----------
   웹에서 흉내 낸 유리 질감이다(애플 공식 구현 아님). 크롬 계열에서는 main.js가
   SVG 변위 필터를 붙여 가장자리 굴절을 만들고, 그 밖의 브라우저는 블러 유리로 보인다. */
.glass {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.1),
    0 12px 32px -14px rgba(4, 18, 36, 0.55);
}
.glass::before {
  /* 위쪽 하이라이트 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.42), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 40%, rgba(255, 255, 255, 0.1));
  pointer-events: none;
  z-index: -1;
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(20, 44, 70, 0.92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: 1168px;
  margin: 0 auto;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 10px 0 18px;
  background-color: rgba(16, 38, 62, 0.42);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650; letter-spacing: -0.01em;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(5, 25, 45, 0.25);
}
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: rgba(247, 250, 252, 0.92);
  text-shadow: 0 1px 8px rgba(5, 25, 45, 0.45);
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.lang {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.lang:hover { background: rgba(255, 255, 255, 0.22); }
.lang:active { transform: scale(0.97); }

/* ---------- Hero ---------- */
/* 히어로는 소개 패널이 다 올라올 때까지 제자리에 머문다 */
.top-stack { position: relative; }
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: #2a6cad;
  z-index: 1;
}
.hero-layer { position: absolute; inset: 0; }
.hero-scrim {
  position: absolute;
  inset: 0;
  /* 제목과 부제(수평선의 밝은 띠 위)까지 덮어 흰 글씨 대비를 확보한다 */
  background: radial-gradient(72% 48% at 50% 42%, rgba(10, 40, 74, 0.5), transparent 78%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(100px, 16vh, 170px) 24px 0;
  color: var(--white);
  will-change: transform, opacity;
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 13ch;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(8, 36, 66, 0.45);
}
html[data-lang="ko"] .hero h1 { max-width: none; line-height: 1.16; font-size: clamp(36px, 5.2vw, 72px); }
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: #fff;
  max-width: 36ch;
  margin: 0 0 34px;
  text-shadow: 0 1px 3px rgba(8, 36, 66, 0.45), 0 2px 22px rgba(8, 36, 66, 0.65);
}

.glass-btn {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 16px 30px; border-radius: 999px; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(5, 25, 45, 0.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.glass-btn::after { content: "↓"; transition: transform .4s var(--ease); }
.glass-btn:hover { transform: translateY(-2px) scale(1.02); }
.glass-btn:hover::after { transform: translateY(3px); }
.glass-btn:active { transform: scale(0.98); }

/* ---------- Meet: Sparkle / Sea / Shore ---------- */
.meet { position: relative; z-index: 2; }
/* 소개 패널: 뒤의 바다가 비치는 유리 */
.meet-intro {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  border-radius: 36px 36px 0 0;
  border-width: 1px 0 0;
  padding: 150px 0 140px;
  background-color: rgba(14, 52, 88, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.statement {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 650;
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(6, 30, 56, 0.35);
}
html[data-lang="ko"] .statement { max-width: 18em; line-height: 1.32; font-size: clamp(28px, 3.6vw, 50px); }
.statement-sub {
  max-width: 44ch;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 3px rgba(6, 30, 56, 0.4), 0 2px 20px rgba(6, 30, 56, 0.55);
}
html[data-lang="ko"] .statement-sub { max-width: 34em; }

/* Sea/Sparkle/Shore는 세 단어를 보여 주는 장면이라 스크롤 구간을 짧게 둔다 */
.meet-track { position: relative; height: 240vh; background: var(--dusk); }
.meet-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
/* 해변: 낮 영상 위에 밤 영상을 겹쳐 스크롤로 바꾼다 */
.shore-stage { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.shore-night { position: absolute; inset: 0; opacity: 0; }
.shore-fade { position: absolute; inset: auto 0 0 0; height: 32%; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--dusk)); }
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.cl-shadow { fill: none; stroke: rgba(8, 30, 52, 0.25); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.cl-line { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-ring { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.2; }
.cl-dot { fill: #fff; }
/* 성분 설명선 라벨: 장면 위에 뜨는 작은 유리 카드 */
.callout {
  z-index: 2;
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(300px, 42vw);
  padding: 12px 16px 13px;
  border-radius: 18px;
  background-color: rgba(8, 30, 52, 0.38);
  opacity: 0;
  will-change: transform, opacity;
}
.callout strong {
  display: block;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(5, 25, 45, 0.4);
}
.callout > span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(5, 25, 45, 0.45);
}

/* ---------- Making ---------- */
.making {
  position: relative;
  z-index: 2;
  padding: 140px 0 170px;
  background: linear-gradient(180deg, var(--dusk) 0%, var(--night) 100%);
  color: var(--white);
}
.making h2, .contact h2 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 44px;
}
.tiles { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 540px;
  background: #0a1030;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
.tile-moon { margin-top: 80px; height: 440px; background: #0a1430; }
.tile-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 96px 36px 36px;
  /* 그림 위에 얹힌 글자가 묻히지 않게 아래를 충분히 어둡게 */
  background: linear-gradient(180deg, transparent, rgba(4, 8, 22, 0.72) 55%, rgba(4, 8, 22, 0.84));
}
.tile-body p { text-shadow: 0 1px 12px rgba(2, 6, 18, 0.7); }
.notify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background-color: rgba(111, 243, 255, 0.12);
  transition: transform .4s var(--ease), background-color .3s;
}
.notify::after { content: "→"; transition: transform .4s var(--ease); }
.notify:hover { transform: translateY(-2px); background-color: rgba(111, 243, 255, 0.22); }
.notify:hover::after { transform: translateX(3px); }
.tile h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.tile-body p { margin: 0; color: var(--mist); }
.tag {
  position: absolute;
  top: 26px;
  left: 30px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  z-index: 2;
  min-height: 80vh;
  min-height: 80dvh;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}
.contact-content { position: relative; z-index: 1; padding-top: 130px; }
/* 글자가 밤하늘 위에서도 또렷하게 읽히도록 왼쪽 위만 살짝 어둡게 */
.contact-scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 18% 22%, rgba(4, 10, 24, 0.55), transparent 70%); }
.contact h2 { margin-bottom: 12px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4); }
.contact p { color: var(--mist); font-size: 19px; margin: 0 0 30px; }
.mail {
  display: inline-block;
  font-size: clamp(22px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--white);
  background-image: linear-gradient(90deg, var(--glow), rgba(111, 243, 255, 0.3));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 6px;
  text-shadow: 0 0 24px rgba(111, 243, 255, 0.35);
  transition: color .3s, text-shadow .3s;
  overflow-wrap: anywhere;
}
.mail:hover { color: #dffcff; text-shadow: 0 0 28px rgba(111, 243, 255, 0.7); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--deep);
  color: #8fa3bf;
  padding: 40px 0 48px;
  font-size: 13px;
  border-top: 1px solid rgba(143, 163, 191, 0.12);
}
.copy { margin: 0; color: #c9d6e6; font-weight: 600; }
.foot-line { margin: 4px 0 0; }
.biz { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
.biz div { display: flex; gap: 10px; }
.biz dt { flex: none; min-width: 9.5em; }
.biz dd { margin: 0; color: #c9d6e6; }

/* ---------- 스크롤 진입 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .tiles .reveal:nth-child(2) { transition-delay: .12s; }
  .hero-content > * { animation: rise 1.1s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: .1s; }
  .hero-content > :nth-child(3) { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 모션 줄이기: 해변 장면을 고정 스크롤 구간 없이 낮 상태로 보여준다 */
.reduce .meet-track { height: auto; }
.reduce .meet-sticky { position: relative; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { height: 460px; }
  .tile-moon { margin-top: 0; height: 400px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { top: 10px; padding: 0 12px; }
  .nav-pill { height: 52px; padding: 0 8px 0 14px; }
  .nav-links { display: none; }
  .hero-content { padding-top: 112px; }
  .meet-intro { padding: 110px 0 90px; border-radius: 28px 28px 0 0; margin-top: -28px; }
  .meet-track { height: 220vh; }
  .callout { padding: 10px 12px 11px; border-radius: 14px; }
  .callout > span { font-size: 13px; }
  .making { padding: 100px 0 120px; }
  .tile { height: 420px; border-radius: 22px; }
  .tile-moon { height: 380px; }
  .tile-body { padding: 80px 26px 26px; }
  .tag { top: 20px; left: 22px; }
  .contact-content { padding-top: 100px; }
  .biz { grid-template-columns: 1fr; }
}
