/* ==========================================================================
   애덤(Adom) 랜딩 — adom.kr

   방향: 모던함. 애덤이 소구하는 것이 '현대의 사랑'이므로 시각 언어도 모던해야
   한다. 장식적인 서체를 쓰지 않고, 타입 스케일·위계·여백의 완성도로 승부한다.
   색은 design.md §2 v4 표가 단일 원천이다 — 종이와 잉크가 기본이고, 데님은
   브랜드 잉크·면, 온기는 좋아요 한 곳뿐이다. 그라디언트·램프는 v4에 없는 문법이다.
   ========================================================================== */

/* ── 토큰 ─────────────────────────────────────────────────────────────── */

:root {
  /* ── design.md §2 v4 색 표가 단일 원천이다(landing.md §시각디렉션: "랜딩이
     자기 색 체계를 따로 갖지 않는다"). 아래 값을 이 파일에서 임의로 바꾸지 말고
     design.md를 고친 뒤 가져온다. 램프·그라디언트·상태색 장식 없음. ── */
  --v4-paper:      #FCFCFB;   /* 바탕 */
  --v4-paper2:     #F2F2F2;   /* 카드 슬롯·시트·입력 필드 */
  --v4-ink:        #141414;   /* 제목·본문·주 버튼 면 */
  --v4-ink2:       #666666;   /* 보조 문장·캡션·메타·라벨 */
  --v4-ink3:       #9A9A9A;   /* 비활성·플레이스홀더 전용 — 읽어야 하는 것에 쓰지 않는다 */
  --v4-hair:       #E5E5E5;   /* 유일한 선 */
  --v4-denim:      #557190;   /* 누를 수 있는 것의 잉크 */
  --v4-warm:       #F0604A;   /* 좋아요 마크 — 한 지면에 한 곳 */
  --v4-alert:      #A81B3A;   /* 파괴적 액션 텍스트 전용 */
  /* 캠페인 면 전용. 앱 안에서는 금지지만 랜딩은 브랜드 표면이라 예외다
     (landing.md: "데님은 랜딩에서 면으로 쓸 수 있다. 면으로 쓸 때는 denim-wash"). */
  --v4-denim-wash: #7A93BC;

  /* 다크 면(미션·히어로·사전신청) 위에서 쓰는 짝. design.md §2 다크 열. */
  --v4-paper-dk:   #101010;
  --v4-ink-dk:     #F4F4F3;
  --v4-ink2-dk:    #A0A0A0;
  --v4-denim-dk:   #8FA8C4;

  /* ── 랜딩 토큰 — 이름은 유지하고 값만 v4를 가리킨다 ── */
  --ink:      var(--v4-ink);
  --ink-700:  var(--v4-ink);    /* 본문. v4는 제목과 본문이 같은 잉크다 */
  --ink-500:  var(--v4-ink2);   /* 캡션·주석 */
  --ink-400:  var(--v4-ink2);   /* v4: 읽어야 하는 것은 전부 ink2 이상 */
  --ink-300:  var(--v4-ink3);   /* 선·비활성 도형 전용. 텍스트에 쓰지 말 것 */

  --paper:    var(--v4-paper);
  --paper-2:  var(--v4-paper2);
  --paper-3:  var(--v4-paper2);
  --night:    var(--v4-paper-dk);

  --rule:     var(--v4-hair);
  --rule-2:   var(--v4-hair);

  /* 구 키컬러(울트라마린 #2b3fe8)·코랄(#ff7a59)은 v4에서 폐기됐다.
     accent = 브랜드 잉크(데님), accent-face = 브랜드 면(데님 워시),
     accent-tint = 틴트가 아니라 종이(paper2) — v4에 틴트 면이 없다. */
  --accent:      var(--v4-denim);
  --accent-face: var(--v4-denim-wash);
  --accent-tint: var(--v4-paper2);

  --gutter: clamp(20px, 4.4vw, 64px);
  --shell:  1280px;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 법무 페이지(legal.css)가 쓰는 구 토큰 이름 — 하위 호환 별칭 */
  --ink-900: var(--ink);
  --ink-600: var(--ink-700);
  --surface: var(--paper);
  --canvas:  var(--paper-2);
  --hairline: var(--rule);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.012em;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 한글은 어절 단위로 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 한글 글리프는 Pretendard 가 먼저 잡는다 */
:lang(ko), .kr { font-family: Pretendard, "Schibsted Grotesk", system-ui, sans-serif; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

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

::selection { background: var(--ink); color: var(--v4-paper); }

/* ── 타입 스케일 ──────────────────────────────────────────────────────── */

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.t-display {
  font-size: clamp(3.2rem, 1rem + 8.2vw, 7.75rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.042em;
}

.t-h2 {
  font-size: clamp(2.125rem, 1.3rem + 3.3vw, 4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.038em;
}

.t-h3 {
  font-size: clamp(1.5rem, 1.14rem + 1.7vw, 2.625rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.034em;
}

.t-lede {
  font-size: clamp(1.125rem, 1rem + 0.62vw, 1.5rem);
  font-weight: 400;
  line-height: 1.66;
  letter-spacing: -0.022em;
  color: var(--ink-700);
}

.t-note {
  font-size: 0.9375rem;
  line-height: 1.72;
  letter-spacing: -0.008em;
  color: var(--ink-500);
}

.t-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--accent);
}

.measure     { max-width: 22ch; }
.measure-mid { max-width: 34ch; }
.measure-body{ max-width: 46ch; }

/* 키컬러는 문장 안 한 어구에만. 점화된 어구는 중간에서 끊지 않는다. */
.hl { color: var(--accent); font-style: normal; white-space: nowrap; }
em { font-style: normal; }

/* 브라우저 기본값이 <b>·<strong>을 700으로 그린다 — §3 "Regular·Medium 둘뿐,
   700 이상 금지"는 CSS에 안 적힌 굵기에도 적용된다. 강조는 Medium까지만. */
b, strong { font-weight: 500; }

/* ── 레이아웃 ─────────────────────────────────────────────────────────── */

.voices > *, .mission-body > *, .gates > *, .shot > *, .mine > *,
.era > *, .footer-grid > * { min-width: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(104px, 13vw, 208px); }
.band--paper2 { background: var(--paper-2); }

/* 섹션 머리 — 아이브로우 + 헤드라인 + 리드 */
.band-head { margin-bottom: clamp(56px, 6.5vw, 112px); }
.band-head .t-eyebrow { margin-bottom: clamp(24px, 2.4vw, 36px); }
.band-head .t-lede { margin-top: clamp(28px, 2.8vw, 40px); }

/* ── 사진 자리 ────────────────────────────────────────────────────────
   실사진이 들어올 영역. 교체할 때 .plate 를 <img> 로 바꾸면 크기·비율이
   그대로 유지된다. 지금 상태에서도 화면이 완성되어 보이도록 결을 준다.
   ──────────────────────────────────────────────────────────────────── */

.plate {
  position: relative;
  overflow: hidden;
  /* 사진이 올 자리 = 카드 슬롯. 앱과 같은 문법으로 **평면 paper2**다
     (design.md §7). 그라디언트로 사진을 흉내 내면 v4에 없는 램프가 지면에 남는다. */
  background: var(--v4-paper2);
  /* 그림자가 아니라 **헤어라인**이다(§6 "유일한 선"). 레이아웃을 밀지 않게 outline으로. */
  outline: 1px solid var(--v4-hair);
  outline-offset: -1px;
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  /* v4에는 장식 텍스처가 없다 — 자리는 평면 paper2로만 표시한다. */
  background-image: none;
}

.plate::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v4-ink3);
}

/* 글이 위에 얹히는 사진 자리 — 다크 종이(평면).
   스크림이 걸리는 자리는 전부 이쪽이어야 한다. 밝은 슬롯 위에 스크림을 얹으면
   사진이 들어오기 전까지 회색 면에 검은 띠만 남아 구도가 읽히지 않는다. */
.plate--dark,
.phero .plate,
.mcard .plate { background: var(--v4-paper-dk); outline: none; }
.plate--dark::before { opacity: 0.06; }
.plate--dark::after  { color: var(--v4-ink2-dk); }

/* ── 버튼 ─────────────────────────────────────────────────────────────── */

/* 앱의 `PrimaryButton`과 같은 문법이다(design.md §12): ink 면 · paper 글자 ·
   sub Medium · 높이 52 · r12. 캡슐(999)·그림자·호버 리프트는 v4가 전부 폐기했고
   (§5 "캡슐 없음" / §6 "그림자는 시트에만"), 눌림은 **면의 농도**로만 말한다
   (pressed = ink 88%). 리프트는 요소를 떠 있게 만들어 "면이 전부"를 깬다. */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--v4-paper);
  --btn-bg-hover: color-mix(in srgb, var(--ink) 88%, var(--paper));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.016em;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: background-color 0.24s var(--ease-out), color 0.24s var(--ease-out);
}

