:root {
  --accent: #9389de;
  --accent-strong: #766acb;
  --accent-soft: #f0edff;
  --bg: #f8f8fc;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --text: #22222a;
  --muted: #737380;
  --line: #e8e6ef;
  --shadow: 0 10px 28px rgba(61, 51, 105, .075);
  --radius-lg: 28px;
  --radius-md: 20px;
  --page-pad: clamp(12px, 2.2vw, 24px);
}
* { box-sizing: border-box; }
html { min-width: 0; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; line-height: 1.6; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.site-shell { width: min(100%, 1080px); margin: 0 auto; padding: var(--page-pad); display: grid; gap: 16px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.hero-card { position: relative; overflow: hidden; display: flex; gap: clamp(12px, 2vw, 18px); align-items: flex-start; padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 62%, var(--accent-soft) 100%); }
.hero-card::after { content: ""; position: absolute; right: 28px; top: 20px; width: 52px; height: 28px; opacity: .38; background: radial-gradient(circle, var(--accent) 2px, transparent 2.4px) 0 0/13px 13px; pointer-events: none; }
.hero-mark { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), var(--accent-strong)); color: white; font-size: 20px; box-shadow: 0 8px 18px rgba(147,137,222,.24); transform: rotate(-3deg); }
.hero-content { min-width: 0; flex: 1; }
.hero-kicker { display: inline-flex; width: max-content; padding: 5px 9px; margin-bottom: 9px; border-radius: 999px; background: var(--accent-soft); letter-spacing: .11em; }
.hero-copy { max-width: 760px; margin-bottom: 16px; color: var(--muted); line-height: 1.48; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(22px, 4vw, 34px); line-height: 1.2; letter-spacing: -.03em; }
h2 { margin-bottom: 10px; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.3; letter-spacing: -.02em; }
h3 { margin-bottom: 6px; }
.eyebrow,.section-kicker { display: block; margin: 0 0 7px; color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.muted { color: var(--muted); }
.preline { margin-bottom: 0; white-space: pre-line; overflow-wrap: anywhere; }
.notice-stack { display: grid; gap: 14px; }
.info-card { padding: clamp(18px, 2.5vw, 28px); }
.schedule-card { position: relative; overflow: hidden; border-left: 0; background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }
.schedule-card::before { content: "✦"; position: absolute; right: 20px; top: 15px; color: var(--accent); font-size: 18px; opacity: .55; }
.notice-card { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.notice-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.notice-heading h2 { margin-bottom: 0; }
.notice-sparkle { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); font-size: 18px; font-weight: 900; transform: rotate(5deg); }
.notice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.notice-item { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; align-items: start; padding: 14px; border: 1px solid rgba(147,137,222,.22); border-radius: 20px; background: var(--surface-2); }
.notice-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 12px rgba(85,72,140,.08); font-size: 17px; }
.notice-item-copy { min-width: 0; }
.notice-item-title { display: block; margin: 1px 0 5px; font-size: 14px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.notice-item-description { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.notice-legacy { color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-heading,.portfolio-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.form-card,.portfolio-card { padding: clamp(18px, 2.6vw, 30px); scroll-margin-top: 12px; }
.form-card .section-heading > p { max-width: 460px; text-align: right; }
.contact-form { margin-top: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-form label { min-width: 0; display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.contact-form .span-2 { grid-column: 1 / -1; }
input,select,textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--text); padding: 12px 13px; outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 92px; }
input:focus,select:focus,textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(147,137,222,.14); }
.choice-field { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.choice-field legend { padding: 0 6px; font-size: 13px; font-weight: 800; }
.field-help { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-pill { display: inline-flex !important; grid-template-columns: auto auto !important; align-items: center; gap: 7px !important; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.choice-pill input { width: auto; margin: 0; accent-color: var(--accent); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.primary-button,.secondary-button,.tab,.page-button { border-radius: 999px; }
.primary-button { min-height: 44px; padding: 0 18px; border: 0; color: #fff; background: var(--accent); font-weight: 800; box-shadow: 0 6px 14px rgba(147,137,222,.24); }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { min-height: 44px; padding: 0 18px; border: 1px solid rgba(147,137,222,.45); background: var(--surface); color: var(--accent-strong); font-weight: 800; }
.secondary-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.status-text { min-height: 1.5em; color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding: 5px; border-radius: 18px; background: var(--accent-soft); }
.tab { white-space: nowrap; padding: 9px 14px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 13px; }
.tab.is-active { background: var(--surface); color: var(--accent-strong); box-shadow: 0 3px 9px rgba(86,73,140,.12); }
.portfolio-status { min-height: 24px; margin: 15px 0 8px; color: var(--muted); font-size: 13px; }
.portfolio-grid { --display-width: 200px; --display-height: 200px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--display-width), 100%), var(--display-width))); justify-content: center; gap: clamp(8px, 1.5vw, 14px); }
.work-card { min-width: 0; width: 100%; max-width: var(--display-width); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); transition: transform .12s ease, border-color .12s ease; }
.work-card:hover { transform: translateY(-2px); border-color: rgba(147,137,222,.55); }
.work-button { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; }
.media-wrap { display: grid; place-items: center; width: 100%; aspect-ratio: var(--display-width) / var(--display-height); background: linear-gradient(135deg, rgba(147,137,222,.08), rgba(147,137,222,.02)); }
.media-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty-state { grid-column: 1/-1; width: 100%; padding: 34px 18px; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; color: var(--muted); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.page-button { min-width: 38px; min-height: 38px; padding: 0 11px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: 700; }
.page-button.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer { padding: 8px 4px 20px; text-align: center; font-size: 12px; }
.lightbox { width: min(92vw, 940px); max-height: 92vh; border: 0; border-radius: 18px; padding: 46px 14px 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.lightbox::backdrop { background: rgba(10,10,16,.72); backdrop-filter: blur(3px); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--text); font-size: 24px; line-height: 1; }
@media (max-width: 680px) {
  .site-shell { gap: 12px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .span-2 { grid-column: auto; }
  .section-heading,.portfolio-header { align-items: stretch; flex-direction: column; }
  .form-card .section-heading > p { max-width: none; text-align: left; }
  .notice-list { grid-template-columns: 1fr; }
  .tabs { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; border-radius: 14px; }
  .tab { flex: 0 0 auto; }
}
@media (max-width: 420px) {
  :root { --radius-lg: 22px; --radius-md: 18px; }
  .hero-card { align-items: flex-start; }
  .hero-mark { width: 40px; height: 40px; border-radius: 14px; font-size: 18px; }
  .hero-card::after { right: 12px; top: 12px; opacity: .25; }
  .hero-copy { font-size: 13px; line-height: 1.5; }
  .hero-actions { gap: 10px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portfolio-grid[data-wide="1"] { grid-template-columns: 1fr; }
  .work-card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d11; --surface: #15151b; --surface-2: #1b1a23; --text: #f4f2fb; --muted: #aaa7b6;
    --line: #2b2936; --accent-soft: #25213d; --accent-strong: #b5acf4; --shadow: 0 12px 30px rgba(0,0,0,.22);
  }
}


/* v0.4.2 profile A/B comparison */
.comparison-section { padding: clamp(18px, 2.6vw, 30px); overflow: hidden; background: linear-gradient(145deg, var(--surface) 0%, var(--surface) 72%, rgba(147,137,222,.08) 100%); }
.comparison-section[hidden] { display: none; }
.comparison-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.comparison-heading h2 { margin-bottom: 5px; }
.comparison-intro { max-width: 720px; font-size: 13px; line-height: 1.55; }
.comparison-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 68px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.comparison-item { min-width: 0; overflow: hidden; border: 1px solid rgba(147,137,222,.22); border-radius: 24px; background: var(--surface-2); }
.comparison-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, rgba(147,137,222,.12), rgba(147,137,222,.03)); }
.comparison-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.comparison-media img:not([src]), .comparison-media img[src=""] { display: none; }
.comparison-placeholder { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--surface); color: var(--accent-strong); font-weight: 900; font-size: 24px; box-shadow: 0 8px 22px rgba(67,57,112,.09); }
.comparison-copy { padding: 16px 17px 18px; }
.comparison-type-pill { display: inline-flex; padding: 4px 8px; margin-bottom: 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.comparison-copy h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.comparison-copy p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.comparison-footer { margin: 14px 2px 0; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--muted); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 560px) {
  .comparison-heading { flex-direction: column; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-media { aspect-ratio: 1 / 1; }
}
