/* thekeunpie.com - one shared stylesheet.
   Layout adapted from Start Bootstrap "Agency" (MIT, github.com/StartBootstrap/startbootstrap-agency):
   masthead, services, portfolio grid, about, contact, footer. Rewritten without Bootstrap.
   Colours come from the logo: navy, gold, green. */
:root {
  --navy: #0b3b5e;
  --navy-deep: #082c47;
  --gold: #c9a94a;
  --gold-soft: #f6efd9;
  --green: #1f6b4f;
  --ink: #1a2433;
  --muted: #5b6676;
  --line: #e4e8ee;
  --bg-soft: #f6f8fa;
  --radius: 14px;
  --wrap: 1160px;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: #fff;
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--bg-soft); }
.nav .nav-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--navy-deep); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #b8983c; }
.btn-line { background: #fff; color: var(--navy); border-color: #c8d2dd; }
.btn-line:hover { border-color: var(--navy); }

/* Hero */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.hero h1 { font-size: 40px; font-weight: 800; color: var(--navy); }
.hero h1 .accent { color: var(--gold); }
.hero .lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-art { justify-self: center; width: 170px; }
.nw { white-space: nowrap; }
.service p br { display: none; }
.hero-art img { width: 100%; }
.page-hero { padding: 48px 0 36px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 34px; font-weight: 800; color: var(--navy); }
.page-hero .lead { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 28px; font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--muted); }
.section-head .more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }
.rule { display: block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 14px; }

/* Project cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #c8d2dd; box-shadow: 0 10px 24px -14px rgba(11,59,94,0.35); transform: translateY(-2px); }
.card .icon { flex: none; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff; overflow: hidden; display: grid; place-items: center; }
.card .icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.card .link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--green); text-decoration: none; }
.card .link:hover { text-decoration: underline; }

/* About */
.about { display: grid; gap: 28px; }
.about .copy p + p { margin-top: 6px; }
.about > .copy:only-child { grid-column: 1 / -1; }
.about .copy .pull { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.about .copy .note { margin-top: 18px; color: var(--muted); }
.panel { border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.panel h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.panel p { color: #3b4656; }
.panel p + p { margin-top: 4px; }

/* Services */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service .body { padding: 18px 20px 22px; }
.service h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.service p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Contact */
.contact { display: grid; gap: 28px; }
.contact .intro p { color: #3b4656; }
.contact .intro .photo { margin-top: 22px; border-radius: var(--radius); overflow: hidden; }
.contact .intro .photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form .row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field label .req { color: #b4413a; margin-left: 2px; }
.field input, .field textarea { font: inherit; font-size: 16px; width: 100%; border: 1px solid #cdd5df; border-radius: 10px; padding: 11px 13px; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(11,59,94,0.25); border-color: var(--navy); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#tkp-form-status { margin-top: 14px; font-weight: 700; color: var(--green); }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; background: #fff; }
.social a:hover { border-color: var(--navy); color: var(--navy); }

/* Legal article */
.article { max-width: 820px; }
.article h1 { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.article h2 { font-size: 21px; font-weight: 800; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.article h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article ul, .article ol { margin: 0 0 12px; color: #3b4656; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 4px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d5e1; padding: 44px 0 36px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer .top { display: grid; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.site-footer .f-brand strong { display: block; color: #fff; font-size: 18px; font-weight: 800; }
.site-footer .f-brand span { color: var(--gold); font-size: 13px; letter-spacing: 0.08em; }
.site-footer .f-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer .f-links a { text-decoration: none; font-weight: 600; }
.site-footer .f-links a:hover { text-decoration: underline; }
.site-footer .social a { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.site-footer .social a:hover { border-color: var(--gold); color: var(--gold); }
.site-footer .legal { padding-top: 20px; line-height: 1.8; color: #a9b8c7; }
.site-footer .legal p + p { margin-top: 2px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service p br { display: inline; }
  .form .row { grid-template-columns: 1fr 1fr; }
  .form .row .field { margin-bottom: 0; }
  .form .row { margin-bottom: 14px; }
}
@media (min-width: 960px) {
  .wrap { padding: 0 32px; }
  .site-header .wrap { height: 72px; }
  .brand img { height: 50px; }
  .nav a { padding: 8px 14px; }
  .hero { padding: 88px 0 80px; }
  .hero .wrap { grid-template-columns: 1.35fr 1fr; gap: 48px; }
  .hero h1 { font-size: 56px; }
  .hero .lead { font-size: 20px; }
  .hero-art { width: 320px; justify-self: end; }
  .page-hero { padding: 72px 0 52px; }
  .page-hero h1 { font-size: 44px; }
  .section { padding: 96px 0; }
  .section-head h2 { font-size: 34px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .services { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .about { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .contact { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
  .form { padding: 30px; }
  .site-footer .top { grid-template-columns: 1fr auto; align-items: center; }
  .article h1 { font-size: 38px; }
}
@media (max-width: 400px) {
  .nav a { padding: 8px 7px; font-size: 14px; }
  .nav .nav-cta { margin-left: 2px; }
  .brand img { height: 34px; }
}

/* Home intro (assets/splash.js): the old site's logo Lottie, once per tab session. The html cover hides the page
   from the first paint until the player element is in; both fade out together. */
html.tkp-sp::before { content: ""; position: fixed; inset: 0; z-index: 999; background: #fff; transition: opacity .35s ease; }
html.tkp-sp body { overflow: hidden; }
.tkp-splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff; cursor: pointer; transition: opacity .35s ease; }
.tkp-splash dotlottie-player { display: block; width: min(72vw, 520px); aspect-ratio: 1110 / 770; }
html.tkp-sp-out::before, html.tkp-sp-out .tkp-splash { opacity: 0; pointer-events: none; }
