/* =========================================================================
   SOSOLABS — Design System  (v2: cool / minimal / product-first)
   Neutral white + parchment ↔ near-black tiles. One blue accent.
   Unified tight sans (system SF / Pretendard / Inter) at every size.
   ========================================================================= */

:root {
  /* cool neutral palette ------------------------------------------------ */
  --bg:        #ffffff;   /* pure canvas */
  --bg-2:      #f5f5f7;   /* parchment — alternating light tile */
  --surface:   #ffffff;   /* card white */
  --line:      #d2d2d7;   /* hairline */
  --line-soft: #e8e8ed;

  --ink:       #1d1d1f;   /* near-black text */
  --ink-2:     #4b4b51;   /* secondary text */
  --ink-3:     #86868b;   /* muted / captions (Apple gray) */

  /* one accent — action blue ------------------------------------------- */
  --clay:      #0071e3;   /* primary blue (interactive) */
  --clay-deep: #0058b9;   /* darker blue — accent text on light, hover */
  --clay-soft: #d3e4fb;   /* light blue tint — chips */
  --clay-wash: #f0f6fe;   /* faint blue wash — bands */

  /* near-black tiles ---------------------------------------------------- */
  --dark:      #1d1d1f;
  --dark-2:    #151517;
  --on-dark:   #f5f5f7;
  --on-dark-2: #a1a1a6;
  --link-on-dark: #2997ff; /* brighter blue for dark surfaces */

  /* type — one family, many weights ------------------------------------ */
  --font-sans:  'Pretendard Variable', Pretendard, -apple-system, system-ui, 'Inter', sans-serif;
  --font-serif: 'Pretendard Variable', Pretendard, -apple-system, system-ui, 'Inter', sans-serif;
  --font-mono:  'Pretendard Variable', Pretendard, -apple-system, system-ui, 'Inter', sans-serif;

  /* metrics ------------------------------------------------------------- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all; /* 한국어 어절 단위 줄바꿈 — 글자 중간에서 끊기지 않도록 */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--clay-soft); color: var(--clay-deep); }

/* layout helpers --------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 160px); }
.section-sm { padding-block: clamp(56px, 7vw, 96px); }

/* typography ------------------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}
.kicker.no-rule::before { display: none; }

.display {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-size: clamp(38px, 5.4vw, 76px);
  color: var(--ink);
  text-wrap: balance;
}
.h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-size: clamp(32px, 4.8vw, 56px);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.2vw, 40px);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-size: clamp(19px, 2vw, 23px);
}
.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.serif { font-family: var(--font-serif); }
.muted { color: var(--ink-3); }
.clay { color: var(--clay-deep); }
/* accent emphasis: never italic — color + weight only (clean, product-first) */
.display em, .h1 em, .h2 em, .big-quote em, em.clay { font-style: normal; color: var(--clay-deep); }

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 15px;
  padding: 12px 22px;
  border-radius: 100px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--clay); color: #fff;
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.96); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-on-dark { background: var(--on-dark); color: var(--ink); }
.btn-on-dark:hover { transform: translateY(-1px); }

/* text link with animated underline ------------------------------------- */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 15px; color: var(--clay-deep);
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: var(--clay); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arw { transition: transform .35s var(--ease); color: var(--clay-deep); }
.tlink:hover .arw { transform: translateX(4px); }

/* media (replaces image placeholders) ----------------------------------- */
.media {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--bg-2);
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand .ko { font-size: 19px; white-space: nowrap; }
.brand .en {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-3); text-transform: uppercase; font-weight: 600;
}
.brand .dot {
  width: 27px; height: 24px; border-radius: 0;
  background: var(--ink);
  -webkit-mask: url("images/logo-mark-white.png") center / contain no-repeat;
          mask: url("images/logo-mark-white.png") center / contain no-repeat;
  align-self: center;
}
.site-footer .brand .dot { background: var(--on-dark); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  padding: 9px 14px; border-radius: 100px; position: relative;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--clay-deep); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 10px;
  }
  .nav-toggle span { width: 22px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 99;
    background: var(--bg);
    display: flex !important; flex-direction: column; justify-content: center; gap: 4px;
    padding: var(--gutter);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a {
    font-family: var(--font-serif); font-weight: 600; font-size: 32px; padding: 12px 0;
    border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center;
  }
  .mobile-menu a .en { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.15em; font-weight: 600; }

  /* 모바일에서 히어로 제목이 잘리지 않도록: overflow 해제 + 줄바꿈 허용 + 크기 축소 */
  .clip-line { overflow: visible; }
  .clip-line > span { white-space: normal; word-break: keep-all; }
  .hero-title { font-size: clamp(30px, 8.5vw, 44px); line-height: 1.22; }
}

/* =========================================================================
   REVEAL ANIMATIONS
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* line-by-line clip reveal for headlines */
.clip-line { display: block; overflow: hidden; }
.clip-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.clip-line.in > span { transform: none; }
.clip-line[data-d="1"] > span { transition-delay: .1s; }
.clip-line[data-d="2"] > span { transition-delay: .22s; }
.clip-line[data-d="3"] > span { transition-delay: .34s; }

/* =========================================================================
   IMAGE PLACEHOLDER (fallback, mostly replaced by real media)
   ========================================================================= */
.ph {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.ph-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3); background: var(--surface);
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line);
  text-transform: uppercase;
}
.ph.dark { background: var(--dark-2); border-color: #38383b; }
.ph.dark .ph-label { background: var(--dark); color: var(--on-dark-2); border-color: #38383b; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(64px, 8vw, 110px) 40px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-cta .h2 { color: var(--on-dark); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-2); font-weight: 600; margin-bottom: 18px;
}
.footer-col a, .footer-col p { color: var(--on-dark-2); font-size: 15px; line-height: 2; transition: color .25s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 32px; color: var(--on-dark-2); font-size: 13px;
}
.footer-bottom .brand .ko { color: var(--on-dark); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

/* utility ---------------------------------------------------------------- */
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; }
.grid { display: grid; gap: 24px; }
@media (max-width: 680px) { :root { --gutter: 22px; } body { font-size: 16px; } }
