/* 자동으로 만든 파일입니다. 고치지 마시고 homepage/site2/math/css/ 의 파일을 고친 뒤 python homepage/tools/build.py 를 돌리십시오.
   순서: 00-city.css, 00-theme.css, 00-top.css, 01-math.css, 02-flow.css */

/* ━━━━━━━━ 00-city.css ━━━━━━━━ */
/* Math 첫 화면(.city.mt, 빨강 판 .rd, .on-red) 모양. 예전엔 site2/css(공통)에 섞여 있던 것을 2026-11-23에 옮김 (00-city.css) */

/* ── 03-home.css에서 옮김 ── */
.city.mt .city-bg, .city.mt .city-w { background-image: url("../img/city-math-2000.jpg"); background-image: -webkit-image-set(url("../img/city-math-2000.jpg") 1x, url("../img/city-math-3840.jpg") 2x); background-image: image-set(url("../img/city-math-2000.jpg") 1x, url("../img/city-math-3840.jpg") 2x); }
@media (min-width: 1921px) {
  .city.mt .city-bg, .city.mt .city-w { background-image: url("../img/city-math-3840.jpg"); }
}
/* 빨강 판(.city.rd, Math): 빨강 바탕에 흑백 도시를 밝게 겹치기(screen)로 얹어 불빛만 비치고, 글자 자리만 원래 색(브루클린 브리지, 하늘은 짙은 파랑으로 바꾼 사진, 사장님 11-22 D안). 빗금은 흰색, 등심선은 흰 선 + 다섯 번째 잉크 */
.city.rd { background: var(--red); color: #fff; }
.city.rd .city-bg { filter: grayscale(1) contrast(1.7) brightness(.75); mix-blend-mode: screen; opacity: .5; }
.city.rd .city-w { filter: brightness(1.15) saturate(1.1) contrast(1.05); }
.city.rd .city-w i { -webkit-text-fill-color: #fff; color: #fff; }
.city.rd > .fx-f { filter: drop-shadow(0 6px 5px rgba(11, 12, 15, .35)); }
.city.rd .city-low { color: rgba(255, 255, 255, .78); }
.city.rd .city-low p > span::before { background: currentColor; }
.city.rd .city-low b, .city.rd .city-dn { color: #fff; }
.city.rd .city-dn i, .city.rd .city-low .by-st i { color: var(--ink); }

/* ── 04-frame.css에서 옮김 ── */
@media (min-width: 1101px) {
  .city.rd { box-shadow: calc(var(--rail) * -1) 0 0 var(--red), var(--idx) 0 0 var(--red); }
  /* 빨강 판이 화면에 있을 때(html.on-red, math/index.html이 붙임): 차이 섞기를 끄고 흰 글자로. 안 그러면 빨강 위에서 하늘색이 됩니다 */
  .on-red .rail, .on-red .sidx { mix-blend-mode: normal; }
  .on-red .rail-r .sail { fill: var(--ink); }   /* 왼쪽 이름 빗금은 11-29부터 빨강(BlackTech, 검은 첫 화면 기준). 04-frame 기본값 그대로 */
  .on-red .sidx a.on span { color: #fff; }
  .on-red .sidx a.on b { background: #fff; border-color: #fff; color: var(--red); }
}

/* ── 05-responsive.css에서 옮김 ── */
@media (max-width: 700px) {
  .city.mt .city-bg, .city.mt .city-w { background-image: url("../img/city-math-1200.jpg"); }
}

/* ━━━━━━━━ 00-theme.css ━━━━━━━━ */
/* RedTech/Math 빨강 판 (2026-11-22). ../style.css 위에 덮어씁니다.
   세 사이트가 브랜드 세 색을 하나씩 맡습니다: Studio 흰 판, Auto 검은 판, Math 빨강 판.
   첫 화면(빨강 + 뉴욕)에 맞춰 맨 위 두 띠와 아래 구역도 모두 빨강입니다(사장님 11-22).
   빨강 위의 강조는 잉크(검정), 글자는 흰색. 바닥글만 잉크 띠 그대로 둡니다.
   파일 순서: 00 바탕·띠·버튼 → 01 구역 */

/* 맨 위 띠 없음(사장님 11-29): 머리 띠(.bar)는 뺐고, 사이트 이동 글자 셋(.fam)은 바탕 없이 검은 첫 화면 위에 얹음.
   띠가 차지하는 높이가 없으니 --bar·--fam 모두 0 → --top 0, 구역마다 화면 전체 */
html.math { --bar: 0px; --fam: 0px; }
html.math { --paper: #DF2E38; --line: rgba(255, 255, 255, .32); --sub: rgba(255, 255, 255, .84); --tray: #DF2E38; background: var(--paper); }
html.math body { background: var(--paper); color: #fff; }
.math :focus-visible { outline-color: #fff; }
.math ::selection { background: var(--ink); color: #fff; }

/* 사이트 이동 글자 셋: 따라 내려오지 않고 첫 화면 맨 위에 붙어 같이 올라감. 바탕·밑줄·옆 칠 없음, 빗금은 빨강(검은 바탕이라, 사장님 11-29) */
.math .fam { position: absolute; top: 0; left: var(--rail, 0px); right: var(--idx, 0px); height: 48px; background: none; border-bottom: 0; box-shadow: none; }
@media (max-width: 700px) { .math .fam { height: 50px; } }
/* 넓은 화면: 화면 맨 위와 글자 사이를 띄움(사장님 11-30 "너무 좁아"). 글자 윗선이 맨 위에서 약 40px(900px 높이) = 맨 아래 숫자 셋과 같은 간격(00-top.css) */
@media (min-width: 701px) { .math .fam { top: clamp(12px, 3vh, 36px); } }
.math .fam a { color: rgba(255, 255, 255, .72); border-left-color: var(--line); }
.math .fam a[aria-current], .math .fam a:not([aria-current]):hover { color: #fff; }
.math .fam b i { color: var(--red); }
/* 왼쪽 세로 이름 빗금: 구역 따라 바뀜(사장님 11-29). 빨강 구역 위 = 잉크, 검은 첫 화면·잉크 바닥글 위 = 빨강.
   html.rail-dark 는 index.html 맨 아래 스크립트가 화면 가운데 줄에 있는 구역을 보고 붙임 */
.math .rail-r .lk .ac { color: var(--ink); transition: color .3s; }
.math.rail-dark .rail-r .lk .ac { color: var(--red); }
.math .sail { fill: var(--ink); }
.math .hull { fill: #fff; }
.math .foot .sail { fill: var(--red); }
.math .foot .lk .ac { color: var(--red); }
.math .bar-nav a::after, .math .prog { background: #fff; }
.math .m-nav { border-bottom-color: var(--line); }

/* 버튼: 빨강 위에서는 흰 면 + 잉크 글자, 올리면 잉크가 밀려 들어옴 */
.math .btn-red { --bg: #fff; --fg: var(--ink); --bd: #fff; --wipe: var(--ink); --wfg: #fff; --press: #2A2C33; }
.math .btn-red:hover { border-color: var(--ink); }
.math .go { color: #fff; }

/* 왼쪽 세로 이름·오른쪽 목록: 페이지 전체가 빨강이라 늘 흰 글자(04-frame.css의 on-red 규칙을 늘 켬, html class에 on-red) */

/* ━━━━━━━━ 00-top.css ━━━━━━━━ */
/* Math 첫 화면 = 시안 19-E-정면 확정본(2026-11-29 사장님 "응 넣어줘"). 원본은 site2/_math-첫화면시안/19-E-정면.html + hero2.css.
   검은 공간, 정면 모니터 한 대(화면 속은 변형문제 엔진 작업 화면 iframe, math/screen5/), 모니터 뒤를 도는 문항 카드 고리(math/e19/orbit.js),
   바닥은 04의 어두운 돌(바탕판 그림 math/e19/plate-*-stone04*.jpg), 위 가운데 BlackTech/Math 로고, 맨 아래 숫자 셋.
   시안과 다른 점: ① 높이는 화면 전체가 아니라 '맨 위 두 띠 아래 화면'(구역 = 한 화면, 풀페이지) → svh 대신 구역 높이(cqh)
   ② 시안의 그늘 세기 변수 --top/--bot 은 사이트의 --top(두 띠 높이)과 겹쳐 --sh-top/--sh-bot 으로 바꿈
   ③ 모니터 그림 클래스 .mon 은 01-math.css 의 .mon(한눈에 구역 모니터)과 겹쳐 .e19-mon 으로 바꿈
   ④ 왼쪽 이름·오른쪽 목록 자리(본문 좌우 여백)까지 검정이 가도록 구역을 그만큼 넓힘(무대는 화면 한가운데) */
.math .hero.bt { position: relative; isolation: isolate; overflow: hidden; container-type: size;
  height: calc(100vh - var(--top)); height: calc(100svh - var(--top)); min-height: 560px; padding: 0;
  margin-left: calc(var(--rail, 0px) * -1); margin-right: calc(var(--idx, 0px) * -1); width: auto;
  background: var(--ink); color: #fff; --sh-top: 0; --sh-bot: .55; --lf: clamp(28px, 2.36vw, 56px); }
@media (min-width: 961px) { .math .hero.bt { height: calc(100vh - var(--top)); overflow: hidden; } }
/* 글자 읽힘용 옅은 그늘(사진 처리, 장식 아님): 아래는 숫자 */
.math .hero.bt::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 12, 15, var(--sh-top)) 0, rgba(11, 12, 15, 0) 34%, rgba(11, 12, 15, 0) 72%, rgba(11, 12, 15, var(--sh-bot)) 100%); }

/* 무대(1920×1080 비율): 폭에 맞추고 아래에 붙임. 층: 바탕판 → 멈춘 화면 → 화면 iframe → 유리 → 모니터 → 카드 고리(orbit.js 가 넣음) */
.bt .e19 { position: absolute; left: 50%; bottom: 0; z-index: -2; transform: translateX(-50%);
  width: min(100%, calc(100cqh * 16 / 9)); aspect-ratio: 1920 / 1080; overflow: hidden; background: var(--ink); }
.bt .e19 > * { position: absolute; }
.bt .e19 .plate { left: 0; top: 0; width: 100%; height: 100%; display: block; max-width: none; }
.bt .e19 .still { z-index: 2; max-width: none; }
.bt .e19 iframe { z-index: 3; background: var(--ink); border: 0; }
.bt .e19 .shadows { left: 0; top: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.bt .e19 .e19-mon { z-index: 6; pointer-events: none; max-width: none; margin: 0; }
.bt .e19 .cards { left: 0; top: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
/* 유리 비침: Design Bank 효과/화면-유리비침 .glass 규칙 복사(값 그대로) */
.bt .e19 .glass { --glass-hi: rgba(255, 255, 255, .10); --glass-lo: rgba(0, 0, 0, .05); --glass-edge: rgba(0, 0, 0, .10); z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, var(--glass-hi) 0%, rgba(255, 255, 255, 0) 38%), linear-gradient(0deg, var(--glass-lo), rgba(0, 0, 0, 0) 30%);
  box-shadow: inset 0 0 18px var(--glass-edge); }

/* 로고: 위 가운데(사이버트럭 비율, 폭 약 18%), 구역 높이 25% 자리(사장님 11-29) */
.bt .head { position: absolute; left: 0; right: 0; top: calc(25cqh - var(--lf) * .5); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.bt .mark { font-family: Geist, sans-serif; font-weight: 400; font-size: var(--lf); line-height: 1; letter-spacing: -.04em; white-space: nowrap; color: #fff; margin: 0; }
.bt .mark b { font-weight: 700; }
.bt .mark .ac { color: var(--red); margin: 0 .02em 0 .01em; }

/* 맨 아래 숫자 셋: 사이에 가는 세로줄. 맨 아래와 띄움(사장님 11-30, 900px 높이에서 약 40px = 맨 위 이동 글자와 같은 간격). 폰은 아래 @media */
.bt .stats { position: absolute; left: 50%; bottom: clamp(24px, 4.5cqh, 52px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, auto); list-style: none; text-align: center; margin: 0; padding: 0;
  width: auto; }   /* 04-frame 풀페이지 규칙 .snap > * { width: 100% } 이 숫자 셋을 화면 폭으로 벌리지 않게 */
.bt .stats li { padding: 0 clamp(14px, 1.3vw, 30px); }
.bt .stats li + li { border-left: 1px solid rgba(255, 255, 255, .32); }
.bt .stats b { display: block; font-family: Geist, sans-serif; font-weight: 700; font-size: clamp(20px, 1.45vw, 32px); line-height: 1; letter-spacing: -.03em; }
.bt .stats b small { font-family: Pretendard, "Malgun Gothic", sans-serif; font-size: .62em; font-weight: 400; margin-left: .12em; letter-spacing: 0; }
.bt .stats span { display: block; margin-top: 5px; font-size: clamp(11px, .7vw, 14px); color: rgba(255, 255, 255, .86); white-space: nowrap; }

/* 넓은 화면: 무대(모니터·화면·바닥·카드 고리)를 통째로 75%(사장님 11-29). 모니터 가운데(무대 59.2%)를 축으로 줄이고 가장자리는 잉크로 녹임 */
@media (min-width: 701px) {
  .bt .e19 { transform: translateX(-50%) scale(.75); transform-origin: 50% 59.2%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, #000 86%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, #000 86%, transparent); mask-composite: intersect; }
}
/* 폰: 무대가 화면 폭을 꽉 채움(cover). 모니터가 로고와 겹치지 않게 e19.js fit() 가 무대 크기·자리를 고름. 폰 판은 양옆을 12.5%씩 더 그려 둠 */
@media (max-width: 700px) {
  .math .hero.bt { --lf: min(7.4vw, 30px); --sh-bot: .5; min-height: 560px; height: calc(100svh - var(--top)); }   /* 폰 메뉴 줄은 11-29에 뺌. 아래 문의 띠는 이 구역이 보이는 동안 숨음(data-nodock) */
  .bt .e19 { width: max(100%, calc(100cqh * 1200 / 2600)); aspect-ratio: 1200 / 2600; overflow: visible; }
  .bt .e19 .plate { left: -12.5%; width: 125%; }
  .bt .head { top: calc(30cqh - var(--lf) * .5); }   /* 로고 가운데 = 구역 맨 위:맨 아래 3:7 자리(사장님 11-29). 무대는 e19.js fit() 가 그 아래로 내림 */
  .bt .stats { left: 12px; right: 12px; transform: none; grid-template-columns: repeat(3, 1fr); bottom: 22px; }
  .bt .stats li { padding: 0 6px; }
  .bt .stats b { font-size: 20px; }
  .bt .stats span { font-size: 11px; white-space: normal; line-height: 1.35; }
}

/* ━━━━━━━━ 01-math.css ━━━━━━━━ */
/* RedTech/Math (2026-11-22). Studio의 style.css 위에 얹습니다.
   본보기: 애플 제품 페이지. 가운데 정렬 큰 제목 → 한 줄 설명 → 링크 둘 → 제품 그림.
   구역은 모두 빨강 판입니다(11-22, 첫 화면 빨강에 맞춤, 바탕은 00-theme.css). 빨강 위 강조는 잉크, 종이(문제지·화면)는 흰색.
   모서리 0, 그림자 0, 그라데이션 0은 그대로입니다. */

/* 공통: 애플식 가운데 머리 */
.mx { text-align: center; }
.mx-k { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t3); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.mx-k small { font-size: var(--t2); font-weight: 500; color: var(--sub); }
.mx-h { margin: var(--s4) auto 0; font-size: var(--t8); line-height: 1.14; font-weight: 800; letter-spacing: -0.045em; }
.mx-p { max-width: 640px; margin: var(--s4) auto 0; font-size: var(--t5); line-height: 1.6; color: var(--sub); }
.mx-go { display: flex; justify-content: center; align-items: center; gap: var(--s6); margin-top: var(--s5); flex-wrap: wrap; }

/* 상태 표시: 네모 점 + 글자. 쓰는 중은 잉크, 준비 중은 흐린 흰색 */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t2); font-weight: 600; color: var(--sub); }
.st::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.st.on { color: var(--ink); }

/* 01 첫 화면: 큰 제목 + 실제 프로그램 화면 */
.mh .mx-h { font-size: var(--t9); line-height: 1.06; letter-spacing: -0.055em; }
.mh .mx-h em { font-style: normal; color: var(--ink); }
/* 실사 모니터(2026-11-22 사장님: "모니터나 아이패드 써서 더 실감나게"): Studio 홈과 같은 오린 모니터(../img/dev-display.png)의
   투명한 화면 칸에 화면 그림을 깔고 그 위에 유리 빛·몸체를 얹습니다. 화면 칸 위치는 tools/device_cutout.py가 잰 값. 그림 아래 19.4%는 접지 그림자 */
.mon { max-width: 1040px; margin: var(--s7) auto 0; }
.mon-dev { --sx: 2.695%; --sy: 2.561%; --sw: 94.545%; --sh: 57.439%; position: relative; width: 100%; aspect-ratio: 616 / 570; }
.mon-scr { position: absolute; left: calc(var(--sx) - 1px); top: calc(var(--sy) - 1px); width: calc(var(--sw) + 2px); height: calc(var(--sh) + 2px);   /* 1px 넉넉히: 빨강 바탕이 화면 가장자리 틈으로 비치지 않게(남는 건 테두리가 덮음) */
  z-index: 1; object-fit: cover; object-position: top left; background: #fff; }
.mon-glass { position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); z-index: 2; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 38%), linear-gradient(0deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, 0) 30%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .10); }
.mon-body { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* 02 제품 줄: 네 칸 */
.lu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s7); border-top: 1px solid var(--ink); text-align: left; }
.lu li { border-right: 1px solid var(--line); }
.lu li:last-child { border-right: 0; }
.lu a { display: flex; flex-direction: column; height: 100%; padding: var(--s5) var(--s5) var(--s6); transition: background .25s; }
.lu a:hover { background: var(--red-d); }
.lu b { font: 700 var(--t3)/1 Geist, sans-serif; color: var(--ink); }
.lu h3 { margin-top: var(--s5); font-size: var(--t6); line-height: 1.3; letter-spacing: -0.03em; }
.lu p { margin-top: var(--s2); font-size: var(--t3); color: var(--sub); flex: 1; }
.lu .st { margin-top: var(--s5); }
.lu .go { align-self: flex-start; margin-top: var(--s4); }

/* 03 복습영상: 찍은 그대로(선생님 PC 모니터) → 자동 편집 후(학생이 든 아이패드). 두 그림은 같은 비율(616:570 ≈ 1320:1222),
   아이패드 사진은 바탕 빨강을 페이지 빨강으로 바꿔 테두리 없이 녹아듭니다(tools/math_devices.py). 설명은 기기 아래 가운데 */
/* 간격(사장님 11-22 '정렬과 배열'): 그림마다 눈에 보이는 끝(기기·손)까지만 칸으로 잡고(.vis, --l/--r = 그림 좌우 빈 곳 비율),
   그 칸들과 화살표 사이를 같은 간격(--gap)으로 둡니다. 설명도 눈에 보이는 기기 가운데에 섭니다 */
.vis { flex: none; width: calc(var(--w) * (1 - var(--l) - var(--r))); text-align: center; }
.vis > :first-child { width: var(--w); max-width: none; margin-left: calc(var(--w) * var(--l) * -1); }
.arw { flex: none; display: block; width: 88px; color: var(--ink); }
.arw svg { display: block; width: 100%; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }   /* 가는 긴 화살표 */
.ba { --w: min(520px, calc((100vw - var(--side) * 2 - 88px - 2 * var(--gap)) / 2)); --gap: var(--s8); display: flex; justify-content: center; align-items: flex-start; gap: var(--gap); margin: var(--s7) auto 0; }
.ba .mon-dev { margin-bottom: -17.95%; }   /* 모니터 그림 아래 접지 그림자(19.4%)는 설명 뒤로: 받침 끝 = 아이패드 그림 끝 */
.ba .ipad { display: block; height: auto; }
.ba .arw { margin-top: calc(var(--w) * .29 - 8px); }   /* 두 화면의 가운데 높이(그림 폭의 29%) */
.ba figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--s2); font-size: var(--t3); font-weight: 700; }
.ba figcaption span { font: 700 var(--t1)/1.6 Geist, sans-serif; color: var(--sub); letter-spacing: .04em; }
.pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); max-width: 1120px; margin: var(--s7) auto 0; text-align: left; }
.pts li { padding-top: var(--s4); border-top: 1px solid var(--line); }
.pts b { font: 700 var(--t3)/1 Geist, sans-serif; color: var(--ink); }
.pts h3 { margin-top: var(--s3); font-size: var(--t5); letter-spacing: -0.02em; }
.pts p { margin-top: var(--s1); font-size: var(--t3); color: var(--sub); }

/* 04 쇼츠(사장님 11-22): 모니터(16:9 복습영상, 9:16 점선 칸) → 아이폰(세로로 자른 화면) → 손에 든 폰(자막 입힌 쇼츠).
   복습영상 구역처럼 가운데 머리 → 기기 줄 → 설명 두 칸. 기기 셋은 같은 높이(--hd) 칸 안에 세로 가운데, 설명 줄은 한 줄로 맞춤.
   가운데 아이폰은 손에 든 폰과 같은 모양(다이내믹 아일랜드·얇은 검은 테두리·짙은 티타늄 틀)으로 실제 크기 비율대로 그린 정면(dev-iphone.png, 화면 칸 투명) */
.cut { --hd: 300px; --gap: var(--s8); display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: start; gap: var(--gap); margin: var(--s7) auto 0; }   /* 가운데 그림이 정확히 가운데: 양끝 칸을 같은 폭(1fr)으로 */
.cut > :first-child { justify-self: end; }
.cut > :last-child { justify-self: start; }
.c-box { height: var(--hd); display: flex; align-items: center; justify-content: center; }
.c-box > * { flex: none; width: 100%; }
.c-mon { --w: calc(var(--hd) / .745); }
.c-mon .mon-dev { margin-bottom: -17.95%; }          /* 받침 아래 접지 그림자는 칸 밖으로: 칸 높이 = 모니터 위 ~ 받침 끝 */
.c-ip { --w: calc(var(--hd) * .94 / 2.042); }
.c-ph { --w: calc(var(--hd) * 1.15 / 1.294); }   /* 사진 속 폰은 그림 높이의 약 79%라 그림을 칸보다 15% 크게(넘치는 위아래는 빨강 바탕) */
.cut figcaption { position: relative; z-index: 1; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--s3); font-size: var(--t3); font-weight: 700; }
.cut figcaption span { font: 700 var(--t1)/1.6 Geist, sans-serif; color: var(--sub); letter-spacing: .04em; }
.cut .mon-scr { overflow: hidden; }
.cut .mon-scr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crop { position: absolute; top: 0; bottom: 0; left: 77.5%; aspect-ratio: 9 / 16; border: 2px dashed #fff; background: rgba(255, 255, 255, .16); transform: translateX(-50%); }
.ip-dev { --sx: 4.735%; --sy: 1.910%; --sw: 90.529%; --sh: 96.180%; position: relative; width: 100%; aspect-ratio: 718 / 1466; }
.ip-scr { position: absolute; left: calc(var(--sx) - 1px); top: calc(var(--sy) - 1px); width: calc(var(--sw) + 2px); height: calc(var(--sh) + 2px); z-index: 1; overflow: hidden; background: #000; }   /* 둥근 화면 귀퉁이는 몸체 그림이 가림 */
.ip-scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 87.1% 50%; }   /* 강사가 화면 가운데(손에 든 폰 쇼츠와 같은 자리) */
.ip-body { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.ph { display: block; width: 100%; height: auto; }
.cut .arw { margin-top: calc(var(--hd) / 2 - 8px); }
.pts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }

/* 05 변형문제: 원본 한 장 → 변형 두 장. 문제지는 흰 종이(빨강 판 위에 놓인 시험지) */
.vr { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s4); align-items: stretch; max-width: 1180px; margin: var(--s7) auto 0; text-align: left; }
.sheet { --line: rgba(11, 12, 15, .14); --sub: #5A5E66; display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 1px solid #fff; padding: var(--s5); }
.sheet.src { border-color: var(--ink); }
.sheet header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--t2); font-weight: 700; }
.sheet header span { font: 700 var(--t1)/1 Geist, sans-serif; color: var(--sub); letter-spacing: .04em; }
.sheet.src header { color: var(--ink); }
.sheet:not(.src) header { color: var(--red); }
.sheet p { margin-top: var(--s4); font-size: var(--t3); line-height: 1.85; }
/* 수식(사장님 11-22 '수식이 이상하고 기울어져 있음'): 바로 선 글자, 등호·더하기 앞뒤 고른 간격, lim 아래에 x→1, 분수는 가로줄 위아래 가운데.
   조사(가·를·의)는 수식에 붙여 씁니다(시험지 조판) */
.sheet p { line-height: 2; }
.sheet .tex.k { display: inline-block; vertical-align: middle; margin: 6px 0; font-family: inherit; font-size: 1em; word-spacing: normal; }
.sheet .tex.k .katex { font-size: 1.12em; }
.sheet .m { font-family: "Cambria Math", "Times New Roman", serif; font-style: normal; font-size: 1.12em; white-space: nowrap; word-spacing: -.05em; }
.sheet .m sup { font-size: .68em; line-height: 0; vertical-align: .6em; margin-left: 1px; }
.lim { display: inline-flex; flex-direction: column; align-items: center; vertical-align: baseline; line-height: 1; margin-right: 5px; }   /* 바깥 기준선 = lim 글자 기준선 */
.lim small { margin-top: 3px; font-size: .68em; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .92em; line-height: 1.2; margin: 0 3px; }
.fr > span { padding: 0 3px; }
.fr > span:first-child { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.sheet footer { margin-top: auto; padding-top: var(--s4); font-size: var(--t2); color: var(--sub); }
.vr-arw { display: grid; place-items: center; color: var(--ink); }
.vr-arw .arw { width: 40px; }

/* 06 한 프로그램: 네 갈래 */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gut); margin-top: var(--s7); text-align: left; }
.four > div { padding-top: var(--s4); border-top: 2px solid #fff; }
.four header { display: flex; align-items: baseline; gap: 10px; }
.four header b { font: 700 var(--t3)/1 Geist, sans-serif; color: var(--ink); }
.four header h3 { font-size: var(--t6); letter-spacing: -0.03em; }
.four header span { margin-left: auto; font-size: var(--t2); color: var(--sub); }
.four ul { margin-top: var(--s4); }
.four li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t3); font-weight: 600; }

/* 07 약속: 세 칸 큰 글자 */
.vw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gut); margin-top: var(--s8); text-align: left; }
.vw li { padding-top: var(--s5); border-top: 2px solid #fff; }
.vw b { font: 700 var(--t3)/1 Geist, sans-serif; color: var(--ink); }
.vw h3 { margin-top: var(--s5); font-size: var(--t7); line-height: 1.25; letter-spacing: -0.04em; }
.vw p { margin-top: var(--s3); font-size: var(--t4); color: var(--sub); }

/* 08 문의: 가운데 큰 글자 + 만드는 팀 */
.ask-h { font-size: var(--t9); line-height: 1.06; letter-spacing: -0.055em; font-weight: 800; margin-top: var(--s5); }
.ask-act { display: flex; justify-content: center; align-items: center; gap: var(--s6); flex-wrap: wrap; margin-top: var(--s7); }
.by { display: inline-flex; align-items: center; gap: 12px; margin-top: var(--s8); padding: var(--s4) var(--s5); border: 1px solid var(--line); font-size: var(--t3); color: var(--sub); text-align: left; transition: border-color .25s; }
.by:hover { border-color: #fff; }
.by b { font: 700 var(--t5)/1 Geist, Pretendard, sans-serif; letter-spacing: -0.03em; color: #fff; }
.by b i { font-style: normal; color: var(--ink); }
.by > span:last-child { color: #fff; font-weight: 700; }
.by b .w { font-weight: 400; }

/* 풀페이지(넓은 화면): 첫 화면 그림 높이를 남은 높이에 맞춤 */
@media (min-width: 961px) {
  /* 모니터가 더 올라오게(사장님 11-22): 큰 제목을 줄이고(104 → 80px, 낮은 화면은 더 작게) 위 여백·사이 여백을 한 단계씩 줄임 */
  .mh.snap { justify-content: flex-start; padding-top: var(--s7); }
  .mh .mx-h { font-size: min(80px, 8.6svh); }
  .mh .mx-go { margin-top: var(--s4); }
  .mh .mon { margin-top: var(--s6); }
  /* 첫 화면 모니터는 남은 높이를 다 쓰고 구역 맨 아래에서 잘립니다(애플식으로 아래에서 올라와 있음) */
  .mh.snap { padding-bottom: 0; }
  .mh.snap > .wrap { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .mh .mon { flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
  /* 복습영상: 기기 둘의 크기는 남은 높이에 맞춤(기기 칸 높이 = 폭의 0.745) */
  .ba { --w: min(520px, calc((100svh - var(--top) - var(--ba-rest, 520px)) / .745)); }
  .cut { --hd: clamp(200px, calc(100svh - var(--top) - 540px), 370px); --gap: calc(var(--s8) + var(--s5)); }   /* 그림 셋은 더 넓게 */
}

/* 태블릿 */
@media (max-width: 1100px) {
  .lu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lu li:nth-child(2) { border-right: 0; }
  .lu li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .vr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: var(--s4); }
  .vr .src { grid-column: 1 / -1; }
  .vr-arw { display: none; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .vw { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); }
}

/* 휴대폰 */
@media (max-width: 700px) {
  .mh { padding-top: var(--s7); }
  .mx-p { font-size: var(--t4); }
  .lu { grid-template-columns: minmax(0, 1fr); }
  .lu li { border-right: 0; border-top: 1px solid var(--line); }
  .lu li:first-child { border-top: 0; }
  .ba, .cut { --gap: var(--s5); display: flex; flex-direction: column; align-items: center; }
  .ba { --w: calc(100vw - var(--side) * 2); }
  .arw, .ba .arw, .cut .arw { width: 56px; margin: 0; transform: rotate(90deg); }
  .pts { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }
  .cut { --hd: min(66vw, 300px); }
  .c-mon { --w: min(calc(100vw - var(--side) * 2), calc(var(--hd) / .745)); }
  .pts.two { grid-template-columns: minmax(0, 1fr); }
  .vr { grid-template-columns: minmax(0, 1fr); }
  .four { grid-template-columns: minmax(0, 1fr); }
  .sec.mxs { padding: var(--s8) 0; }
}

/* ━━━━━━━━ 02-flow.css ━━━━━━━━ */
/* BlackTech/Math 두 갈래 흐름 (2026-11-30 사장님 확정, 시안 site2/_math-흐름시안/ 을 옮김)
   첫 화면(19-E) → 두 갈래(문제 모음 / 제작 의뢰). 고르기 전엔 두 갈래에서 페이지가 끝나고, 문을 누르면 그 문이 화면 전체로 펼쳐져
   그 세계(문제 모음 = 흰 판, 제작 의뢰 = 잉크 판)로 들어갑니다. 전환은 'A 앱스토어 카드', 길이 --dur 1055ms(사장님 고른 '빠르게').
   움직임은 기기의 '동작 줄이기' 설정과 상관없이 늘 보입니다(사장님 11-30). 동작은 math/flow.js.
   이 페이지는 왼쪽 세로 이름·오른쪽 구역 목록 없이 화면 끝까지 씁니다(--rail·--idx 0). 이름이 겹치지 않게 흐름 쪽 이름은 f로 시작합니다
   (.fbtn .fhd .fq .dfoot .dvis .sgo .freebox .fchips, 값 --fhd --fpad --fmute --fline --fmk --flk). */
html.math { --rail: 0px; --idx: 0px; --fhd: 64px; --fpad: clamp(20px, 4.4vw, 72px); --dur: 1055ms;
  --fmute: rgba(255,255,255,.58); --fline: rgba(255,255,255,.14); --fmk: #5A5E66; --flk: rgba(11,12,15,.14);
  background: var(--ink); scroll-padding-top: var(--fhd); }
html.math body { background: var(--ink); color: #fff; line-height: 1.6; word-break: keep-all; }
.rail, .rail-r, .sidx, .dock { display: none; }
.fl :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure, table) { margin: 0; padding: 0; }
.fl :where(button, input, select, textarea) { font: inherit; color: inherit; }
.fl .num { font-family: Geist, Pretendard, sans-serif; font-variant-numeric: tabular-nums; }
.tbd { color: var(--red); font-family: Geist; }

/* 로고 */
.mk { font-family: Geist, sans-serif; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.mk b { font-weight: 700; } .mk i { font-style: normal; color: var(--red); font-weight: 700; padding: 0 1px; } .mk span { font-weight: 400; }

/* 머리 띠(조각 tools/parts/math-hd.html): 두 갈래 아래부터 따라옴. 문제 모음 세계에선 흰 띠 */
.fhd { position: sticky; top: 0; z-index: 50; height: var(--fhd); display: flex; align-items: center; gap: 40px;
  padding: 0 var(--fpad); background: rgba(11,12,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--fline); }
.fhd nav { display: flex; gap: 28px; font-size: 15px; }
.fhd nav a { color: var(--fmute); padding: 6px 0; border-bottom: 2px solid transparent; }
.fhd nav a:hover, .fhd nav a[aria-current] { color: #fff; border-color: var(--red); }
.fhd .r { margin-left: auto; display: flex; gap: 10px; }

/* 버튼 */
.fbtn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; background: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.fbtn::after { content: "→"; font-family: Geist; font-weight: 400; }
.fbtn.red { background: var(--red); color: #fff; } .fbtn.red:hover { background: #fff; color: var(--ink); }
.fbtn.ink { background: var(--ink); color: #fff; } .fbtn.ink:hover { background: var(--red); }
.fbtn.line { border-color: rgba(255,255,255,.5); color: #fff; } .fbtn.line:hover { background: #fff; color: var(--ink); }
.fbtn.line-k { border-color: var(--ink); color: var(--ink); } .fbtn.line-k:hover { background: var(--ink); color: #fff; }
.fbtn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.fbtn.no::after { content: none; }

/* 공통 글자 */
.kick { font-family: Geist, Pretendard; font-size: 13px; letter-spacing: .08em; color: var(--red); font-weight: 700; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.h3 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.lead { font-size: 18px; color: var(--fmute); max-width: 40em; }
.mut { color: var(--fmute); }
/* 넘어가는 띠: 다른 갈래로 */
.cross { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 40px var(--fpad);
  border-top: 1px solid var(--fline); border-bottom: 1px solid var(--fline); }
.cross .h3 { font-size: 24px; } .cross p { color: var(--fmute); margin-top: 4px; }

/* 문제 모음 카드 (목록·상세 아래) */
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.sc { display: block; color: #fff; }
.sc .cv { aspect-ratio: 4/4.2; background: #f6f6f5; overflow: hidden; position: relative; border: 1px solid var(--fline); }
.sc .cv img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.sc:hover .cv img { transform: scale(1.04); }
.sc .new { position: absolute; left: 0; top: 0; background: var(--red); color: #fff; font: 700 12px Geist; padding: 5px 9px; letter-spacing: .06em; }
.sc .meta { display: flex; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--fmute); }
.sc .meta span + span::before { content: "·"; margin-right: 8px; }
.sc .t { font-size: 18px; font-weight: 700; margin-top: 4px; line-height: 1.4; }
.sc .pr { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; }
.sc .pr .sgo { color: var(--fmute); } .sc:hover .pr .sgo { color: var(--red); }

/* 폰 */
@media (max-width: 860px) {
  .fhd { gap: 16px; } .fhd nav { display: none; } .fhd .r .fbtn.line { display: none; }
  .cross { grid-template-columns: 1fr; }
}

html:not([data-pick]):not([data-enter]) .branch, html.flowpg:not([data-pick]) #foot { display: none; }
html[data-pick="store"] #service, html[data-pick="service"] #store,
html[data-enter="store"] #service, html[data-enter="service"] #store { display: none; }
html[data-enter] .branch > :not(.world) { display: none; }
html[data-pick] .hero, html[data-pick] .fork, html[data-pick] .fam { display: none; }
/* 고르기 전 넓은 화면: 휠 한 번 = 한 화면(첫 화면 ↔ 두 갈래, ../shared/fullpage.js data-sel="#top, #fork").
   두 갈래 맨 위가 머리 띠 바로 아래 오도록 고르기 전엔 scroll-padding 0. 고른 뒤엔 html.fp-off(flow.js)라 보통 스크롤 */
html.flowpg:not([data-pick]) { scroll-padding-top: 0; }
@media (min-width: 861px) and (min-height: 640px) {
  .fork { height: calc(100vh - var(--fhd)); }
}


/* 2. 두 갈래 */
.fork { display: flex; flex-direction: column; min-height: 640px; overflow: hidden; }
.fork .fq { text-align: center; padding: 30px var(--fpad) 24px; }
.fork .fq .h2 { font-size: clamp(26px, 2.6vw, 38px); }
.fork .fq .hint { margin-top: 8px; font-size: 14px; color: var(--fmute); }
.doors { flex: 1; display: flex; min-height: 0; border-top: 1px solid var(--fline); }
.door { flex: 1 1 0; position: relative; overflow: hidden; cursor: pointer; display: grid; grid-template-rows: auto 1fr auto; gap: 26px;
  padding: 38px clamp(24px, 3.6vw, 60px) 40px; }
html:not([data-enter]) .doors:hover .door { flex-grow: .82; }
html:not([data-enter]) .doors .door:hover { flex-grow: 1.18; }
.door.a { background: #fff; color: var(--ink); }
.door.b { background: var(--ink); }
.door .who { font-size: 15px; font-weight: 600; } .door.a .who { color: var(--fmk); } .door.b .who { color: var(--fmute); }
.door .h2 { margin-top: 6px; line-height: 1.1; }
.door .d { margin-top: 12px; font-size: 17px; max-width: 26em; } .door.a .d { color: var(--fmk); } .door.b .d { color: var(--fmute); }
.door .dvis { position: relative; min-height: 220px; }
.door .dfoot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.door .facts { display: flex; font-size: 14px; font-weight: 600; }
.door .facts span { padding: 0 14px; border-left: 1px solid currentColor; line-height: 1; }
.door .facts span:first-child { padding-left: 0; border: 0; }

/* 모든 움직임이 --dur(맨 위) 길이에 맞춰 늘고 줆. 들어갈 때 바깥(위 띠·반대쪽 칸)은 조용히 어두워지며 살짝 물러남 */
.fork .fq, .door { transition: transform calc(var(--dur) * .5) cubic-bezier(.2,.7,.2,1) calc(var(--dur) * .2), opacity calc(var(--dur) * .4) ease calc(var(--dur) * .2),
  filter calc(var(--dur) * .4) ease calc(var(--dur) * .2), flex .6s cubic-bezier(.2,.7,.2,1); }
html.dive .fork .fq, html.dive[data-enter="store"] .door.b, html.dive[data-enter="service"] .door.a { opacity: 0; transform: scale(.97); }
html.dive .fork .fq, html.dive .door { transition: opacity calc(var(--dur) * .5) ease, transform calc(var(--dur) * .7) cubic-bezier(.32,.72,0,1), flex .6s; }
html.noanim .fork .fq, html.noanim .door { transition: none; }
/* 누르는 순간: 칸이 살짝 눌리고 설명·버튼이 먼저 빠짐(예비 동작) */
.door.press { transform: scale(.985); transition: transform .16s ease; }
.door.press .d, .door.press .dfoot { opacity: 0; transition: opacity .16s; }

/* 문 그림 */
.fan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fan img { position: absolute; width: 46%; max-width: 330px; aspect-ratio: 1/1.03; object-fit: cover; object-position: top; border: 1px solid var(--flk);
  box-shadow: 0 18px 40px rgba(11,12,15,.18); transition: transform .55s cubic-bezier(.2,.7,.2,1); background: #fff; }
.fan img:nth-child(1) { transform: translateX(-46%) rotate(-7deg); }
.fan img:nth-child(2) { transform: translateX(46%) rotate(7deg); }
.fan img:nth-child(3) { transform: translateY(-4%); z-index: 2; }
.door.a:hover .fan img:nth-child(1) { transform: translateX(-62%) rotate(-9deg); }
.door.a:hover .fan img:nth-child(2) { transform: translateX(62%) rotate(9deg); }
.pair { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; max-width: 760px; margin: 0 auto; }
.pair figure { background: #fff; padding: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.pair figure img { width: 100%; max-height: 230px; object-fit: contain; object-position: top; }
.pair .ar { text-align: center; font-family: Geist; font-size: 26px; color: var(--red); }
.pair .col { display: flex; flex-direction: column; }
.pair .col > span { font-size: 12px; text-align: center; margin-top: 10px; color: var(--fmute); }
.pair figure.tilt { transform: rotate(-1.5deg); }
.pair .stack { position: relative; isolation: isolate; }
.pair .stack figure + figure { position: absolute; inset: 0; transform: translate(10px, 10px); z-index: -1; opacity: .6; }

/* ══ 세계의 첫 화면 (문이 펼쳐져 이것이 됨) ══ */
.world { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: 0 var(--fpad); height: calc(100vh - var(--fhd)); min-height: 600px; overflow: hidden; }
.world.portal { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; min-height: 0; padding-top: var(--fhd); z-index: 45; will-change: clip-path; }
#w-store { background: #fff; color: var(--ink); }
#w-service { background: var(--ink); color: #fff; }
.w-who { font-size: 17px; font-weight: 600; }
#w-store .w-who, #w-store .w-d { color: var(--fmk); } #w-service .w-who, #w-service .w-d { color: var(--fmute); }
.w-title { display: inline-block; white-space: nowrap; font-size: clamp(64px, 8.2vw, 136px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; margin-top: 6px; }
.w-d { font-size: 19px; max-width: 25em; margin-top: 22px; }
.w-stats { display: flex; gap: 30px; margin-top: 34px; }
.w-stats div { border-left: 1px solid currentColor; padding-left: 14px; }
#w-store .w-stats div { border-color: rgba(11,12,15,.18); } #w-service .w-stats div { border-color: rgba(255,255,255,.2); }
.w-stats b { display: block; font: 700 36px/1.1 Geist; }
.w-stats span { font-size: 13px; opacity: .6; }
.w-cta { display: flex; gap: 14px; align-items: center; margin-top: 38px; flex-wrap: wrap; }
.w-back { background: none; border: 0; color: inherit; opacity: .55; cursor: pointer; font-size: 15px; padding: 8px 4px; }
.w-back:hover { opacity: 1; }
.w-vis { position: relative; height: min(62vh, 600px); }
.world .pair figure img { max-height: 44vh; }
.w-scroll { position: absolute; left: 50%; bottom: 0; width: 1px; height: 46px; background: var(--red); transform-origin: top; animation: dn 1.8s infinite; }
@keyframes dn { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* 세계 안 부속(설명·숫자·버튼)은 펼쳐진 뒤 차례로 떠오름 */
.world .wx { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--dur) * .62 + var(--i, 0) * 110ms); }
.world.pre .wx, .world.out .wx { opacity: 0; transform: translateY(26px); }
.world.pre .wx { transition: none; }
.world.out .wx { transition-duration: .22s; transition-delay: 0s; }
/* 세계의 문제지 부채: 펼쳐진 뒤 더 넓게 벌어지고 뒤에서 두 장이 더 나옴 */
.world .fan img { transition: transform 1s cubic-bezier(.2,.7,.2,1) calc(var(--dur) * .55), opacity .7s ease calc(var(--dur) * .55); }
.world:not(.pre):not(.out) .fan img:nth-child(1) { transform: translateX(-64%) rotate(-9deg); }
.world:not(.pre):not(.out) .fan img:nth-child(2) { transform: translateX(64%) rotate(9deg); }
.world .fan img.x4 { transform: translateX(-46%) rotate(-7deg); opacity: 0; z-index: -1; }
.world .fan img.x5 { transform: translateX(46%) rotate(7deg); opacity: 0; z-index: -1; }
.world:not(.pre):not(.out) .fan img.x4 { transform: translateX(-118%) translateY(6%) rotate(-15deg) scale(.9); opacity: 1; }
.world:not(.pre):not(.out) .fan img.x5 { transform: translateX(118%) translateY(6%) rotate(15deg) scale(.9); opacity: 1; }
.world.pre .fan img, .world.out .fan img { transition-delay: 0s; transition-duration: .3s; }
.world.pre .fan img { transition: none; }


/* ══ 갈래 공통 ══ */
.blk { padding: 72px var(--fpad); border-bottom: 1px solid var(--fline); }
.blk .hd2 { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.blk .h2 { margin-top: 8px; }
.blk .lead { margin-top: 12px; }
.proof .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.proof .card { background: #fff; color: var(--ink); padding: 26px 28px; min-height: 380px; display: flex; flex-direction: column; }
.proof .card .lb { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; border-bottom: 1px solid var(--flk); padding-bottom: 10px; margin-bottom: 18px; }
.proof .card .lb em { font-style: normal; color: var(--red); }
.proof .card img { max-height: 330px; object-fit: contain; object-position: top left; }
.proof .why { color: var(--fmk); font-size: 15px; border-top: 1px solid var(--flk); padding-top: 12px; margin-top: auto; }
.tabs { display: flex; }
.tabs button { background: none; border: 1px solid var(--fline); border-left: 0; padding: 12px 20px; color: var(--fmute); cursor: pointer; font-size: 15px; }
.tabs button:first-child { border-left: 1px solid var(--fline); }
.tabs button.on { background: #fff; color: var(--ink); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--red); }
.steps li { list-style: none; padding: 22px 16px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--red); }
.steps .n { font: 700 13px Geist; color: var(--red); }
.steps .t { font-size: 20px; font-weight: 800; margin-top: 6px; }
.steps .d { font-size: 14px; color: var(--fmute); margin-top: 6px; }

/* 문제 모음 갈래 */
.list { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.filters { position: sticky; top: calc(var(--fhd) + 24px); align-self: start; display: flex; flex-direction: column; gap: 28px; }
.filters h4 { font-size: 13px; color: var(--fmute); font-weight: 600; margin-bottom: 10px; }
.filters label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.filters input { appearance: none; width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.45); display: grid; place-content: center; }
.filters input:checked { background: var(--red); border-color: var(--red); }
.filters input:checked::after { content: ""; width: 6px; height: 6px; background: #fff; }
.filters label .c { margin-left: auto; color: var(--fmute); font: 13px Geist; }
.lbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 14px; color: var(--fmute); }
.lbar select { background: var(--ink); border: 1px solid var(--fline); padding: 8px 12px; color: #fff; }
#list.sets { grid-template-columns: repeat(3, 1fr); }
.empty { color: var(--fmute); padding: 60px 0; display: none; }
.freebox { background: #fff; color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 32px 36px; }
.freebox p { color: var(--fmk); margin-top: 4px; }

/* 제작 의뢰 갈래 */
.make { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--fline); }
.make > div { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.make > div + div { border-left: 1px solid var(--fline); }
.make .n { font: 700 13px Geist; color: var(--red); }
.make .smp { background: #fff; height: 190px; overflow: hidden; padding: 12px; color: var(--ink); }
.make .smp img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.make .smp.sol { font-size: 13px; line-height: 1.7; } .make .smp.sol b { color: var(--red); }
.make p.d { color: var(--fmute); font-size: 15px; }
.flow6 { display: grid; grid-template-columns: repeat(6, 1fr); }
.flow6 li { list-style: none; padding: 20px 18px 0 0; border-top: 1px solid var(--fline); }
.flow6 li.key { border-top: 2px solid var(--red); }
.flow6 .n { font: 700 13px Geist; color: var(--fmute); } .flow6 li.key .n { color: var(--red); }
.flow6 .t { font-size: 19px; font-weight: 800; margin-top: 6px; }
.flow6 .d { font-size: 14px; color: var(--fmute); margin-top: 6px; }
.flow6 .tm { display: inline-block; margin-top: 10px; font-size: 12px; border: 1px solid var(--fline); padding: 3px 8px; color: var(--fmute); }
.price { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.price table { width: 100%; border-collapse: collapse; }
.price th, .price td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--fline); }
.price th { color: var(--fmute); font-size: 13px; font-weight: 600; }
.price td:last-child { text-align: right; }
.price .note { background: #fff; color: var(--ink); padding: 26px; }
.price .note p { color: var(--fmk); margin-top: 8px; font-size: 15px; }
.formw { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.formw .side p { color: var(--fmute); margin-top: 14px; }
.formw .side ul { list-style: none; margin-top: 24px; display: grid; gap: 10px; font-size: 15px; }
.formw .side li::before { content: "— "; color: var(--red); }
form { background: #fff; color: var(--ink); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form .full { grid-column: 1 / -1; }
form label > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
form input, form select, form textarea { width: 100%; border: 1px solid var(--flk); padding: 12px; background: #fff; color: var(--ink); }
form textarea { min-height: 96px; resize: vertical; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchips label { cursor: pointer; } .fchips input { display: none; }
.fchips span { display: block; border: 1px solid var(--flk); padding: 9px 14px; font-size: 14px; }
.fchips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.drop { border: 1px dashed rgba(11,12,15,.4); padding: 22px; text-align: center; color: var(--fmk); font-size: 14px; }
form .fbtn { justify-content: center; }
.cross button { cursor: pointer; }

/* ══ 흰 세계(문제 모음): 머리 띠·갈래·바닥글이 모두 흰 판 ══ */
.fhd { --hdt: calc(var(--dur) * .4) ease calc(var(--dur) * .45);
  transition: background-color var(--hdt), border-color var(--hdt), color var(--hdt); }
.fhd nav a, .fhd .fbtn { transition: color var(--hdt), background-color var(--hdt), border-color var(--hdt); }
html[data-world="store"] .fhd { background: rgba(255,255,255,.94); color: var(--ink); border-color: rgba(11,12,15,.12); }
html[data-world="store"] .fhd nav a { color: #5A5E66; }
html[data-world="store"] .fhd nav a:hover, html[data-world="store"] .fhd nav a[aria-current] { color: var(--ink); }
html[data-world="store"] .fhd .fbtn.line { border-color: var(--ink); color: var(--ink); }
html[data-world="store"] .fhd .fbtn.line:hover { background: var(--ink); color: #fff; }
html[data-world="store"] #store { --fmute: #5A5E66; --fline: rgba(11,12,15,.14); }
html[data-pick="store"], html[data-pick="store"] body { background: #fff; color: var(--ink); }
html[data-world="store"] .fbtn.red:hover { background: var(--ink); color: #fff; }
#store .sc { color: inherit; }
html[data-world="store"] #store .fbtn.line { border-color: var(--ink); color: var(--ink); }
html[data-world="store"] #store .fbtn.line:hover { background: var(--ink); color: #fff; }
html[data-world="store"] .filters input { border-color: rgba(11,12,15,.4); }
html[data-world="store"] .lbar select { background: #fff; color: var(--ink); }
html[data-world="store"] .proof .card { border: 1px solid var(--fline); }
html[data-world="store"] .tabs button.on { background: var(--ink); color: #fff; }
html[data-world="store"] .freebox { background: var(--ink); color: #fff; }
html[data-world="store"] .freebox p { color: rgba(255,255,255,.6); }

@media (max-width: 1100px) { #list.sets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .fork { min-height: 0; }
  .doors { flex-direction: column; } .door { flex: none; min-height: 540px; }
  .door .dvis { min-height: 240px; }
  .world { grid-template-columns: 1fr; align-content: center; gap: 28px; padding: 36px var(--fpad) 56px; }
  .world.portal { padding-top: calc(var(--fhd) + 36px); }
  .w-vis { height: 280px; order: 2; }
  .w-title { font-size: 64px; }
  .w-stats { gap: 18px; } .w-stats b { font-size: 28px; }
  .proof .grid, .price, .formw { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--red); }
  .steps li { padding: 0 0 22px 22px; } .steps li::before { top: 4px; left: -7px; }
  .list { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; flex-direction: row; overflow-x: auto; gap: 24px; } .filters > div { min-width: 150px; }
  #list.sets { gap: 18px; }
  .freebox { grid-template-columns: 1fr; }
  .make { grid-template-columns: 1fr 1fr; } .make > div:nth-child(3) { border-left: 0; } .make > div:nth-child(n+3) { border-top: 1px solid var(--fline); }
  .flow6 { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  form { grid-template-columns: 1fr; padding: 22px; }
  .tabs { flex-wrap: wrap; }
}
