/* 자동으로 만든 파일입니다. 고치지 마시고 homepage/site2/shared/css/ 의 파일을 고친 뒤 python homepage/tools/build.py 를 돌리십시오.
   순서: 01-base.css, 02-parts.css, 03-home.css, 04-frame.css, 05-responsive.css, 06-sub.css, 07-fam.css */

/* ━━━━━━━━ 01-base.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 01-base.css. Studio만 쓰는 규칙은 studio/css/01-base.css (2026-11-23 나눔) */
/* site2 공통 모양 (2026-11-21). 홈(index.html)과 하위 페이지가 모두 씁니다.
   회의 최종 시안: C안 뼈대 + D안 문의 장치 + E안 글자 단계 + A안 고정 구간 + B안 등심선.
   색: 잉크 + 순백 + 빨강 하나. 모서리 0, 그림자 0, 그라데이션 0. */
@font-face {
  font-family: Pretendard; font-weight: 45 920; font-style: normal; font-display: block;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations"),
       url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2");
}
/* 로고 글꼴 Geist: 사이트 안 fonts/에 둡니다(2026-11-22, 전에는 구글 글꼴). 각 페이지 <head>의 fonts 조각이 미리 받습니다 */
@font-face { font-family: Geist; font-weight: 400; font-style: normal; font-display: block; src: url("fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: Geist; font-weight: 700; font-style: normal; font-display: block; src: url("fonts/Geist-Bold.woff2") format("woff2"); }
/* 첫 화면 큰 글자 Anton(OFL): REDTCHSUIOAM/ 13자만 담은 4KB 파일입니다. 다른 글자를 쓰려면 다시 받아야 합니다 */
@font-face { font-family: AntonRT; font-weight: 400; font-style: normal; font-display: block; src: url("fonts/Anton-RTS.woff2") format("woff2"); }
:root {
  /* 색 */
  --ink: #0B0C0F; --paper: #FFFFFF; --red: #DF2E38; --red-d: #B3202A;
  --sub: #5A5E66; --line: rgba(11, 12, 15, .14); --tray: #F4F5F7;
  --d-sub: #A3A6AD; --d-line: rgba(255, 255, 255, .18);
  /* 글자 크기 아홉 단계. 이 밖의 크기는 쓰지 않습니다 */
  --t1: 12px; --t2: 13px; --t3: 15px; --t4: 16px; --t5: 18px; --t6: 22px; --t7: 30px; --t8: 44px; --t9: 104px;
  /* 간격: 4px 단위 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --side: 40px; --gut: 40px; --max: 1360px; --bar: 64px; --sec: 128px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--top) + 12px); scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--t4); line-height: 1.6; letter-spacing: -0.012em; word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: #fff; }
.tc { font-family: Geist, Pretendard, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: var(--t1); }
.wrap { max-width: calc(var(--max) + var(--side) * 2); margin: 0 auto; padding: 0 var(--side); }
.dark { background: var(--ink); color: #fff; }

/* ━━━━━━━━ 02-parts.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 02-parts.css. Studio만 쓰는 규칙은 studio/css/02-parts.css (2026-11-23 나눔) */
/* 02 공통 부품: 네 칸 격자, 머리 띠, 로고 글자, 읽은 만큼 차는 선, 버튼, 글자 링크, 안심 문구, 등장, 구역 머리 */
/* 네 칸 격자: 첫 화면 차례, 서비스, 문의, 푸터가 모두 이 칸에 맞습니다 */
.q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gut); }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.c3 { grid-column: 3 / span 2; }
/* 머리 띠: 메뉴 왼쪽, 로고 가운데, 문의하기 오른쪽 */
.bar { position: sticky; top: var(--fam); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-in { height: var(--bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bar-nav { display: flex; gap: var(--s6); font-size: var(--t3); font-weight: 500; }
.bar-nav a, .m-nav a { position: relative; padding: 6px 0; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.bar-nav a:hover::after { transform: scaleX(1); }
.logo { grid-column: 2; display: flex; align-items: center; gap: 9px; font: 700 var(--t5)/1 Geist, Pretendard, sans-serif; letter-spacing: -0.03em; }
.logo svg { height: 25px; width: auto; }
/* 로고 글자: 공식 로고(kmong/brand/final) 그대로. RedTech 굵게 + 빨간 빗금 + Studio 보통 굵기 */
.lk { font-weight: 400; white-space: nowrap; }
.lk b { font-weight: 700; }
.lk .ac { color: var(--red); }
.lk .dT { margin-right: -0.0075em; }
.sail { fill: var(--red); }
.hull { fill: var(--ink); }
.dark .hull { fill: #fff; }
.bar .btn { grid-column: 3; justify-self: end; }
/* 읽은 만큼 차는 잉크 선 */
.prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.m-nav { display: none; }
/* 버튼: 각진 상자, 네 가지 상태
   기본: 색 면 + 화살표 칸 / 올림: 다른 색이 왼쪽에서 밀려 들어오고 화살표가 4px 나감 / 누름: 2px 내려앉고 색이 짙어짐 / 초점: 3px 테두리가 3px 떨어져 둘러쌈 */
button.btn { font-family: inherit; }
.btn { --bg: var(--paper); --fg: var(--ink); --bd: var(--ink); --wipe: var(--ink); --wfg: #fff; --press: #2A2C33;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: stretch; min-height: 56px; max-width: 100%;
  border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg); font-size: var(--t5); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em;
  cursor: pointer; transition: color .2s, border-color .2s, transform .06s; }
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--wipe); transform: scaleX(0); transform-origin: 0 50%; transition: transform .32s var(--ease); }
.btn:hover { color: var(--wfg); border-color: var(--ink); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(2px); transition-duration: 0s; }
.btn:active::before { background: var(--press); transform: scaleX(1); transition-duration: 0s; }
.btn-red { --bg: var(--red); --fg: #fff; --bd: var(--red); --press: var(--red-d); }
.b-l { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 22px; text-align: left; }
.b-l em { font-style: normal; font-size: var(--t2); font-weight: 600; opacity: .82; }
.b-l small { font-size: var(--t2); font-weight: 500; opacity: .92; }
.b-a { position: relative; flex: none; width: 52px; display: grid; place-items: center; }
.b-a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .3; }
.b-a i { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover .b-a i { transform: translateX(4px); }
.btn.sm { min-height: 40px; font-size: var(--t3); }
.btn.sm .b-l { padding: 6px 18px; }
.btn.wide { display: flex; width: 100%; }
/* 글자 링크 */
.go { display: inline-flex; gap: 8px; font-size: var(--t3); font-weight: 700; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; }
.go span { transition: transform .3s var(--ease); }
.go:hover span { transform: translateX(4px); }
.go:active { transform: translateY(1px); }
/* 버튼 바로 아래 안심 문구 */
.micro { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--t3); font-weight: 500; line-height: 1.5; }
.micro li { display: flex; align-items: center; gap: 8px; }
.micro li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--ink); }
/* 등장: 한 번만, 위로 14px */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.l > span { display: block; }
.js .l:not(.l0) > span { transform: translateY(104%); transition: transform .9s var(--ease); }
.js .l.in > span { transform: none; }
.l + .l > span { transition-delay: .08s; }
/* 첫 화면 제목은 스크립트를 기다리지 않습니다 */
@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
/* 구역 머리: 굵은 선 + 번호 + 이름 */
.sec { padding: 0 0 var(--sec); }
.sh { position: relative; display: flex; align-items: baseline; gap: 14px; padding: var(--s4) 0 0; font-size: var(--t3); font-weight: 600; }
.sh::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; }
.dark .sh::before { background: #fff; }
.js .sh::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .sh.in::before { transform: none; }

/* ━━━━━━━━ 03-home.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 03-home.css. Studio만 쓰는 규칙은 studio/css/03-home.css (2026-11-23 나눔) */
/* 03 홈(index.html) 구역: 첫 화면, 그림 틀, 서비스, 무료 자료, 포트폴리오, 진행 순서, 약속, 문의 */
/* 첫 화면 (2026-11-22): ① 어둡게 깐 뉴욕 야경 → ② 글자 → ③ 등심선(글자 위로도 지나갑니다). 글자 테두리 선은 쓰지 않습니다(참고 포스터에 없음).
   글자 = 어둡게 덮은 뉴욕에 뚫린 구멍: 바탕과 같은 사진을 같은 크기·같은 자리에 깔아, 글자 자리만 같은 도시가 밝게 보입니다(안팎이 이어짐).
   그래서 .city-bg와 .city-w의 background 크기·위치는 늘 같아야 합니다. 그림자·테두리는 쓰지 않습니다. 글자 크기는 구역 폭(cqw)과 화면 높이(svh) 중 작은 쪽에 맞춥니다 */
.city { position: relative; overflow-x: visible; overflow-y: clip; container-type: inline-size; }
.city-bg, .city-w { position: absolute; inset: 0; background: #1a1b1f 50% 40% / cover no-repeat; }
.city-bg { filter: brightness(.22) saturate(.6); }
/* 겹: 사진(0) → 뒤 선(1) → 글자(2) → 앞 선(3) → 아래 줄(4). 앞 선은 아래로 옅은 그림자를 드리워 글자 위에 떠 보이고, 뒤 선은 조금 옅게 둡니다 */
.city > .city-bg { z-index: 0; }
.city > .fx-b { z-index: 1; }
.city > .fx-b.on { opacity: .7; }
.city > .fx-f { z-index: 3; filter: drop-shadow(0 5px 4px rgba(11, 12, 15, .22)); }
.city.dark > .fx-f { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .7)); }
/* 글자 위아래 여백: 구역 맨 위·맨 아래에서 글자 잉크까지 거리를 같게(사장님 11-22). Anton 두 줄은 줄 상자 안에서 잉크가 0.045em 아래로 치우쳐 그만큼만 올립니다(실측)
   글자 크기는 구역 폭의 25%, 화면 높이의 37%, '구역 높이 - 위아래 115px씩'(두 줄 잉크 높이 1.77em) 중 가장 작은 쪽: 낮은 화면에서도 아래 줄(설명·아래로)이 글자와 안 겹칩니다 */
