/* UI-kit-specific layout & chrome styles. Tokens come from ../../colors_and_type.css */

html, body { min-height: 100%; }
html { overflow-x: clip; }
body { background: var(--bg-page); color: var(--fg-body); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--border-subtle); background: rgba(255,255,255,0.96); }
.site-header-inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.site-logo img { height: 44px; width: auto; display: block; }

/* Script-style consultation submit — echoes the About signature treatment */
.submit-script {
  background: linear-gradient(135deg, #1F8A5E 0%, #2BA672 100%);
  color: #fff; border: none;
  padding: 18px 32px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; transition: transform var(--dur-fast), box-shadow var(--dur-base);
  box-shadow: 0 4px 14px rgba(31,138,94,.25);
  align-self: flex-start;
}
.submit-script:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,138,94,.32); }
.submit-script .script-text {
  font-family: 'Caveat', 'Pacifico', cursive;
  font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1;
}

/* About title row + handwritten signature image */
.about-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: nowrap;
}
.about-title-row .section-title { flex: 1; min-width: 0; }
.about-signature-img {
  flex-shrink: 0;
  width: 180px; height: auto; display: block;
  transform: rotate(-2deg);
  margin-right: -8px;
  user-select: none;
}

/* Legacy text signature (no longer rendered) */
.about-signature {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: 'Caveat', 'Pacifico', cursive;
  color: #1F8A5E;
  line-height: 0.95;
  transform: rotate(-4deg);
  padding: 8px 4px 0;
  user-select: none;
}
.about-signature .line1 { font-size: 32px; opacity: .85; margin-right: 28px; }
.about-signature .line2 { font-size: 56px; font-weight: 700; margin: 4px 0; letter-spacing: -.02em; }
.about-signature .line2 b { font-weight: 700; }
.about-signature .line3 { font-size: 38px; opacity: .9; margin-left: 18px; }

/* Column header row — title + CTA button */
.column-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 8px;
}
.column-header-row > div:first-child { flex: 1; min-width: 0; }
.column-header-row .section-title { margin-bottom: 0; }
.column-cta { flex-shrink: 0; align-self: flex-end; margin-bottom: 6px; }
.site-nav { display: flex; gap: 36px; align-items: center; }
.site-nav a { color: var(--ink-800); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--insight-green-ink); text-decoration: none; }