.btn:hover  { background: var(--btn-bg-hover); }
.btn:active { background: var(--btn-bg-hover); }

/* ghost = paper 면 + ink 글자. 호버는 반대편 종이로 한 단계 가라앉는다. */
.btn--ghost {
  --btn-bg: var(--v4-paper);
  --btn-fg: var(--ink);
  --btn-bg-hover: var(--v4-paper2);
}

.btn--sm { min-height: 44px; padding: 0 22px; font-size: 0.9375rem; }

/* ── 내비 ─────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  color: var(--v4-ink-dk);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease),
              padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  color: var(--ink);
  /* 앱의 PaperBar와 같은 문법 — 불투명 종이 + 하단 헤어라인. §6 "커스텀 유리 없음". */
  background: var(--v4-paper);
  border-bottom-color: var(--v4-hair);
  padding-block: 15px;
}

/* 더미 워드마크 — 로고 확정 후 교체 */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.375rem;
  font-weight: 600; /* §3의 명시적 예외 — 워드마크만 700 미만 규칙 밖이다 */
  letter-spacing: -0.045em;
}

.wordmark i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
  transform: translateY(1px);
}

.nav.is-solid .wordmark i { background: var(--accent); opacity: 1; }

/* 법무 페이지의 구 마크업(Adom <small>Beta</small>) 대응 */
.wordmark small {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── 00 · 히어로 ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.hero-media {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -2;
  will-change: transform;
}

.hero-media .plate { width: 100%; height: 100%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 스크림은 장식 그라디언트가 아니라 **가독 장치**다 — design.md §6이
     "가독은 스크림이 담당한다(투명 → black 62%, 화면 하단 45%)"로 규정한 유일한
     그라디언트다. 이전 판의 4스톱(밝아졌다 다시 어두워지는 램프)은 v4가 금지한
     램프라 한 방향 스크림으로 되돌린다. */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 45%);
}