.city-w { z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding-bottom: .045em; white-space: nowrap;
  font: 400 min(25cqw, 37svh, calc((100svh - var(--top) - 230px) / 1.77))/.84 AntonRT, Impact, sans-serif; letter-spacing: -0.004em;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.15) contrast(1.05); }
.city > .wrap { position: relative; z-index: 4; }
.city-in { min-height: min(calc(100svh - var(--top) - 1px), 980px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--s5); padding-bottom: var(--s5); }
.city-w > span { display: block; padding-top: .06em; }
/* /STUDIO가 REDTECH보다 0.22em 좁아서 글자 사이를 조금 벌려 양끝을 맞춥니다(끝 글자 뒤 벌어짐은 오른쪽 여백으로 되돌림) */
.city-w > span + span { letter-spacing: .0275em; margin-right: -.014em; }
.city-w i { font-style: normal; -webkit-text-fill-color: var(--red); color: var(--red); }
/* Auto·Math: 둘째 줄(/AUTO, /MATH)이 짧아도 글자 크기는 REDTECH와 같게, 왼쪽을 맞추고 뒤는 비웁니다(사장님 11-22).
   두 줄 모두 REDTECH 폭(3.134em, Anton 실측) 상자에 왼쪽 정렬 */
.city-w.wl > span { width: 3.134em; text-align: left; }
.city-w.wl > span + span { letter-spacing: -0.004em; margin-right: 0; }
.city.rd > .credit { color: rgba(255, 255, 255, .6); }
.city-low .by-st b { color: inherit; font-weight: 700; }
.city-low .by-st i { font-style: normal; font-weight: 700; color: var(--red); }
.city-low { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); font-size: var(--t2); color: var(--d-sub); }
.city-low p { display: flex; gap: 0 var(--s3); flex-wrap: wrap; }
.city-low b { color: #fff; font-weight: 600; }
.city-low p > span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 var(--s3) 0 0; vertical-align: middle; background: var(--d-sub); }
.city-dn { color: #fff; font-weight: 600; white-space: nowrap; }
.city-dn i { display: inline-block; margin-left: 6px; font-style: normal; color: var(--red); }
.city-dn:hover i { transform: translateY(3px); }
.city > .credit { position: absolute; z-index: 4; left: auto; right: 8px; bottom: 6px; width: max-content; font-size: 10px; color: rgba(255, 255, 255, .34); }
.city > .credit:hover { color: #fff; }
/* 한눈에(예전 첫 화면) */
.hero { position: relative; overflow-x: visible; overflow-y: clip; } /* 옆으로는 안 자릅니다: 등심선이 화면 양끝까지 갑니다(04-frame) */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease); }
.fx.on { opacity: 1; }
.fork .btn { min-height: 64px; min-width: 264px; }
.hero .micro { margin-top: var(--s4); }
.toc { border-top: 2px solid var(--ink); padding-bottom: var(--s5); background: var(--paper); }
.toc a { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: baseline; padding: var(--s4) 0 0; }
.toc b { font-size: var(--t5); font-weight: 700; letter-spacing: -0.02em; }
.toc i { font-style: normal; transition: transform .3s var(--ease); }
.toc a:hover i { transform: translateX(4px); }
.toc a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
/* 01 서비스: 네 칸. 그림, 이름, 대상, 가격표, 약속, 링크의 줄 높이를 서로 맞춥니다 */
.svcs { row-gap: 0; grid-template-rows: repeat(7, auto); }
@supports not (grid-template-rows: subgrid) {
  .svcs { grid-template-rows: none; }
}
.pk { font-size: var(--t3); border-bottom: 1px solid var(--ink); }
.pk li { display: grid; grid-template-columns: 1fr auto 3.2em; column-gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pk li:first-child { border-top: 1px solid var(--ink); }
.pk li span:nth-child(2) { font-weight: 700; }
.pk li span:nth-child(3) { text-align: right; color: var(--sub); }
/* 서비스 바로 뒤: 고르지 못한 분을 받는 줄. 넷째 칸이 빨간 문의하기 */
.ask { margin-top: var(--s9); padding: var(--s6) 0 0; border-top: 2px solid var(--ink); align-items: center; }
.ask-a .micro { margin-top: var(--s3); font-size: var(--t2); gap: 4px 16px; }
/* 02 무료 자료 */
.free { align-items: end; }
/* 03 포트폴리오 회전판 (11-22): 가운데 실사 모니터(img/dev-display.png, 화면·배경 투명, tools/device_cutout.py),
   그 화면 칸 높이로 작업 화면(img/pf-*.jpg, 16:9 크롬 창)이 한 줄로 늘어서 2초마다 한 칸씩 왼쪽으로 갑니다(index.html 스크립트).
   화면 칸 위치 --sx/--sy/--sw/--sh 는 device_cutout.py 가 알려 주는 값 그대로입니다. 쌓는 순서: 화면들 → 유리 비침 → 모니터 */
.pf { --dw: min(calc(100vw - var(--side) * 2), 820px); padding: var(--s8) 0 var(--sec); overflow: hidden; }
/* 05 약속 */
.vows { margin-top: var(--s7); row-gap: var(--s8); }
/* 06 문의: 페이지에서 가장 큰 빨강. 넷째 칸을 통째로 채운 문의하기 */
.end { padding-bottom: var(--s9); }
.end-cta { padding-top: var(--s8); align-items: end; }
.end-h { font-size: var(--t9); line-height: 1.12; font-weight: 700; letter-spacing: -0.045em; }
.end-p { font-size: var(--t5); margin-top: var(--s5); }
.pick { margin-top: var(--s7); font-size: var(--t3); border-bottom: 1px solid var(--ink); max-width: 46em; }
.pick div { display: grid; grid-template-columns: 9em 1fr; padding: 11px 0; border-top: 1px solid var(--line); }
.pick div:first-child { border-top: 1px solid var(--ink); }
.pick dt { color: var(--sub); }
.pick dd { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; }
.pick a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.pick a:hover { text-decoration-color: currentColor; }
.cta-block { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-content: space-between; min-height: 208px; padding: 20px 22px 18px; background: var(--red); color: #fff; transition: transform .06s; }
.cta-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.cta-block:hover::before { transform: scaleX(1); }
.cta-block:active { transform: translateY(2px); }
.cta-block:active::before { background: var(--red-d); transform: scaleX(1); transition-duration: 0s; }
.cb-k { grid-column: 1 / -1; font-size: var(--t8); line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; }
.cb-m { align-self: end; font-size: var(--t3); font-weight: 600; }
.cb-a { align-self: end; font-size: var(--t8); line-height: .8; font-weight: 700; transition: transform .35s var(--ease); }
.cta-block:hover .cb-a { transform: translateX(8px); }
.end-act .micro { margin-top: var(--s3); font-size: var(--t2); gap: 4px 16px; }
.end-act .btn { margin-top: var(--s5); }

/* ━━━━━━━━ 04-frame.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 04-frame.css. Studio만 쓰는 규칙은 studio/css/04-frame.css (2026-11-23 나눔) */
/* 04 모든 페이지의 틀: 푸터, 왼쪽 고정 이름, 풀페이지, 휴대폰 아래 띠 */
/* 푸터: 어두운 띠. 링크 네 칸 → 정책과 사업자 줄 → 배 마크와 큰 이름(아래가 잘림) */
.foot { font-size: var(--t3); }
.f-cols { padding: var(--s8) 0 var(--s7); row-gap: var(--s6); }
.f-cols h3 { font-size: var(--t2); font-weight: 600; color: var(--d-sub); margin-bottom: var(--s3); }
.f-cols li { padding: 3px 0; }
.f-cols a:hover, .f-pol a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-cols li small { font-size: var(--t2); color: var(--d-sub); margin-left: 4px; }
.f-bot { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s6); padding: var(--s4) 0 0; border-top: 1px solid var(--d-line); font-size: var(--t2); color: var(--d-sub); }
.f-pol { display: flex; flex-wrap: wrap; gap: 4px 20px; color: #fff; }
.f-pol b { font-weight: 700; }
.f-biz { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.f-say { flex-basis: 100%; }
.wm-box { --fs: min(12.4vw, 178px); overflow: hidden; height: calc(var(--fs) * .76); margin-top: var(--s7); }
.wm { display: block; width: max-content; font: 700 var(--fs)/1 Geist, Pretendard, sans-serif; letter-spacing: -0.05em; white-space: nowrap; }
.wm svg { height: .9em; width: auto; vertical-align: -.15em; margin-right: .08em; }
/* 왼쪽 고정 이름: 넓은 화면(1101px 이상)에서만. 공식 로고(돛 + RedTech/Studio)를 시계 방향으로 눕혀
   위에서 아래로 읽히게 세웁니다. 바탕 띠는 없습니다. 본문은 --rail 폭만큼 비켜서 겹치지 않습니다.
   두 겹을 똑같은 자리에 겹칩니다:
   .rail    = 글자와 배 몸통. 흰색 + 차이 섞기라 흰 바탕에서는 검정, 검은 구역에서는 흰색
   .rail-r  = 빨간 돛과 빨간 빗금만. 섞지 않아 빨강 그대로 */
.rail, .rail-r, .sidx { display: none; }
@media (min-width: 1101px) {
  /* ★ 사장님 조절값
     --rail-fs : 글자 최대 크기(px). 이름 길이가 화면 높이(위아래 24px 뺀 것)에 맞게 정해지고, 이 값보다 커지지 않습니다.
     --cut     : 글자 높이(대문자 기준) 가운데 화면 왼쪽 끝 밖으로 나가는 비율(%). 0 = 안 잘림, 50 = 절반 잘림
     --rail-gap: 화면 왼쪽 끝과 글자 아랫선 사이 여백(px). 잘림을 쓸 때는 0 */
  :root { --rail: 72px; --rail-fs: 30; --cut: 0; --rail-gap: 24; --idx: 136px; }
  body { padding-left: var(--rail); padding-right: var(--idx); }
  /* 첫 화면(.city)과 한눈에(.hero): 사진과 등심선은 왼쪽 이름·오른쪽 목록 자리까지, 화면 양끝까지 깝니다(사장님 11-22).
     글자(.city-w)도 사진과 같은 상자여야 사진이 겹치므로 같이 넓히고, 글자는 화면 한가운데에 둡니다 */
  .city > .city-bg, .city > .city-w { left: calc(var(--rail) * -1); right: calc(var(--idx) * -1); width: auto; }
  /* 캔버스는 그림 요소라 left·right만으로는 안 늘어나고 제 그림 폭에 멈춥니다. 폭을 직접 줘야 오른쪽 끝까지 갑니다 */
  .city > .fx, .hero > .fx { left: calc(var(--rail) * -1); right: auto; width: calc(100% + var(--rail) + var(--idx)); }
  /* 글자는 화면 한가운데: 화면 양끝에서 글자 잉크까지 좌우 여백이 같게(사장님 11-22). 글자 양옆 빈틈이 달라 왼쪽 안쪽 여백으로 잉크 기준을 맞춥니다(실측) */
  .city > .city-w { padding-left: .012em; padding-right: 0; }
  .city > .city-w.wl { padding-left: .02em; }
  .on-red .sidx span, .on-red .sidx b { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .75); }
  /* 처음 그릴 때부터 제자리(2026-11-22): 크기·위치를 CSS가 바로 정합니다. 예전에는 기본 100px로 크게 그렸다가
     스크립트가 줄이면서, 페이지를 옮길 때마다 로고가 다시 그려지는 것처럼 보였습니다.
     세로 가운데는 top 50% + 눕힌 뒤 길이의 절반만큼 위로(translateX(-50%)). 스크립트는 화면이 낮아 줄여야 할 때만 --fs, --x를 넣습니다 */
  .rail, .rail-r { display: block; position: fixed; left: 0; top: 50%; z-index: 60; width: max-content; white-space: nowrap;
    font: 700 var(--fs, calc(var(--rail-fs) * 1px))/1 Geist, Pretendard, sans-serif; letter-spacing: -0.05em;
    transform-origin: 0 0;
    transform: translate(var(--x, calc(var(--rail-gap) * 1px + var(--rail-fs) * 0.855px - var(--rail-fs) * var(--cut) * 0.0073px)), 0) rotate(90deg) translateX(-50%); }
  .rail { color: #fff; mix-blend-mode: difference; }
  .rail-r { z-index: 61; color: transparent; pointer-events: none; }
  .rail svg, .rail-r svg { height: .9em; width: auto; vertical-align: -.15em; margin-right: .08em; }
  .rail .lk .ac, .rail .sail { color: transparent; fill: transparent; }
  .rail .hull { fill: #fff; }
  .rail-r .hull { fill: transparent; }
  .rail-r .sail { fill: var(--red); }
  .rail-r .lk .ac { color: var(--red); }
  .rail:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
  .dock { left: var(--rail); }
  /* 검은 구역은 왼쪽 여백까지 칠해서 세로 이름이 그 위에서 흰색으로 바뀌게 합니다 */
  .dark { box-shadow: calc(var(--rail) * -1) 0 0 var(--ink), var(--idx) 0 0 var(--ink); }
  /* 머리 띠도 양옆 여백까지 흰색으로 덮어, 바로 위 검은 구역이 머리 띠 옆으로 비치지 않게 합니다 */
  .bar, .fam { box-shadow: calc(var(--rail) * -1) 0 0 var(--paper), var(--idx) 0 0 var(--paper); }
  /* 오른쪽 구역 목록: 번호 칸 + 이름(늘 보임). 세로 이름과 같은 차이 섞기라 흰 바탕에서는 검정, 검은 구역에서는 흰색 */
  .sidx { display: grid; position: fixed; z-index: 60; right: 24px; top: 50%; transform: translateY(-50%); gap: 6px; mix-blend-mode: difference; color: #fff; }
  .sidx a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .sidx span { font-size: var(--t1); color: #9a9a9a; transition: color .25s; white-space: nowrap; }
  .sidx b { width: 28px; height: 22px; display: grid; place-items: center; border: 1px solid #9a9a9a; font: 700 10px Geist, sans-serif; color: #9a9a9a; transition: background .25s, color .25s, border-color .25s; }
  .sidx a:hover span, .sidx a:focus-visible span, .sidx a.on span { color: #fff; }
  .sidx a.on span { font-weight: 700; }
  .sidx a:hover b { border-color: #fff; color: #fff; }
  .sidx a.on b { background: #fff; border-color: #fff; color: #000; }
  .sidx a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}
/* 풀페이지: PC(961px 이상)에서 휠 한 번 = 구역 하나(fullpage.js).
   구역마다 높이를 '머리 띠 아래 화면'과 똑같이 맞춰서 한 구역 안에서 두 번 굴릴 일이 없게 합니다.
   내용이 화면보다 크면 스크립트가 그 구역 내용을 통째로 줄입니다(fitScenes). */
@media (min-width: 961px) {
  html { scroll-padding-top: var(--top); }
  .snap { height: calc(100vh - var(--top)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: var(--s6) 0; }
  .snap > * { width: 100%; flex: none; }
  .sec.snap, .end.snap, .pf.snap { padding: var(--s6) 0; }
  .hero.snap, .city.snap { padding: 0; overflow-x: visible; overflow-y: clip; }
  .city.snap .city-in { min-height: calc(100vh - var(--top) - 1px); }
  .pk li { padding: 7px 0; }
  #mid { display: none; }
  /* 포트폴리오 회전판: 한 화면에 머리 줄 + 모니터 + 설명. 모니터 폭은 화면 높이에 맞춤(모니터 사진 616:470, 설명 자리 남김) */
  .pf.snap { --dw: min(calc(100vw - var(--rail, 0px) - var(--idx, 0px) - var(--side) * 2), 900px, calc((100svh - var(--top) - 250px) * 616 / 570)); padding: var(--s5) 0 0; }
  /* 세 간격을 똑같이(사장님 11-22): 머리 줄(03 포트폴리오) → 모니터 위 / 모니터 받침 끝 → 화살표 / 자세히 보기 → 구역 맨 아래.
     남는 높이를 세 군데 auto 여백(.pfx 위, .pfx-cap 위, ::after 위)이 똑같이 나눠 가집니다.
     모니터 칸은 눈에 보이는 끝에 맞춥니다: 위는 테두리 윗변(그림 위 투명 1.47%), 아래는 받침 끝(그림 아래 비침 19.4%)을 음수 여백으로 뺌 */
  .pf.snap { justify-content: flex-start; }
  .vows { margin-top: var(--s5); }
  .end-cta { padding-top: var(--s5); }
  .end-h { font-size: clamp(56px, 5.2vw, 96px); }
}
/* 휴대폰 아래 띠: 문의하기 하나 */
.dock { display: none; }

/* ━━━━━━━━ 05-responsive.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 05-responsive.css. Studio만 쓰는 규칙은 studio/css/05-responsive.css (2026-11-23 나눔) */
/* 05 화면 폭별(01~04에 대한 것) + 동작 줄이기 */
/* 좁은 화면 1: 큰 글자만 한 단계 줄입니다 */
@media (max-width: 1279px) {
  :root { --t9: 64px; }
}
/* 메뉴가 로고에 닿기 전에 메뉴 줄을 머리 띠 아래로 내립니다 */
@media (max-width: 900px) {
  .bar-nav { display: none; }
  .m-nav { display: flex; gap: var(--s6); align-items: center; height: 40px; padding: 0 var(--side); font-size: var(--t3); font-weight: 500; border-bottom: 1px solid var(--line); }
}
/* 태블릿: 두 칸 */
@media (max-width: 1100px) {
  :root { --side: 28px; --gut: 28px; --t9: 56px; --t8: 36px; --sec: 96px; }
  .q { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2, .s3, .c3 { grid-column: 1 / -1; }
  .pc { display: none; }
  .toc { row-gap: 6px; }
  .svcs { row-gap: var(--s8); }
  .ask-a, .end-act { grid-column: 1 / -1; margin-top: var(--s6); max-width: 420px; }
  .f-cols { row-gap: var(--s6); }
}
/* 휴대폰: 한 칸 */
@media (max-width: 700px) {
  :root { --side: 16px; --gut: 16px; --bar: 48px; --sec: 72px; --t9: 32px; --t8: 28px; --t7: 23px; --t6: 20px; --t5: 16px; }
  .logo svg { height: 22px; }
  .bar .btn.sm { min-height: 34px; }
  .bar .btn.sm .b-l { padding: 4px 12px; }
  .bar .btn { transition: opacity .25s, visibility 0s; }
  .docked .bar .btn { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  /* 메뉴 줄은 머리 띠 아래에 두고 붙이지 않습니다. 늘 붙어 있는 것은 48px 머리 띠와 46px 아래 띠뿐입니다 */
  .m-nav { justify-content: space-between; gap: 0; }
  /* 첫 화면: 휴대폰은 등심선을 그리지 않고(검은 바탕), 글자 속 사진은 작은 판(1200px)을 씁니다 */
  .city-in { min-height: 128cqw; padding-top: 0; padding-bottom: var(--s5); }
  .city-w { font-size: 29cqw; padding-bottom: 46cqw; }
  .city-low { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .city-low p { flex-direction: column; gap: 4px; }
  .city-low p > span::before { display: none; }
  .fork .btn { flex: 1 1 0; min-width: 0; min-height: 56px; font-size: var(--t3); }
  .fork .b-l { padding: 6px 12px; }
  .toc { row-gap: 0; padding-bottom: 0; }
  .toc a { padding: 10px 0 12px; column-gap: 8px; }
  .toc a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .toc b { font-size: var(--t3); }
  .toc i { display: none; }
  .q.one, .svcs, .ask, .free, .vows, .end-cta { grid-template-columns: minmax(0, 1fr); }
  .ask-a, .end-act { margin-top: var(--s5); max-width: none; }
  .end { padding-bottom: var(--s8); }
  .end-cta { padding-top: var(--s6); }
  .end-h { line-height: 1.18; }
  .end-p { font-size: var(--t4); margin-top: var(--s4); }
  .pick { margin-top: var(--s6); }
  .pick div { grid-template-columns: 1fr; row-gap: 4px; }
  .cta-block { min-height: 132px; padding: 16px 16px 14px; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s7) 0 var(--s6); }
  .f-biz { margin-left: 0; }
  .wm-box { margin-top: var(--s6); }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
  .dock.on { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .dock .btn { min-height: 46px; font-size: var(--t4); border-width: 0; }
  .dock .b-l { flex-direction: row; align-items: center; gap: 10px; padding: 6px 16px; }
}
@media (max-width: 370px) {
  :root { --t9: 28px; }
}
/* 동작 줄이기(html.still): 고정 구간과 배경 움직임을 끄고 모든 내용을 바로 보여 드립니다 */
html.still { scroll-behavior: auto; }
html.still *, html.still *::before, html.still *::after { transition: none !important; animation: none !important; }
html.still .rv { opacity: 1; transform: none; }
html.still .l > span, html.still .sh::before { transform: none; }
/* 스크립트가 꺼진 브라우저에서도 기기 설정을 따릅니다 */
@media (prefers-reduced-motion: reduce) {
  html:not(.js) { scroll-behavior: auto; }
}

/* ━━━━━━━━ 06-sub.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 06-sub.css. Studio만 쓰는 규칙은 studio/css/06-sub.css (2026-11-23 나눔) */
/* ════════ 하위 페이지 (2026-11-21) ════════
   홈과 같은 뼈대: 머리 띠, 왼쪽 누운 이름, 오른쪽 구역 목록, 구역 머리(.sh), 제목(.h2), 마지막 문의(.end), 어두운 푸터.
   등심선 배경(canvas.fx)은 첫 화면과 '등심선 판(.cpanel)'에 중간중간 씁니다. 다섯 번째 선은 빨강.
   빨간 네모 표시는 쓰지 않습니다. */
/* 지금 보고 있는 메뉴 */
.bar-nav a[aria-current="page"]::after { transform: scaleX(1); }
.m-nav a[aria-current="page"] { font-weight: 700; }
/* 하위 페이지 첫 화면 */
.ph { position: relative; isolation: isolate; overflow: hidden; }
.ph > .fx { z-index: -1; }
.ph-h { font-size: clamp(40px, 3.9vw, 60px); line-height: 1.16; font-weight: 700; letter-spacing: -0.045em; }
.ph-h em { font-style: normal; color: var(--red); }
.ph-h.big { font-size: var(--t9); line-height: 1.12; }
.note-l { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3) var(--s6); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--t4); font-weight: 600; }
.qa3 .w { font-size: var(--t2); font-weight: 600; color: var(--sub); }
/* 자주 묻는 질문 · 자세한 조건: 펼치는 줄 */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 24px; align-items: baseline; padding: 15px 0; font-size: var(--t4); font-weight: 700; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; justify-self: end; font: 400 22px/1 Geist, sans-serif; transition: transform .3s var(--ease); }
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.faq summary .tc { color: var(--sub); }
.faq .a { padding: 0 0 var(--s5) 3.2em; font-size: var(--t3); }
.faq .a > * + * { margin-top: var(--s3); }
.faq .a p { max-width: 48em; }
.faq .a h4 { font-size: var(--t4); font-weight: 700; letter-spacing: -0.02em; }
.faq2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); border-top: 2px solid var(--ink); }
.faq2 .faq { border-top: 0; }
/* 문의 양식 */
.form { display: grid; gap: var(--s5); }
.fld { display: grid; gap: 6px; border: 0; }
.fld > span, .fld legend { font-size: var(--t3); font-weight: 700; }
.fld small { font-size: var(--t2); color: var(--sub); font-weight: 400; }
.fld input[type=text], .fld input[type=email], .fld input[type=tel], .fld input[type=url], .fld input[type=password], .fld textarea, .fld select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--ink); background: var(--paper); font: inherit; font-size: var(--t4); color: var(--ink); }
.fld textarea { min-height: 150px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; padding: 9px 14px; border: 1.5px solid var(--ink); font-size: var(--t3); font-weight: 600; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t3); }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
/* 풀페이지: 한 화면에 안 들어가는 긴 구역(.tall)은 화면보다 길게 두고 안에서 보통 스크롤합니다 */
@media (min-width: 961px) {
  .snap.tall { height: auto; min-height: calc(100vh - var(--top)); justify-content: flex-start; padding: var(--s8) 0 var(--s9); }
  .ph.snap { padding: 0; }
}
@media (max-width: 1100px) {
  .faq2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .faq summary { grid-template-columns: 2.6em minmax(0, 1fr) 20px; font-size: var(--t3); }
  .faq .a { padding-left: 0; }
}

/* ━━━━━━━━ 07-fam.css ━━━━━━━━ */
/* [공통] 셋(Studio·Auto·Math)이 같이 쓰는 07-fam.css. Studio만 쓰는 규칙은 studio/css/07-fam.css (2026-11-23 나눔) */
/* ===== 레드테크 묶음 띠 (2026-11-21) =====
   위시켓·패스트캠퍼스처럼 형제 사이트를 맨 위 얇은 줄과 꼬리말에 묶습니다.
   지금 사이트는 잉크, 다른 사이트는 회색 글자(올리면 잉크, 밑줄 없음). 머리 띠와 함께 위에 붙어 따라옵니다(사장님 11-21).
   구역 높이·스크롤 여백은 두 띠를 합친 --top으로 잽니다. */
:root { --fam: 48px; --top: calc(var(--bar) + var(--fam)); } /* --top = 붙어 있는 두 띠(묶음 띠 + 머리 띠)의 높이 */
/* 2026-11-22 사장님: "클릭한 게 왼쪽에 메인 로고처럼 크게, 나머지는 옆에 조그맣게". 지금 사이트가 늘 맨 앞(조각 파일에서 순서를 정함).
   누르면 연출 없이 바로 넘어갑니다(사장님 11-22: "너무 정신없다, 그냥 팍 하고 가면 돼") */
.fam { position: sticky; top: 0; z-index: 51; height: var(--fam); background: var(--paper); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1; }
.fam-in, .fam nav { height: 100%; display: flex; align-items: center; }
.fam a { display: flex; align-items: baseline; gap: 7px; padding: 0 16px; color: var(--sub); border-left: 1px solid var(--line); white-space: nowrap; }
.fam a:first-child { padding-left: 0; border-left: 0; }
.fam a + a { padding-top: 3px; padding-bottom: 3px; }
.fam b { font: 700 13px/1 Geist, Pretendard, sans-serif; letter-spacing: -0.02em; }
.fam a > span { font-size: 12px; }
.fam a[aria-current] { padding-right: 28px; color: var(--ink); }
.fam a[aria-current] b { font-size: 22px; letter-spacing: -0.035em; }
.fam a[aria-current] > span { font-size: 13px; font-weight: 600; }
.fam b i, .f-fam b i { font-style: normal; color: var(--red); }
/* 공식 로고대로 RedTech만 굵게, 뒤의 Studio·Math·Auto는 보통 굵기(사장님 11-22) */
.fam b .w, .f-fam b .w { font-weight: 400; }
.fam a:not([aria-current]):hover { color: var(--ink); }
.f-fam { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding: var(--s4) 0; border-top: 1px solid var(--d-line); font-size: var(--t2); color: var(--d-sub); }
.f-fam a { color: #fff; }
.f-fam a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: 4px; }
.f-fam b { margin-right: 6px; font: 700 var(--t3)/1 Geist, Pretendard, sans-serif; letter-spacing: -0.02em; }
.fam span em { font-style: normal; }
/* 폰(2026-11-22): 지금 사이트 칸을 조금 넓게, 세 칸 모두 이름 아래에 짧은 설명을 왼쪽 끝을 맞춰 적습니다(외주 제작 / 강사 전용 / 자동화 강의) */
@media (max-width: 700px) {
  :root { --fam: 50px; }
  .fam-in { padding-right: 0; }
  .fam nav { width: 100%; }
  .fam a { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 0 10px; }
  .fam a + a { padding-top: 0; padding-bottom: 0; }
  .fam a[aria-current] { flex-grow: 1.3; padding-right: 10px; padding-left: 0; }
  .fam a[aria-current] b { font-size: 16px; }
  .fam b { font-size: 12px; }
  .fam a > span, .fam a[aria-current] > span { font-size: 12px; line-height: 1; }
  .fam span em { display: none; }
}
@media (max-width: 370px) {
  .fam a { padding: 0 7px; }
  .fam a[aria-current] b { font-size: 15px; }
}
/* 페이지를 옮길 때 맨 위 두 띠가 다시 그려지며 깜빡이지 않게(사장님 11-22: "고정되어 있어야지").
   같은 사이트 안 페이지 이동을 브라우저의 페이지 전환으로 묶어, 새 페이지가 다 준비될 때까지 이전 화면을 붙잡았다가 한 번에 바꿉니다.
   두 띠에는 이름을 붙여 따로 다루고, 움직이는 연출은 모두 끕니다(누르면 그냥 팍 하고 바뀜). 지원 안 하는 브라우저는 예전처럼 넘어갑니다 */
@view-transition { navigation: auto; }
.fam { view-transition-name: rt-fam; }
.bar { view-transition-name: rt-bar; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
