/* =========================================================
   hankimsoft 메인 (/) 스타일 — tokens.css 다음에 불러옵니다.
   값은 모두 토큰 변수. 새 값이 필요하면 tokens.css에 먼저 추가.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 4px; border-radius: 10px; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-inverse-ink); font-size: var(--fs-ui); font-weight: var(--fw-bold); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 머리 (GNB) ---------- */
.gnb__in { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 18px; font-weight: var(--fw-heavy); letter-spacing: -0.04em; }
.gnb__nav { display: flex; gap: var(--space-1); margin-right: -14px; } /* 마지막 메뉴 글자를 오른쪽 시작선에 맞춤 (링크 안쪽 여백만큼) */
.gnb__nav a, .gnb__menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: var(--fs-ui); font-weight: 600; transition: opacity var(--dur-fast) var(--ease-out); }
.gnb__nav a:hover { opacity: .75; }
.gnb__menu { display: none; position: relative; }
.gnb__menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-right: -10px; }
.gnb__menu summary::-webkit-details-marker { display: none; }
.gnb__menu nav { position: absolute; right: -10px; top: 48px; z-index: 10; min-width: 160px; padding: var(--space-2); border-radius: var(--radius-m); background: var(--color-surface); box-shadow: var(--shadow-soft); }

/* ---------- 첫 화면 ---------- */
/* 첫 화면은 늘 한 화면(머리 아래 ~ 화면 끝)에 들어갑니다.
   --s = 너비에 따른 크기, --u = 높이에 따른 크기(900px보다 낮으면 줄어듦), --k = 둘을 곱한 1단위 */
.hero { --s: 1; --gnb: 76px; --h: calc(100vh - var(--gnb)); --u: min(1px, calc(var(--h) / 900)); --k: calc(var(--s) * var(--u));
  position: relative; display: flex; flex-direction: column; height: var(--h); min-height: 380px; overflow: hidden;
  /* 여백도 --u 비율로 (화면 높이 900 이상에서 위 96 · 아래 84). 정보 글줄(48)과 화살표(44)는 크기 고정 */
  padding: calc(var(--u) * 48 + 48px) 0 calc(var(--u) * 40 + 44px); }
@supports (height: 100svh) { .hero { --h: calc(100svh - var(--gnb)); } }
.hero__meta { position: absolute; top: calc(var(--u) * 36); margin: 0; font-size: var(--fs-ui); line-height: var(--lh-body); font-weight: var(--fw-medium); color: var(--color-ink-2); }
.hero__meta--l { left: var(--edge); }
.hero__meta--r { right: var(--edge); text-align: right; }
.hero__objects { position: relative; flex: 1; min-height: 0; }
.obj { position: absolute; overflow: hidden; border-radius: var(--radius-icon); }
.obj::after { content: ""; position: absolute; inset: 0; background: var(--icon-gloss); pointer-events: none; }
.obj img { width: 100%; height: 100%; }
/* 세 아이콘 묶음(높이 380)을 남은 칸 가운데에 둠 */
.obj--brim { left: calc(50% + var(--k) * -330); top: calc(50% + var(--k) * -150); width: calc(var(--k) * 280); height: calc(var(--k) * 280); background: var(--brim-500); box-shadow: var(--shadow-icon-brim); transform: rotate(-9deg); animation: floatA var(--float-a) ease-in-out infinite; }
.obj--treebal { left: calc(50% + var(--k) * 30); top: calc(50% + var(--k) * -190); width: calc(var(--k) * 230); height: calc(var(--k) * 230); background: var(--treebal-500); box-shadow: var(--shadow-icon-treebal); transform: rotate(11deg); animation: floatB var(--float-b) ease-in-out infinite; }
.obj--next { left: calc(50% + var(--k) * 260); top: calc(50% + var(--k) * 60); width: calc(var(--k) * 130); height: calc(var(--k) * 130); border: 2px dashed var(--color-line-strong); display: flex; align-items: center; justify-content: center; transform: rotate(-4deg); animation: floatC 6s ease-in-out infinite; }
.obj--next svg { width: calc(var(--k) * 36); height: calc(var(--k) * 36); }
.obj--next::after { display: none; }
.hero__lead { flex: none; margin: 0 0 calc(var(--u) * 24); text-align: center; font-size: min(var(--fs-h3), calc(var(--h) * 0.054)); line-height: var(--lh-heading); font-weight: var(--fw-heavy); letter-spacing: var(--ls-heading); animation: rise var(--dur-enter) var(--ease-out) both; }
.wordmark { flex: none; margin: 0; text-align: center; white-space: nowrap; font-size: min(var(--fs-wordmark), calc(var(--h) * 0.25)); line-height: var(--lh-tight); font-weight: var(--fw-black); letter-spacing: var(--ls-wordmark); animation: rise var(--dur-enter) var(--ease-out) both; }
/* 아래로 내려 보라는 화살표 */
.hero__scroll { position: absolute; left: 50%; bottom: calc(var(--u) * 20); width: 44px; height: 44px; margin-left: -22px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--color-line); background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-soft); color: var(--color-ink); animation: nudge 1.8s ease-in-out 1s 3; }
.hero__scroll:hover { background: var(--color-surface); }

