:root {
  --paper: #f4f2ec;
  --paper-bright: #fbfaf6;
  --ink: #11110f;
  --muted: #5d5b55;
  --line: #d8d5cc;
  --line-strong: #b8b4aa;
  --accent: #ff4d00;
  --accent-ink: #c43b00;
  --inverse: #171714;
  --inverse-muted: #a8a59b;
  --inverse-line: #3b3a35;
  --font-sans: "Onest", "Noto Sans KR", "Apple SD Gothic Neo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max-width: 1440px;
  --read-width: 720px;
  --gutter: clamp(20px, 4vw, 72px);
  --section: clamp(64px, 8vw, 120px);
  --radius-sm: 6px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.bright { background: var(--paper-bright); }
.dark { background: var(--inverse); color: var(--paper-bright); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper-bright); border-radius: var(--radius-sm); }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: .22em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); font-size: 14px; font-weight: 500; }
.nav-links a[aria-current="page"] { color: var(--accent-ink); }
.nav-cta { padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius-sm); font-weight: 600; }
.nav-cta:hover { background: var(--ink); color: var(--paper-bright); }
.menu-button { display: none; width: 44px; height: 44px; place-items: center; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; }

/* buttons */
.button { min-height: 50px; display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; border: 1px solid var(--ink); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper-bright); background: var(--ink); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper-bright); }
.button-secondary:hover { background: var(--paper-bright); color: var(--ink); }
.dark .button { border-color: var(--paper-bright); }
.dark .button-primary { background: var(--paper-bright); color: var(--ink); }
.dark .button-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper-bright); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* hero (home) */
.hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); align-items: end; row-gap: 48px; }
.hero-main { grid-column: 1 / 8; }
.hero-kicker { margin: 0 0 28px; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(56px, 8.4vw, 132px); line-height: .9; letter-spacing: -.06em; font-weight: 600; }
.hero-copy { max-width: 600px; margin: clamp(28px, 4vw, 44px) 0 0; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.55; letter-spacing: -.02em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { grid-column: 8 / -1; margin: 0; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.hero-pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.pillar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 20px 20px 0; border-right: 1px solid var(--line); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; }
.pillar:not(:first-child) { padding-left: 20px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .mono { color: var(--muted); margin-right: 12px; }

/* page head (inner pages) */
.page-head { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(36px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.page-head h1 { max-width: 1000px; margin: 0; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; }
.case-spec { max-width: 720px; margin-top: 32px; }
.article-cover figcaption { margin-top: 12px; color: var(--muted); }
.prose figure { margin: 0 0 24px; }
.prose figure img { width: 100%; border-radius: var(--radius-md); }
.prose figcaption { margin-top: 10px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.page-lede { max-width: 720px; margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* sections */
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-tight { padding-top: calc(var(--section) * .6); padding-bottom: calc(var(--section) * .6); }
.section-heading { align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-heading h2 { grid-column: 1 / 8; margin: 0; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; text-wrap: balance; }
.section-heading p { grid-column: 9 / -1; margin: 0; color: var(--muted); text-wrap: pretty; }
.dark .section-heading p { color: var(--inverse-muted); }

/* about block */
.about { border-top: 1px solid var(--ink); padding-top: 28px; }
.about > .mono { grid-column: 1 / 4; color: var(--muted); margin: 6px 0 0; }
.about-body { grid-column: 4 / 11; }
.about-body p { margin: 0 0 24px; font-size: clamp(20px, 2.2vw, 31px); line-height: 1.45; letter-spacing: -.03em; text-wrap: pretty; }
.about-body p.sub { font-size: 16px; color: var(--muted); letter-spacing: 0; max-width: 620px; line-height: 1.65; }

/* services (home) */
.service { align-items: center; row-gap: 32px; padding-block: clamp(44px, 5.5vw, 80px); border-top: 1px solid var(--line-strong); }
.service:first-of-type { border-top: 1px solid var(--ink); }
.service-visual { grid-column: 1 / 7; margin: 0; }
.service-visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.service-visual figcaption { margin-top: 12px; color: var(--muted); }
.service-body { grid-column: 8 / -1; }
.service.flip .service-visual { grid-column: 7 / -1; order: 2; }
.service.flip .service-body { grid-column: 1 / 6; order: 1; }
.service-index { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 22px; }
.service-index::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.service h3 { margin: 0; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -.045em; font-weight: 500; }
.service-lead { margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; text-wrap: pretty; }
.spec { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.spec li { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec .k { color: var(--muted); padding-top: 4px; }
.service .text-link { margin-top: 26px; }
.embed { aspect-ratio: 16 / 9; background: var(--inverse); border-radius: var(--radius-md); overflow: hidden; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* steps */
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--inverse-line); border: 1px solid var(--inverse-line); }
.steps li { list-style: none; padding: 24px 22px 34px; background: var(--inverse); }
.steps .step { display: block; margin-bottom: 44px; color: var(--inverse-muted); font-size: 10px; }
.steps h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.steps p { margin: 0; font-size: 14px; color: #c7c4bb; }

/* 4-up columns */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.col { padding: 28px 22px 40px 0; border-right: 1px solid var(--line); }
.col:not(:first-child) { padding-left: 24px; }
.col:last-child { border-right: 0; padding-right: 0; }
.col .num { display: block; margin-bottom: 20px; color: var(--muted); font-size: 10px; }
.col h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.col p { margin: 0; color: var(--muted); font-size: 14px; }

/* article cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px clamp(16px, 2vw, 32px); }
.card { display: flex; flex-direction: column; }
.card-image { display: block; overflow: hidden; border-radius: var(--radius-md); background: var(--line); }
.card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card-image img { transform: scale(1.03); }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); }
.card h3 { margin: 12px 0 0; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.3; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 3vw, 48px); align-items: center; }
.card.feature h3 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; }
.card.feature p { font-size: 17px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.filter span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }

/* prose (articles, policies, service details) */
.article-wrap { display: grid; grid-template-columns: minmax(0, var(--read-width)) minmax(0, 300px); justify-content: space-between; gap: clamp(32px, 6vw, 96px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: var(--section); }
.article-wrap.single { grid-template-columns: minmax(0, var(--read-width)); justify-content: start; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--muted); }
.article-cover { margin: clamp(32px, 4vw, 48px) 0 0; }
.article-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-md); }
.prose { font-size: 17px; line-height: 1.85; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: clamp(24px, 2.4vw, 31px); line-height: 1.3; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.prose h3 { margin: 36px 0 10px; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; font-weight: 600; }
.prose p { margin: 0 0 20px; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .86em; padding: 2px 6px; background: #e9e6dd; border-radius: 4px; word-break: break-all; }
.prose pre { margin: 0 0 24px; padding: 18px 20px; overflow-x: auto; background: var(--inverse); color: #e6e3da; border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.65; }
.prose pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; word-break: normal; }
.prose blockquote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose .table { margin: 0 0 24px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; color: var(--muted); white-space: nowrap; }
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td.num, .prose th.num { text-align: right; padding-right: 0; padding-left: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { margin: 0 0 24px; padding: 20px 22px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 15px; line-height: 1.7; }
.note .mono { display: block; margin-bottom: 10px; color: var(--muted); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 32px; font-size: 14px; }
.aside h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.aside ol, .aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.aside a { color: var(--muted); }
.aside a:hover { color: var(--accent-ink); }
.aside p { margin: 0; color: var(--muted); }
.byline { margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.byline strong { color: var(--ink); }

/* faq */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 720px; margin: 0 0 24px; color: var(--muted); }

/* cta */
.cta { padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--ink); align-items: end; row-gap: 40px; }
.cta-copy { grid-column: 1 / 8; }
.cta h2 { margin: 0; font-size: clamp(36px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; }
.cta p { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.cta-info { grid-column: 9 / -1; border-top: 1px solid var(--ink); }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cta-row .mono { color: var(--muted); }
.cta-row a { font-weight: 600; }

/* footer */
.footer { color: var(--paper-bright); background: var(--inverse); }
.footer-inner { padding-top: 68px; padding-bottom: 38px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 72px; }
.footer-brand .wordmark { font-size: 28px; }
.footer-brand p { max-width: 340px; margin: 22px 0 0; color: var(--inverse-muted); }
.footer-column h2 { margin: 0 0 20px; color: var(--inverse-muted); font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; }
.footer a:hover { color: #ff8c5b; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--inverse-line); color: var(--inverse-muted); font-size: 10px; }

@media (max-width: 1040px) {
  .article-wrap { grid-template-columns: minmax(0, var(--read-width)); justify-content: start; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); padding-top: 32px; border-top: 1px solid var(--line-strong); }
  .aside .toc { display: none; }
}
@media (max-width: 960px) {
  .menu-button { display: grid; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; border: 1px solid var(--ink); }
  .hero-main, .hero-visual { grid-column: 1 / -1; }
  .hero-visual img { aspect-ratio: 3 / 2; }
  .section-heading h2, .section-heading p { grid-column: 1 / -1; }
  .section-heading h2 { margin-bottom: 20px; }
  .about > .mono { grid-column: 1 / -1; margin-bottom: 28px; }
  .about-body { grid-column: 1 / -1; }
  .service-visual, .service-body,
  .service.flip .service-visual, .service.flip .service-body { grid-column: 1 / -1; order: initial; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cols, .cols.three { grid-template-columns: repeat(2, 1fr); }
  .col:nth-child(2n) { border-right: 0; padding-right: 0; }
  .col:nth-child(2n+1) { padding-left: 0; }
  .col { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card.feature { grid-template-columns: 1fr; }
  .cta-copy, .cta-info { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav { min-height: 62px; }
  .hero h1 { font-size: clamp(50px, 16vw, 80px); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; justify-content: space-between; }
  .hero-pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0 !important; }
  .pillar:last-child { border-bottom: 0; }
  .spec li { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .steps .step { margin-bottom: 24px; }
  .cols, .cols.three { grid-template-columns: 1fr; }
  .col { border-right: 0; padding: 24px 0 28px !important; }
  .col:last-child { border-bottom: 0; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .prose { font-size: 16.5px; }
  .aside { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .header, .footer, .aside, .cta { display: none; }
}