.hero-copy { color: var(--v4-ink-dk); }

.hero h1 { margin-bottom: clamp(24px, 2.6vw, 40px); }

.hero-sub {
  font-size: clamp(1rem, 0.93rem + 0.5vw, 1.3125rem);
  font-weight: 450;
  line-height: 1.56;
  letter-spacing: -0.024em;
  color: var(--v4-ink-dk);
  max-width: 30ch;
  margin-bottom: clamp(30px, 3.2vw, 46px);
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 스크롤 인디케이터 — 선이 위에서 아래로 반복해 흐른다 */
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--v4-ink2-dk);
  padding-bottom: 8px;
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
  display: block;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 16px;
  background: var(--v4-paper);
  animation: cue 2.1s var(--ease) infinite;
}

@keyframes cue {
  0%   { transform: translateY(-18px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ── 01 · 두 개의 목소리 ──────────────────────────────────────────────── */

.voices {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 48px);
}

.voice { display: flex; flex-direction: column; }
.voice:nth-child(1) { grid-column: 1 / 7; }
.voice:nth-child(2) { grid-column: 7 / 13; padding-top: clamp(48px, 11vw, 168px); }

.voice-frame { overflow: hidden; border-radius: 3px; }
.voice .plate {
  aspect-ratio: 4 / 5;
  transform: scale(1.14);
  will-change: transform;
}

.voice blockquote {
  margin-top: clamp(22px, 2.4vw, 34px);
  font-size: clamp(1.25rem, 0.98rem + 1.35vw, 2.125rem);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -0.034em;
}

.voice cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-300);
}

@media (max-width: 760px) {
  .voices { grid-template-columns: 1fr; }
  .voice:nth-child(1),
  .voice:nth-child(2) { grid-column: 1 / -1; }
  .voice:nth-child(2) { padding-top: clamp(40px, 9vw, 64px); }
}

/* ── 02 · 흐름 (시그니처) ─────────────────────────────────────────────── */

/* 스크롤이 곧 시간축이다. 한 화면분을 붙잡아 두고 그 안에서 24시간이 흐른다. */
.flow-stage { position: relative; height: 300vh; }

.flowline {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 앱 화면 하이라이트를 그대로 옮긴 모듈.
   스크롤이 시간축이 되어 매칭 → 연락처 오픈 → 나이 오픈이 화면 안에서 일어난다. */

.flowline {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 300px);
  justify-content: center;
  gap: clamp(40px, 8vw, 132px);
  align-items: center;
}