/* ---------- 섹션 머리 ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-line-ink); }
.sec-head h2 { margin: 0; font-size: var(--fs-h1); line-height: 1; font-weight: var(--fw-black); letter-spacing: var(--ls-display); }
.sec-head span { font-size: var(--fs-ui); font-weight: 600; color: var(--color-ink-2); }

/* ---------- Apps : 흐르는 줄 ---------- */
.apps { padding-top: var(--space-section); }
.rows { position: relative; }
.row { position: relative; border-bottom: 1px solid var(--color-line); transition: background var(--dur-fast) var(--ease-out); }
/* 줄 높이: 출시 1 → 곧 출시 ¾ → 준비 중 ¾² (글자도 같은 비율) */
.row { --row-h: clamp(170px, 20vw, 290px); }
.row--treebal { --row-h: calc(clamp(170px, 20vw, 290px) * 0.75); }
.row--next { --row-h: calc(clamp(170px, 20vw, 290px) * 0.5625); }
.row__stage { position: relative; height: var(--row-h); overflow: hidden; }
.row__track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; font-size: calc(var(--row-h) * 0.83); line-height: 1; font-weight: var(--fw-black); letter-spacing: -0.07em; animation: mq var(--mq-1) linear infinite; }
.row__track > * { flex: none; padding: 0 0.18em; }
/* 아이콘 그림은 꽉 찬 사각형 → 안쪽 여백 없이 그림 자체를 둥글게, 간격은 바깥으로 */
.row__track img { height: 0.52em; width: auto; padding: 0; margin: 0 0.28em; border-radius: var(--radius-icon); }
.row--brim .row__track { color: var(--brim-500); }
/* 외곽선 글자: 가변 글꼴은 획이 겹쳐 있어 선만 그리면 글자 안에 겹친 윤곽이 보임 → 바탕색으로 채우고 선을 채움 아래에(두 배 굵기, 바깥 절반만 보임) */
.row--treebal .row__track, .row--next .row__track { --fill: var(--color-bg); color: var(--fill); paint-order: stroke fill; transition: color var(--dur-fast) var(--ease-out); }
.row--treebal .row__track { -webkit-text-stroke: 5px var(--treebal-500); animation-name: mqr; animation-duration: var(--mq-2); }
.row--next .row__track { letter-spacing: -0.06em; -webkit-text-stroke: 3px var(--color-line-strong); animation-duration: var(--mq-3); }
.row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* 줄 링크는 상자가 없어서(0×0) 줄 전체를 덮는 ::after 에 초점 테두리를 그림 */
.row__link:focus-visible { outline: 0; }
.row__link:focus-visible::after { outline: 2px solid var(--color-ink); outline-offset: -4px; }
/* 어두운 바탕(초록 띠 · 바닥글)에서는 흰 테두리 */
.feature a:focus-visible, .footer a:focus-visible { outline-color: var(--color-inverse-ink); }
.row__label { position: absolute; left: calc(var(--edge) - var(--space-2)); top: var(--space-5); z-index: 1; padding: 2px var(--space-2); border-radius: var(--radius-pill); background: var(--color-bg); font-size: var(--fs-label); font-weight: var(--fw-bold); }
.row--brim .row__label { color: var(--brim-700); }
.row--treebal .row__label { color: var(--treebal-700); }
.row--next .row__label { color: var(--color-ink-2); top: var(--space-4); }
.row__cta { display: inline-block; margin-left: 6px; }
/* 받기 버튼 — 흐르는 글자 위에 겹쳐 둔 밝은 유리. 글자가 뒤로 흐릿하게 지나감.
   기기에 따라 스토어로 바로(home.js), 그 밖에는 담은 페이지의 공식 배지로 */