/* ===== Buttons (shared) ===== */
.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: #A8DCC5; color: #1F8A5E; }
.btn-primary:hover { background: #8FD0B5; }
.btn-secondary { background: #F1F9F5; color: #1F8A5E; border: 1px solid #D4EDE0; }
.btn-secondary:hover { background: #E5F3EC; }
.btn-ghost { background: transparent; color: var(--ink-800); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }
.btn-primary svg { stroke: currentColor; }

/* ===== Hero ===== */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; background: #fff; }
.hero-inner { position: relative; z-index: 2; max-width: 560px; padding-bottom: 48px; }
.hero-arc-band { width: 100%; line-height: 0; pointer-events: none; }
.hero-arc-band svg { width: 100%; height: auto; display: block; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--insight-green-ink); margin-bottom: 20px; opacity: 0.85; }
.hero h1 { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 800; color: var(--ink-900); word-break: keep-all; }
.hero-highlight { color: var(--insight-green-ink); background: linear-gradient(transparent 58%, rgba(168,220,197,.45) 58%); padding-right: 2px; }
.hero .lead { font-size: 17px; line-height: 1.8; color: var(--ink-600); margin-top: 22px; max-width: 480px; word-break: keep-all; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #F1F9F5;
  color: #2F9E6B; border-radius: 14px;
  padding: 17px 34px; font-size: 16px; font-weight: 700;
  text-decoration: none; letter-spacing: -0.01em;
  transition: background 0.15s ease-out;
}
.btn-hero-primary:hover { background: #D4EDE0; }
.hero-trust { display: flex; gap: 0; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.hero-trust-item { font-size: 13px; color: var(--ink-400); display: flex; align-items: center; gap: 5px; }
.hero-trust-item .check { color: var(--insight-green-ink); font-weight: 700; }
.hero-trust-dot { margin: 0 12px; color: var(--ink-200); font-size: 13px; }
.hero-arc-band { width: 100%; line-height: 0; pointer-events: none; }
.hero-arc-band svg { width: 100%; height: auto; display: block; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 28px 0 44px; border-bottom: 1px solid rgba(0,0,0,.07); }
.hero-stat { display: flex; align-items: center; gap: 18px; padding: 0 32px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(0,0,0,.07); }
.hero-stat-num { font-size: 32px; font-weight: 800; color: var(--insight-green-ink); letter-spacing: -0.03em; line-height: 1; flex-shrink: 0; }
.hero-stat-text { display: flex; flex-direction: column; gap: 3px; }
.hero-stat-label { font-size: 12px; font-weight: 600; color: var(--ink-700); line-height: 1.2; }
.hero-stat-sub { font-size: 12px; color: var(--ink-400); line-height: 1.45; word-break: keep-all; }
.hero-mark { display: none; }
.hero-slogan {
  margin-top: 64px; padding: 20px 28px;
  display: inline-flex; align-items: baseline; gap: 14px;
  background: #F4FBF7; border-radius: 14px;
  font-size: 22px; color: var(--ink-800); font-weight: 500;
  letter-spacing: -.01em;
}
.hero-slogan b { color: #1F8A5E; font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.hero-slogan .quote { color: #1F8A5E; font-weight: 700; }

/* ===== Section frame ===== */
section.section { padding: 96px 0; }
section.section.tinted { background: var(--ink-50); }
section.section.accent-surface { background: #fff; }
.section-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--insight-green-ink); margin-bottom: 12px; }
.section-title { font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--ink-900); word-break: keep-all; max-width: 640px; }
.section-sub { font-size: 18px; line-height: 1.7; color: var(--ink-700); margin-top: 16px; max-width: 640px; word-break: keep-all; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; margin-top: 48px; }
.portrait {
  width: 300px; height: 460px;
  background: var(--insight-green-50);
  border-radius: 20px; position: relative; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; position: absolute; top: 0; left: 0; }
.portrait-ph {
  aspect-ratio: 1 / 1; background: var(--insight-green-50);
  border-radius: 20px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.portrait-ph .note { position: absolute; top: 16px; left: 16px; font-size: 11px; color: var(--insight-green-ink); background: #fff; padding: 4px 8px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; }
.portrait-ph svg { width: 110%; height: 60%; position: absolute; bottom: -20px; left: -5%; }

.about-body p { font-size: 17px; line-height: 1.85; color: var(--ink-800); margin-bottom: 14px; word-break: keep-all; }
.about-body p b { color: var(--ink-900); font-weight: 600; }
.credentials { margin-top: 32px; padding: 24px 32px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; }
.credentials h4 { font-size: 15px; font-weight: 700; color: var(--ink-800); letter-spacing: 0.01em; margin: 0 0 16px 0; }
.credentials ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; }
.credentials li { font-size: 15px; color: var(--ink-800); display: flex; gap: 14px; align-items: center; }
.credentials li::before { content: none; }
.credentials .proj-tag {
  flex-shrink: 0; font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: #1F8A5E; background: #D4EDE0;
  padding: 5px 14px; border-radius: 999px; line-height: 1.5;
  min-width: 100px; text-align: center;
}

/* ===== Services ===== */
/* ===== Services / segments ===== */
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.segments.three { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-base);
}
.segment:hover { border-color: #A8DCC5; box-shadow: 0 6px 20px rgba(47,158,107,.08); transform: translateY(-2px); }
.segment-tag {
  display: inline-block; align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: #1F8A5E; background: #D4EDE0;
  padding: 5px 12px; border-radius: 999px;
}
.segment-headline {
  font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  color: var(--ink-900); word-break: keep-all;
}
.segment-body { font-size: 15px; line-height: 1.75; color: var(--ink-700); word-break: keep-all; }
.segment-items { list-style: none; display: grid; gap: 8px; margin-top: 8px; padding-top: 18px; border-top: 1px dashed #D4EDE0; }
.segment-items li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-800); }
.segment-items li svg { flex-shrink: 0; color: #1F8A5E; margin-top: 3px; }

.plus-alpha { margin-top: 40px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.pa-label .eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1F8A5E; margin-bottom: 10px; }
.pa-label h4 { font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--ink-900); word-break: keep-all; }
.pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pa-card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
}
.pa-card .icon { width: 36px; height: 36px; border-radius: 10px; background: #F1F9F5; color: #1F8A5E; display: flex; align-items: center; justify-content: center; }
.pa-card h5 { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.pa-card p { font-size: 13px; line-height: 1.6; color: var(--ink-600); word-break: keep-all; }

/* Keep legacy .services-grid for BC; new layout uses .segments */
.services-grid { display: none; }
.service {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 22px 18px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-base), transform var(--dur-base);
  cursor: pointer;
}
.service:hover { border-color: var(--insight-green-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--insight-green-50); color: var(--insight-green-ink); display: flex; align-items: center; justify-content: center; }
.service h4 { font-size: 15px; font-weight: 600; color: var(--ink-900); line-height: 1.3; word-break: keep-all; }
.service p { font-size: 13px; line-height: 1.55; color: var(--ink-500); word-break: keep-all; }

/* ===== Columns (articles) ===== */
.column-filters { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.chip { font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-subtle); background: #fff; color: var(--ink-800); cursor: pointer; transition: all var(--dur-fast); }
.chip.on { border-color: var(--insight-green); color: var(--insight-green-ink); background: var(--insight-green-50); font-weight: 600; }
.column-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.column-card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: all var(--dur-base) var(--ease-out); cursor: pointer;
}
.column-card:hover { border-color: var(--insight-green-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.column-card .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--insight-green-ink); }
.column-card h3 { font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink-900); word-break: keep-all; }
.column-card .excerpt { font-size: 14px; line-height: 1.7; color: var(--ink-700); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.column-card .meta { font-size: 13px; color: var(--ink-500); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ink-100); display: flex; justify-content: space-between; align-items: center; }
.column-card .read-more { font-size: 13px; color: var(--insight-green-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* 더보기 카드 */
.column-card-more {
  background: #F1F9F5; border: 1.5px dashed var(--insight-green-300);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; cursor: pointer;
}
.column-card-more:hover { background: #E6F5EC; border-color: var(--insight-green-ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.more-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.more-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--insight-green-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  box-shadow: 0 4px 14px rgba(31,138,94,.25);
}
.column-card-more:hover .more-icon { transform: scale(1.08); box-shadow: 0 8px 20px rgba(31,138,94,.35); }
.more-label { font-size: 15px; font-weight: 700; color: var(--insight-green-ink); letter-spacing: 0.02em; }
.more-sub { font-size: 13px; color: var(--ink-500); }

/* ===== CTA form ===== */
.cta-card {
  background: transparent; border-radius: 28px; padding: 56px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-card .arcs-bg { position: absolute; right: -60px; bottom: -60px; width: 400px; height: 200px; opacity: 0.7; }
.cta-card h3 { font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--ink-900); word-break: keep-all; position: relative; z-index: 1; }
.cta-card p { font-size: 16px; line-height: 1.7; color: var(--ink-700); margin-top: 14px; word-break: keep-all; position: relative; z-index: 1; }
.cta-bullets { margin-top: 24px; display: grid; gap: 10px; position: relative; z-index: 1; }
.cta-bullets li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-800); }
.cta-bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--insight-green); flex-shrink: 0; transform: translateY(2px); }