.flow-phone { order: 2; }

.flow-phone .phone { max-width: 300px; }

.screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 33px;
  overflow: hidden;
  background: var(--paper);
}

.scr {
  position: absolute;
  inset: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ① B5 매칭 성사 — 두 사람의 대표 사진이 만난다 */
.scr-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--v4-paper-dk);
  color: var(--v4-ink-dk);
  opacity: 0;
  transform: scale(0.97);
}

.flowline.s1 .scr-match { opacity: 1; transform: none; }
.flowline.s2 .scr-match,
.flowline.s3 .scr-match { opacity: 0; transform: scale(1.05); }

.mcards {
  position: relative;
  width: 100%;
  height: 132px;
  margin-bottom: 30px;
}

.mcard {
  position: absolute;
  top: 0;
  left: 50%;
  width: 94px;
  height: 124px;
  margin-left: -47px;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 1.1s var(--ease-out), opacity 0.7s var(--ease);
  opacity: 0.5;
}

.mcard .plate { display: block; width: 100%; height: 100%; }
.mcard .plate::after { content: none; }

.mcard-a { transform: translateX(-72px) rotate(-11deg); }
.mcard-b { transform: translateX(72px) rotate(11deg); }

.flowline.s1 .mcard { opacity: 1; }
.flowline.s1 .mcard-a { transform: translateX(-30px) rotate(-6deg); }
.flowline.s1 .mcard-b { transform: translateX(30px) rotate(6deg); }

.mtitle {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.msub {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--v4-ink2-dk);
}

/* ② B2 프로필 상세 */
.scr-profile {
  background: var(--paper);
  opacity: 0;
  transform: scale(1.03);
}

.flowline.s2 .scr-profile,
.flowline.s3 .scr-profile { opacity: 1; transform: none; }

.phero { position: relative; height: 47%; }
.phero > .plate { display: block; width: 100%; height: 100%; }
.phero > .plate::after { content: none; }

.phero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.phero-meta {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: var(--v4-ink-dk);
}

.pname { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.026em; }

.page b {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}

.page .opened { display: none; }
.flowline.s3 .page .locked { display: none; }
.flowline.s3 .page .opened { display: block; animation: agepop 0.75s var(--ease-out); }

@keyframes agepop {
  0%   { transform: scale(0.88); filter: blur(6px); opacity: 0; }
  55%  { transform: scale(1.06); filter: blur(0);   opacity: 1; }
  100% { transform: scale(1); }
}

.pbody { padding: 15px 15px 0; }

.pintro { font-size: 0.8125rem; font-weight: 400; letter-spacing: -0.02em; }

.prows { display: flex; gap: 6px; margin-top: 11px; }
.prows span {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--paper-2);
  padding: 4px 9px;
  border-radius: 3px;
}

.ptags { display: flex; gap: 5px; margin-top: 9px; }
.ptags i {
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 9px;
  border-radius: 3px;
}

.pblock { margin-top: 13px; border-radius: 12px; overflow: hidden; height: 92px; }

.plike {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink-500);
}

/* 지면에서 온기가 켜지는 **유일한 자리**(landing.md: 온기는 한 곳에만).
   앱의 규칙과 같다 — 좋아요 마크(design.md §2 warm). */
.plike b { color: var(--v4-warm); font-size: 0.8125rem; line-height: 1; }

.pqa { margin-top: 15px; }
.pqa dt { font-size: 0.5625rem; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }
.pqa dd {
  margin: 5px 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--ink-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pblock .plate { display: block; width: 100%; height: 100%; }
.pblock .plate::after { content: none; }

/* ③ 매칭됨 플로팅 바 — 아래에서 올라왔다가, 나이가 열릴 때 다시 내려간다 */
.pbar {
  position: absolute;
  inset: auto 10px 12px 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--v4-paper);
  outline: 1px solid var(--v4-hair);
  outline-offset: -1px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.75s var(--ease-out), opacity 0.5s var(--ease);
}

.flowline.s2 .pbar { transform: none; opacity: 1; }

.pbar-thumb {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  overflow: hidden;
}

.pbar-thumb .plate { display: block; width: 100%; height: 100%; }
.pbar-thumb .plate::after { content: none; }

.pbar-copy {
  flex: 1;
  min-width: 0;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pbar-copy span {
  display: block;
  font-weight: 500;
  color: var(--ink-500);
}

.pbar-btn {
  flex: none;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--v4-ink-dk);
  background: var(--ink);
  padding: 7px 11px;
  border-radius: 3px;
}