.row__get { position: absolute; left: var(--edge); bottom: calc(var(--row-h) * 0.2); z-index: 2; }
.get { display: inline-flex; align-items: center; gap: var(--space-2); min-height: clamp(48px, 1.6vw + 42px, 64px); padding: 0 clamp(20px, 1.4vw + 14px, 34px); border-radius: var(--radius-pill); border: 1px solid var(--get-line); background: var(--get-fill); color: var(--color-inverse-ink); font-size: clamp(15px, 0.35vw + 14px, 19px); font-weight: var(--fw-bold); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px -12px rgba(46, 122, 86, 0.7); transition: background var(--dur-fast) var(--ease-out); }
.get:hover { background: var(--get-fill-hover); }
.get svg { width: 1.05em; height: 1.05em; transition: transform var(--dur-fast) var(--ease-out); }
.get:hover svg { transform: translateX(3px); }
@media (hover: hover) {
  .row:hover { background: rgba(255, 255, 255, 0.55); }
  .row:hover .row__track { --fill: color-mix(in srgb, var(--color-bg), #fff 55%); }
  .row:hover .row__track { animation-play-state: paused; }
}
.row:focus-within .row__track { animation-play-state: paused; }
@media (hover: hover) {
  .row__cta { transition: transform var(--dur-fast) var(--ease-out); }
  .row:hover .row__cta, .row__link:focus-visible .row__cta { transform: translateX(6px); }
}

/* ---------- 기기 모형 · 담은 화면 ----------
   담은 소개 페이지(/brim/) 첫 화면과 같은 화면. 390×800 그대로 그리고 --k 배로 줄입니다. */
.device { --k: .641; width: calc(390px * var(--k)); height: calc(800px * var(--k)); }
.device--l { --k: var(--fk, .769); }
.bp { width: 390px; height: 800px; padding: 12px; border-radius: 62px; background: var(--device-frame); box-shadow: var(--shadow-float); transform: scale(var(--k)); transform-origin: top left; }
.scr { position: relative; height: 100%; border-radius: 50px; overflow: hidden; display: flex; flex-direction: column; background: var(--brim-app-bg); color: var(--brim-app-ink); line-height: normal; }
.scr .island { position: absolute; left: 50%; top: 13px; width: 116px; height: 33px; margin-left: -58px; border-radius: 20px; background: #000; z-index: 1; }
.scr .sbar { flex: none; display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 6px 30px 0; font-size: 15px; font-weight: var(--fw-bold); }
.scr .sbar svg { display: inline; height: 12px; fill: currentColor; }
.scr .ahead { flex: none; display: flex; align-items: center; height: 44px; padding: 0 22px; }
.scr .back { width: 40px; margin-top: -5px; font-size: 30px; line-height: 1; }
.scr .ahead b { flex: 1; padding-left: 18px; text-align: center; font-size: 16.5px; font-weight: var(--fw-bold); white-space: nowrap; }
.scr .done { margin: 0 14px; font-size: 13.5px; color: var(--brim-app-faint); }
.scr .dots { font-weight: var(--fw-black); letter-spacing: 1px; }
.scr .sum { flex: none; padding: 0 22px; }
.scr .lbl { margin-top: 22px; font-size: 11.5px; color: var(--brim-app-faint); }
.scr .tot { display: flex; align-items: baseline; margin-top: 2px; }
.scr .tot b { font-size: 42px; font-weight: var(--fw-heavy); letter-spacing: -1.2px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.scr .tot i { margin-left: 2px; font-style: normal; font-size: 14px; font-weight: var(--fw-bold); }
.scr .badge { margin-left: 10px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--brim-100); color: var(--brim-700); font-size: 12.5px; font-weight: var(--fw-bold); white-space: nowrap; transform: translateY(-6px); }
.scr .gauge { position: relative; height: 22px; margin-top: 16px; }
.scr .lane { height: 8px; margin-bottom: 5px; overflow: hidden; border-radius: var(--radius-pill); background: var(--brim-app-track); }
.scr .lane u { display: block; height: 100%; border-radius: var(--radius-pill); }
.scr .l1 { background: var(--gauge-amber); }
.scr .l2 { background: var(--gauge-amber-2); }
.scr[data-b="0"] .l1 { background: var(--gauge-green); }  .scr[data-b="0"] .l2 { background: var(--gauge-green-2); }
.scr[data-b="2"] .l1 { background: var(--gauge-orange); } .scr[data-b="2"] .l2 { background: var(--gauge-orange-2); }
.scr[data-b="3"] .l1 { background: var(--gauge-red); }    .scr[data-b="3"] .l2 { background: var(--gauge-red-2); }
.scr .lane u, .scr .leg i { transition: width .35s cubic-bezier(.3, .8, .3, 1), background .35s ease; }
.scr .tot b, .scr .tot i { transition: color .3s ease; }
.scr .tot.exact b, .scr .tot.exact i { color: var(--brim-exact); }
.scr u.l1 { width: 53.955%; }  /* 35,970 / 예산 50,000 의 75% 지점 기준 */
.scr u.l2 { width: 39.57%; }   /* 26,380 */
.scr .gauge s { position: absolute; left: 75%; top: -5px; width: 2px; height: 30px; background: var(--brim-app-ink); }
.scr .gline { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
.scr .gline b { font-weight: var(--fw-heavy); }
.scr .gline span { color: var(--brim-700); font-weight: var(--fw-bold); }
.scr .leg { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--brim-app-sub); font-variant-numeric: tabular-nums; }
.scr .leg i { display: inline-block; width: 16px; height: 5px; border-radius: 9px; }
.scr .leg i + span + i { margin-left: 10px; }
.scr .tools { flex: none; display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding: 18px 22px 10px; border-top: 1px solid var(--brim-app-chip); }
.scr .mode { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--brim-app-chip); color: var(--brim-app-sub); font-size: 11.5px; font-weight: 600; }
.scr .filt { font-size: 12px; font-weight: 600; color: var(--brim-app-ink-2); }
.scr .filt em { margin-left: 4px; padding: 2px 7px; border-radius: 9px; background: var(--brim-app-count); font-style: normal; font-size: 11px; }
.scr .items { flex: 1; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.scr .items li { display: flex; align-items: center; height: 52px; padding: 0 22px; border-bottom: 1px solid var(--brim-app-line); font-size: 14.5px; font-weight: 600; }
.scr .ck { position: relative; flex: none; width: 24px; height: 24px; margin-right: 14px; border-radius: 50%; border: 1.5px solid var(--brim-app-ctrl); background: var(--color-surface); }
.scr .ck::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5.5px; height: 10px; border: solid var(--color-surface); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; }
.scr .on > .ck { border-color: var(--brim-700); background: var(--brim-700); }
.scr .on > .ck::after { opacity: 1; }
.scr .n { flex: 1; white-space: nowrap; overflow: hidden; }
.scr .p { flex: none; width: 96px; padding-left: 16px; border-left: 1px solid var(--brim-app-col); font-weight: var(--fw-medium); color: var(--brim-app-ink); font-variant-numeric: tabular-nums; }
.scr .p:empty { border-left-color: transparent; }
.scr .items li.hide { display: none; }
.scr .typing .n::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 2px; vertical-align: -3px; background: var(--brim-500); animation: blink 1s steps(1) infinite; }
.scr .items li.alldone { height: auto; padding: 36px 22px 0; border: 0; flex-direction: column; justify-content: center; text-align: center; }
.scr .alldone img { height: 88px; animation: pop .45s cubic-bezier(.2, 1.5, .4, 1); }
.scr .alldone b { margin-top: 12px; font-size: 21px; font-weight: var(--fw-heavy); }
.scr .alldone span { margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--brim-app-ink-2); }
.scr .filt.on { color: var(--brim-500); }
.scr .filt.on em { background: var(--brim-500); color: var(--color-surface); }
.scr .fly { position: absolute; left: 16px; right: 16px; z-index: 2; display: flex; align-items: center; padding: 11px 16px 11px 12px; border-radius: 16px; background: var(--color-surface); box-shadow: 0 12px 30px rgba(42, 37, 33, .2); font-size: 15.5px; font-weight: var(--fw-bold); pointer-events: none; animation: fly 1.2s ease forwards; }
.scr .fly .ck { border-color: var(--brim-700); background: var(--brim-700); }
.scr .fly .ck::after { opacity: 1; }
.scr .fly .p { width: auto; margin-left: 16px; padding: 0; border: 0; color: var(--gauge-orange); font-weight: var(--fw-heavy); }
.scr { transition: opacity .4s ease; }
.scr.fade { opacity: 0; }
.scr .homebar { position: absolute; left: 50%; bottom: 8px; width: 130px; height: 5px; margin-left: -65px; border-radius: 3px; background: var(--brim-app-ink); opacity: .85; }

