/* =========================================================
   SilverGate — Design Tokens
   블랙 바탕 + 실버 + iOS 스타일 글래스.
   스크롤 연출: JS가 각 장면에 --p(0→1 진행도)를 넣고 CSS가 그 값으로 움직인다.
   ========================================================= */
:root {
  /* color */
  --bg: #050506;
  --text: #ececee;
  --text-2: #a5a8af;        /* 검정 위 8.6:1 */
  --text-3: #868a92;        /* 검정 위 5.6:1 */
  --dim: #3a3c41;           /* 아직 켜지지 않은 글자 */
  --silver-hi: #f5f6f7;
  --silver: #c9ccd1;
  --todo: #e9b45c;
  --error: #ff8f85;

  --silver-text: linear-gradient(180deg, #fbfbfc 0%, #d2d5d9 55%, #9a9ea5 100%);
  --silver-btn: linear-gradient(180deg, #f6f7f8 0%, #c6c9ce 100%);

  /* glass */
  --glass-fill: linear-gradient(160deg, rgb(255 255 255 / .10) 0%, rgb(255 255 255 / .035) 50%, rgb(255 255 255 / .06) 100%);
  --glass-fill-strong: linear-gradient(160deg, rgb(255 255 255 / .14) 0%, rgb(255 255 255 / .06) 100%);
  --glass-line: rgb(255 255 255 / .13);
  --glass-line-soft: rgb(255 255 255 / .08);
  --glass-blur: blur(28px) saturate(160%);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .2), inset 0 -1px 0 rgb(255 255 255 / .03), 0 30px 60px -30px rgb(0 0 0 / .9);

  /* type */
  /* 애플 기기: 시스템 서체(SF Pro, Apple SD Gothic Neo) / 그 외: Inter(영문) + Pretendard(한글) */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --fs-small: .875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem);    /* 28→44 */
  --fs-display: clamp(2rem, 1.35rem + 2.4vw, 3.5rem);   /* 32→56 */

  /* space — 8px 기준 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --section: clamp(96px, 12vw, 160px);

  /* shape */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 64px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); /* 배경은 html에: body에 칠하면 광원 레이어를 가림 */
  font-family: var(--font); font-optical-sizing: auto; font-size: var(--fs-body); line-height: 1.7; letter-spacing: -0.011em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
/* 글래스 뒤에 비치는 은빛 광원 (고정) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 88% 8%, rgb(205 210 217 / .2), transparent 62%),
    radial-gradient(38vw 38vw at 2% 52%, rgb(170 176 186 / .15), transparent 62%),
    radial-gradient(48vw 34vw at 70% 100%, rgb(190 195 203 / .13), transparent 62%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.2; color: #f4f5f6; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--silver-hi); outline-offset: 3px; border-radius: 4px; }
.icon, svg use { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 24px; height: 24px; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: var(--s1); z-index: 100; padding: var(--s1) var(--s2); background: var(--silver-hi); color: var(--bg); border-radius: var(--r-pill); }
.skip:focus { left: var(--s1); }
.todo { color: var(--todo); font-weight: 500; }

/* =========================================================
   Glass — 공통 재질
   ========================================================= */