/* ── 정거장 ─────────────────────────────────────────────────────────── */

.track {
  order: 1;
  position: relative;
  display: grid;
  gap: clamp(26px, 3vw, 44px);
  padding-left: 34px;
}

.track::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--rule);
  border-radius: 2px;
}

.station { position: relative; }

.station-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--ink-300);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
              transform 0.45s var(--ease-out);
}

.station.on .station-dot { background: var(--ink); border-color: var(--ink); }

/* 마지막 정거장 하나에만 키컬러가 켜진다 */
.station.on:last-child .station-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

.station-when {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  transition: color 0.45s var(--ease);
}

.station.on .station-when { color: var(--accent); }

.station-what {
  margin-top: 7px;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink-300);
  transition: color 0.45s var(--ease);
}

.station.on .station-what { color: var(--ink); }

.station-note {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-500);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.station.on .station-note { opacity: 1; transform: none; }

@media (max-width: 860px) {
  /* 붙잡힌 한 화면 안에 폰과 정거장이 모두 들어와야 한다 */
  .flowline {
    grid-template-columns: minmax(0, 420px);
    gap: clamp(24px, 4vw, 36px);
  }
  .flow-phone { order: 1; }
  .flow-phone .phone { max-width: 196px; margin-inline: auto; border-radius: 30px; padding: 7px; }
  .flow-phone /* 노치·베젤·스크린 곡률은 **실물 기기의 묘사**다 — UI 형태가 아니므로 §5 스케일을
   적용하지 않는다(적용하면 아이폰이 아닌 물건이 된다). 닷과 함께 정원이 남는 자리. */
.phone::before { top: 15px; width: 62px; height: 18px; }
  .flow-phone .screen { border-radius: 26px; }
  .track { order: 2; gap: 20px; padding-left: 30px; }
  .track::before { left: 6px; }
  .station-dot { left: -30px; width: 14px; height: 14px; }
  .station-when { font-size: 0.75rem; }
  .station-what { margin-top: 4px; font-size: 1.25rem; }
  .station-note { margin-top: 5px; font-size: 0.875rem; }

  /* 폰이 작아진 만큼 화면 안 요소도 함께 줄인다 */
  .flowline { padding-top: 52px; }
  .mtitle { font-size: 1.125rem; }
  .msub { font-size: 0.6875rem; }
  .mcards { height: 104px; margin-bottom: 22px; }
  .mcard { width: 72px; height: 96px; margin-left: -36px; border-radius: 3px; }
  .mcard-a { transform: translateX(-56px) rotate(-11deg); }
  .mcard-b { transform: translateX(56px) rotate(11deg); }
  .flowline.s1 .mcard-a { transform: translateX(-23px) rotate(-6deg); }
  .flowline.s1 .mcard-b { transform: translateX(23px) rotate(6deg); }

  .phero-meta { inset: auto 10px 10px 10px; }
  .pname { font-size: 0.8125rem; }
  .page b { font-size: 0.5625rem; padding: 4px 8px; }
  .pbody { padding: 11px 11px 0; }
  .pintro { font-size: 0.6875rem; }
  .prows { margin-top: 8px; }
  .prows span, .ptags i { font-size: 0.5rem; padding: 3px 7px; }
  .pblock { height: 66px; margin-top: 10px; }
  .plike { font-size: 0.5rem; margin-top: 7px; }
  .pqa { margin-top: 11px; }
  .pqa dt { font-size: 0.5rem; }
  .pqa dd { font-size: 0.5625rem; }

  .pbar { inset: auto 7px 8px 7px; gap: 6px; padding: 7px; border-radius: 12px; }
  .pbar-thumb { width: 26px; height: 26px; border-radius: 3px; }
  .pbar-copy { font-size: 0.5rem; line-height: 1.3; }
  .pbar-btn { font-size: 0.5rem; padding: 6px 8px; }
}

/* ── 03 · 사명 ────────────────────────────────────────────────────────── */

.mission {
  background: var(--night);
  color: var(--v4-ink-dk);
  padding-block: clamp(128px, 16vw, 248px);
}

.mission .t-eyebrow { color: var(--v4-denim-dk); }