/* ---------- 대표 앱 띠 ---------- */
.feature { --fk: .769; position: relative; margin-top: var(--space-section); height: clamp(640px, 100vh, 760px); height: clamp(640px, 100svh, 760px); overflow: hidden; background: linear-gradient(180deg, var(--brim-hero-from) 0%, var(--brim-hero-to) 100%); color: var(--color-inverse-ink); }
.feature__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); transform: translate(-50%, -50%); }
.feature__ring--1 { width: 900px; height: 900px; }
.feature__ring--2 { width: 620px; height: 620px; border-color: rgba(255, 255, 255, 0.16); }
.feature__label { position: absolute; left: var(--edge); top: var(--space-16); font-size: var(--fs-label); font-weight: var(--fw-bold); color: var(--color-inverse-ink-2); }
.feature__steps { position: absolute; left: var(--edge); top: calc(var(--space-16) + var(--space-10)); margin: 0; padding: 0; list-style: none; font-size: var(--fs-ui); font-weight: var(--fw-bold); line-height: 2; color: var(--color-inverse-ink); }
.feature__steps li { opacity: .55; transition: opacity var(--dur-fast) var(--ease-out); }
.feature__steps li.on { opacity: 1; }
/* 담은 캐릭터 — 앱 도움말 캐릭터(check_list assets/brand/character/tutorial_*). 네 장 모두 세로 범위가 같아
   같은 높이로 그리면 크기가 맞음. --a = 그림 가로/세로. 폰 장면 따라: 0 적기 · 1 담기 · 2 남은 것만 · 3 딱 맞춤(폭죽) */
