@font-face { font-family: "Pretendard Variable"; src: url("../assets/font/PretendardVariable.woff2") format("woff2-variations"), url("../assets/font/PretendardVariable.woff2") format("woff2"); font-weight: 45 920; font-style: normal; font-display: swap; }
/* GeoFlow | 정인지하수자원기술단 */
:root {
  --paper: #F6F7F5;
  --ink: #14201E;
  --mist: #E3EAE6;
  --aquifer: #1E5B52;
  --stone: #5F6B67;
  --signal: #E8D44D;
  --rule: rgba(20, 32, 30, .14);
  --rule-dark: rgba(246, 247, 245, .16);
  --on-dark-2: #AEB9B5;

  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: clamp(2.25rem, 1rem + 4.6vw, 5.25rem);
  --h2: clamp(2.1rem, 1.1rem + 2.6vw, 3.5rem);
  --h3: clamp(1.4rem, 1.1rem + .8vw, 1.75rem);

  --gutter: clamp(1.25rem, 3.5vw, 3rem);
  --max: 90rem;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .22em; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--aquifer); outline-offset: 3px; border-radius: 2px; }
.process :focus-visible, .quote :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--signal); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* 알약 버튼 */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.3rem;
  background: var(--mist); color: var(--ink);
  border-radius: 999px; font-weight: 500; font-size: .9375rem; text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.header-inner > .pill { background: var(--ink); color: var(--paper); }
