:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a48;
  --ink-3: #686864;
  --line: #e3e1da;
  --wall: #e0312b;
  --wall-soft: #fdeceb;
  --radius: 14px;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 100; background: var(--paper); padding: 12px; border: 2px solid var(--ink); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#main, #service-map, #cases, #subscribe, #submit { scroll-margin-top: 84px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.hero-actions a { display: inline-flex; align-items: center; text-decoration: none; }

/* language toggle */
body[data-lang='ko'] [lang='en'].t { display: none !important; }
body[data-lang='en'] [lang='ko'].t { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.brand-mark i { background: var(--ink); border-radius: 1.5px; }
.brand-mark i:nth-child(5) { background: var(--wall); }
.brand-mark i:nth-child(3), .brand-mark i:nth-child(7) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.top nav a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.lang { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* hero */
.hero { padding: clamp(40px, 7vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wall); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
h1 { font-size: clamp(42px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 18px 0 24px; }
h1 em { font-style: normal; color: var(--wall); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.stats { display: flex; gap: clamp(20px, 3vw, 40px); margin: 0 0 32px; padding: 0; list-style: none; }
.stats b { display: block; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--ink-3); }

.signup { display: flex; gap: 8px; max-width: 520px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.signup input[type=email]:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.08); }
.btn { height: 52px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .85; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.consent { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.consent input { margin-top: 2px; accent-color: var(--ink); }
.consent a { color: var(--ink-2); }
.form-msg { flex-basis: 100%; font-size: 14px; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: #127a3a; }
.form-msg.err { color: var(--wall); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* wall map: the central object */
.map { background: var(--paper); border-radius: 22px; padding: clamp(18px, 2vw, 28px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(0,0,0,.18); position: relative; }
.map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.map-head h2 { font-size: 15px; margin: 0; letter-spacing: -0.01em; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sw-open { background: var(--ink); }
.sw-partial { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--ink); }
.sw-blocked { background: var(--wall); }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile { position: relative; height: 100%; min-width: 0; overflow: hidden; overflow-wrap: normal; word-break: keep-all; border-radius: 12px; border: 0; padding: 10px 11px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; font-size: 14px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; opacity: 0; transform: translateY(8px) scale(.98); animation: tileIn .55s cubic-bezier(.2,.8,.2,1) forwards; }
.tile small { font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: 0; }
.tile .n { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; }
.tile[data-status=open] { background: var(--ink); color: #fff; }
.tile[data-status=partial] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background-image: repeating-linear-gradient(135deg, rgba(17,17,17,.09) 0 2px, transparent 2px 7px); }
.tile[data-status=blocked] { background: var(--wall); color: #fff; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 24px -14px rgba(0,0,0,.45); }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tile[data-status=open]:focus-visible { outline-color: var(--wall); }
.tile[aria-pressed=true] { outline: 3px solid var(--ink); outline-offset: 2px; }
.tile[data-status=open][aria-pressed=true] { outline-color: var(--wall); }
@keyframes tileIn { to { opacity: 1; transform: none; } }
.map-note { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; }

.wall-panel { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; display: none; animation: fade .3s ease; }
.wall-panel.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
.wall-panel h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; display: flex; gap: 10px; align-items: center; }
.wall-panel p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.wall-panel .wk { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; display: block; margin-top: 10px; }
.wall-panel .srcs { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wall-panel .srcs a { color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0; }
.pill.open { background: var(--ink); color: #fff; }
.pill.partial { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill.blocked { background: var(--wall); color: #fff; }

/* cases */
.cases { padding: 24px 0 96px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.toolbar { position: sticky; top: 60px; z-index: 20; background: var(--bg); padding: 12px 0; display: grid; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 320px; position: relative; }
.search input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 44px 0 16px; font-size: 15px; outline: none; }
.search input:focus { border-color: var(--ink); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-family: inherit; }
.seg { display: inline-flex; background: #ebe9e2; border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 40px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed=true] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
select.sel { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 34px 0 14px; font-size: 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--paper); height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink-2); transition: background .15s, color .15s; }
.chip .c { color: var(--ink-3); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed=true] .c { color: rgba(255,255,255,.6); }
.active-filter { font-size: 14px; color: var(--ink-2); display: none; gap: 8px; align-items: center; }
.active-filter.on { display: flex; }
.active-filter button { border: 0; background: none; text-decoration: underline; cursor: pointer; color: var(--ink-3); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid transparent; transition: border-color .2s, transform .2s; position: relative; }
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.meta { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; align-items: center; }
.meta .sep { opacity: .5; }
.card h3 { font-size: 18px; line-height: 1.32; letter-spacing: -0.025em; margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.wallnote { font-size: 13px; background: var(--wall-soft); color: #8f1d18; border-radius: 10px; padding: 8px 10px; line-height: 1.45; }
.wallnote.workaround { background: #efeee9; color: var(--ink-2); }
.wallnote b { font-weight: 700; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #f0efea; color: var(--ink-2); font-weight: 600; }
.tag.svc { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.src { position: relative; z-index: 2; font-size: 12.5px; color: var(--ink-3); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; align-self: flex-start; }
.src:hover { color: var(--ink); text-decoration: underline; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-3); display: none; }
.empty.on { display: block; }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* band */
.band { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 96px) 0; }
.band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.band h2 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 14px; }
.band p { color: rgba(255,255,255,.65); margin: 0; font-size: 17px; }
.band .signup input[type=email], .band textarea, .band input[type=url] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.band .btn { background: #fff; color: var(--ink); }
.band .consent, .band .consent a { color: rgba(255,255,255,.55); }
.submit-form { display: grid; gap: 8px; }
.submit-form input[type=url], .submit-form textarea { width: 100%; border-radius: 12px; border: 1px solid; padding: 14px 16px; font-size: 15px; outline: none; resize: vertical; }
.submit-form input[type=url] { height: 52px; }

/* footer */
footer { padding: 40px 0 56px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* case / doc pages */
.doc { padding: clamp(40px, 6vw, 88px) 0; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 60px); }
.doc .body { font-size: 18px; color: var(--ink-2); }
.doc .box { background: var(--paper); border-radius: var(--radius); padding: 22px; margin: 24px 0; }
.doc dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.doc dt { color: var(--ink-3); }
.doc dd { margin: 0; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose h2 { font-size: 20px; }
.prose p, .prose li { font-size: 16px; color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--paper); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero .wrap, .band .wrap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid, .doc .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 6px; }
  .tile { font-size: 13px; padding: 8px 9px; }
  .top nav a.hide-m { display: none; }
  .toolbar { top: 60px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 8px; }
  select.sel { flex: 1; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 24px 0; font-size: 14px; }
.share span { color: var(--ink-3); margin-right: 4px; }
.share a, .share button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.share a:hover, .share button:hover { color: var(--ink); border-color: var(--ink); }

/* Component display rules must never reveal filtered cards or hidden controls. */
[hidden] { display: none !important; }