.nav, .mock, .pills li, .tiles li, .facts, .form, .tabbar, .toast, .table-glass, .steps li, .industries li, .project, .client, .pane {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

/* =========================================================
   Buttons — 캡슐
   ========================================================= */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: var(--h); padding: 0 var(--s3); border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: filter .2s, background-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn--lg { --h: 52px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--silver { background: var(--silver-btn); color: #0b0c0e; box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgb(220 224 230 / .5); }
.btn--silver:hover { filter: brightness(1.06); }
.btn--glass {
  background: rgb(255 255 255 / .07); color: var(--text); border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16);
}
.btn--glass:hover { background: rgb(255 255 255 / .12); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: rgb(10 10 12 / .55); border-width: 0 0 1px; box-shadow: none;
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; color: var(--silver-hi); }
.brand__mark { width: 46px; height: 26px; flex: none; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: var(--s1) 14px; font-size: var(--fs-small); color: var(--text-2); text-decoration: none; border-radius: var(--r-pill); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgb(255 255 255 / .08); }
.nav__actions { display: flex; align-items: center; gap: var(--s1); }

/* =========================================================
   1. Intro — 첫 화면. 스크롤하면 작아지며 사라진다 (--p)
   ========================================================= */
.intro {
  --p: 0;
  position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; place-items: center;
  padding: var(--s8) 0 var(--s12); text-align: center; overflow: hidden;
}
.intro::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(900px, 120vw); aspect-ratio: 1.6;
  transform: translate(-50%, -50%) scale(calc(1 + var(--p) * .6));
  background: radial-gradient(closest-side, rgb(215 219 225 / .22), rgb(215 219 225 / .06) 55%, transparent);
  opacity: calc(1 - var(--p)); pointer-events: none;
}
.intro__inner {
  position: relative; display: grid; justify-items: center;
  transform: translateY(calc(var(--p) * -80px)) scale(calc(1 - var(--p) * .18));
  opacity: calc(1 - var(--p) * 1.3);

}
.intro__mark { width: clamp(240px, 36vw, 500px); height: auto; filter: drop-shadow(0 0 28px rgb(255 255 255 / .18)); }
.intro__title {
  margin-top: clamp(28px, 4vw, 48px); font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em;
  background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;
}
.intro__next {
  position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px; padding: var(--s1) var(--s2); border-radius: var(--r-pill);
  font-size: 12px; color: var(--text-3); text-decoration: none; opacity: calc(1 - var(--p) * 3); transition: color .2s;
}
.intro__next:hover { color: var(--text); }
.intro__next .icon { width: 20px; height: 20px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* 첫 로드 한 번: 다리가 세워지는 장면 */
.intro__tower { opacity: 0; transform-origin: center bottom; transform-box: fill-box; animation: rise .9s var(--ease) .1s forwards; }
.intro__deck { opacity: 0; animation: fade .8s var(--ease) forwards; }
.intro__cable { opacity: 0; animation: fade 1s var(--ease) .6s forwards; }
.intro__title { opacity: 0; animation: fade .9s var(--ease) 1.1s forwards; }
@keyframes rise { from { opacity: 0; transform: scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* =========================================================
   Pinned scenes — 섹션 높이만큼 스크롤하는 동안 화면이 고정된다
   ========================================================= */
.pin { --p: 0; position: relative; }
.pin--product { height: 320vh; }
.pin--diff { height: 300vh; }
.pin--words { height: 220vh; }
.pin__stage { position: sticky; top: 0; height: 100svh; padding-top: var(--nav-h); display: grid; place-items: center; overflow: hidden; }

/* 2. Product: 목업이 누워 있다가 세워지고(--p1), 단계가 차례로 승인된다(JS .is-done) */
.product { --p1: 0; display: grid; justify-items: center; text-align: center; }
.product__name { display: inline-flex; align-items: center; gap: var(--s1); padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; color: var(--silver); background: rgb(255 255 255 / .06); border: 1px solid var(--glass-line); }
.product__name::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--silver-hi); box-shadow: 0 0 10px rgb(255 255 255 / .7); }
.product__title { margin-top: var(--s3); font-size: var(--fs-display); line-height: 1.15; background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

.mock {
  margin: clamp(32px, 5vh, 56px) 0 0; position: relative; width: min(880px, 100%); border-radius: var(--r-lg); overflow: hidden; text-align: left;
  background: var(--glass-fill-strong);
  transform: perspective(1600px) rotateX(calc((1 - var(--p1)) * 38deg)) scale(calc(.78 + var(--p1) * .22));
  transform-origin: center top; opacity: calc(.35 + var(--p1) * .65);

}
.mock__bar { display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s2); border-bottom: 1px solid var(--glass-line-soft); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .18); }
.mock__url { flex: 1; max-width: 180px; margin-inline: 8px 0; height: 26px; border-radius: var(--r-pill); background: rgb(255 255 255 / .07); font-size: 12px; color: var(--text-2); display: grid; place-items: center; }
.mock__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.mock__side { border-right: 1px solid var(--glass-line-soft); padding: var(--s3) var(--s2); display: grid; align-content: start; gap: 12px; }
.mock__side span { height: 10px; border-radius: 5px; background: rgb(255 255 255 / .1); }
.mock__side span.is-on { background: rgb(255 255 255 / .55); width: 80%; }
.mock__side span:nth-child(3) { width: 70%; } .mock__side span:nth-child(5) { width: 60%; }
.mock__main { padding: var(--s3); display: grid; gap: 12px; align-content: start; }
.mock__head { display: flex; align-items: center; justify-content: space-between; }
.mock__head .w40 { width: 40%; height: 14px; border-radius: 7px; background: rgb(255 255 255 / .7); }
.mock__chip { font-size: 11px; font-weight: 600; color: var(--silver); background: rgb(255 255 255 / .06); border: 1px solid var(--glass-line); padding: 2px 10px; border-radius: var(--r-pill); transition: background-color .3s, color .3s; }
.mock__chip.is-final { background: var(--silver-btn); color: #0b0c0e; border-color: transparent; }
.mock__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.mock__steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 48px; align-items: center; gap: 12px; padding: 10px 12px; background: rgb(255 255 255 / .04); border: 1px solid var(--glass-line-soft); border-radius: var(--r-sm); transition: border-color .3s, background-color .3s; }
.mock__steps b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .2); display: grid; place-items: center; color: transparent; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.mock__steps b svg, .mock__sign span svg { width: 12px; height: 12px; stroke-width: 3; }
.mock__steps li.is-now { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .08); }
.mock__steps li.is-now b { border-color: var(--silver-hi); }
.mock__steps li.is-done b { background: var(--silver-btn); border-color: transparent; color: #0b0c0e; transform: scale(1.08); }
.mock__steps span { height: 9px; border-radius: 5px; background: rgb(255 255 255 / .22); }
.mock__steps em { height: 9px; border-radius: 5px; background: rgb(255 255 255 / .08); }
.w45 { width: 45%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mock__sign { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); margin-top: 4px; }
.mock__sign div { background: rgb(255 255 255 / .04); border: 1px solid var(--glass-line-soft); border-radius: var(--r-sm); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.mock__sign small { font-size: 11px; color: var(--text-2); font-weight: 600; }
.mock__sign span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / .25); display: grid; place-items: center; color: transparent; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.mock__sign span.is-done { border: 0; background: var(--silver-btn); color: #0b0c0e; transform: scale(1.1); }
.mock__note { position: absolute; right: 12px; top: 9px; font-size: 12px; font-weight: 600; color: var(--todo); background: rgb(233 180 92 / .1); border: 1px solid rgb(233 180 92 / .35); padding: 3px 10px; border-radius: var(--r-pill); }


/* 3. Diff: 템플릿 버전 비교 — 변경점이 차례로 켜진다 (JS .is-on) */
.diffx { --add: #7ee2b8; --del: #ff8f85; display: grid; justify-items: center; text-align: center; }
.diffx__title { font-size: var(--fs-h2); }
.diffx__panes { margin-top: clamp(28px, 5vh, 48px); width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); text-align: left; }
.pane { border-radius: var(--r-md); overflow: hidden; }
.pane__head { display: flex; align-items: center; gap: 10px; padding: 14px var(--s3); border-bottom: 1px solid var(--glass-line-soft); font-size: var(--fs-small); }
.pane__doc { color: var(--text-2); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane__ver { font-weight: 600; color: var(--silver-hi); }
.pane__status { padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--silver-btn); color: #0b0c0e; border: 1px solid transparent; }
.pane__status.is-draft { background: rgb(255 255 255 / .06); color: var(--silver); border: 1px solid var(--glass-line); }
.rows { list-style: none; margin: 0; padding: 6px 0; }
.row { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 0 var(--s3); font-size: .9375rem; transition: background-color .4s var(--ease); }
.row__no { color: var(--text-3); font-size: var(--fs-small); }
.row__val { color: var(--silver-hi); font-variant-numeric: tabular-nums; display: inline-flex; gap: 10px; align-items: baseline; }
.row__was { display: none; color: var(--text-3); }
.row::after { position: absolute; left: 6px; font-weight: 700; opacity: 0; transition: opacity .3s; }
/* 변경 전(왼쪽) */
.row--old.is-on { background: rgb(255 143 133 / .08); }
.row--old.is-on .row__val { color: var(--del); text-decoration: line-through; }
.row--old::after { content: "~"; color: var(--del); }
/* 변경 후(오른쪽) */
.row--new.is-on { background: rgb(126 226 184 / .08); }
.row--new.is-on .row__val { color: var(--add); }
.row--new::after { content: "~"; color: var(--add); }
/* 추가 / 삭제 */
.row--add { opacity: .25; }
.row--add.is-on { opacity: 1; background: rgb(126 226 184 / .08); }
.row--add::after { content: "+"; color: var(--add); }
.row--del.is-on { background: rgb(255 143 133 / .08); }
.row--del.is-on .row__step, .row--del.is-on .row__val { color: var(--del); text-decoration: line-through; }
.row--del::after { content: "−"; color: var(--del); }
.row.is-on::after { opacity: 1; }
/* 다른 쪽에 없는 줄은 점선 자리로 */
.row--gap { margin: 4px var(--s2); min-height: 36px; border-radius: 8px; transition: border-color .4s, background-color .4s; border: 1px dashed transparent; }
.row--gap.is-on { border-color: rgb(255 255 255 / .16); }
.row__ghost { display: none; }

/* Compare — 연출: 패널 등장(--e), 스캔 빔(--scan, --scan-o), 변경 줄 발광, 요약 칩 */
.diffx { --e: 1; --scan: 0; --scan-o: 0; }
.diffx .product__name { margin-bottom: var(--s3); }
.diffx__panes { position: relative; perspective: 1400px; }
.pane { transition: none; }
.pane--old { transform: translateX(calc((1 - var(--e)) * -80px)) rotateY(calc((1 - var(--e)) * 14deg)); opacity: calc(.2 + var(--e) * .8); }
.pane--new { transform: translateX(calc((1 - var(--e)) * 80px)) rotateY(calc((1 - var(--e)) * -14deg)); opacity: calc(.2 + var(--e) * .8); }
.diffx__panes::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: calc(var(--scan) * 100%); height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .95) 20%, #fff 50%, rgb(255 255 255 / .95) 80%, transparent);
  box-shadow: 0 0 18px 3px rgb(255 255 255 / .45), 0 0 60px 10px rgb(220 225 232 / .18);
  opacity: var(--scan-o); transition: opacity .3s;
}
.row.is-on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; }
.row--new.is-on::before, .row--add.is-on::before { background: var(--add); box-shadow: 0 0 14px var(--add); }
.row--old.is-on::before, .row--del.is-on::before { background: var(--del); box-shadow: 0 0 14px var(--del); }
.row--new.is-on .row__val, .row--add.is-on .row__val { animation: flare .7s var(--ease); }
@keyframes flare { 0% { transform: scale(1.18); text-shadow: 0 0 20px currentColor; } 100% { transform: none; text-shadow: none; } }
.row__val { transform-origin: right center; }
.pane__stats { display: inline-flex; gap: 6px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pane__stats b { padding: 2px 7px; border-radius: var(--r-pill); background: rgb(255 255 255 / .05); border: 1px solid var(--glass-line-soft); font-weight: 600; transition: color .3s, border-color .3s; color: var(--text-3); }
.pane__stats b.is-on.s-mod { color: var(--silver-hi); border-color: rgb(255 255 255 / .3); }
.pane__stats b.is-on.s-add { color: var(--add); border-color: rgb(126 226 184 / .4); }
.pane__stats b.is-on.s-del { color: var(--del); border-color: rgb(255 143 133 / .4); }

.diffx__log { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.diffx__log li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-small); color: var(--text-2); background: rgb(255 255 255 / .05); border: 1px solid var(--glass-line-soft); opacity: .3; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.diffx__log li.is-on { opacity: 1; transform: none; color: var(--text); }
.diffx__log b { color: var(--silver); }
.diffx__log li.is-add b { color: var(--add); }
.diffx__log li.is-del b { color: var(--del); }
.diffx__sample { margin-top: var(--s2); font-size: 12px; color: var(--text-3); }

/* 4. Words: 문장이 단어 단위로 채워진다 (JS .w.is-on) */
.words { display: grid; justify-items: center; text-align: center; }
.words__text { max-width: 20em; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.25; }
.words__text .w { color: var(--dim); transition: color .35s var(--ease); }
.words__text .w.is-on { color: var(--silver-hi); }
.pills { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pills li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 500; color: var(--silver-hi); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pills li .icon { width: 20px; height: 20px; color: var(--silver); }
.pills.is-on li { opacity: 1; transform: none; }
.pills.is-on li:nth-child(2) { transition-delay: .08s; } .pills.is-on li:nth-child(3) { transition-delay: .16s; } .pills.is-on li:nth-child(4) { transition-delay: .24s; }

/* =========================================================
   Static sections
   ========================================================= */
.section { padding-block: var(--section); }
.section__title { font-size: var(--fs-h2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10); align-items: start; }

.tiles { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.tiles li { aspect-ratio: 16 / 10; border-radius: var(--r-md); display: grid; place-items: center; font-size: var(--fs-small); }

.facts { margin: 0; padding: var(--s1) var(--s4); border-radius: var(--r-md); }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); padding: 18px 0; }
.facts div + div { border-top: 1px solid var(--glass-line-soft); }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; font-weight: 500; }