.header-inner > .pill:hover { background: var(--aquifer); }
.pill-light { background: var(--paper); }
.pill-light:hover { background: var(--signal); color: var(--ink); }
.btn-line {
  min-height: 44px; padding: .5rem 1.1rem; background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font-size: .9375rem; font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease;
}
.btn-line:hover { border-color: var(--ink); background: var(--mist); }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 247, 245, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { background: rgba(246, 247, 245, .92); backdrop-filter: blur(10px); border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.brand-mark path { stroke: var(--aquifer); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 650; font-size: 1.1875rem; letter-spacing: -.03em; }
.brand-sub { font-size: .75rem; color: var(--stone); letter-spacing: -.01em; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .6rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* 줄 단위 등장 (JS가 켜졌을 때만) */
.reveal-lines .line { display: block; }
.js .reveal-lines .line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .reveal-lines .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.js .reveal-lines .line:nth-child(2) > span { transition-delay: .09s; }
.js .reveal-lines.is-in .line > span { transform: none; }

/* 히어로 */
.hero { padding-top: clamp(3rem, 8vw, 7rem); }
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 5vw, 6rem); align-items: end; }
.hero h1 { font-size: var(--display); font-weight: 300; line-height: 1.1; letter-spacing: -.045em; }
.hero-side { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; padding-bottom: .6rem; }
.hero-lede { color: var(--stone); max-width: 30em; }
.scroll-cue { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); transition: background-color .25s ease, border-color .25s ease; }
.scroll-cue:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; margin-top: clamp(2.5rem, 6vw, 5rem); height: clamp(420px, 72vh, 820px); overflow: hidden; background: #2b3b33; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.86) contrast(1.05); }
.js .hero-visual { clip-path: inset(6% 3% 0 3%); transition: clip-path 1.6s var(--ease-out); }
.js .hero-visual img { transform: scale(1.08); transition: transform 2.2s var(--ease-out); }
.js .hero-visual.is-in { clip-path: inset(0 0 0 0); }
.js .hero-visual.is-in img { transform: none; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,30,.05) 40%, rgba(20,32,30,.45)); pointer-events: none; }
.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-contours path { fill: none; stroke: rgba(246, 247, 245, .7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-contours path.major { stroke: var(--signal); stroke-width: 1.6; }
.hero-legend {
  position: absolute; left: var(--gutter); bottom: 1.5rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(20, 32, 30, .6); backdrop-filter: blur(6px);
  color: var(--paper); font-size: .8125rem;
}
.legend-line { width: 22px; height: 2px; background: var(--signal); }

/* 섹션 공통 */
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.25rem clamp(2rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: var(--h2); font-weight: 300; line-height: 1.12; letter-spacing: -.04em; }
.section-head p { color: var(--stone); max-width: 32em; }
.sample-note { display: inline-block; margin-top: .6rem; padding: .1rem .6rem; border-radius: 999px; background: var(--mist); color: var(--aquifer); font-size: .8125rem; font-weight: 500; }
.sample-note-dark { background: rgba(246,247,245,.1); color: var(--on-dark-2); }
.sample-inline { color: var(--on-dark-2); }

/* 탭 */
.tab-list { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  position: relative; flex: none;
  min-height: 48px; padding: .9rem 0 1rem; background: none; border: 0; cursor: pointer;
  color: var(--stone); font-size: 1rem; font-weight: 500; white-space: nowrap;
  transition: color .2s ease;
}
.tab-list [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--aquifer); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tab-list [role="tab"]:focus-visible { outline-offset: -2px; }

.tab-panel { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.tab-panel:focus-visible { outline-offset: 6px; }
.js .tab-panel.is-entering { animation: panel-in .55s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.services .tab-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(1.5rem, 3.5vw, 4rem); align-items: start; }
.services .tab-panel[hidden] { display: none; }
.panel-text h3 { font-size: var(--h3); font-weight: 400; letter-spacing: -.03em; line-height: 1.3; }
.panel-text p { margin-top: 1.1rem; color: var(--stone); }
.panel-text .codes { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink); font-size: .9375rem; font-weight: 500; }
.panel-media { min-width: 0; }
.media-stage { position: relative; overflow: hidden; border-radius: 6px; background: var(--mist); aspect-ratio: 4 / 3; }
.media-item { position: absolute; inset: 0; margin: 0; }
.media-item[hidden] { display: none; }
.media-item img, .media-item video, .media-item canvas, .media-item svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item video { background: #0f1917; }
.js .media-item.is-entering { animation: media-in .7s var(--ease-out); }
@keyframes media-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.js .tab-panel.is-entering .media-stage { animation: img-in 1.1s var(--ease-out); }
.media-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: .9rem; }
.media-tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .25rem; border-radius: 999px; background: var(--mist); }
.media-tabs button { min-height: 36px; padding: .3rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--stone); font-size: .8125rem; font-weight: 500; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.media-tabs button:hover { color: var(--ink); }
.media-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(20,32,30,.12); }
.media-toggle { min-height: 36px; padding: .3rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-size: .8125rem; font-weight: 500; cursor: pointer; }
.media-toggle:hover { border-color: var(--ink); }
.media-toggle[hidden] { display: none; }
.media-caption { margin-top: .6rem; font-size: .8125rem; color: var(--stone); line-height: 1.5; }
.mesh3d { cursor: grab; touch-action: pan-y; background: radial-gradient(120% 90% at 50% 20%, #FBFCFB, #E3EAE6); }
.mesh3d:active { cursor: grabbing; }
.repo-drawing text { font-family: var(--sans); }
.repo-drawing .t-s { font-size: 19px; fill: #1E5B52; font-weight: 500; }
.repo-drawing .t-l text { font-size: 23px; font-weight: 600; fill: #14201E; paint-order: stroke; stroke: #F1F4F2; stroke-width: 4px; stroke-linejoin: round; }
.repo-drawing .inflow path { stroke-dasharray: 5 7; }
.js .repo-drawing .inflow path { animation: seep 2.4s linear infinite; }
@keyframes seep { to { stroke-dashoffset: -24; } }
@keyframes img-in { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }

/* 아코디언 */
.accordion { border-bottom: 1px solid var(--rule); }
.acc-item { border-top: 1px solid var(--rule); }
.acc-item h4 { font-size: 1rem; font-weight: 500; }
.acc-item button {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; background: none; border: 0; cursor: pointer; text-align: left; line-height: 1.4;
}
.acc-icon { position: relative; flex: none; width: 14px; height: 14px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .35s var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item button[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-body p { padding-bottom: 1.2rem; color: var(--stone); font-size: .9375rem; max-width: 30em; }
.js .acc-body.is-opening { animation: acc-in .4s var(--ease-out); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 해석 절차 (어두운 구간) */
.process { background: var(--ink); color: var(--paper); }
.process .section-head p { color: var(--on-dark-2); }
.tab-list-dark { border-bottom-color: var(--rule-dark); }
.tab-list-dark [role="tab"] { color: var(--on-dark-2); }
.tab-list-dark [role="tab"]:hover, .tab-list-dark [role="tab"][aria-selected="true"] { color: var(--paper); }
.tab-list-dark [role="tab"]::after { background: var(--signal); }

.flow { display: flex; align-items: flex-start; margin-top: 1.5rem; padding-bottom: 2.75rem; }
.flow .node {
  position: relative; flex: 1 1 0; min-width: 0; height: 170px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(246,247,245,.085), rgba(246,247,245,.025));
  box-shadow: inset 0 0 0 1px rgba(246,247,245,.09), 0 18px 40px -24px rgba(0,0,0,.6);
  transition: transform .5s var(--ease-out), box-shadow .4s ease, background-color .4s ease;
}
.flow .node:nth-child(4n+3) { margin-top: 2.75rem; }
.flow .node:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(246,247,245,.18), 0 24px 48px -24px rgba(0,0,0,.7); }
.node-dot { position: absolute; top: 1.35rem; left: 1.4rem; width: 10px; height: 10px; border-radius: 50%; background: rgba(246,247,245,.35); box-shadow: 0 0 0 5px rgba(246,247,245,.06); }
.flow .node h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.02em; }
.flow .node p { font-size: .875rem; color: var(--on-dark-2); line-height: 1.55; }
.flow .node-accent { background: linear-gradient(160deg, rgba(232,212,77,.16), rgba(232,212,77,.04)); box-shadow: inset 0 0 0 1px rgba(232,212,77,.45), 0 0 60px -12px rgba(232,212,77,.25); }
.flow .node-accent .node-dot { background: var(--signal); box-shadow: 0 0 0 5px rgba(232,212,77,.18), 0 0 18px rgba(232,212,77,.6); }
.flow .link { position: relative; flex: 0 0 clamp(56px, 6.5vw, 104px); align-self: stretch; }
.flow .link svg { position: absolute; left: -6px; right: -6px; top: 63px; width: calc(100% + 12px); height: 88px; overflow: visible; }
.flow .link path { fill: none; vector-effect: non-scaling-stroke; }
.flow .link .c-base { stroke: rgba(246,247,245,.18); stroke-width: 1.5; }
.flow .link .c-flow { stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 14; opacity: .85; }
.flow .link span { position: absolute; left: 50%; top: 112px; transform: translate(-50%, -50%); padding: .2rem .7rem; top: 107px; border-radius: 999px; background: rgba(20,32,30,.9); box-shadow: inset 0 0 0 1px rgba(246,247,245,.18); color: var(--paper); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.js .flow .link svg { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-out); }
.js .flow .link span { opacity: 0; transition: opacity .5s ease .3s; }
.js .flow .node { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease-out), box-shadow .4s ease; }
.js .flow.is-drawn .node { opacity: 1; transform: none; }
.js .flow.is-drawn .node:hover { transform: translateY(-4px); }
.js .flow.is-drawn .link svg { clip-path: inset(0 0 0 0); }
.js .flow.is-drawn .link span { opacity: 1; }
.js .flow.is-drawn .node:nth-child(3) { transition-delay: .15s; } .js .flow.is-drawn .link:nth-child(4) svg { transition-delay: .25s; }
.js .flow.is-drawn .node:nth-child(5) { transition-delay: .3s; } .js .flow.is-drawn .link:nth-child(6) svg { transition-delay: .45s; }
.js .flow.is-drawn .node:nth-child(7) { transition-delay: .45s; } .js .flow.is-drawn .link:nth-child(2) svg { transition-delay: .05s; }
.js .flow.is-drawn .link .c-flow { animation: flow-run 1.6s linear infinite; }
@keyframes flow-run { to { stroke-dashoffset: -32; } }
.flow-note { margin-top: 1rem; color: var(--on-dark-2); max-width: 44em; font-size: .9375rem; }

/* 사용 코드 */
.software-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem clamp(2rem, 6vw, 7rem); }
.software h2 { font-size: var(--h2); font-weight: 300; line-height: 1.12; letter-spacing: -.04em; }
.software-lede { margin-top: 1.5rem; color: var(--stone); max-width: 30em; }
.code-list > div { display: grid; grid-template-columns: minmax(9rem, 2fr) 3fr; gap: 1rem; padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.code-list > div:last-child { border-bottom: 1px solid var(--rule); }
.code-list dt { font-weight: 600; letter-spacing: -.01em; }
.code-list dd { color: var(--stone); }

/* 계산기 */
.tool { background: var(--mist); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.field-stage { position: relative; background: #fff; border: 1px solid var(--rule); }
#field-canvas { width: 100%; aspect-ratio: 4 / 3; cursor: crosshair; touch-action: manipulation; }
.field-readout { position: absolute; left: .6rem; bottom: .6rem; display: flex; gap: 1rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(246,247,245,.92); font-size: .8125rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.field figcaption { margin-top: .9rem; color: var(--stone); font-size: .875rem; }
.tool-controls { display: grid; gap: 1.25rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--rule); }
.ctl { display: grid; gap: .4rem; }
.ctl-label { font-size: .875rem; color: var(--stone); }
.ctl-label output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ctl input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--aquifer); }
.ctl input[type="number"] { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; font-variant-numeric: tabular-nums; }
.ctl input[type="number"]:focus-visible { outline-offset: 0; }
.colorbar { display: grid; gap: .25rem; font-size: .8125rem; color: var(--stone); }
.colorbar-ramp { height: 10px; border-radius: 2px; background: linear-gradient(90deg, #F6F7F5, #CFE3D8, #6FB3A0, #2A7A6E, #1E4F5B, #2A2550); }
.colorbar-ticks { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.tool-status { min-height: 1.6em; font-weight: 500; font-size: .9375rem; }
.tool-note { font-size: .8125rem; color: var(--stone); line-height: 1.6; }
.tool-controls .btn-line { justify-self: start; }

/* 수행 실적 */
.table-scroll { overflow-x: auto; }
.project-table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.project-table th { text-align: left; font-weight: 500; font-size: .875rem; color: var(--stone); padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--ink); }
.project-table td { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.project-table td:first-child { width: 5rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.project-table td:nth-child(2) { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.project-table td:nth-child(3), .project-table td:nth-child(4) { color: var(--stone); white-space: nowrap; }
.project-table tbody tr { transition: background-color .2s ease; }
.project-table tbody tr:hover { background: var(--mist); }

/* 인용 */
.quote { position: relative; color: var(--paper); background: var(--ink); overflow: hidden; }
.quote-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,32,30,.92) 30%, rgba(20,32,30,.4)); }
.quote-inner { position: relative; z-index: 1; padding-block: clamp(6rem, 12vw, 11rem); }
.quote blockquote { max-width: 48rem; }
.quote blockquote p { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 300; line-height: 1.4; letter-spacing: -.035em; }
.quote blockquote footer { margin-top: 2rem; font-size: .9375rem; color: var(--on-dark-2); }
.about-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(4rem, 8vw, 7rem); }
.about-points li { padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); color: var(--on-dark-2); font-size: .9375rem; }
.about-points strong { display: block; margin-bottom: .5rem; color: var(--paper); font-weight: 500; font-size: 1.0625rem; }

/* 문의 */
.contact { position: relative; color: var(--paper); background: var(--ink); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20,32,30,.97) 35%, rgba(20,32,30,.78)); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem clamp(2.5rem, 6vw, 7rem); padding-block: clamp(5rem, 10vw, 8.5rem); align-items: start; }
.contact-title { font-size: var(--h2); font-weight: 300; line-height: 1.12; letter-spacing: -.04em; }
.contact-lede { margin-top: 1.5rem; color: var(--on-dark-2); max-width: 28em; }
.contact-list { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.75rem; }
.contact-list dt { font-size: .875rem; color: var(--on-dark-2); }
.contact-list dd { margin-top: .3rem; line-height: 1.6; }
.contact-big { display: inline-block; padding-block: .2rem; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 400; letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .2s; }
.contact-big:hover { color: var(--signal); background-size: 100% 1px; }

/* 문의 양식 */
.form-card { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--rule-dark); border-radius: 8px; background: rgba(246, 247, 245, .045); backdrop-filter: blur(8px); }
.form-card h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.inquiry { margin-top: 1.75rem; display: grid; gap: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: .9375rem; font-weight: 500; }
.req { color: var(--signal); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  border: 1px solid rgba(246, 247, 245, .22); border-radius: 6px;
  background: rgba(20, 32, 30, .55); color: var(--paper); font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AEB9B5' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
.field select option { color: var(--ink); background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(246, 247, 245, .4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); background-color: rgba(20, 32, 30, .8); }
.field :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #F2A38E !important; }
.field-help { font-size: .8125rem; color: var(--on-dark-2); line-height: 1.55; }
.field-error { font-size: .8125rem; color: #F2A38E; font-weight: 500; }
.field-error::before { content: "! "; font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: .65rem; }
.check input { flex: none; width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--signal); cursor: pointer; }
.check label { cursor: pointer; }
.form-summary { padding: 1rem 1.1rem; border: 1px solid #F2A38E; border-radius: 6px; background: rgba(242, 163, 142, .08); font-size: .9375rem; }
.form-summary p { font-weight: 600; }
.form-summary ul { margin-top: .4rem; display: grid; gap: .2rem; }
.form-summary a { color: #F2A38E; }
.submit {
  width: 100%; min-height: 52px; padding: .8rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--signal); color: var(--ink); font-size: 1rem; font-weight: 600;
  transition: background-color .2s ease;
}
.submit:hover { background: var(--paper); }
.submit[disabled] { opacity: .5; cursor: progress; }
.form-status { min-height: 1.5em; font-size: .9375rem; color: var(--paper); }
.form-status:empty { display: none; }
.form-status.is-ok { padding: .9rem 1rem; border-radius: 6px; background: rgba(232, 212, 77, .1); border: 1px solid rgba(232, 212, 77, .5); }

/* 푸터 */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: .875rem; border-top: 1px solid var(--rule-dark); }
.footer-inner { display: grid; grid-template-columns: 2fr 3fr; gap: 1.5rem 3rem; padding-block: 3rem; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.25rem; }
.footer-info { display: grid; gap: .35rem; }
.footer-info div { display: grid; grid-template-columns: 8rem 1fr; }
.footer-credit, .footer-copy { grid-column: 1 / -1; }
.footer-credit { padding-top: 1.5rem; border-top: 1px solid var(--rule-dark); }

/* 태블릿 */
@media (max-width: 1100px) {
  .services .tab-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services .panel-media { grid-row: span 2; order: 2; }
}
@media (max-width: 1000px) {
  .site-nav ul { gap: 1.25rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-controls { grid-template-columns: 1fr 1fr; }
  .tool-controls .colorbar, .tool-controls .tool-status, .tool-controls .tool-note, .tool-controls .btn-line { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-head, .section-head, .software-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .flow .node { flex: none; height: auto; min-height: 0; padding-top: 2.6rem; }
  .flow .node:nth-child(4n+3) { margin-top: 0; }
  .flow .link { flex: 0 0 64px; align-self: stretch; }
  .flow .link svg { display: none; }
  .flow .link::before { content: ""; position: absolute; left: calc(1.4rem + 4px); top: 4px; bottom: 4px; width: 2px; border-radius: 2px;
    background: repeating-linear-gradient(to bottom, var(--signal) 0 3px, transparent 3px 14px); opacity: .8; }
  .js .flow.is-drawn .link::before { animation: drip 1.2s linear infinite; }
  @keyframes drip { to { background-position: 0 14px; } }
  .flow .link span { top: 50%; left: 3.25rem; transform: translateY(-50%); }
  .about-points { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* 모바일 */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -.4rem;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease-out), background-color .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; padding: .5rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .site-nav.is-open { display: block; }
  .site-header:has(.site-nav.is-open) { background: var(--paper); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .9rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); }
  .site-nav a::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { gap: .75rem; }
  .pill { min-height: 40px; padding: .45rem 1rem; font-size: .875rem; }
  .brand-mark { width: 28px; height: 28px; }
  .hero-side { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero-visual { height: 64vh; min-height: 380px; }
  .services .tab-panel { grid-template-columns: 1fr; }
  .services .panel-media { grid-row: auto; order: 0; }
  .tool-controls { grid-template-columns: 1fr; padding: 1.25rem; }
  .code-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-info div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* 카테고리 전환 (블록 와이프) */
.page-wipe { position: fixed; inset: 0; z-index: 500; display: none; flex-direction: column; pointer-events: none; }
.page-wipe.is-active { display: flex; pointer-events: auto; }
.page-wipe .wipe-row { flex: 1; display: flex; }
.page-wipe .wipe-block { flex: 1; background: #CFDDD6; transform: scaleX(0); margin-right: -1px; }
.page-wipe .wipe-row:nth-child(even) .wipe-block { background: #C4D4CC; }
.page-wipe .wipe-mark { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: 0; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; transition: opacity .25s ease; }
.page-wipe.is-covered .wipe-mark { opacity: 1; }
.page-wipe .wipe-mark path { stroke: var(--aquifer); }