:root {
  --navy: #06152f;
  --blue: #0769e0;
  --ink: #14243d;
  --muted: #59677b;
  --line: #e0e6ee;
  --soft: #f3f6fa;
  --header-height: 80px;
  --shell: min(1200px, calc(100% - 64px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 100px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 1rem; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
::selection { background: #bfe7ff; color: var(--navy); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1385ef; outline-offset: 5px; }
.site-header :focus-visible, .hero :focus-visible, .cta-box :focus-visible, .mobile-dock :focus-visible { outline-color: #83ddff; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 18px; background: white; color: var(--navy); border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 60; background: #06152ff5; border-bottom: 1px solid #ffffff1f; backdrop-filter: blur(16px); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 32px; padding-block: 12px; }
.brand { display: inline-flex; flex-shrink: 0; background: white; padding: 7px 11px; border-radius: 8px; }
.brand img { width: 156px; height: auto; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #bdc9da; font-size: .875rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current] { color: white; }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 9px; text-decoration-color: #6ccfff; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 8px 20px; background: #fff; color: var(--navy); border-radius: 8px; font-size: .875rem; font-weight: 750; }
.hero { padding: 52px 0 60px; background: var(--navy); color: white; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.hero-copy { min-width: 0; }
.eyebrow, .kicker { margin: 0 0 18px; font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
.eyebrow { color: #88dcff; }
h1, h2, h3 { word-break: keep-all; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.5rem, 4.1vw, 3.5rem); line-height: 1.25; letter-spacing: -.045em; }
h1 span { display: block; color: #80d8ff; }
.hero-copy > p:not(.eyebrow) { margin: 22px 0 0; color: #c2cddd; font-size: 1rem; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 11px 22px; border: 1px solid transparent; border-radius: 8px; font-size: .9375rem; font-weight: 750; transition: background .2s ease; }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover, .header-cta:hover { background: #dcefff; }
.btn-ghost { border-color: #ffffff45; color: white; }
.btn-ghost:hover { background: #ffffff12; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 24px 0 0; padding: 0; list-style: none; color: #aabbd2; font-size: .75rem; }
.hero-visual { overflow: hidden; border-radius: 14px; background: #112746; border: 1px solid #ffffff26; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-visual figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 13px 20px; font-size: .75rem; color: #c8d6e8; }
.hero-visual figcaption span:first-child { color: #fff; font-weight: 750; letter-spacing: .07em; }
.portfolio-section { padding: 64px 0 88px; scroll-margin-top: calc(var(--header-height) + 20px); }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: 28px; }
.kicker { color: var(--blue); margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.3; letter-spacing: -.04em; }
.intro-lead { margin: 0 0 4px; color: var(--muted); font-size: 1rem; }
.filter-wrap { position: sticky; top: var(--header-height); z-index: 40; padding: 12px 0; background: #fffffff5; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: .9375rem; font-weight: 700; transition: color .18s ease, background .18s ease; }
.filter-btn:hover { background: var(--soft); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: white; }
.filter-count { opacity: .72; font-size: .75rem; font-variant-numeric: tabular-nums; }
.result-status { color: var(--muted); font-size: .875rem; margin: 20px 0; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; align-items: start; }
.work-card { min-width: 0; background: white; border-bottom: 1px solid var(--line); }
.work-card[hidden] { display: none; }
.work-image { overflow: hidden; border-radius: 14px; background: var(--soft); }
.work-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.work-content { padding: 22px 2px 26px; }
.work-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .75rem; }
.work-category { color: var(--blue); font-weight: 750; letter-spacing: .06em; }
.work-index { color: var(--muted); font-variant-numeric: tabular-nums; }
.work-card h3 { margin: 0; color: var(--ink); font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.4; letter-spacing: -.035em; }
.work-card p { margin: 10px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.scope-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.scope-tags span { padding: 4px 10px; background: var(--soft); border-radius: 5px; color: #4f6075; font-size: .875rem; }
.method { padding: 64px 0; background: var(--soft); }
.method-head { margin-bottom: 32px; }
.method-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.method-head h2 br { display: none; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.method-card { padding: 24px 0 0; border-top: 1px solid #cbd5e2; }
.method-num { font-size: .875rem; font-weight: 750; color: var(--blue); }
.method-card h3 { margin: 12px 0 8px; font-size: 1.125rem; }
.method-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.cta-section { padding: 16px 32px 64px; background: var(--soft); }
.cta-box { max-width: 1200px; margin: 0 auto; padding: 48px; border-radius: 16px; background: var(--navy); color: white; }
.cta-copy h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.cta-copy h2 br { display: none; }
.cta-copy p { margin: 16px 0 0; color: #c2cddd; font-size: 1rem; }
footer { padding: 28px 0; color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-dock { display: none; }
@media (max-width: 1000px) {
  .hero-grid { gap: 32px; }
  .hero-meta { display: none; }
  .work-heading { display: block; }
  .intro-lead { margin-top: 12px; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --shell: calc(100% - 40px); --header-height: 68px; }
  .header-inner { min-height: 68px; gap: 16px; padding-block: 10px; }
  .brand { padding: 6px 8px; }
  .brand img { width: 132px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; padding: 8px 14px; }
  .hero { padding: 36px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-visual img { aspect-ratio: 2 / 1; }
  .hero-visual figcaption { padding: 10px 14px; }
  .portfolio-section { padding: 40px 0 56px; scroll-margin-top: calc(var(--header-height) + 16px); }
  .work-heading { margin-bottom: 18px; }
  .filter-wrap { margin-inline: -20px; padding: 10px 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 20px 7px; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: #bac8d8 transparent; }
  .filter-btn { flex: 0 0 auto; min-height: 44px; padding: 9px 13px; font-size: .875rem; }
  .result-status { margin-block: 16px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work-content { padding: 18px 0 22px; }
  .work-card h3 { font-size: 1.5rem; }
  .scope-tags { margin-top: 14px; }
  .method { padding: 44px 0; }
  .method-grid { gap: 24px 20px; }
  .cta-section { padding: 0 20px 40px; }
  .cta-box { padding: 32px 24px; }
  .cta-copy h2 br { display: block; }
  .cta-actions .btn { flex: 1 1 150px; }
  footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .mobile-dock { display: grid; grid-template-columns: .7fr 1.3fr; position: fixed; z-index: 70; bottom: 0; left: 0; right: 0; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); gap: 10px; background: #fffffff5; border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-dock a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: .9375rem; font-weight: 750; }
  .mobile-dock .talk { background: var(--navy); border-color: var(--navy); color: white; }
  .mobile-dock :focus-visible { outline-color: var(--blue); }
}
@media (max-width: 360px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .method-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* The service title link covers the entire image and text card. */
.work-card:has(.work-card-link){position:relative;cursor:pointer}
.work-card-link::after{content:"";position:absolute;inset:0;z-index:1}
.work-card:has(.work-card-link:focus-visible){outline:3px solid var(--blue);outline-offset:5px}
.work-card:has(.work-card-link):hover h3{color:var(--blue)}
