:root {
  color-scheme: light;
  --ink: #151c2e;
  --muted: #515e73;
  --line: #dbe1ed;
  --paper: #f6f7fb;
  --blue: #1c45db;
  --deep: #142451;
  font: 16px/1.55 "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid #7196ff; outline-offset: 4px; }
img { display: block; width: 100%; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; background: white; padding: 10px; z-index: 2; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand, nav { display: flex; align-items: center; }
.brand { gap: 10px; font-size: 1.15rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--blue); color: white; font-weight: 800; letter-spacing: -.07em; }
nav { flex-wrap: wrap; gap: 12px 26px; font-weight: 660; }
nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: 8px 12px; border: 1px solid #aebcdb; border-radius: 7px; color: #173494; }
.nav-cta span, .button span { margin-left: 7px; }
.hero { display: grid; grid-template-columns: 1fr 1.14fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: 62px 74px; }
.eyebrow { color: #2851b9; font-size: .9rem; font-weight: 750; margin-bottom: 18px; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.55rem); line-height: 1.07; letter-spacing: -.075em; font-weight: 820; word-break: keep-all; }
h1 em { font-style: normal; color: var(--blue); }
.lead { color: var(--muted); max-width: 43ch; margin-top: 22px; font-size: 1.08rem; word-break: keep-all; }
.hero-visual { overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 2; background: #dce6ff; }
.hero-visual img { height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-weight: 740; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #183bb9; }
.secondary { border-color: #aebcdb; color: #203a79; }
.secondary:hover, .nav-cta:hover { background: #e8eeff; }
.service-section { background: #fff; border-block: 1px solid var(--line); padding-block: 66px 74px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .contact h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.13; letter-spacing: -.062em; word-break: keep-all; }
.section-heading p { color: var(--muted); margin-top: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.service { grid-column: span 2; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f9faff; }
.service.featured { grid-column: span 3; }
.service img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; }
.service-copy { padding: 18px 20px 22px; }
.service h3, .process h3 { font-size: 1.23rem; letter-spacing: -.035em; line-height: 1.25; }
.service p, .process p { color: var(--muted); margin-top: 8px; word-break: keep-all; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 15px 0 0; }
.tags li { color: #2443a2; font-size: .82rem; font-weight: 680; background: #eaf0ff; padding: 4px 9px; border-radius: 4px; }
.compact { display: grid; align-content: center; }
.compact .service-copy + .service-copy { border-top: 1px solid var(--line); }
.process { padding-block: 64px 76px; }
.process ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; gap: 18px; }

.contact { background: var(--deep); color: white; padding-block: 59px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(20px, 6vw, 80px); }
.contact p { color: #d4e0ff; margin-top: 14px; max-width: 38ch; }
form { display: grid; gap: 8px; min-width: 0; }
form label { font-weight: 680; }
select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #acb9d4; border-radius: 6px; padding: 9px 11px; }
textarea { resize: vertical; }
form button { justify-self: start; margin-top: 5px; }
.footer { display: flex; justify-content: space-between; gap: 10px; padding-block: 22px; color: var(--muted); font-size: .92rem; }
.footer strong { color: var(--ink); }
@media (max-width: 920px) {
  .wrap { width: min(100% - 44px, 1200px); }
  .hero { gap: 24px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; column-gap: 10px; row-gap: 8px; padding-block: 10px; }
  nav { font-size: .9rem; gap: 7px 13px; }
  .hero, .contact-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 39px 43px; }
  h1 { font-size: clamp(1.95rem, 7.8vw, 3.55rem); }
  .hero-visual { border-radius: 10px; }
  .service-section, .process, .contact { padding-block: 42px; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service.featured { grid-column: auto; }
  .process ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact-email { color: white; text-decoration: underline; text-underline-offset: .24em; overflow-wrap: anywhere; }

.process-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.process-replay { flex-shrink: 0; }
.process-replay span { margin: 0 7px 0 0; }
.process-flow { counter-reset: process; }
.process-flow > li { counter-increment: process; position: relative; min-width: 0; }
.process-flow > li:not(:last-child)::after {
  content: "→"; position: absolute; z-index: 1; top: 74px; right: -20px;
  width: 22px; text-align: center; color: #2b52b9; font-weight: 800;
}
.process-art {
  height: 166px; display: grid; place-items: center; position: relative; overflow: hidden;
  color: #254bc6; border: 1px solid #d4defb; border-radius: 12px;
  background:
    radial-gradient(circle at 62% 43%, #f8faff 0%, transparent 58%),
    linear-gradient(135deg, #e6edff, #dbe6ff);
}
.process-art::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: radial-gradient(#8a9fdf 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(110deg, #000, transparent 60%, #000);
}
.process-art::after {
  content: counter(process, decimal-leading-zero); position: absolute; left: 14px; top: 10px;
  font-size: .83rem; font-weight: 800; letter-spacing: .06em;
}
.process-flow h3 { margin-top: 14px; }
.flow-sheet, .flow-window {
  width: 104px; height: 88px; border: 2px solid #6d8ceb; border-radius: 8px;
  background: #fff; box-shadow: 0 8px 24px #4564c526;
  display: grid; align-content: center; gap: 9px; padding: 12px; position: relative;
}
.flow-sheet i, .flow-window i { height: 5px; width: 88%; border-radius: 8px; background: #b6c9fa; }
.flow-sheet i:nth-child(2), .flow-window i:nth-child(2) { width: 68%; }
.flow-sheet i:nth-child(3), .flow-window i:nth-child(3) { width: 50%; }
.scan-beam {
  position: absolute; top: 36px; left: -6px; right: -6px; height: 2px; background: #2558eb;
  box-shadow: 0 0 10px #2558eb80; opacity: .76;
}
.scan-lens {
  position: absolute; left: calc(50% + 23px); top: 77px; width: 32px; height: 32px;
  border: 3px solid #2950ce; border-radius: 50%; background: #e7edffb0;
}
.scan-lens::after { content: ""; position: absolute; top: 24px; left: 24px; width: 14px; height: 3px; border-radius: 3px; background: #2950ce; transform: rotate(45deg); }
.flow-nodes { width: 134px; height: 84px; position: relative; }
.flow-nodes i { position: absolute; z-index: 1; border: 2px solid #6d8ceb; border-radius: 5px; background: #fff; width: 29px; height: 24px; top: 54px; }
.flow-nodes i:nth-child(1) { top: 0; left: 48px; width: 38px; background: #4569e4; border-color: #4569e4; }
.flow-nodes i:nth-child(2) { left: 0; }
.flow-nodes i:nth-child(3) { left: 53px; }
.flow-nodes i:nth-child(4) { right: 0; }
.flow-nodes b { position: absolute; background: #6d8ceb; height: 2px; width: 105px; top: 39px; left: 14px; }
.flow-nodes b:nth-of-type(2) { width: 2px; height: 34px; top: 22px; left: 66px; }
.flow-nodes b:nth-of-type(3) { background: transparent; border: solid #6d8ceb; border-width: 0 2px; height: 17px; }
.flow-window { width: 118px; height: 80px; padding-top: 24px; }
.flow-window::before { content: "···"; position: absolute; inset: 0 0 auto; height: 18px; padding-left: 8px; line-height: 11px; letter-spacing: 2px; background: #ccd9ff; border-radius: 5px 5px 0 0; }
.flow-check {
  position: absolute; left: calc(50% + 34px); top: 85px; display: grid; place-items: center;
  width: 35px; height: 35px; border: 2px solid #fff; border-radius: 50%; background: #2854dd;
  color: #fff; font-weight: 850; box-shadow: 0 4px 13px #3154c44d;
}
/* The shared delay sequences the desktop row. Each mobile card starts on entry. */
.process-flow > li { --step-delay: 0s; }
.process-flow > li:nth-child(2) { --step-delay: .85s; }
.process-flow > li:nth-child(3) { --step-delay: 1.65s; }
.process-flow > .is-playing .scan-beam { animation: process-scan 2.15s ease-in-out both; }
.process-flow > .is-playing .scan-lens { animation: process-inspect 1.9s ease-in-out both; }
.process-flow > .is-playing .flow-sheet i { animation: process-highlight 2.15s ease-in-out both; }
.process-flow > .is-playing .flow-sheet i:nth-child(2) { animation-delay: .13s; }
.process-flow > .is-playing .flow-sheet i:nth-child(3) { animation-delay: .26s; }

.process-flow > .is-playing .flow-nodes i {
  animation: process-pop .62s calc(var(--step-delay) + .63s) both;
}
.process-flow > .is-playing .flow-nodes i:first-child { animation-delay: var(--step-delay); }
.process-flow > .is-playing .flow-nodes i:nth-child(3) { animation-delay: calc(var(--step-delay) + .78s); }
.process-flow > .is-playing .flow-nodes i:nth-child(4) { animation-delay: calc(var(--step-delay) + .9s); }
.process-flow > .is-playing .flow-nodes b {
  animation: process-draw-x .42s calc(var(--step-delay) + .28s) both;
}
.process-flow > .is-playing .flow-nodes b:nth-of-type(2),
.process-flow > .is-playing .flow-nodes b:nth-of-type(3) {
  transform-origin: top; animation-name: process-draw-y;
}

.process-flow > .is-playing .flow-window {
  animation: process-rise .7s var(--step-delay) both;
}
.process-flow > .is-playing .flow-window i {
  transform-origin: left; animation: process-draw-x .52s calc(var(--step-delay) + .36s) both;
}
.process-flow > .is-playing .flow-window i:nth-child(2) { animation-delay: calc(var(--step-delay) + .49s); }
.process-flow > .is-playing .flow-window i:nth-child(3) { animation-delay: calc(var(--step-delay) + .62s); }
.process-flow > .is-playing .flow-check {
  animation: process-pop .82s calc(var(--step-delay) + .78s) both;
}
.flow-check::after {
  content: ""; position: absolute; inset: -2px; border: 2px solid #5180ff; border-radius: inherit; opacity: 0;
}
.process-flow > .is-playing .flow-check::after {
  animation: process-ring .72s calc(var(--step-delay) + 1.04s) both;
}
@keyframes process-scan {
  0% { transform: translateY(-26px); opacity: .28; }
  43% { transform: translateY(34px); opacity: 1; }
  78% { transform: translateY(-26px); opacity: 1; }
  100% { transform: translateY(0); opacity: .76; }
}
@keyframes process-inspect {
  0% { transform: translate(-15px, -13px) scale(.85); opacity: .48; }
  45% { transform: translate(8px, 11px) scale(1.1); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes process-highlight {
  0%, 70%, 100% { background: #b6c9fa; }
  30%, 46% { background: #3964e5; }
}
@keyframes process-rise {
  from { opacity: 0; transform: translateY(17px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes process-pop {
  0% { opacity: 0; transform: scale(.35); }
  62% { opacity: 1; transform: scale(1.16); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes process-draw-x {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes process-draw-y {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes process-ring {
  from { opacity: .72; transform: scale(.9); }
  to { opacity: 0; transform: scale(1.85); }
}
@media (max-width: 700px) {
  .process-flow > li:nth-child(n) { --step-delay: 0s; }
  .process-flow > li:not(:last-child)::after { content: none; }
  .process-art { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-replay { display: none; }
  .process-flow > .is-playing .process-art *,
  .process-flow > .is-playing .process-art *::after { animation: none !important; }
}

.service-link { display: block; height: 100%; }
.service:focus-within { outline: 3px solid #7196ff; outline-offset: 3px; }
.service-link:focus-visible { outline-offset: -4px; }
.service-link img { transition: filter .2s ease; }
.service-link:hover img { filter: saturate(1.16); }
.service-link:hover h3 { color: var(--blue); }
.service-more { display: inline-flex; gap: .4em; margin-top: 15px; color: #1a42b3; font-size: .9rem; font-weight: 760; }
.portfolio { background: white; border-top: 1px solid var(--line); padding-block: 56px 68px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portfolio-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eff3ff; border: 1px solid #cedafd; border-radius: 12px; padding: clamp(16px, 3vw, 32px); }
.portfolio-link:hover { background: #e3ebff; }
.portfolio-link h3 { font-size: 1.55rem; }
.portfolio-link p { color: var(--muted); overflow-wrap: anywhere; }
.portfolio-link > span { font-size: 1.45rem; color: var(--blue); }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(22px, 4vw, 58px); padding-block: 58px 68px; }
.detail-hero h1 { margin-top: 16px; }
.detail-hero figure { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #e6edff; }
.detail-hero img { height: 100%; object-fit: cover; }
.detail-back { color: #2649ae; font-weight: 730; }
.detail-back:hover { text-decoration: underline; }
.detail-claim { margin-top: 18px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 770; word-break: keep-all; }
.detail-hero .lead { margin-top: 12px; }
.detail-features { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.detail-features > div, .detail-prep { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f4f7ff; }
.detail-features dt { font-weight: 800; font-size: 1.14rem; }
.detail-features dd { margin: 8px 0 0; }
.detail-features dd, .detail-steps p, .detail-prep p { color: var(--muted); word-break: keep-all; }
.detail-process { padding-block: 55px 64px; }
.detail-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; padding-left: 1.45em; }
.detail-steps li { padding: 12px 0 5px .25em; border-top: 2px solid #92acf6; }
.detail-steps li::marker { color: #254bc6; font-weight: 800; }
.detail-steps h3, .detail-prep h3 { font-size: 1.12rem; }
.detail-steps p, .detail-prep p { margin-top: 7px; }
.detail-prep { margin-top: 24px; }
.detail-contact .button { margin-top: 18px; }
.detail-related { display: flex; justify-content: flex-start; gap: 9px 19px; flex-wrap: wrap; padding-block: 22px 4px; font-size: .92rem; }
.detail-related a { color: #2649ae; font-weight: 720; }
.detail-related a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .portfolio { padding-block: 40px; }
  .portfolio-grid, .detail-hero, .detail-features, .detail-steps { grid-template-columns: 1fr; }
  .detail-hero, .detail-process { padding-block: 37px 44px; }
}