.feature__char { --ch: 130px; position: absolute; left: calc(50% + 190px); bottom: 150px; z-index: 2; width: 220px; height: var(--ch); pointer-events: none; }
.feature__char img { position: absolute; left: 50%; bottom: 0; height: 100%; width: calc(var(--a) * var(--ch)); max-width: none; margin-left: calc(var(--a) * var(--ch) / -2); opacity: 0; transform: translateY(12px) scale(.92); transition: opacity var(--dur-fast) var(--ease-out), transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.feature__char[data-k="0"] img:nth-of-type(1), .feature__char[data-k="1"] img:nth-of-type(2), .feature__char[data-k="2"] img:nth-of-type(3), .feature__char[data-k="3"] img:nth-of-type(4) { opacity: 1; transform: none; }
.feature__char::before { content: ""; position: absolute; left: 50%; bottom: calc(var(--ch) * -0.054); width: calc(var(--ch) * 0.7); height: calc(var(--ch) * 0.125); margin-left: calc(var(--ch) * -0.35); border-radius: 50%; background: rgba(0, 0, 0, 0.28); filter: blur(1.5px); }
.feature__confetti { position: absolute; left: -240px; top: -320px; width: calc(100% + 480px); height: calc(100% + 400px); }
.feature__bubble { position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 9px 16px; border-radius: 15px; background: var(--color-surface); color: var(--brim-app-ink); font-size: 17px; font-weight: var(--fw-heavy); white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); opacity: 0; transform: translateX(-50%) translateY(8px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.feature__bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 2px; background: var(--color-surface); transform: rotate(45deg); }
.feature__char[data-k="3"] .feature__bubble { opacity: 1; transform: translateX(-50%); }
.feature__title { position: absolute; left: var(--edge); bottom: var(--space-16); margin: 0; font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-black); letter-spacing: var(--ls-display); }
.feature__phone { position: absolute; left: 50%; top: 90px; margin-left: calc(var(--fk) * -195px); transform: rotate(-6deg); }
/* 띠가 760보다 낮아지면 폰도 줄여서 아래가 잘리지 않게 (폰 높이 800 × --fk + 위 90 + 기울기) */
@media (min-width: 1024px) and (max-height: 759px) { .feature { --fk: .7; } }
@media (min-width: 1024px) and (max-height: 699px) { .feature { --fk: .64; } }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill); font-size: var(--fs-ui); font-weight: var(--fw-bold); transition: opacity var(--dur-fast) var(--ease-out); }
.btn:hover { opacity: .85; }
/* 어두운 띠 위 유리 버튼 */
.btn--glass { border: 1px solid var(--glass-line); background: var(--glass-fill); color: var(--color-inverse-ink); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px -14px rgba(0, 0, 0, 0.45); transition: background var(--dur-fast) var(--ease-out); }
.btn--glass:hover { opacity: 1; background: var(--glass-fill-hover); }
.feature .btn { position: absolute; right: var(--edge); bottom: var(--space-16); }