.contact__list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 12px; }
.contact__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: center; }
.contact__list .icon { width: 20px; height: 20px; color: var(--text-3); }
.contact__list a { text-decoration: none; font-weight: 500; color: var(--silver-hi); }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-lg); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field { display: grid; gap: var(--s1); }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--silver); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; font-size: 16px; color: var(--text);
  border: 1px solid var(--glass-line); border-radius: var(--r-sm); background: rgb(0 0 0 / .25);
  transition: border-color .2s, box-shadow .2s, background-color .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: rgb(255 255 255 / .5); background-color: rgb(0 0 0 / .35); box-shadow: 0 0 0 4px rgb(255 255 255 / .08); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--silver); flex: none; }
.agree.has-error { color: var(--error); }
.form__error { font-size: var(--fs-small); color: var(--error); font-weight: 500; }

/* Footer */
.footer { border-top: 1px solid var(--glass-line-soft); padding: var(--s6) 0; color: var(--text-3); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; }
.footer__info { font-size: .8125rem; line-height: 1.9; text-align: right; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--s3) + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  padding: 12px 22px; border-radius: var(--r-pill); color: #fff; background: rgb(30 31 35 / .6);
  font-weight: 500; font-size: .9375rem; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.tabbar { display: none; }

/* Reveal (정적 섹션용, 절제된 페이드) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .mock, .pills li, .tiles li, .facts, .form, .tabbar, .toast, .table-glass, .steps li { background: #17181b; }
}

/* =========================================================
   Language toggle (EN | KO)
   ========================================================= */
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgb(255 255 255 / .06); border: 1px solid var(--glass-line); }
.lang button {
  min-width: 40px; height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--silver-btn); color: #0b0c0e; }