.mission-line {
  font-size: clamp(2rem, 1.05rem + 4.1vw, 4.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.045em;
  margin: clamp(26px, 2.6vw, 38px) 0 clamp(64px, 7vw, 116px);
  max-width: 18ch;
}

.mission-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.mission-body > div { grid-column: 6 / 13; }

.mission-body p {
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  line-height: 1.84;
  letter-spacing: -0.018em;
  color: var(--v4-ink2-dk);
}

.mission-body p + p { margin-top: 1.7em; }
.mission-body .close { color: var(--v4-ink-dk); font-weight: 500; }

@media (max-width: 860px) {
  .mission-body { grid-template-columns: 1fr; }
  .mission-body > div { grid-column: 1 / -1; }
}

/* ── 04 · 가입 ────────────────────────────────────────────────────────── */

.gates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.gate {
  position: relative;
  background: var(--paper);
  /* 카드는 헤어라인 프레임이 전부다 — 그림자도, 뜨는 움직임도 없다(§5 r0 / §6 그림자 0).
     경계는 선이 말하고, 호버는 종이 한 단계로만 답한다. */
  border: 1px solid var(--v4-hair);
  border-radius: 0;
  padding: clamp(28px, 2.6vw, 40px);
  overflow: hidden;
  transition: background-color 0.24s var(--ease-out);
}

.gate:hover { background: var(--v4-paper2); }

.gate-obj {
  width: clamp(64px, 6vw, 84px);
  height: clamp(64px, 6vw, 84px);
  margin-bottom: clamp(22px, 2.2vw, 32px);
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}

.gate:hover .gate-obj { transform: rotate(-3deg); }

.gate h3 { font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.03em; }
.gate p  { margin-top: 14px; font-size: 0.9375rem; line-height: 1.72; color: var(--ink-700); }

.gate-index {
  position: absolute;
  top: clamp(26px, 2.5vw, 38px);
  right: clamp(26px, 2.5vw, 38px);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-400);
}

.gates-foot { margin-top: clamp(28px, 3vw, 44px); }

@media (max-width: 880px) { .gates { grid-template-columns: 1fr; } }

/* ── 05~08 · 앱 쇼케이스 ──────────────────────────────────────────────── */

.showcase { display: grid; gap: clamp(104px, 12vw, 200px); }

.shot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.shot-copy  { grid-column: 1 / 6; }
.shot-phone { grid-column: 8 / 12; }

.shot:nth-child(even) .shot-copy  { grid-column: 8 / 13; order: 2; }
.shot:nth-child(even) .shot-phone { grid-column: 2 / 6; order: 1; }

.shot-copy .t-eyebrow { margin-bottom: 22px; }
.shot-copy .t-note { margin-top: 26px; max-width: 34ch; }

/* 폰 — 실스크린샷 교체 시 .plate 만 <img> 로 바꾼다 */
.phone {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 300px;
  border-radius: 42px;
  padding: 10px;
  background: var(--v4-ink);
  will-change: transform;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  border-radius: 999px;
  background: var(--v4-paper-dk);
  z-index: 2;
}

.phone .plate { aspect-ratio: 9 / 19.5; border-radius: 33px; }
.phone .plate::after { bottom: 20px; }

@media (max-width: 900px) {
  .shot,
  .shot:nth-child(even) { grid-template-columns: 1fr; }
  .shot-copy, .shot:nth-child(even) .shot-copy   { grid-column: 1 / -1; order: 0; }
  .shot-phone, .shot:nth-child(even) .shot-phone { grid-column: 1 / -1; order: 1; }
  .phone { max-width: 268px; margin-inline: auto; }
  .shot-copy { text-align: center; }
  .shot-copy .t-note { max-width: 34ch; margin-inline: auto; }
}

/* ── 09 · 내 프로필 ───────────────────────────────────────────────────── */

.mine {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}

.mine-copy  { grid-column: 1 / 6; }
.mine-cards { grid-column: 7 / 13; display: grid; gap: 16px; }

.stat {
  background: var(--paper);
  /* 그림자로 띄우지 않는다 — 경계는 헤어라인이 말한다(§6). */
  border: 1px solid var(--v4-hair);
  border-radius: 0;
  padding: 24px;
}

.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-name { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.026em; }

.charm {
  flex: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--accent-tint);
  color: var(--accent);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transition-delay: 0.6s;
}

.is-in .charm { transform: scale(1); opacity: 1; }

.stat-value {
  margin-top: 14px;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.15;
}

.meter { margin-top: 22px; }