/* ---------- 소개 ---------- */
.studio { padding-top: var(--space-section); }
.studio__label { margin: 0 0 var(--space-8); font-size: var(--fs-label); font-weight: var(--fw-bold); color: var(--color-ink-2); }
.studio__text { max-width: 1100px; margin: 0; font-size: var(--fs-h1); line-height: 1.25; font-weight: var(--fw-black); letter-spacing: var(--ls-display); }
.studio__text > span { display: block; text-wrap: balance; }
.studio__text > span:last-child { color: var(--color-ink-2); }
.studio__text.typewriter .ch { visibility: hidden; }
.studio__text.typewriter .ch.on { visibility: visible; }
/* 커서 — 그림자라 자리를 차지하지 않음(줄바꿈이 흔들리지 않게) */
.studio__text .ch.cur { box-shadow: 0.07em 0 0 currentColor; animation: caret 1s steps(1) infinite; }

/* ---------- 바닥글 ---------- */
.footer { margin-top: calc(var(--space-section) + var(--space-5)); background: var(--color-inverse-bg); color: var(--color-inverse-ink); overflow: hidden; }
.footer__top { padding-top: var(--space-20); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-10); }
.footer__mail { font-size: var(--fs-h2); font-weight: var(--fw-heavy); letter-spacing: -0.05em; border-bottom: 3px solid currentColor; padding-bottom: 6px; line-height: 1.2; }
.footer__cols { display: flex; gap: var(--space-12); font-size: 14px; }
.footer__cols div { display: flex; flex-direction: column; }
.footer__cols strong { padding-bottom: 6px; }
.footer__cols a { min-height: 34px; display: flex; align-items: center; color: var(--color-inverse-ink-2); transition: color var(--dur-fast) var(--ease-out); }
.footer__cols a:hover { color: var(--color-inverse-ink); }
.footer__copy { margin: var(--space-16) 0 0; font-size: var(--fs-label); color: var(--color-inverse-ink-2); }
.footer__ghost { margin-top: var(--space-20); text-align: center; white-space: nowrap; font-size: var(--fs-wordmark); line-height: 0.78; font-weight: var(--fw-black); letter-spacing: var(--ls-wordmark); color: var(--color-inverse-ghost); }

