/* with-ai.studio 첫 페이지 「닿으면 켜지는 선」 (2026-11-14 적용. 시안 원본은 redesign/j2/)
   선은 첫 화면의 버튼에서 나와, 읽는 자리가 닿은 것을 하나씩 켜고, 메일 버튼에 닿으며 끝난다.
   색·알약·카드·오로라는 지금 사이트 그대로이고, 더한 것은 선·갈래·정거장 점이다.
   켜진 모습이 기본값이다. 스크립트가 돌 때(.js)만 꺼진 채 시작해 닿으면(.on) 켜진다. */
/* 글꼴은 둘로 나눠 받는다. 이 페이지가 쓰는 글자는 작은 묶음(94KB)에서 받고, 묶음에 없는 글자가 화면에 나올 때만
   전체 글꼴(2MB)을 받는다. 규칙의 순서와 범위는 실제로 재 보고 정한 것이니 손으로 바꾸지 않는다(tools/fontsubset.py 의 설명 참조).
   문구를 고치면 tools/fontsubset.py 를 다시 돌린다. */
/* fontsubset:start (tools/fontsubset.py 가 만든다. 손으로 고치지 않는다) */
@font-face { font-family: 'Pretendard'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; unicode-range: U+7F-AF, U+B1-B6, U+B8-24F, U+2000-2013, U+2015-206F, U+20A0-2191, U+2193-22FF, U+2460-24FF, U+3000-303F, U+3130-318F, U+3200-32FF, U+AC02-AC03, U+AC05-AC0F, U+AC12-AC18, U+AC1A-AC1B, U+AC1D-AC6F, U+AC71-AC73, U+AC75-AC77, U+AC79-AC7F, U+AC81-AC82, U+AC84-AC8B, U+AC8D-AC9F, U+ACA1-ACAB, U+ACAD-ACAF, U+ACB1-ACB7, U+ACB9-ACC3, U+ACC5-ACDF, U+ACE1-ACF2, U+ACF4, U+ACF6-ACFB, U+ACFD-ACFF, U+AD01-AD03, U+AD05-AD4F, U+AD51-AD6B, U+AD6E-AD80, U+AD82-ADDB, U+ADDD-ADF7, U+ADF9-ADFB, U+ADFD-AE07, U+AE0A-AE2F, U+AE31-AE37, U+AE39-AE3F, U+AE42-AE4B, U+AE4D-AED7, U+AED9-AEF3, U+AEF5-AF07, U+AF09-AFD3, U+AFD5-B05C, U+B05E-B097, U+B099-B09B, U+B09D-B0A8, U+B0AA-B0B3, U+B0B5-B0E4, U+B0E6-B107, U+B109-B122, U+B125-B14F, U+B151-B28F, U+B291-B293, U+B295-B2A4, U+B2A6-B2C7, U+B2C9-B2E3, U+B2E5-B2E7, U+B2E9-B2EB, U+B2ED-B2F3, U+B2F6-B2F8, U+B2FA-B2FF, U+B301-B353, U+B355-B357, U+B359-B36F, U+B371-B3C3, U+B3C6-B3CB, U+B3CD-B3D4, U+B3D6-B3D8, U+B3DA-B417, U+B419-B457, U+B459-B4DB, U+B4DD-B4DF, U+B4E1-B4E3, U+B4E5-B513, U+B515-B528, U+B52A-B60F, U+B611-B77B, U+B77E-B78B, U+B78D-B797, U+B799-B79B, U+B79D-B7A7, U+B7AA, U+B7AC-B7EF, U+B7F1-B7FB, U+B7FE-B807, U+B809-B823, U+B826-B838, U+B83A-B85B, U+B85E-B8AF, U+B8B1-B8E7, U+B8E9-B973, U+B975-B97B, U+B97D-B9AB, U+B9AD-B9AF, U+B9B1-B9BC, U+B9BE, U+B9C0, U+B9C2-B9C7, U+B9C9-B9CB, U+B9CD, U+B9CF-B9DD, U+B9DF-B9E0, U+B9E2-B9E3, U+B9E6-BA3B, U+BA3D-BA53, U+BA55-BA6F, U+BA71-BA73, U+BA75-BAA7, U+BAAA-BB33, U+BB35-BB37, U+BB39-BB3A, U+BB3D-BBF7, U+BBF9-BBFB, U+BBFD-BC13, U+BC16-BC17, U+BC19-BC1B, U+BC1D-BC28, U+BC2A-BC2F, U+BC32-BC83, U+BC86-BC94, U+BC96-BCF3, U+BCF6-BCF7, U+BCF9-BCFB, U+BCFD-BD03, U+BD05-BD7F, U+BD82-BD83, U+BD85-BD98, U+BD9A-BDEF, U+BDF1-BE0B, U+BE0D-BE13, U+BE15-BE43, U+BE45-BE4B, U+BE4D-C05B, U+C05D-C0AB, U+C0AD-C0AF, U+C0B1-C0B3, U+C0B5-C0C0, U+C0C2-C0C7, U+C0C9-C11B, U+C11E-C11F, U+C121-C123, U+C125-C130, U+C132-C137, U+C139-C14A, U+C14C-C157, U+C159-C18B, U+C18E-C193, U+C195-C1FB, U+C1FD-C217, U+C219-C21B, U+C21D-C21F, U+C221-C2A3, U+C2A5-C2B4, U+C2B6-C2DB, U+C2DE-C2DF, U+C2E1-C2E3, U+C2E5-C2EB, U+C2ED-C543, U+C546-C547, U+C549, U+C54B-C557, U+C55A-C570, U+C572-C590, U+C592-C5B3, U+C5B5-C5B7, U+C5B9-C5C4, U+C5C7, U+C5C9-C5CF, U+C5D1-C5D3, U+C5D5-C5EB, U+C5EE-C5EF, U+C5F1-C5F3, U+C5F5-C600, U+C602-C607, U+C609-C62B, U+C62D-C63F, U+C641-C643, U+C645-C653, U+C655-C693, U+C695-C6A8, U+C6AA-C6AF, U+C6B1-C6B3, U+C6B5-C6B7, U+C6B9-C6BF, U+C6C1-C6CB, U+C6CD-C6CF, U+C6D1-C6F8, U+C6FA-C703, U+C705-C71F, U+C722-C727, U+C729-C73B, U+C73D-C73F, U+C741-C743, U+C745-C74C, U+C74E-C750, U+C752-C757, U+C759-C773, U+C775-C777, U+C779-C77B, U+C77D-C783, U+C786-C787, U+C789-C78F, U+C792-C797, U+C799-C7A4, U+C7A6-C7FF, U+C802-C803, U+C805-C80F, U+C812-C814, U+C816-C81B, U+C81E-C870, U+C872-C88A, U+C88C-C8FB, U+C8FD-C910, U+C912-C987, U+C989-C98B, U+C98D-C9BF, U+C9C2-C9C3, U+C9C5-C9C7, U+C9C9-C9D0, U+C9D2-CABC, U+CABE-CC27, U+CC29-CC3D, U+CC3F-CC44, U+CC46-CC58, U+CC5A-CC97, U+CC99-CC9B, U+CC9D-CCA8, U+CCAA, U+CCAC, U+CCAE-CCB3, U+CCB5-CD1C, U+CD1E-CD2B, U+CD2D-CD93, U+CD96-CD9B, U+CD9D-CE1F, U+CE21-CE34, U+CE36-CE57, U+CE59-CE6C, U+CE6E-CE73, U+CE75-CE9F, U+CEA1-CEE3, U+CEE5-CEEB, U+CEED-CEF6, U+CEF8-CEFF, U+CF01-CF53, U+CF55-CF57, U+CF59-D06B, U+D06D-D06F, U+D071-D073, U+D075-D0A3, U+D0A5-D0BF, U+D0C1-D0C7, U+D0C9-D0EB, U+D0ED-D12F, U+D131-D13F, U+D141-D15B, U+D15D-D19F, U+D1A1-D1B4, U+D1B6-D22B, U+D22D-D2B7, U+D2B9-D304, U+D306-D30B, U+D30D-D30F, U+D311-D37F, U+D381-D397, U+D399-D3B7, U+D3B9-D3EB, U+D3ED-D3EF, U+D3F1-D3FB, U+D3FD-D47F, U+D481-D487, U+D489-D503, U+D505-D50B, U+D50D-D557, U+D55A-D55B, U+D55D-D55F, U+D561-D567, U+D56A-D573, U+D575-D587, U+D58A-D5A4, U+D5A6-D5E3, U+D5E5-D603, U+D605-D610, U+D612-D614, U+D616-D63B, U+D63D-D653, U+D655-D657, U+D659-D668, U+D66A-D68B, U+D68E-D6A7, U+D6A9-D6C3, U+D6C5-D733, U+D735-D76B, U+D76D-D7A3, U+FF00-FFEF; }
@font-face { font-family: 'Pretendard'; src: url('/fonts/Pretendard-site.woff2?v=628c813d') format('woff2-variations'); font-weight: 45 920; font-display: swap; }
/* fontsubset:end */