form.cta-form { background: var(--ink-50); border-radius: 20px; padding: 32px; display: grid; gap: 16px; position: relative; z-index: 1; }
form.cta-form label { display: flex; flex-direction: column; gap: 6px; }
form.cta-form .lbl { font-size: 13px; font-weight: 600; color: var(--ink-800); }
form.cta-form .field { font-family: var(--font-sans); font-size: 15px; padding: 11px 14px; border: 1px solid var(--ink-200); border-radius: 8px; background: #fff; color: var(--ink-900); outline: none; }
form.cta-form .field:focus { border-color: var(--insight-green); box-shadow: 0 0 0 3px rgba(47,158,107,.15); }
form.cta-form textarea.field { min-height: 80px; resize: vertical; font-family: var(--font-sans); }
form.cta-form .submit { margin-top: 6px; }
form.cta-form .consent { font-size: 12px; color: var(--ink-500); display: flex; gap: 8px; align-items: flex-start; }
form.cta-form .consent input { margin-top: 3px; accent-color: var(--insight-green); }

.cta-success { text-align: center; padding: 40px 20px; color: var(--ink-800); }
.cta-success .check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 999px; background: var(--insight-green); color: #fff; display: flex; align-items: center; justify-content: center; }
.cta-success h4 { font-size: 22px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.cta-success p { font-size: 15px; color: var(--ink-600); }

/* ===== Footer ===== */
footer.site-footer { background: #F4F5F7; color: var(--ink-800); padding: 64px 0 36px; border-top: 1px solid #E6E8EC; }
.footer-wide { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
footer.site-footer .footer-inner { display: grid; grid-template-columns: 1.6fr 1.4fr 1.2fr 1.4fr; gap: 48px; align-items: start; }
footer.site-footer h4 { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; font-weight: 700; }
footer.site-footer .foot-brand { display: flex; flex-direction: column; gap: 10px; }
footer.site-footer .foot-logo { margin-bottom: 2px; }
footer.site-footer .foot-logo img { height: 80px; width: auto; max-width: 100%; display: block; }
footer.site-footer .foot-tag { font-size: 13px; color: var(--ink-500); }
footer.site-footer .foot-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer .foot-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-700); white-space: nowrap; }
footer.site-footer .foot-list li svg { flex-shrink: 0; color: var(--ink-400); }
footer.site-footer .foot-list a { color: var(--ink-800); text-decoration: none; }
footer.site-footer .foot-list a:hover { color: var(--insight-green-ink); }
footer.site-footer .legal { border-top: 1px solid #E6E8EC; margin-top: 48px; padding-top: 20px; font-size: 12px; color: var(--ink-500); display: flex; justify-content: space-between; }

/* ===== Focus ring (global) ===== */
*:focus-visible { outline: 2px solid var(--insight-green); outline-offset: 2px; border-radius: 4px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .footer-wide { padding: 0 20px; }
  .site-nav { display: none; }
  section.section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 16px; }

  /* Hero */
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-arcs { display: none; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 17px; }
  .btn-hero-primary { padding: 16px 28px; font-size: 15px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { width: 100%; height: 320px; }
  .about-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .about-signature-img { width: 130px; align-self: flex-end; transform: rotate(-3deg); }
  .about-body p { font-size: 15px; }
  .credentials { padding: 20px 16px; }
  .credentials ul { grid-template-columns: 1fr; gap: 14px; }
  .credentials li { align-items: flex-start; gap: 10px; flex-direction: column; }
  .credentials .proj-tag { min-width: auto; width: fit-content; text-align: left; }

  /* Services */
  .segments.three { grid-template-columns: 1fr; gap: 16px; }
  .segment { padding: 24px; }
  .segment-headline { font-size: 19px; }

  /* Brand / Plus Alpha */
  .plus-alpha { grid-template-columns: 1fr; gap: 20px; }
  .pa-grid { grid-template-columns: 1fr; }

  /* Columns */
  .column-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .column-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .column-cta { display: none; }
  .column-card h3 { font-size: 16px; }

  /* CTA */
  .cta-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .cta-card h3 { font-size: 24px; }
  .cta-card .arcs-bg { display: none; }

  /* Footer */
  footer.site-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer.site-footer { padding: 48px 0 28px; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 15px; }
  .column-grid { grid-template-columns: 1fr; }
  .column-card-more { min-height: 120px; }
  .more-icon { width: 48px; height: 48px; }
  footer.site-footer .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .cta-card { padding: 24px; }
  .segment-headline { font-size: 17px; }
  .section-title { font-size: 24px; }
  .portrait { height: 260px; }
}