/* ---------- 움직임 ---------- */
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-16px) rotate(-7deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(11deg); } 50% { transform: translateY(-12px) rotate(13deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes caret { 50% { box-shadow: none; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fly { 0% { opacity: 0; transform: translateY(8px) scale(.94) rotate(-2deg); } 15% { opacity: 1; transform: rotate(-2deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px) rotate(-2deg); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqr { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@supports (animation-timeline: view()) {
  @keyframes reveal { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
  @keyframes par { from { transform: translateY(120px) rotate(-12deg); } to { transform: translateY(-60px) rotate(-3deg); } }
  @keyframes ring { from { transform: translate(-50%, -50%) scale(.8); opacity: 0; } to { transform: translate(-50%, -50%) scale(1.05); opacity: 1; } }
  @keyframes slide { from { transform: translateX(-12%); } to { transform: translateX(4%); } }
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .feature__phone { animation: par linear both; animation-timeline: view(); }
  .feature__ring { animation: ring linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  .footer__ghost { animation: slide linear both; animation-timeline: view(); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 태블릿 ---------- */
@media (max-width: 1023px) {
  .hero { --s: .8; }
  .feature { height: 760px; }
  .feature__phone { left: auto; right: var(--edge); margin-left: 0; }
  .feature__phone .device { transform: scale(.8); transform-origin: top right; }
  .feature__char { --ch: 110px; left: auto; right: calc(var(--edge) + 260px); bottom: auto; top: 410px; width: 180px; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 599px) {
  .gnb__in { height: 60px; }
  .logo { font-size: 17px; }
  .gnb__nav { display: none; }
  .gnb__menu { display: block; }
  .hero { --s: .46; --gnb: 60px; --u: 1px; padding: 72px 0 76px; }
  .hero__meta { top: 16px; font-size: var(--fs-label); }
  .hero__objects { transform: translateX(calc(var(--k) * -30)); }
  .hero__lead { margin-bottom: var(--space-4); font-size: 22px; }
  .wordmark { font-size: var(--fs-wordmark); }
  .hero__scroll { bottom: 16px; }
  .sec-head span { font-size: var(--fs-label); }
  .row__label { top: var(--space-3); font-size: 12.5px; }
  .row--treebal .row__track { -webkit-text-stroke-width: 4px; }
  .feature { height: 760px; }
  .feature__label { left: var(--gutter); top: var(--space-6); }
  .feature__steps { left: var(--gutter); top: calc(var(--space-6) + 30px); font-size: var(--fs-label); line-height: 1.6; }
  .feature__steps li { display: none; }
  .feature__steps li.on { display: block; }
  .studio__text { font-size: 30px; }
  .feature__char { --ch: 64px; left: auto; right: var(--gutter); top: 380px; width: 140px; }
  .feature__bubble { left: auto; right: 0; font-size: 14px; padding: 7px 12px; transform: translateY(8px); }
  .feature__bubble::after { left: auto; right: 34px; }
  .feature__char[data-k="3"] .feature__bubble { transform: none; }
  .feature__title { left: var(--gutter); bottom: 108px; }
  .feature .btn { left: var(--gutter); right: var(--gutter); bottom: var(--space-6); justify-content: center; }
  .feature__phone { top: 84px; left: 50%; right: auto; margin-left: -100px; }
  .feature__phone .device { transform: scale(.667); transform-origin: top left; }
  .feature__ring--1 { width: 560px; height: 560px; top: 260px; }
  .feature__ring--2 { width: 380px; height: 380px; top: 260px; }
  .footer__top { padding-top: 56px; }
  .footer__mail { font-size: clamp(24px, 7.5vw, 28px); border-bottom-width: 2px; }
  .footer__cols { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .footer__cols a { min-height: 44px; }
  .footer__ghost { margin-top: var(--space-12); }
}
@media (max-width: 374px) {
  .hero { --s: .38; }
  .feature__char { display: none; } /* 폰과 나란히 둘 폭이 없음 */
}