/* 목표 지점 라벨 — 좋아요가 아니므로 온기가 아니다. v4에서 강조는 색이 아니라
   잉크 위계로 한다(주변 캡션은 ink2, 이 라벨만 ink). */
.meter-goal { height: 17px; position: relative; font-size: 0.75rem; font-weight: 500; color: var(--v4-ink); }
.meter-goal span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

.meter-track {
  position: relative;
  height: 10px;
  margin-top: 3px;
  border-radius: 0;
  background: var(--accent-tint);
}

.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 0;
  background: var(--accent-face);
  transition: width 1s var(--ease-out) 0.15s;
}

.is-in .meter-fill { width: var(--fill); }

.meter-tick {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 3px;
  border-radius: 2px;
  background: var(--v4-ink);
  transform: translateX(-50%);
}

.stat-basis { margin-top: 14px; font-size: 0.8125rem; line-height: 1.6; color: var(--ink-500); }

@media (max-width: 900px) {
  .mine { grid-template-columns: 1fr; }
  .mine-copy, .mine-cards { grid-column: 1 / -1; }
}

/* ── 10 · 시대 ────────────────────────────────────────────────────────── */

.era { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 4vw, 64px); align-items: end; }
.era-figure { grid-column: 1 / 5; }
.era-chart  { grid-column: 5 / 13; }

.era-big {
  white-space: nowrap;
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

/* 통계 수치의 단위 — 강조는 크기 대비가 이미 하고 있다(§1 원칙 2). */
.era-big i { font-style: normal; color: var(--v4-ink2); }
.era-figure .t-note { margin-top: 18px; max-width: 18ch; }

.chart { width: 100%; height: auto; overflow: visible; display: block; }

.chart .rule    { stroke: var(--rule-2); stroke-width: 1; }
.chart .tick    { font-size: 13px; fill: var(--ink-500); font-weight: 500; letter-spacing: 0.04em; }
/* 선 아래 면 — 투명으로 사라지는 램프(구 울트라마린 areaGrad)를 폐기하고
   **평면 종이**로 둔다. v4에 램프가 없고, 면이 하는 일은 선의 아래쪽을
   구분해 주는 것뿐이라 색이 필요하지 않다. 이 구간의 바탕이 paper2라
   한 단계 어두운 hair를 쓴다(paper2면 바탕에 묻혀 면이 사라진다). */
.chart .area    { fill: var(--v4-hair); opacity: 0; transition: opacity 1.2s var(--ease) 0.5s; }
.is-in .chart .area { opacity: 1; }

.chart .line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 2.1s var(--ease);
}

.is-in .chart .line { stroke-dashoffset: 0; }

.chart .node { fill: var(--v4-paper); stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity 0.4s ease; }
/* 마지막 값만 **채운다** — 활성 표시는 색이 아니라 채움이다(design.md §6).
   나머지 노드는 흰 속·잉크 테두리라 채움만으로 구별된다. */
.chart .node--end { fill: var(--v4-ink); stroke: var(--v4-paper); stroke-width: 3; r: 8; }
/* tick(13)과 3px 이상 벌린다 — 굵기를 뺀 만큼 크기가 위계를 맡는다(§3). */
.chart .val  { font-size: 16px; font-weight: 500; fill: var(--ink); opacity: 0; transition: opacity 0.5s ease; }

.is-in .chart .node { opacity: 1; }
.is-in .chart .val  { opacity: 1; }
.is-in .chart .node:nth-of-type(1) { transition-delay: 0.7s; }
.is-in .chart .val:nth-of-type(1)  { transition-delay: 0.8s; }
.is-in .chart .node:nth-of-type(2) { transition-delay: 1.4s; }
.is-in .chart .val:nth-of-type(2)  { transition-delay: 1.5s; }
.is-in .chart .node--end { transition-delay: 2.1s; }

.chart-foot {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 6px 20px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .chart-foot { display: grid; }

  /* 좁은 화면에서는 SVG 가 크게 축소된다 — viewBox 기준 치수를 키워 또렷하게 */
  .chart .rule { stroke-width: 2; }
  .chart .line { stroke-width: 5; }
  .chart .node { stroke-width: 5; r: 10; }
  .chart .node--end { r: 14; stroke-width: 7; }
  .chart .tick { font-size: 30px; }
  .chart .val  { font-size: 32px; }
}