/* =========================================================
   Tables — 화면에 들어오면 행이 차례로, 체크가 톡 나타난다
   ========================================================= */
.table-glass { margin-top: var(--s6); border-radius: var(--r-md); overflow-x: auto; }
.table-glass table { width: 100%; border-collapse: collapse; }
.table-glass th, .table-glass td { padding: 18px var(--s3); text-align: left; vertical-align: middle; }
.table-glass thead th { font-size: var(--fs-small); font-weight: 600; color: var(--text-3); border-bottom: 1px solid var(--glass-line); }
.table-glass tbody tr + tr > * { border-top: 1px solid var(--glass-line-soft); }
.table-glass tbody th { font-weight: 500; color: var(--text); }

.matrix th:not(:first-child), .matrix td { width: 120px; text-align: center; }
.matrix thead th:not(:first-child) { color: var(--silver-hi); font-size: 1rem; font-weight: 600; letter-spacing: .02em; }
.ok { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--silver-btn); box-shadow: 0 0 14px rgb(255 255 255 / .25); vertical-align: middle; }
.ok::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #0b0c0e; border-bottom: 2px solid #0b0c0e; transform: translateY(-1px) rotate(-45deg); }
.matrix td:empty::after { content: ""; display: inline-block; width: 12px; height: 2px; border-radius: 1px; background: rgb(255 255 255 / .14); vertical-align: middle; }

