/* 예성총회 모바일 행정 시범 제안 · 첫 화면
   모티프: 종이 문서와 직인. 움직임은 이징 세 가지로만 만든다. */
@font-face {
  font-family: "Pilot Sans";
  src: url("/assets/fonts/pilot-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Pilot Serif";
  src: url("/assets/fonts/pilot-serif.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --paper: #FAF7F1;
  --paper-2: #F3EEE4;
  --sheet: #FFFEFB;
  --ink: #17202E;
  --ink-2: #47536A;
  --ink-3: #7B8497;
  --line: #E2DACB;
  --line-2: #CFC5B2;
  --navy: #14233B;
  --navy-deep: #0C1727;
  --seal: #B4281C;
  --seal-soft: #F8E6E2;
  --gold: #9A7A3A;
  --ok: #2C6A4D;
  --ok-soft: #E4F1E9;

  --f-body: "Pilot Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-display: "Pilot Serif", "Noto Serif KR", "Nanum Myeongjo", AppleMyungjo, Batang, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);        /* 관성 감속 */
  --ease-io: cubic-bezier(.77, 0, .175, 1);    /* 양방향 */
  --ease-back: cubic-bezier(.2, 1.35, .3, 1);  /* 살짝 넘침 */
  --dur: .9s;

  --gutter: clamp(18px, 4.4vw, 48px);
  --hdr: 64px;
  --r-sm: 8px;
  --r-md: 14px;
  --sh-1: 0 1px 2px rgba(20, 35, 59, .05), 0 12px 30px -18px rgba(20, 35, 59, .22);
  --sh-2: 0 2px 6px rgba(20, 35, 59, .06), 0 34px 70px -34px rgba(20, 35, 59, .42);
  --base: 18px;
}
html.is-large { --base: 20.5px; }

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: var(--base);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid #E0A93B; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── 등장: 화면에 들어올 때마다 다시, 올라갈 때는 위에서 ── */
.rv-on [data-rv] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.rv-on [data-rv][data-from="top"] { transform: translate3d(0, -22px, 0); }
.rv-on [data-rv].in { opacity: 1; transform: none; }

/* ── 머리말 ── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  background: rgba(250, 247, 241, .97);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20, 35, 59, .5); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.hdr-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.hdr-mark {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.8px solid var(--seal); color: var(--seal); border-radius: 4px;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1;
}
.hdr-name { font-size: .86rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-name b { color: var(--ink); }
.hdr-nav { margin-left: auto; display: flex; gap: 4px; }
.hdr-nav a {
  position: relative; padding: 8px 12px; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .3s;
}
.hdr-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--seal);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-font {
  flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--sheet); border-radius: 999px;
  font-size: .82rem; font-weight: 700; transition: background .3s, border-color .3s, color .3s;
}
.hdr-font:hover, .hdr-font[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── 버튼: 채움이 밀려 들어오는 hover ── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; background: none;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .38; cursor: default; }
.btn:disabled::before { display: none; }

.btn--primary { background: var(--seal); color: #fff; font-size: 1.1rem; min-height: 62px; padding: 0 30px; box-shadow: 0 16px 34px -18px rgba(180, 40, 28, .75); }
.btn--primary::before { background: var(--navy); }
.btn--primary:hover { box-shadow: 0 16px 34px -18px rgba(20, 35, 59, .7); }
.btn-play { width: 0; height: 0; border-left: 12px solid currentColor; border-block: 8px solid transparent; }

.btn--line { border-color: var(--line-2); background: var(--sheet); color: var(--ink); }
.btn--line::before { background: var(--navy); }
.btn--line:hover, .btn--line:focus-visible { color: #fff; border-color: var(--navy); }

.btn--solid { background: var(--navy); color: #fff; min-width: 120px; }
.btn--solid::before { background: var(--seal); }
.btn--ghost { border-color: var(--line-2); background: var(--sheet); min-width: 96px; }
.btn--ghost::before { background: var(--paper-2); }
.btn--text { min-height: 48px; padding: 0 10px; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.btn--text:hover { color: var(--ink); text-decoration-color: var(--seal); }
.btn--text[aria-pressed="true"] { color: var(--seal); font-weight: 700; }
.btn--onnavy::before { background: #fff; }
.btn--onnavy:hover, .btn--onnavy:focus-visible { color: var(--navy); }

/* ── 대문 ── */
.hero {
  position: relative; padding: calc(var(--hdr) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 55% at 86% 12%, rgba(180, 40, 28, .07), transparent 70%),
    radial-gradient(55% 60% at 8% 96%, rgba(154, 122, 58, .13), transparent 70%),
    linear-gradient(180deg, #FDFBF7 0%, var(--paper) 100%);
  overflow: clip;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; line-height: 1.35; }
.tag--org { background: var(--navy); color: #fff; }
.tag--by { border: 1.5px solid var(--seal); color: var(--seal); background: var(--sheet); }

.hero-title {
  font-family: var(--f-display); font-weight: 700; color: var(--navy-deep);
  font-size: clamp(1.62rem, 1.1rem + 2.1vw, 2.56rem); line-height: 1.42; letter-spacing: -.012em;
}
.hero-title .ph { display: inline-block; max-width: 100%; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-title .w > span { display: inline-block; }
.rv-on .hero-title .w > span {
  transform: translateY(105%);
  transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 55ms + 120ms);
}
.rv-on .hero-title.in .w > span { transform: none; }
.hero-sub { margin-top: 22px; max-width: 34em; font-size: 1.06rem; color: var(--ink-2); --i: 6; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; --i: 8; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--ink-3); --i: 9; }

.hero-stage { position: relative; margin-bottom: 70px; --i: 4; }
.paper-frame {
  position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--sh-2); transform: rotate(1.4deg); transform-origin: 60% 40%;
}
.paper-frame::before { /* 뒤에 겹친 종이 한 장 */
  content: ""; position: absolute; inset: 0; z-index: -1; background: #F6F1E7; border: 1px solid var(--line);
  border-radius: 6px; transform: rotate(-3.2deg) translate(-10px, 8px); box-shadow: var(--sh-1);
}
.paper-frame--flat { transform: none; }
.paper-frame--flat::before { transform: rotate(-1.3deg) translate(-6px, 6px); }
.hero-panel {
  position: absolute; left: -22px; bottom: -84px; z-index: 2; min-width: 250px;
  padding: 14px 18px; border-radius: var(--r-md); background: rgba(20, 35, 59, .94); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(12, 23, 39, .8); --i: 12;
}
.hero-panel-k { display: block; font-size: .74rem; letter-spacing: .08em; color: #B9C4D6; }
.hero-flow { display: flex; align-items: center; gap: 6px; margin: 6px 0 8px; font-size: .86rem; font-weight: 700; }
.hero-flow li { display: inline-flex; align-items: center; gap: 6px; }
.hero-flow li + li::before { content: ""; width: 14px; height: 1.5px; background: #6E7C93; }
.hero-panel-v { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: #F3C9C2; }
.hero-panel-v::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #E2594A; box-shadow: 0 0 0 4px rgba(226, 89, 74, .22); }

/* ── 종이 문서(대문·시연 공용) ── */
.paper { position: relative; padding: 1.5em 1.6em 1.4em; font-size: clamp(11.5px, .56rem + .22vw, 14.5px); line-height: 1.6; color: var(--ink); }
.paper-notice {
  display: inline-block; margin-bottom: 1em; padding: .25em .8em; border: 1px solid #DDBC7A; background: #FCF4DF;
  color: #7A5411; font-size: .86em; font-weight: 700; border-radius: 4px;
}
.paper-org { text-align: center; color: var(--ink-3); font-size: .86em; }
.paper-title {
  margin: .25em 0 .7em; padding-bottom: .55em; text-align: center; font-family: var(--f-display); font-weight: 700;
  font-size: 1.62em; line-height: 1.35; color: var(--navy-deep); border-bottom: 3px double var(--navy);
}
.paper-meta { display: grid; grid-template-columns: auto minmax(0, 1.35fr) auto minmax(0, 1fr); border: 1px solid var(--line-2); border-bottom: 0; }
.paper-meta dt, .paper-meta dd { padding: .42em .7em; border-bottom: 1px solid var(--line-2); min-width: 0; }
.paper-meta dt { background: #F4F0E8; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.paper-meta dd { font-weight: 500; }
.paper-meta dd:nth-of-type(odd) { border-right: 1px solid var(--line-2); }
.paper-status { color: var(--seal); font-weight: 700; transition: color .5s; }
.paper-status.is-done { color: var(--ok); }
.paper-body { margin-top: 1em; padding: 1em 1.1em; border: 1px solid var(--line-2); min-height: 9em; }
.paper-body p { min-height: 1.2em; }
.paper-sign { margin-top: 1em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); }
.paper-sign li { position: relative; padding: 0 .3em .7em; text-align: center; border-left: 1px solid var(--line-2); transition: background .6s var(--ease); }
.paper-sign li:first-child { border-left: 0; }
.paper-sign li.is-turn { background: #FDF6E3; }
.sign-role { display: block; margin: 0 -.3em .6em; padding: .34em .2em; background: #F4F0E8; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: .92em; }
.sign-slot { height: 5.2em; display: grid; place-items: center; }
.sign-wait { font-size: .86em; color: var(--ink-3); }
.is-turn .sign-wait { color: #8A5B06; font-weight: 700; }
.sign-name { display: block; font-weight: 700; font-size: .94em; }
.sign-time { display: block; font-size: .8em; color: var(--ink-3); min-height: 1.4em; }

.seal {
  width: 4.5em; height: 4.5em; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .08em;
  border: .17em solid var(--seal); outline: .05em solid var(--seal); outline-offset: -.38em;
  color: var(--seal); font-weight: 700; line-height: 1.15; border-radius: .2em;
  background: rgba(180, 40, 28, .035); transform: rotate(-4deg); mix-blend-mode: multiply;
}
.seal small { font-size: .56em; font-weight: 500; letter-spacing: .04em; }
.seal span { font-size: .78em; }
.seal b { font-size: .92em; }
.is-done .seal { display: flex; }
.is-done .sign-wait { display: none; }
.is-done.is-fresh .seal { animation: stamp .62s var(--ease-back) both; animation-delay: calc(var(--sd, 0) * 1ms); }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-16deg) scale(1.9); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}
.paper-ribbon {
  position: absolute; right: 1.4em; top: 1.3em; padding: .3em .9em; border-radius: 4px; background: var(--ok-soft); color: var(--ok);
  font-weight: 700; font-size: .86em; opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.paper.is-issued .paper-ribbon { opacity: 1; transform: none; }
/* 대문에 놓는 작은 문서는 본문을 줄인다 */
.paper--mini .paper-body { max-height: 8.6em; overflow: hidden; position: relative; }
.paper--mini .paper-body::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(transparent, var(--sheet)); }

/* ── 구간 공통 ── */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(30px, 4.6vw, 54px); }
.sec-k { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .84rem; font-weight: 700; letter-spacing: .06em; color: var(--seal); }
.sec-k::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.sec-h { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.06rem + 1.7vw, 2.3rem); line-height: 1.42; letter-spacing: -.012em; color: var(--navy-deep); --i: 1; }
.sec-d { margin-top: 16px; color: var(--ink-2); font-size: 1.02rem; --i: 2; }
.sec-k--light { color: #F0B9B1; }
.sec-h--light { color: #fff; }
.sec-d--light { color: #C9D3E2; }

/* ── 시연 ── */
.demo { background: var(--paper-2); border-block: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.demo-side { position: sticky; top: calc(var(--hdr) + 20px); }
.demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.demo-tab {
  position: relative; overflow: hidden; display: grid; gap: 2px; justify-items: start; text-align: left;
  min-height: 86px; padding: 12px 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--sheet);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.demo-tab:hover { transform: translateY(-2px); border-color: var(--navy); }
.demo-tab-n { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--seal); transition: color .5s; }
.demo-tab-t { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.demo-tab-s { font-size: .74rem; line-height: 1.35; color: var(--ink-3); transition: color .5s; }
.demo-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.demo-tab[aria-selected="true"] .demo-tab-n { color: #F3B5AC; }
.demo-tab[aria-selected="true"] .demo-tab-s { color: #B9C4D6; }
.demo-tab.is-past { background: #EEF1F5; border-color: #D5DBE5; }
.demo-tab-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #E2594A; transform: scaleX(var(--p, 0)); transform-origin: left; }
.demo-tab:not([aria-selected="true"]) .demo-tab-bar { display: none; }

.demo-panel { margin-top: 26px; min-height: 15em; }
.demo-count { font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.demo-title { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.42rem; line-height: 1.45; color: var(--navy-deep); }
.demo-lead { margin-top: 10px; color: var(--ink-2); }
.demo-points { margin-top: 16px; display: grid; gap: 10px; }
.demo-points li { position: relative; padding-left: 26px; }
.demo-points li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 12px; height: 7px; border-left: 2.2px solid var(--seal); border-bottom: 2.2px solid var(--seal); transform: rotate(-45deg); }
.demo-panel.is-swap > * { animation: swap .7s var(--ease) both; }
.demo-panel.is-swap > *:nth-child(2) { animation-delay: 50ms; }
.demo-panel.is-swap > *:nth-child(3) { animation-delay: 100ms; }
.demo-panel.is-swap > *:nth-child(4) { animation-delay: 150ms; }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.demo-ctrl { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-stage { padding: 6px 6px 0 12px; }
.demo-issue {
  margin-top: 6px; padding: 18px 20px; border-radius: var(--r-md); background: var(--sheet); border: 1.5px solid var(--ok);
  box-shadow: var(--sh-1); animation: swap .8s var(--ease) both;
}
.demo-issue-t { font-weight: 700; color: var(--ok); }
.demo-issue-b { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 구현 범위: 장부처럼 줄로만 나눈다 ── */
.ledger { border-top: 2px solid var(--navy); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); }
.ledger-head { padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: .84rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.ledger-head span:nth-child(2) { color: var(--ok); }
.ledger-row { padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line-2); transition: background .5s var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ledger-row:hover { background: rgba(255, 254, 251, .7); }
.ledger-row h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.16rem; line-height: 1.5; color: var(--navy-deep); }
.ledger-row p:nth-child(2) { position: relative; padding-left: 26px; }
.ledger-row p:nth-child(2)::before { content: ""; position: absolute; left: 2px; top: .62em; width: 13px; height: 7px; border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok); transform: rotate(-45deg); }
.ledger-row p:nth-child(3) { color: var(--ink-2); }
.scope-foot { margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--sheet); color: var(--ink-2); box-shadow: var(--sh-1); }
.scope-foot strong { color: var(--ink); }

/* ── 시범 도입 ── */
.pilot { background: var(--sheet); border-block: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1.5px; background: var(--line-2); }
.step { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border: 1.5px solid var(--seal); border-radius: 6px; background: var(--sheet); color: var(--seal);
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease-back);
}
.step:hover .step-n { background: var(--seal); color: #fff; transform: rotate(-4deg) scale(1.06); }
.step h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.45; color: var(--navy-deep); }
.step p { margin-top: 8px; font-size: .94rem; color: var(--ink-2); }
.step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; } .step:nth-child(4) { --i: 3; }

.roles { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.role { padding: 26px 28px; border: 1px solid var(--line-2); border-top: 3px solid var(--navy); background: var(--paper); }
.role--karis { border-top-color: var(--seal); --i: 1; }
.role h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy-deep); }
.role ul { margin-top: 14px; display: grid; gap: 10px; }
.role li { position: relative; padding-left: 18px; color: var(--ink-2); }
.role li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1.5px; background: var(--ink-3); }

/* ── 카리스미디어 ── */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.work {
  position: relative; display: block; padding: 28px 30px 26px; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; box-shadow: var(--sh-1);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease), opacity var(--dur) var(--ease);
}
.work:nth-child(2) { --i: 1; }
.work.in:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.work-k { font-size: .82rem; font-weight: 700; color: var(--ok); }
.work h3 { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.34rem; line-height: 1.45; color: var(--navy-deep); }
.work dl { margin-top: 16px; display: grid; gap: 12px; }
.work dt { font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.work dd { color: var(--ink-2); }
.work-go, .contact-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.work-go { margin-top: 20px; color: var(--seal); }
.work-go i, .contact-link i { width: 22px; height: 1.5px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.work-go i::after, .contact-link i::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.work:hover .work-go i, .contact-link:hover i { width: 36px; }

/* ── 상담 ── */
.contact { background: radial-gradient(70% 90% at 90% 0%, rgba(180, 40, 28, .28), transparent 62%), var(--navy); color: #fff; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact-act { display: grid; justify-items: start; gap: 12px; }
.contact-mail { font-size: .94rem; color: #C9D3E2; letter-spacing: .01em; }
.contact-link { min-height: 44px; color: #fff; text-decoration: none; font-size: .96rem; }

.ftr { padding: 30px 0 44px; background: var(--navy-deep); color: #A9B5C8; font-size: .84rem; }
.ftr-in { display: grid; gap: 6px; }
.ftr strong { color: #fff; }
.nw { white-space: nowrap; }
.noscript { margin: 0; padding: 16px var(--gutter); background: #FCF4DF; color: #5C4108; }

/* ── 구간 레일 · 맨 위로 ── */
.rail { position: fixed; right: 18px; top: 50%; z-index: 40; transform: translateY(-50%); display: none; gap: 14px; flex-direction: column; align-items: flex-end; }
.rail a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-3); font-size: .74rem; font-weight: 700; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); background: rgba(250, 247, 241, .95); padding: 2px 8px; border-radius: 4px; }
.rail a::after { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--ink-3); border-radius: 2px; background: var(--paper); transition: background .4s, border-color .4s, transform .5s var(--ease-back); }
.rail a:hover span, .rail a.is-on span { opacity: 1; transform: none; }
.rail a.is-on { color: var(--seal); }
.rail a.is-on::after { background: var(--seal); border-color: var(--seal); transform: rotate(45deg) scale(1.15); }
@media (min-width: 1280px) { .rail { display: flex; } }

.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: none; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease-back);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 100%; height: 100%; display: block; }
.totop-bg { fill: var(--sheet); stroke: var(--line-2); stroke-width: 1.5; }
.totop-ring { fill: none; stroke: var(--seal); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; stroke-dasharray: 132; stroke-dashoffset: 132; }
.totop path { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── 태블릿·휴대폰 ── */
@media (max-width: 1139px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 560px; margin-top: 18px; margin-bottom: 84px; }
}
@media (max-width: 1023px) {
  .hdr-nav { display: none; }
  .hdr-font { margin-left: auto; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-side { position: static; }
  .demo-panel { min-height: 0; }
  .contact-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --hdr: 56px; }
  .hdr-name { font-size: .8rem; }
  .hero-title { line-height: 1.46; }
  .hero-cta .btn { width: 100%; }
  .paper-frame { transform: rotate(.6deg); }
  .paper-frame::before { transform: rotate(-1.6deg) translate(-4px, 6px); }
  .hero-stage { margin-bottom: 0; }
  .hero-panel { position: relative; left: 0; bottom: 0; margin: 14px 0 0 10px; min-width: 0; width: fit-content; max-width: calc(100% - 20px); }
  .paper { padding: 1.2em 1em 1.1em; font-size: clamp(11px, 3.2vw, 13.4px); }
  .paper-meta { grid-template-columns: auto minmax(0, 1fr); }
  .paper-meta dd:nth-of-type(odd) { border-right: 0; }
  .demo-tabs { gap: 4px; }
  .demo-tab { min-height: 72px; padding: 10px 6px 12px; justify-items: center; text-align: center; }
  .demo-tab-s { display: none; }
  .demo-tab-t { font-size: .84rem; }
  .demo-stage { padding: 4px 2px 0 6px; }
  .demo-ctrl .btn--solid, .demo-ctrl .btn--ghost { flex: 1 1 40%; }
  .demo-issue-b .btn { width: 100%; }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ledger-row p[data-label]::after { content: none; }
  .ledger-row p:nth-child(3) { padding: 12px 14px; background: rgba(255, 254, 251, .8); border: 1px dashed var(--line-2); }
  .ledger-row p:nth-child(3)::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 700; color: var(--gold); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1.5px; height: auto; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
  .step-n { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: center; }
  .step p { grid-column: 2; }
  .roles, .works { grid-template-columns: minmax(0, 1fr); }
  .role, .work { padding: 22px 20px; }
  .contact-act .btn { width: 100%; }
  .totop { right: 12px; bottom: 12px; }
}

/* ── 움직임 줄이기: 모든 내용이 처음부터 보인다 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rv], .hero-title .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .is-fresh .seal, .demo-panel.is-swap > *, .demo-issue { animation: none !important; }
  .btn::before, .hdr, .totop, .work, .demo-tab { transition: none !important; }
}