:root {
    --dark: #0d0b09;
    --card: #15110d;
    --card-hi: #1a1410;
    --text: #f5f0ea;
    --sub: #a49c93;
    --soft: #cbc3b9;                       /* 본문 중 조금 더 또렷해야 하는 글 */
    --pill: #ffb894;
    --accent: #ff5a1f;
    --accent2: #ff9350;
    --line: rgba(255,255,255,0.08);        /* 카드 테두리 */
    --track: rgba(245,240,234,0.15);       /* 아직 지나지 않은 길 */
    --warm: rgba(255,90,31,0.32);          /* 선이 닿은 카드의 테두리 */
    --ink: #1a0e07;                        /* 주황 버튼 위의 글자(대비 6:1) */
    --pad: 48px;
    --gutter: 76px;                        /* 선이 지나는 가운데 길 */
    --foot: 69px;                          /* 푸터 높이: 마지막 빛 위에 겹쳐 올린다 */
    --font: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, Menlo, monospace;   /* 메일 주소에만 */
    --ease: cubic-bezier(0.22,1,0.36,1);
    color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; overflow-x: clip;  /* clip 을 모르는 브라우저는 hidden (body 에만 두면 화면 전체에 적용되고 sticky 가 산다) */
}
img { display: block; max-width: 100%; }
h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(255,90,31,0.36); color: #fff; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }

/* ── nav (지금과 같음) ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 120;
    padding: 24px 48px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background-color 0.4s, padding 0.4s;
}
nav.scrolled { background: rgba(13,11,9,0.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 16px 48px; }
.nav-name { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.nav-name .ai, .footer-brand .ai { color: var(--accent); }
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 600; color: #c4bbb1; text-decoration: none; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-burger { display: none; width: 44px; height: 44px; margin: -6px; background: none; border: none; cursor: pointer; position: relative; z-index: 110; }
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: absolute; left: 12px; transition: top 0.3s, transform 0.3s, opacity 0.3s; }
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 105; overflow-y: auto;
    background: rgba(13,11,9,0.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; padding: 72px 0 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 700; color: var(--sub); text-decoration: none; padding: 18px 24px; letter-spacing: -0.5px; transition: color 0.2s; }
.mobile-menu a:active { color: #fff; }

/* ── 맨 위로: 화면에서 가장 센 주황은 선이어야 하므로 조용하게 ── */
.scroll-top {
    position: fixed; bottom: 24px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(21,17,13,0.92); border: 1px solid rgba(255,90,31,0.45); cursor: pointer; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, border-color 0.2s, visibility 0s 0.3s;   /* 안 보일 때는 포커스도 가지 않는다 */
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scroll-top:active { transform: scale(0.92); border-color: var(--accent); }
.scroll-top svg { width: 18px; height: 18px; fill: none; stroke: var(--accent2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 첫 화면 (지금과 같은 짜임. 더한 것은 버튼에서 나오는 선 하나) ── */
.hero-stage { position: relative; width: 100%; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(90% 60% at 50% 42%, rgba(13,11,9,0.55) 0%, rgba(13,11,9,0.18) 55%, transparent 100%),
        linear-gradient(to bottom, rgba(13,11,9,0.45) 0%, transparent 26%, transparent 58%, var(--dark) 100%);
}
body.no-webgl .hero-canvas { background: radial-gradient(120% 70% at 50% -10%, rgba(255,90,31,0.35), rgba(255,90,31,0.08) 46%, transparent 66%); }
.hero {
    position: relative; z-index: 2;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 96px 48px 0; max-width: 1200px; margin: 0 auto;
}
/* 위아래 빈칸을 똑같이 나눠 구호를 지금 자리에 두고, 아래 빈칸이 곧 버튼에서 나오는 선이 된다.
   (아래 빈칸의 고정 몫 44px + 84px = 예전 첫 페이지의 아래 여백 128px. 끝의 84px 는 스크롤을 따라 켜지는 선이 이어받는다) */
.hero::before { content: ''; flex: 1 1 0; }
.hero-line { position: relative; flex: 1 0 44px; width: 1px; margin-bottom: 84px; }
.hero-line::after {
    content: ''; position: absolute; left: 0; right: 0; top: 12px; bottom: 0;   /* 버튼 그림자와 겹치지 않게 12px 띄운다 */
    background: linear-gradient(180deg, var(--accent), var(--accent2)); box-shadow: 0 0 10px rgba(255,90,31,0.6);
    transform-origin: 50% 0; animation: draw 0.7s var(--ease) 1.25s backwards;   /* 버튼이 자리 잡은 뒤 한 번 그려진다 */
}
@keyframes draw { from { transform: scaleY(0); } }
.moved .hero-line::after, .moved .bend--in { animation: none; }   /* 내리기 시작했으면 그리기를 기다리지 않는다 */
.hero-label, .s-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; color: var(--pill); letter-spacing: 2px; text-transform: uppercase;
    border-radius: 100px; border: 1px solid rgba(255,90,31,0.35); background: rgba(255,90,31,0.08);
}
.hero-label { padding: 8px 18px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); margin-bottom: 32px; }
.hero-label::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hero h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 900; color: #fff; letter-spacing: -0.039em; line-height: 1.1; margin-bottom: 32px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.hero h1 .line > span { display: inline-block; animation: line-in 0.95s var(--ease) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.18s; }
.hero h1 .line > span.gradient {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 35%, #ffd2ab 50%, var(--accent2) 65%, var(--accent) 100%);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: line-in 0.95s var(--ease) 0.31s both, heroShine 7s linear infinite;
}
@keyframes line-in { from { transform: translateY(115%); filter: blur(14px); opacity: 0; } to { transform: none; filter: blur(0); opacity: 1; } }
@keyframes heroShine { to { background-position: -220% center; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-label { animation: rise 0.8s var(--ease) both; }
.hero-sub { font-size: 17px; color: #b9b0a6; max-width: 520px; line-height: 1.8; margin-bottom: 48px; animation: rise 0.8s var(--ease) 0.4s both; }
.hero-cta, .cta-btn {
    display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700;
    background: linear-gradient(180deg, #ff6a35 0%, var(--accent) 100%); border-radius: 100px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-cta { gap: 12px; font-size: 14px; padding: 16px 36px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 4px 28px rgba(255,90,31,0.45); animation: rise 0.8s var(--ease) 0.5s backwards; }
.hero-cta .arrow { transition: transform 0.3s; }
.hero-cta:active, .cta-btn:active { transform: scale(0.97); }

/* ── 선: 읽는 자리가 간 데까지 주황으로 켜진다 (--p 는 0~1, 스크립트가 넣는다) ── */
[data-thread] { --p: 1; }                  /* 스크립트가 없거나 움직임을 줄인 기기: 처음부터 다 켜진 선 */
.js [data-thread] { --p: 0; }
.path { position: relative; z-index: 3; }
.thread { position: relative; width: 1px; height: var(--h, 150px); margin-inline: auto; background: var(--track); }
.thread::after, .rail::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    box-shadow: 0 0 10px rgba(255,90,31,0.6);
    transform: scaleY(var(--p)); transform-origin: 50% 0;
}
/* 지금 읽는 자리를 따라 내려오는 점. 화면에 붙여 두어(sticky) 스크롤할 때 떨리지 않는다 */
.thread::before, .rail::before, .inlet::before {
    content: ''; display: block; position: sticky; z-index: 1; top: calc(60vh - 4px); top: calc(60dvh - 4px);
    width: 8px; height: 8px; margin-left: -3.5px; border-radius: 50%; background: #ffd9bd;
    box-shadow: 0 0 0 4px rgba(255,90,31,0.2), 0 0 18px 5px rgba(255,90,31,0.8);
    opacity: 0; transition: opacity 0.25s;
}
.here::before { opacity: 1; }
.arrived .inlet::before { opacity: 0; }    /* 닿은 뒤에는 점이 버튼 속으로 들어간 것처럼 사라진다 */
.thread--start { --h: 244px; margin-top: -84px; }   /* 버튼에서 내려온 선을 첫 화면 안에서 이어받는다 */
.thread--s { --h: 56px; }
.thread--end { --h: 150px; }
.thread--end i {                            /* 도착점 */
    position: absolute; left: -6px; bottom: -13px; width: 13px; height: 13px; border-radius: 50%;
    background: #ffd9bd; box-shadow: 0 0 0 7px rgba(255,90,31,0.22), 0 0 34px 8px rgba(255,90,31,0.75);
    transition: background-color 0.4s, box-shadow 0.6s var(--ease);
}
.js .thread--end:not(.on) i { background: #3b342d; box-shadow: 0 0 0 0 rgba(255,90,31,0), 0 0 0 0 rgba(255,90,31,0); }
.rail, .bend { display: none; }             /* 좁은 화면에서만 쓰는 왼쪽 선 */
.hero-line, .thread, .rail, .bend, .inlet, .fork, .join { pointer-events: none; }   /* 선은 손끝을 가로채지 않는다 */

/* 한 줄 → 세 갈래 → 한 줄 */
.fork, .join { position: relative; height: 60px; }
.fork { height: 84px; }
.fork b, .join b { position: absolute; inset: 0; --c: var(--track); }
.fork b.lit, .join b.lit { --c: var(--accent); filter: drop-shadow(0 0 5px rgba(255,90,31,0.7)); clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }
.fork b::before, .join b::before { content: ''; position: absolute; left: calc(50% - 0.5px); top: 0; bottom: 0; width: 1px; background: var(--c); }
.fork b::after, .join b::after {
    content: ''; position: absolute; border: 1px solid var(--c);
    left: calc((100% - 2 * var(--gap)) / 6 - 0.5px); right: calc((100% - 2 * var(--gap)) / 6 - 0.5px);
}
.fork b::after { top: 50%; bottom: 0; border-bottom: 0; border-radius: 18px 18px 0 0; }
.join b::after { top: 0; bottom: 50%; border-top: 0; border-radius: 0 0 18px 18px; }

/* 선 양쪽에 나란히 놓는 짜임 */
.flank { display: grid; grid-template-columns: minmax(0,1fr) var(--gutter) minmax(0,1fr); }
.flank > .thread { height: auto; align-self: stretch; }

/* ── 구역 공통 ── */
.sec { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); scroll-margin-top: 104px; }   /* 메뉴로 왔을 때 라벨이 고정 헤더에 가리지 않게 */
.sec-head { position: relative; isolation: isolate; text-align: center; }
.sec-head::before {
    content: ''; position: absolute; z-index: -1; top: -150px; left: 50%; width: 900px; height: 460px; transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(255,90,31,0.085) 0%, transparent 70%); pointer-events: none;
}
/* 알약 라벨은 선 위의 정거장이다(속이 비치지 않게). 닿으면 테두리와 빛이 한 단 오른다 */
.s-label { position: relative; padding: 7px 16px; margin-bottom: 24px; background: #1c120c; border-color: rgba(255,90,31,0.62); box-shadow: 0 0 22px rgba(255,90,31,0.26); transition: border-color 0.5s, box-shadow 0.5s; }
.js .sec-head:not(.on) .s-label { border-color: rgba(255,90,31,0.35); box-shadow: none; }
.s-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(255,90,31,0.7); }
.s-title { font-size: clamp(30px, 4.3vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.24; padding-bottom: 22px; }
.s-sub { font-size: 16px; color: var(--sub); line-height: 1.8; max-width: 520px; margin: -6px auto 0; padding-bottom: 24px; }
.nw { white-space: nowrap; }                /* 가운뎃점·줄표·화살표가 줄 첫머리로 떨어지지 않게 묶는다 */
br.m { display: none; }                     /* 좁은 화면에서만 쓰는 줄바꿈 */

/* ── 카드: 선이 닿으면 테두리가 데워지고 선 쪽에서 빛이 든다(--lit 은 선이 있는 쪽) ── */
.svc-card, .w-card, .rnd-banner { --lit: 0 -18px 34px -22px rgba(255,90,31,0.62); transition: transform 0.3s, box-shadow 0.6s var(--ease), border-color 0.6s; }
.svc-card, .w-card { border: 1px solid var(--warm); box-shadow: var(--lit); }
.js .svc-card:not(.on):not(.featured), .js .w-card:not(.on) { border-color: var(--line); }
.js .svc-card:not(.on), .js .w-card:not(.on), .js .rnd-banner:not(.on) { box-shadow: none; }

/* ── Services ── */
#services { --gap: 20px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap); }
.svc-card { padding: 38px 32px 34px; border-radius: 20px; position: relative; background: linear-gradient(180deg, var(--card-hi) 0%, var(--card) 100%); }
.svc-card:nth-child(odd) { transition-delay: 0s, 0.14s, 0.14s; }   /* 가운데 카드가 먼저, 양옆이 뒤따라 켜진다 */
.svc-card.featured {
    background: radial-gradient(120% 90% at 50% 115%, rgba(255,90,31,0.55) 0%, rgba(255,90,31,0.14) 48%, transparent 75%), linear-gradient(180deg, #1e1510 0%, #170f0a 100%);
    border-color: rgba(255,90,31,0.45); box-shadow: 0 10px 60px rgba(255,90,31,0.18), var(--lit);
}
.js .svc-card.featured:not(.on) { box-shadow: 0 10px 60px rgba(255,90,31,0.18); }
.svc-num {
    font-size: 56px; font-weight: 900; line-height: 1; margin-bottom: 24px; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.svc-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; color: #fff; margin-bottom: 12px; }
.svc-card p { font-size: 15.5px; color: var(--sub); line-height: 1.75; }
.svc-card.featured p { color: rgba(255,240,232,0.88); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.svc-tags span, .w-url { font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); color: #b5aca2; }
.svc-card.featured .svc-tags span { background: rgba(255,90,31,0.18); border-color: rgba(255,90,31,0.3); color: #ffd6c2; }
.svc-summary { max-width: 800px; margin: 0 auto; padding: 20px 0 40px; text-align: center; }
.svc-summary p { font-size: clamp(19px, 2.2vw, 27px); font-weight: 500; line-height: 1.62; letter-spacing: -0.02em; color: var(--sub); text-wrap: balance; }
.svc-summary strong { color: #fff; font-weight: 700; white-space: nowrap; }

/* ── Philosophy: 질문이 이 페이지의 봉우리 ── */
.phil-quote { position: relative; text-align: center; padding: 22px 0 34px; font-size: clamp(50px, 4.6vw, 64px); font-weight: 800; line-height: 1.3; letter-spacing: -0.038em; color: #fff; text-wrap: balance; }
.phil-quote .a { display: inline-block; margin-top: 0.8em; font-size: max(0.4em, 17px); font-weight: 500; letter-spacing: -0.02em; color: var(--pill); }
.phil-text p { font-size: 16.5px; color: var(--soft); line-height: 1.85; padding: 6px 0 52px; }
.phil-text p:first-child { text-align: right; }
.val-track { --gap: 24px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gap); padding-bottom: 44px; }
.val { position: relative; padding-top: 58px; text-align: center; }
.val h4 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px; }
.val p { font-size: 15px; color: var(--sub); line-height: 1.65; }
.val-track > .thread { position: absolute; left: calc(50% - 0.5px); top: 0; bottom: 0; height: auto; margin: 0; }
/* 원칙 네 가지는 선 위의 네 정거장: 닿기 전에는 빈 고리, 닿으면 채워진다 */
.val::after {
    content: ''; position: absolute; left: calc(50% - 3.5px); top: 37px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent2); box-shadow: 0 0 0 1.5px var(--accent2), 0 0 12px 2px rgba(255,90,31,0.7);
    transition: background-color 0.4s, box-shadow 0.5s;
}
.js .val:not(.on)::after { background: var(--dark); box-shadow: 0 0 0 1.5px var(--accent2), 0 0 0 0 rgba(255,90,31,0); }
.val:nth-child(2)::after { transition-delay: 0.08s; }
.val:nth-child(3)::after { transition-delay: 0.16s; }
.val:nth-child(4)::after { transition-delay: 0.24s; }

@media (min-width: 961px) {
    /* 한 줄이 네 갈래로 갈라져 원칙 네 가지에 닿는다. 본줄은 가운데로 계속 내려간다 */
    .val-track::before, .val-track::after {
        content: ''; position: absolute; top: 0; height: 40px; border: 1px solid var(--track); border-bottom: 0; border-radius: 18px 18px 0 0;
        left: calc((100% - 3 * var(--gap)) / 8 - 0.5px); right: calc((100% - 3 * var(--gap)) / 8 - 0.5px);
    }
    .val-track::after { border-color: var(--accent); filter: drop-shadow(0 0 5px rgba(255,90,31,0.7)); clip-path: inset(-12px calc((1 - min(var(--p) * 3, 1)) * 50%) 0); }
    .val:nth-child(2)::before, .val:nth-child(3)::before {
        content: ''; position: absolute; top: 0; left: calc(50% - 0.5px); width: 1px; height: 40px;
        background: var(--accent); box-shadow: 0 0 8px rgba(255,90,31,0.6); transition: background-color 0.4s, box-shadow 0.4s;
    }
    .js .val-track:not(.on) .val::before { background: var(--track); box-shadow: none; }
}

/* ── Works: 카드와 그림은 지금 그대로, 두 줄 사이로 선이 지나간다 ── */
.w-card { display: block; margin: 8px 0; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--card); }
.w-thumb { aspect-ratio: 514 / 220; overflow: hidden; }   /* 그림 비율 그대로: 어느 폭에서도 잘리지 않는다 */
@supports not (aspect-ratio: 1) { .w-thumb { height: 200px; } }
.w-thumb > img { width: 100%; height: 100%; object-fit: cover; }   /* 그림은 화면 가까이 왔을 때 받는다(loading="lazy") */
.w-thumb.pos-b > img { object-position: center bottom; }                   /* 그림 아래쪽 글자가 잘리지 않게 */
.logo-thumb { display: flex; align-items: center; justify-content: center; }
.logo-thumb > img { width: 70%; height: auto; object-fit: contain; }
.logo-thumb.by-h > img { width: auto; height: 56px; }
.fit-thumb { background: #fff; }                                            /* 네모 로고는 통째로 */
.fit-thumb > img { width: auto; height: 86%; }
.rise-thumb { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); }
.rise-graph { width: 116px; height: 116px; fill: none; stroke: rgba(255,255,255,0.92); stroke-width: 2.5; stroke-linecap: round; }
.rise-graph .hub { fill: #fff; stroke: none; }
.rise-graph .node { fill: rgba(255,255,255,0.22); }
.w-info { padding: 22px 28px 28px; }
.w-url { display: inline-block; margin-bottom: 14px; }   /* 주소 칩은 그림 밖에: 그림 속 글자를 가리지 않는다 */
.w-info h3 { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.4; margin-bottom: 9px; }
.w-info p { font-size: 15.5px; color: #b9b0a6; line-height: 1.72; }
.rnd-banner {
    padding: 30px 36px; border-radius: 20px; display: flex; align-items: center; gap: 24px; color: var(--text);
    background: radial-gradient(80% 120% at 0% 50%, rgba(255,90,31,0.12) 0%, transparent 60%), linear-gradient(135deg, var(--card-hi) 0%, var(--card) 100%);
    border: 1px solid rgba(255,90,31,0.24); box-shadow: var(--lit);
}
.rnd-icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.rnd-banner h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.rnd-banner p { font-size: 15px; color: var(--sub); line-height: 1.75; }
@media (min-width: 961px) {
    .w-row > .w-card:first-child { --lit: 18px 0 34px -22px rgba(255,90,31,0.62); }   /* 왼쪽 줄 카드: 선은 오른쪽에 */
    .w-row > .w-card:last-child { --lit: -18px 0 34px -22px rgba(255,90,31,0.62); }   /* 오른쪽 줄 카드: 선은 왼쪽에 */
    /* 자체 연구도 선 양쪽에: 아이콘이 선 위의 정거장, 왼쪽에 제목, 오른쪽에 설명 */
    .rnd-banner { display: grid; grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr); gap: 0 30px; background: radial-gradient(60% 130% at 50% 50%, rgba(255,90,31,0.12) 0%, transparent 62%), linear-gradient(135deg, var(--card-hi) 0%, var(--card) 100%); }
    .rnd-banner > div:last-child { display: contents; }
    .rnd-icon { grid-column: 2; grid-row: 1; }
    .rnd-banner h3 { grid-column: 1; grid-row: 1; text-align: right; margin: 0; font-size: 19px; }
    .rnd-banner p { grid-column: 3; grid-row: 1; }
}

/* ── About: 선 왼쪽에 사람, 오른쪽에 말 ── */
.founder { grid-template-areas: "name line bio" "role line bio" "links line bio" ". line bio"; grid-template-rows: auto auto auto 1fr; }
.founder > .thread { grid-area: line; }
.founder h3 { grid-area: name; text-align: right; font-size: clamp(52px, 5vw, 72px); font-weight: 800; letter-spacing: -0.038em; line-height: 1.12; color: #fff; padding-top: 2px; }
.founder-role { grid-area: role; text-align: right; font-size: 15px; font-weight: 600; color: var(--accent2); margin-top: 12px; }
.founder-links { grid-area: links; display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.founder-links a { font-size: 13px; font-weight: 600; color: var(--soft); text-decoration: none; padding: 9px 20px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.14); transition: color 0.2s, border-color 0.2s; }
.founder-bio { grid-area: bio; padding: 10px 0 48px; }
.founder-bio p { font-size: 17px; color: var(--soft); line-height: 1.9; }
.founder-bio p + p { margin-top: 1.5em; }

/* ── Contact: 선이 버튼에 닿는 곳. 빛은 버튼 뒤 한 곳에서만 오른다 ── */
.cta-section { position: relative; text-align: center; padding: 0 var(--pad) calc(150px + var(--foot)); overflow: hidden; overflow: clip; scroll-margin-top: 170px; }
.cta-section::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 150%; pointer-events: none;
    background: radial-gradient(70% 54% at 50% 100%, rgba(255,112,50,0.62) 0%, rgba(255,90,31,0.27) 40%, rgba(255,90,31,0.07) 64%, transparent 80%);
    transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.js .cta-section:not(.arrived)::before { opacity: 0.35; transform: translateY(12%); }
.cta-section > * { position: relative; }
.cta-top { padding-top: 44px; }
.cta-section h2 { font-size: clamp(30px, 4.6vw, 64px); font-weight: 800; color: #fff; letter-spacing: -0.038em; line-height: 1.24; margin-bottom: 22px; }
.cta-section p { font-size: 17px; color: var(--soft); line-height: 1.8; margin-bottom: 70px; }
/* 도착점을 지난 선이 글 아래로 다시 나와 버튼에 꽂힌다 */
.inlet { position: absolute; left: calc(50% - 0.5px); bottom: 60px; width: 1px; height: 46px; background: var(--track); }
.inlet::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent2), var(--accent)); box-shadow: 0 0 10px rgba(255,90,31,0.6);
    transform: scaleY(var(--p)); transform-origin: 50% 0; transition: transform 0.45s var(--ease);
}
.cta-btn { position: relative; z-index: 1; gap: 10px; font-size: 15px; padding: 18px 40px; box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 6px 56px rgba(255,90,31,0.66); }
.js .cta-section:not(.arrived) .cta-btn { box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 4px 36px rgba(255,90,31,0.42); }
.js .arrived .cta-btn { animation: bloom 1.1s var(--ease) 0.4s; }       /* 닿는 순간 한 번 퍼진다 */
@keyframes bloom {
    from { box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 6px 56px rgba(255,90,31,0.66), 0 0 0 0 rgba(255,147,80,0.75); }
    to { box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 6px 56px rgba(255,90,31,0.66), 0 0 0 26px rgba(255,147,80,0); }
}
.cta-section p.cta-mail { margin: 22px 0 0; font-size: 14px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-mail span { font-family: var(--mono); color: var(--text); user-select: all; }
.cta-mail button { font: inherit; font-size: 12px; font-weight: 600; color: var(--soft); background: none; cursor: pointer; border: 1px solid rgba(255,255,255,0.16); border-radius: 100px; padding: 5px 13px; position: relative; transition: color 0.2s, border-color 0.2s; }
.founder-links a:active, .cta-mail button:active { color: #fff; border-color: var(--accent); }
.cta-section p.cta-note { margin: 12px 0 0; min-height: 1.6em; font-size: 13px; color: #ffd2b8; }

/* 마우스가 있는 기기에서만 올라가는 효과(터치 화면에서는 건드린 카드에 남는다) */
@media (hover: hover) {
    .nav-links a:hover, .mobile-menu a:hover { color: #fff; }
    .scroll-top:hover { border-color: var(--accent); }
    .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.16) inset, 0 8px 44px rgba(255,90,31,0.55); }
    .hero-cta:hover .arrow { transform: translateX(4px); }
    .path .svc-grid .svc-card:hover, .path .works a.w-card:hover { transform: translateY(-6px); border-color: rgba(255,90,31,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 40px rgba(255,90,31,0.1), var(--lit); transition-delay: 0s; }
    .path .svc-grid .svc-card.featured:hover { border-color: rgba(255,90,31,0.55); box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 10px 60px rgba(255,90,31,0.24), var(--lit); }
    .cta-section .cta-btn:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,255,255,0.16) inset, 0 10px 60px rgba(255,90,31,0.72); }
    .founder-links a:hover, .cta-mail button:hover { color: #fff; border-color: var(--accent); }
}

/* 터치 화면: 모양은 그대로 두고 누르는 영역만 44px 이상 */
@media (pointer: coarse) {
    .founder-links a { position: relative; }
    .founder-links a::after, .cta-mail button::after { content: ''; position: absolute; }
    .founder-links a::after { inset: -6px 0; }
    .cta-mail button::after { inset: -10px -4px; }
    .path a.w-card:active { border-color: rgba(255,90,31,0.55); }
}

/* ── footer: 마지막 빛 위에 올린다(빛이 가장 밝은 자리에서 잘리지 않게) ── */
footer { position: relative; z-index: 4; min-height: var(--foot); margin: calc(-1 * var(--foot)) auto 0; padding: 0 48px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; max-width: 1200px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text); }
.footer-brand .logo-mark { width: 16px; height: 16px; }

/* ── 넓은 PC 화면(1600px 이상): 가운데 좁은 기둥이 되지 않게 한 단 키운다 ── */
@media (min-width: 1600px) {
    :root { --gutter: 96px; }
    .sec, footer { max-width: 1400px; }
    .s-title { font-size: 56px; }
    .s-sub { font-size: 17px; max-width: 580px; }
    .svc-card { padding: 44px 38px 40px; }
    .svc-num { font-size: 64px; }
    .svc-card h3 { font-size: 24px; }
    .svc-card p, .w-info p { font-size: 17px; }
    .svc-summary { max-width: 960px; }
    .phil-quote { font-size: 72px; }
    .phil-text p, .founder-bio p { font-size: 19px; }
    .val h4 { font-size: 20px; }
    .val p { font-size: 16.5px; }
    .w-info { padding: 28px 34px 34px; }
    .w-info h3 { font-size: 21px; }
    .founder h3 { font-size: 76px; }
    .rnd-banner h3 { font-size: 21px; }
    .rnd-banner p { font-size: 17px; }
    .cta-section h2 { font-size: 72px; }
}

/* ── PC 인데 창이 낮을 때: 첫 화면에 버튼과 선의 시작이 들어오게 줄인다(높이 900px 이상에서는 지금 값 그대로) ── */
@media (min-width: 961px) {
    .hero { padding-top: clamp(72px, 11vh, 96px); }
    .hero h1 { font-size: clamp(42px, min(7vw, 10.6vh), 76px); margin-bottom: clamp(20px, 3.6vh, 32px); }
    .hero-label { margin-bottom: clamp(20px, 3.6vh, 32px); }
    .hero-sub { margin-bottom: clamp(28px, 5.4vh, 48px); }
    .scroll-top { bottom: 14px; }           /* 푸터 선에 닿지 않게 */
}

/* ── 조금 좁은 PC 화면(961~1180px): 카드 안 글이 눌리지 않게 ── */
@media (min-width: 961px) and (max-width: 1180px) {
    :root { --gutter: 48px; }
    .svc-card { padding: 32px 24px 30px; }
    .svc-card p { font-size: 15px; }
    .svc-card p br, .w-info p br, .val p br { display: none; }
    .w-info { padding: 22px 22px 24px; }
    .w-info p { font-size: 15px; }
    .val p { max-width: 11.6em; margin-inline: auto; text-wrap: balance; }
    .rnd-banner { gap: 0 22px; padding: 26px 26px; }
}
@media (min-width: 1080px) and (max-width: 1180px) {
    .val p br { display: inline; }          /* 이 폭부터는 원문 줄바꿈이 들어간다 */
    .val p { max-width: none; }
}

/* ── 좁은 화면(960px 이하): 선이 왼쪽 가장자리로 돌아 나와 끝까지 곁에서 내려가고, 버튼 옆구리로 꺾여 들어간다 ── */
@media (max-width: 960px) {
    :root { --pad: 20px; --rail: 14px; --lead: 42px; }
    .thread, .fork, .join { display: none; }
    br.m { display: inline; }

    /* 버튼에서 내려온 선이 첫 화면 아래쪽에서 왼쪽으로 꺾인다. 가로로 누운 부분이 첫 화면 안에 보인다 */
    .hero-line::after { bottom: -38px; background: var(--accent); }   /* 꺾임의 곧은 세로 구간까지 한 번에 그린다(색도 꺾임과 같게) */
    .bend { display: block; position: relative; --c: var(--accent); filter: drop-shadow(0 0 4px rgba(255,90,31,0.55)); }
    .bend::before, .bend::after { content: ''; position: absolute; box-sizing: border-box; border: 0 solid var(--c); }
    .bend--in { height: 112px; margin-top: -84px; animation: wipe 0.6s ease-out 1.85s backwards; }
    .bend--in::before { left: calc(var(--rail) + 19px); right: calc(50% - 0.5px); top: 0; height: 50%; border-right-width: 1px; border-bottom-width: 1px; border-bottom-right-radius: 18px; }
    .bend--in::after { left: var(--rail); width: 19px; top: calc(50% - 1px); bottom: 0; border-left-width: 1px; border-top-width: 1px; border-top-left-radius: 18px; }
    @keyframes wipe { from { clip-path: inset(-12px 0 -12px calc(50% + 12px)); } to { clip-path: inset(-12px 0 -12px 0); } }

    .route { position: relative; }
    .rail { display: block; position: absolute; z-index: 2; left: var(--rail); top: 0; bottom: 0; width: 1px; background: var(--track); }
    .rail::after { transform: none; bottom: auto; height: calc(var(--p) * 100%); }   /* 아주 긴 선을 줄여 그리면 흐려져서 길이로 그린다 */

    .sec { padding: 78px var(--pad) 0 var(--lead); scroll-margin-top: 0; }
    #services { padding-top: 40px; scroll-margin-top: 36px; }
    .sec-head { text-align: left; }
    .sec-head::before { left: 40%; width: 700px; }
    /* 구역마다 선 위에 정거장: 닿기 전에는 빈 고리, 닿으면 채워지고 알약까지 불이 이어진다 */
    .sec-head::after {
        content: ''; position: absolute; left: calc(var(--rail) - var(--lead) - 4px); top: 11px; width: 9px; height: 9px; border-radius: 50%;
        background: var(--accent2); box-shadow: 0 0 0 1.5px var(--accent2), 0 0 0 5px rgba(255,90,31,0.18), 0 0 14px 3px rgba(255,90,31,0.7);
        transition: background-color 0.4s, box-shadow 0.5s;
    }
    .js .sec-head:not(.on)::after { background: var(--dark); box-shadow: 0 0 0 1.5px rgba(255,147,80,0.75), 0 0 0 1.5px rgba(255,90,31,0), 0 0 0 0 rgba(255,90,31,0); }
    .s-label::after { content: ''; position: absolute; right: 100%; top: 50%; width: calc(var(--lead) - var(--rail) - 7px); height: 1px; margin-right: 1px; background: rgba(255,90,31,0.7); transition: background-color 0.5s; }
    .js .sec-head:not(.on) .s-label::after { background: var(--track); }
    .s-sub { margin-left: 0; }
    .s-sub br { display: none; }

    .svc-card, .w-card, .rnd-banner { --lit: -22px 0 40px -20px rgba(255,90,31,0.78); }   /* 좁은 화면에서는 선이 늘 왼쪽에 있다 */
    .svc-grid { grid-template-columns: minmax(0,1fr); gap: 16px; max-width: 600px; padding-top: 6px; }
    .svc-card:nth-child(odd) { transition-delay: 0s; }
    /* 선에서 카드 세 장으로 뻗는 가지(PC 의 세 갈래를 옮긴 것) */
    .svc-card::before {
        content: ''; position: absolute; right: 100%; top: 58px; width: calc(var(--lead) - var(--rail)); height: 1px;
        background: var(--accent); box-shadow: 0 0 8px rgba(255,90,31,0.7); transform-origin: 0 50%; transition: transform 0.5s var(--ease);
    }
    .js .svc-card:not(.on)::before { transform: scaleX(0); }
    .svc-summary { max-width: 600px; margin: 0; padding: 30px 0 0; text-align: left; }
    .svc-summary p { text-wrap: pretty; }

    /* 질문 곁에서 선이 굵어진다(지금 사이트의 주황 인용 막대를 선이 이어받는다) */
    .phil-quote { text-align: left; padding: 8px 0 28px; font-size: clamp(32px, 10vw, 40px); line-height: 1.24; text-wrap: wrap; }
    .phil-quote::before {
        content: ''; position: absolute; left: calc(var(--rail) - var(--lead) - 1px); top: 14px; bottom: 30px; width: 3px; border-radius: 2px;
        background: linear-gradient(180deg, var(--accent), var(--accent2)); box-shadow: 0 0 12px rgba(255,90,31,0.7);
        transform-origin: 50% 0; transition: transform 0.7s var(--ease);
    }
    .js .phil-quote:not(.on)::before { transform: scaleY(0); }
    .flank { display: block; }
    .phil-text { max-width: 600px; }
    .phil-text p, .phil-text p:first-child { text-align: left; padding: 0 0 18px; }
    .val-track { display: block; padding: 14px 0 0; max-width: 600px; }
    .val { text-align: left; padding: 14px 0; }
    .val::after { left: calc(var(--rail) - var(--lead) - 3px); top: 23px; }
    .val:nth-child(n)::after { transition-delay: 0s; }

    .works { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; max-width: 600px; padding-top: 6px; }
    .w-row { display: contents; }
    .w-card { margin: 0; }
    .rise-graph { width: 96px; height: 96px; }
    .w-info { padding: 20px 22px 24px; }
    .w-info p { font-size: 15px; }
    .w-info p br { display: none; }
    .rnd-banner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
    .rnd-banner p br { display: none; }

    .founder h3, .founder-role { text-align: left; }
    .founder h3 { font-size: 46px; }
    .founder-links { justify-content: flex-start; margin-top: 26px; }
    .founder-bio { padding: 22px 0 0; max-width: 600px; }
    .founder-bio p { font-size: 16px; }

    .cta-section { padding-bottom: calc(110px + var(--foot)); scroll-margin-top: 40px; }
    .cta-section::before { background: radial-gradient(85% 30% at 50% 70%, rgba(255,112,50,0.42) 0%, rgba(255,90,31,0.16) 45%, rgba(255,90,31,0.04) 70%, transparent 85%); }
    .cta-top { padding-top: 96px; }
    .cta-section h2 { font-size: clamp(27px, 7.7vw, 46px); }
    .cta-section p { font-size: 16px; margin-bottom: 40px; }
    /* 왼쪽 선이 Contact 안까지 내려와 버튼 옆구리로 꺾여 들어간다(버튼에서 나온 선이 버튼에서 끝난다) */
    .inlet::before { margin-left: -4.5px; }
    .inlet { left: calc(var(--rail) - var(--pad)); right: 50%; top: 0; bottom: 29px; width: auto; height: auto; background: none; border: 0 solid var(--track); border-left-width: 1px; border-bottom-width: 1px; border-bottom-left-radius: 18px; }
    .inlet::after {
        inset: 0 0 -1px -1px; background: none; box-shadow: none; border: 0 solid var(--accent2); border-left-width: 1px; border-bottom-width: 1px; border-bottom-left-radius: 18px;
        filter: drop-shadow(0 0 4px rgba(255,90,31,0.6)); transform: none; clip-path: inset(0 -8px calc((1 - var(--p)) * 100% - 8px * var(--p)) -8px); transition: clip-path 0.5s var(--ease);
    }
}
/* 태블릿: 작업 카드는 두 줄로 */
@media (min-width: 700px) and (max-width: 960px) {
    .works { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; }
    .rnd-wrap { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    :root { --foot: 60px; }
    nav { padding: 16px 20px; }
    nav.scrolled { padding: 12px 20px; }
    .nav-links { display: none; }
    .nav-burger { display: block; }
    .hero { padding: 80px 24px 0; }
    .hero-line { flex-basis: 26px; }        /* 26px + 84px = 지금 사이트의 아래 여백 110px */
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(13,11,9,0.62) 0%, rgba(13,11,9,0.42) 30%, rgba(13,11,9,0.55) 66%, var(--dark) 100%),
            radial-gradient(120% 60% at 50% 45%, rgba(13,11,9,0.5) 0%, transparent 70%);
    }
    .hero h1 { letter-spacing: -0.03em; }
    .hero-sub { font-size: 16px; }
    .svc-card { padding: 30px 26px; }
    footer { padding: 0 24px; justify-content: center; }
}
@media (max-width: 380px) {
    .svc-card { padding: 28px 22px; }
    .svc-card p { font-size: 15px; }
    .svc-card p br, .founder-bio p br, .phil-text p br { display: none; }
    .founder-bio p { font-size: 15.5px; }
}
@media (max-width: 350px) {
    .hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-label, .hero-sub, .hero-cta, .hero h1 .line > span, .hero h1 .line > span.gradient, .hero-label::before, .hero-line::after, .bend--in { animation: none; }
    .svc-card, .w-card, .hero-cta, .cta-btn, .scroll-top, .cta-section::before { transition: none; }
}