.regs tbody th { width: 22%; font-weight: 600; color: var(--silver-hi); white-space: nowrap; }
.regs td:nth-child(2) { width: 30%; color: var(--text-2); }

/* 행 단위 등장 */
.table-glass tbody tr { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.table-glass.is-in tbody tr { opacity: 1; transform: none; }
.table-glass tbody tr:nth-child(1) { --d: 80ms; } .table-glass tbody tr:nth-child(2) { --d: 140ms; }
.table-glass tbody tr:nth-child(3) { --d: 200ms; } .table-glass tbody tr:nth-child(4) { --d: 260ms; }
.table-glass tbody tr:nth-child(5) { --d: 320ms; } .table-glass tbody tr:nth-child(6) { --d: 380ms; }
.table-glass tbody tr:nth-child(7) { --d: 440ms; } .table-glass tbody tr:nth-child(8) { --d: 500ms; }
.table-glass tbody tr:nth-child(9) { --d: 560ms; } .table-glass tbody tr:nth-child(10) { --d: 620ms; }
.ok { transform: scale(.3); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; transition-delay: calc(var(--d, 0ms) + 180ms); }
.table-glass.is-in .ok { transform: none; opacity: 1; }

/* =========================================================
   Delivery steps — 실제 순서라 번호를 쓴다
   ========================================================= */
.steps { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.steps li { padding: var(--s4); border-radius: var(--r-md); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.steps.is-in li { opacity: 1; transform: none; }
.steps li:nth-child(2) { transition-delay: .1s; } .steps li:nth-child(3) { transition-delay: .2s; } .steps li:nth-child(4) { transition-delay: .3s; }
.steps.reveal { opacity: 1; transform: none; } /* 카드 단위로 움직이므로 목록 자체는 고정 */
.steps__no { font-size: var(--fs-small); font-weight: 500; color: var(--text-3); letter-spacing: .04em; }
.steps h3 { margin-top: var(--s5); font-size: 1.25rem; color: var(--silver-hi); }
.steps p { margin-top: var(--s1); color: var(--text-2); font-size: .9375rem; }

/* =========================================================
   Industries + Stack
   ========================================================= */
.section__note { margin-top: var(--s2); color: var(--text-3); }
.industries { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.industries li { padding: var(--s4); border-radius: var(--r-md); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.industries.is-in li { opacity: 1; transform: none; }
.industries li:nth-child(2) { transition-delay: .1s; } .industries li:nth-child(3) { transition-delay: .2s; } .industries li:nth-child(4) { transition-delay: .3s; }
.industries.reveal { opacity: 1; transform: none; }
.industries .icon { width: 28px; height: 28px; color: var(--silver); }
.industries h3 { margin-top: var(--s5); font-size: 1.25rem; color: var(--silver-hi); }
.industries p { margin-top: var(--s1); color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 500; color: var(--silver-hi); background: rgb(255 255 255 / .06); border: 1px solid var(--glass-line); }

/* =========================================================
   References — 프로젝트 카드
   ========================================================= */
.projects { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.projects.reveal { opacity: 1; transform: none; }
.project { display: flex; flex-direction: column; padding: var(--s5); border-radius: var(--r-lg); opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.projects.is-in .project { opacity: 1; transform: none; }
.projects.is-in .project:nth-child(2) { transition-delay: .12s; }
.project__status { display: inline-flex; align-items: center; gap: var(--s1); align-self: flex-start; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; color: var(--silver); background: rgb(255 255 255 / .06); border: 1px solid var(--glass-line); }
.live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--silver-hi); }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.project__client { margin-top: var(--s5); color: var(--text-2); font-size: .9375rem; }
.project__title { margin-top: 6px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.3; color: var(--silver-hi); }
.project__meta { margin: var(--s4) 0 0; display: grid; gap: 10px; }
.project__meta div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s2); padding-top: 10px; border-top: 1px solid var(--glass-line-soft); font-size: .9375rem; }
.project__meta dt { color: var(--text-3); }
.project__meta dd { margin: 0; }
.project__tags { margin-top: auto; padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s1); }

/* Clients — 은색 단색 워드마크 (공식 로고 이미지를 넣어도 같은 톤으로) */
.clients__title { margin-top: var(--s10); font-size: 1.25rem; color: var(--text-2); font-weight: 500; }
.clients__title.reveal, .clients.reveal { transform: none; }
.clients { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.client { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 132px; padding: var(--s3); border-radius: var(--r-md); text-align: center; transition: background-color .3s, border-color .3s; }
.client:hover { border-color: rgb(255 255 255 / .28); }
.client__name { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); font-weight: 600; letter-spacing: -0.02em; background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.client__logo { max-width: 70%; max-height: 40px; object-fit: contain; filter: grayscale(1) brightness(0) invert(.88); opacity: .9; }
.client__field { font-size: 12px; color: var(--text-3); }
.partners { margin-top: var(--s3); display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: var(--fs-small); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .tiles, .steps, .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav__inner { gap: var(--s2); }
  .nav__links a { padding: var(--s1) 10px; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .intro { min-height: calc(100svh - var(--nav-h) - var(--tabbar-h)); }
  .intro__next { bottom: var(--s2); }
  .pin__stage { padding-bottom: calc(var(--tabbar-h) + var(--s2)); }
  .mock__body { grid-template-columns: minmax(0, 1fr); }
  .mock__side, .mock__url { display: none; }
  .mock__main { padding: var(--s2); gap: var(--s1); }
  .mock__steps li { padding: 8px 10px; }
  .pane--old { display: none; }
  .pane__doc { display: none; }
  .pane__head { padding: 12px var(--s2); }
  .pane__ver { margin-right: auto; }
  .diffx__panes { grid-template-columns: minmax(0, 1fr); }
  .row { padding: 0 var(--s2) 0 var(--s3); font-size: .875rem; }
  .row--new.is-on .row__was { display: inline; text-decoration: line-through; }
  .row--gap { display: none; }
  .row--gap.is-on { display: grid; grid-template-columns: minmax(0, 1fr); margin: 4px 12px; padding: 0 12px; border-color: rgb(255 143 133 / .4); }
  .row--gap.is-on .row__ghost { display: block; color: var(--del); text-decoration: line-through; font-size: .875rem; }
  .diffx__log { display: none; }
  .form { padding: var(--s3); border-radius: var(--r-md); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .facts { padding: 0 var(--s3); }
  .table-glass th, .table-glass td { padding: 14px 12px; font-size: .875rem; }
  .matrix th:not(:first-child), .matrix td { width: 52px; }
  .regs thead { display: none; }
  .regs, .regs tbody, .regs tr, .regs th, .regs td { display: block; width: auto !important; }
  .regs tr { padding: var(--s2) 4px; }
  .regs tbody tr + tr > * { border-top: 0; }
  .regs tbody tr + tr { border-top: 1px solid var(--glass-line-soft); }
  .regs th, .regs td { padding: 2px 12px; }
  .regs th { font-size: 1rem; }
  .steps, .industries, .projects { grid-template-columns: minmax(0, 1fr); }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .client { min-height: 104px; padding: var(--s2); }
  .project { padding: var(--s3); }
  .industries li { padding: var(--s3); }
  .industries h3 { margin-top: var(--s2); }
  .steps li { padding: var(--s3); }
  .steps h3 { margin-top: var(--s2); }
  .facts div { grid-template-columns: 80px minmax(0, 1fr); gap: var(--s2); padding: 14px 0; }
  .footer { padding-bottom: calc(var(--s6) + var(--tabbar-h) + var(--s3) + env(safe-area-inset-bottom)); }
  .footer__info { text-align: left; }
  .toast { bottom: calc(var(--tabbar-h) + var(--s4) + env(safe-area-inset-bottom)); }

  /* iOS 스타일 플로팅 글래스 탭바 */
  .tabbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: var(--tabbar-h); border-radius: var(--r-pill); padding: 6px;
    background: rgb(28 29 33 / .55);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11px; font-weight: 600; color: var(--text-3); text-decoration: none; border-radius: var(--r-pill);
    -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s;
  }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-active { color: #fff; background: rgb(255 255 255 / .12); }
}

@media (max-width: 420px) {
  .nav__cta { display: none; }
}

@media (display-mode: standalone) {
  .install-btn { display: none !important; }
  body { overscroll-behavior-y: none; }
}

/* 모션 줄이기: 고정·스크롤 연출을 끄고 완성 상태로 보여준다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .intro__tower, .intro__deck, .intro__cable, .intro__title { opacity: 1; transform: none; }
  .intro__inner { transform: none; opacity: 1; }
  .pin { height: auto; }
  .pin__stage { position: static; height: auto; padding-block: var(--section); }
  .mock, .pane--old, .pane--new { transform: none; opacity: 1; }
  .diffx__panes::after { display: none; }
  .words__text .w { color: var(--silver-hi); }
}