.era-close {
  margin-top: clamp(64px, 7vw, 112px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--rule-2);
  font-size: clamp(1.1875rem, 1rem + 0.95vw, 1.875rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.032em;
  max-width: 30ch;
}

@media (max-width: 900px) {
  .era { grid-template-columns: 1fr; align-items: start; }
  .era-figure, .era-chart { grid-column: 1 / -1; }
}

/* ── 11 · 사전신청 ────────────────────────────────────────────────────── */

.signup {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--v4-ink-dk);
  padding-block: clamp(128px, 15vw, 224px);
  text-align: center;
}

.signup-media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.signup-media .plate { width: 100%; height: 100%; }

.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 사진 전체에 고르게 걸리는 스크림 — 방향이 없으므로 평면으로 둔다. */
  background: rgba(0, 0, 0, 0.62);
}

.signup h2 { margin-bottom: 28px; }

.signup-title { font-size: clamp(2.25rem, 1rem + 5.4vw, 5.25rem); }

.signup .t-lede {
  color: var(--v4-ink-dk);
  max-width: 26ch;
  margin: 0 auto clamp(38px, 4vw, 56px);
}

.form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin-inline: auto;
  /* 사진 위라 면을 만들지 않는다(§6). 유리 대신 헤어라인 하나로 필드를 표시하고,
     radius는 §5의 입력 필드 값(12)을 쓴다. */
  background: transparent;
  border: 1px solid var(--v4-ink2-dk);
  border-radius: 12px;
  padding: 7px;
  transition: border-color 0.24s var(--ease-out);
}

.form:focus-within { border-color: var(--v4-ink-dk); }

.form input {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--v4-ink-dk);
  font: inherit;
  letter-spacing: -0.014em;
  padding: 13px 22px;
}

.form input::placeholder { color: var(--v4-ink2-dk); }
.form input:focus { outline: none; }
.form .btn { flex: none; }

.form-done {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.026em;
  min-height: 62px;
  display: grid;
  place-items: center;
}

.form-note { margin-top: 26px; color: var(--v4-ink2-dk); }
.form-note a { color: var(--v4-ink-dk); text-decoration: underline; text-underline-offset: 3px; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .signup-title { line-height: 1.12; letter-spacing: -0.03em; }

  .form {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 12px;
  }
  .form input {
    width: 100%;
    text-align: center;
    padding: 18px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .form input::placeholder { color: var(--v4-ink2-dk); }
  .form .btn {
    width: 100%;
    justify-content: center;
    padding-block: 19px;
    font-size: 1.0625rem;
  }
}

/* ── 푸터 ─────────────────────────────────────────────────────────────── */

.footer {
  padding-block: clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 36px 24px;
}

.footer-brand { grid-column: 1 / 5; }
.footer-links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }

.footer .company { font-size: 1.0625rem; font-weight: 500; color: var(--ink); letter-spacing: -0.028em; }
.footer .biz { margin-top: 12px; line-height: 1.75; }
.footer-links a { transition: color 0.25s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: clamp(44px, 5vw, 72px); color: var(--ink-500); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-links { grid-column: 1 / -1; }
}

/* ══ 스크롤 모션 ═══════════════════════════════════════════════════════
   두 종류만 쓴다. 헤드라인은 마스크에서 올라오고, 나머지는 페이드+상승.
   ═══════════════════════════════════════════════════════════════════ */

/* 마스크는 글자보다 넉넉해야 한다 — 타이트한 행간에서 위아래가 잘린다 */
.ln {
  display: block;
  overflow: hidden;
  padding: 0.16em 0.08em;
  margin: -0.16em -0.08em;
}

.ln > i {
  display: block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out);
}

.is-in .ln > i,
.ln.is-in > i { transform: translateY(0); }

.ln:nth-child(2) > i { transition-delay: 0.09s; }
.ln:nth-child(3) > i { transition-delay: 0.18s; }

.up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.up.is-in, .is-in .up { opacity: 1; transform: none; }

.up[data-d="1"] { transition-delay: 0.12s; }
.up[data-d="2"] { transition-delay: 0.24s; }
.up[data-d="3"] { transition-delay: 0.36s; }
.up[data-d="4"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-stage { height: auto; }
  .flowline { position: static; height: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .up { opacity: 1; transform: none; }
  .ln > i { transform: none; }
  .meter-fill { width: var(--fill); }
  .charm { opacity: 1; transform: none; }
  .chart .line { stroke-dashoffset: 0; }
  .chart .node, .chart .val, .chart .area { opacity: 1; }
  .hero-media, .signup-media, .phone, .voice .plate { transform: none !important; }
}
