:root {
  --df-bg: #f6f3ed;
  --df-surface: #ffffff;
  --df-ink: #0c1222;
  --df-muted: #596173;
  --df-line: #d8d9dd;
  --df-primary: #16213e;
  --df-primary-2: #233257;
  --df-accent: #ffd84d;
  --df-accent-soft: #fff3b3;
  --df-success: #178765;
  --df-danger: #c63c3c;
  --df-focus: #2767d8;
  --df-white-80: rgba(255, 255, 255, 0.8);
  --df-white-16: rgba(255, 255, 255, 0.16);
  --df-shadow: 0 24px 70px rgba(12, 18, 34, 0.18);
  --df-shadow-sm: 0 10px 30px rgba(12, 18, 34, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--df-bg);
  color: var(--df-ink);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--df-focus); outline-offset: 3px; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: 104px; }
.section--light { background: var(--df-surface); }
.section--dark { background: var(--df-primary); color: var(--df-surface); }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--df-primary-2);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section--dark .section-kicker { color: var(--df-accent); }
.section-kicker::before { content: ""; width: 30px; height: 3px; border-radius: 99px; background: currentColor; }
.section-title { max-width: 820px; margin: 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 800; }
.section-lead { max-width: 680px; margin: 22px 0 0; color: var(--df-muted); font-size: 18px; }
.section--dark .section-lead { color: var(--df-white-80); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.status-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--df-muted); }
.status-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--df-accent); }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: var(--df-surface);
  color: var(--df-ink);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-color: var(--df-white-16); background: var(--df-primary); color: var(--df-surface); box-shadow: 0 10px 30px rgba(12, 18, 34, 0.18); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand--logo { flex: 0 0 auto; }
.brand-logo { width: 184px; height: auto; max-height: 63px; object-fit: contain; transition: filter 200ms ease; }
.site-header.is-scrolled .brand-logo, .footer-logo { filter: brightness(0) invert(1); }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { position: relative; color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--df-accent); transition: right 180ms ease; }
.desktop-nav a:hover::after { right: 0; }
.header-cta { min-height: 46px; display: inline-flex; align-items: center; padding-inline: 18px; border-radius: 12px; background: var(--df-accent); color: var(--df-ink) !important; }
.menu-button { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--df-line); border-radius: 12px; background: transparent; color: inherit; font-weight: 800; }
.site-header.is-scrolled .menu-button { border-color: var(--df-white-16); }
.mobile-panel { display: none; }

.hero { position: relative; min-height: 790px; overflow: hidden; background: var(--df-primary); color: var(--df-surface); padding: 150px 0 94px; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid var(--df-white-16); border-radius: 50%; left: -150px; bottom: -90px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 58px; align-items: center; }
.hero-kicker { color: var(--df-accent); font-size: 14px; font-weight: 850; letter-spacing: 0.13em; }
.hero h1 { max-width: 690px; margin: 20px 0 26px; font-size: clamp(50px, 5.6vw, 70px); line-height: 1.05; letter-spacing: -0.055em; font-weight: 850; }
.hero-copy { max-width: 625px; margin: 0; color: var(--df-white-80); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 23px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--df-accent); color: var(--df-ink); box-shadow: 0 12px 30px rgba(255, 216, 77, 0.18); }
.button--ghost { border-color: var(--df-white-16); color: var(--df-surface); background: transparent; }
.button--dark { background: var(--df-primary); color: var(--df-surface); }
.button--outline { border-color: var(--df-primary); background: transparent; color: var(--df-primary); }
.button:disabled { cursor: not-allowed; opacity: 0.45; transform: none; box-shadow: none; }
.hero-visual { position: relative; min-height: 540px; }
.hero-photo { position: absolute; inset: 0 0 90px 38px; overflow: hidden; border-radius: 24px; background: var(--df-primary-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) brightness(0.65); }
.hero-photo::after { content: "시안용 이미지 · 실제 행사 사진으로 교체"; position: absolute; left: 18px; bottom: 18px; padding: 8px 12px; border-radius: 99px; background: var(--df-primary); color: var(--df-surface); font-size: 12px; font-weight: 800; }
.brief-preview { position: absolute; left: -26px; right: 54px; bottom: 0; padding: 26px; border-radius: 18px; background: var(--df-surface); color: var(--df-ink); box-shadow: var(--df-shadow); }
.brief-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.brief-preview h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.brief-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--df-line); }
.brief-preview-row:last-child { border-bottom: 0; }
.brief-preview-row span { color: var(--df-muted); }

.brief-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: start; }
.brief-intro { position: sticky; top: 30px; }
.brief-helper { margin-top: 28px; padding: 22px; border-left: 4px solid var(--df-accent); background: var(--df-surface); box-shadow: var(--df-shadow-sm); }
.brief-helper strong { display: block; font-size: 18px; }
.brief-helper p { margin: 6px 0 0; color: var(--df-muted); }
.brief-builder { padding: 32px; border: 1px solid var(--df-line); border-radius: 22px; background: var(--df-surface); box-shadow: var(--df-shadow-sm); }
.field-group { margin-bottom: 28px; }
.field-label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 850; }
.purpose-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-button { min-height: 84px; padding: 14px; border: 1px solid var(--df-line); border-radius: 14px; background: var(--df-bg); color: var(--df-ink); font-weight: 750; text-align: left; cursor: pointer; }
.choice-button[aria-pressed="true"] { border-color: var(--df-primary); background: var(--df-primary); color: var(--df-surface); box-shadow: inset 0 -4px 0 var(--df-accent); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--df-line); border-radius: 11px; background: var(--df-surface); color: var(--df-ink); }
.input:focus { border-color: var(--df-focus); }
.brief-output { margin: 28px 0 20px; padding: 22px; border-radius: 16px; background: var(--df-accent-soft); }
.brief-output h3 { margin: 0 0 12px; font-size: 19px; }
.brief-output dl { display: grid; grid-template-columns: 100px 1fr; gap: 8px 18px; margin: 0; }
.brief-output dt { color: var(--df-muted); }
.brief-output dd { margin: 0; font-weight: 800; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.decision-card { min-height: 250px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--df-line); border-radius: 18px; background: var(--df-bg); }
.decision-card-no { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--df-accent); font-weight: 900; }
.decision-card h3 { margin: 26px 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.025em; }
.decision-card p { margin: 0; color: var(--df-muted); }
.decision-card .status-label { margin-top: auto; padding-top: 22px; }

.evidence-layout { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 54px; align-items: center; margin-top: 54px; }
.evidence-photo { position: relative; overflow: hidden; min-height: 560px; border-radius: 22px; }
.evidence-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; filter: saturate(0.68) brightness(0.55); }
.evidence-photo-copy { position: absolute; z-index: 2; inset: auto 28px 28px; }
.evidence-photo-copy strong { display: block; max-width: 530px; font-size: 34px; line-height: 1.2; letter-spacing: -0.04em; }
.evidence-photo-copy span { display: inline-flex; margin-top: 16px; padding: 8px 12px; border-radius: 99px; background: var(--df-surface); color: var(--df-ink); font-size: 12px; font-weight: 850; }
.metric-grid { display: grid; gap: 13px; }
.metric-card { padding: 23px; border: 1px solid var(--df-white-16); border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
.metric-value { display: block; color: var(--df-accent); font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.metric-card h3 { margin: 12px 0 6px; font-size: 19px; }
.metric-card p { margin: 0; color: var(--df-white-80); font-size: 14px; }
.metric-note { margin-top: 12px; color: var(--df-white-80); font-size: 13px; }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--df-line); border-bottom: 1px solid var(--df-line); }
.process-step { position: relative; padding: 30px 24px 34px; border-right: 1px solid var(--df-line); }
.process-step:last-child { border-right: 0; }
.process-step span { color: var(--df-primary-2); font-weight: 900; }
.process-step h3 { margin: 38px 0 10px; font-size: 21px; }
.process-step p { margin: 0; color: var(--df-muted); font-size: 15px; }
.process-caution { margin-top: 26px; color: var(--df-muted); font-size: 14px; }

.portfolio-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.portfolio-tab { min-height: 46px; padding: 0 18px; border: 1px solid var(--df-line); border-radius: 99px; background: var(--df-bg); color: var(--df-ink); font-weight: 800; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.portfolio-tab:hover { border-color: var(--df-primary-2); }
.portfolio-tab.is-active, .portfolio-tab[aria-selected="true"] { border-color: var(--df-primary); background: var(--df-primary); color: var(--df-surface); }
.portfolio-status { margin: 14px 0 0; color: var(--df-muted); font-size: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.work-card { position: relative; overflow: hidden; min-height: 360px; border-radius: 20px; background: var(--df-primary); }
.work-card[hidden] { display: none; }
.work-card img { width: 100%; height: 100%; position: absolute; object-fit: cover; filter: saturate(0.72) brightness(0.68); transition: transform 320ms ease; }
.work-card:hover img { transform: scale(1.025); }
.work-card::after { content: ""; position: absolute; inset: 0; background: rgba(12, 18, 34, 0.26); }
.work-card-copy { position: absolute; z-index: 2; inset: auto 22px 22px; color: var(--df-surface); }
.work-card-copy span { display: inline-flex; padding: 7px 10px; border-radius: 99px; background: var(--df-accent); color: var(--df-ink); font-size: 12px; font-weight: 850; }
.work-card-copy h3 { margin: 14px 0 4px; font-size: 23px; }
.work-card-copy p { margin: 0; color: var(--df-white-80); font-size: 14px; }
.replacement-note { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--df-line); border-radius: 14px; color: var(--df-muted); }

.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 62px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--df-line); border-radius: 14px; background: var(--df-surface); }
.faq-item summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: var(--df-muted); }

.inquiry { background: var(--df-primary); color: var(--df-surface); }
.inquiry-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: start; }
.inquiry-copy { position: sticky; top: 30px; }
.inquiry-copy h2 { margin: 16px 0 20px; font-size: clamp(38px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.05em; }
.inquiry-copy p { color: var(--df-white-80); font-size: 18px; }
.inquiry-points { display: grid; gap: 10px; margin-top: 30px; }
.inquiry-point { display: flex; gap: 12px; align-items: center; color: var(--df-white-80); }
.inquiry-point::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--df-accent); flex: 0 0 auto; }
.inquiry-form { padding: 34px; border-radius: 22px; background: var(--df-surface); color: var(--df-ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 800; }
.form-field textarea { min-height: 130px; resize: vertical; }
.field-help { display: block; margin-top: 6px; color: var(--df-muted); font-size: 13px; }
.field-error { display: none; margin-top: 6px; color: var(--df-danger); font-size: 13px; font-weight: 700; }
.form-field.is-error .input { border-color: var(--df-danger); }
.form-field.is-error .field-error { display: block; }
.consent { min-height: 44px; display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; color: var(--df-muted); font-size: 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; }
.form-status { display: none; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: var(--df-accent-soft); color: var(--df-ink); font-weight: 750; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(23, 135, 101, 0.13); color: var(--df-success); }
.form-submit { width: 100%; }
.form-disclaimer { margin: 12px 0 0; color: var(--df-muted); font-size: 12px; }

.site-footer { background: var(--df-ink); color: var(--df-surface); }
.footer-inner { min-height: 210px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.footer-copy p { max-width: 580px; margin: 16px 0 0; color: var(--df-white-80); }
.footer-meta { text-align: right; color: var(--df-white-80); font-size: 14px; }
.demo-notice { margin: 0; padding: 16px 20px; background: var(--df-accent); color: var(--df-ink); text-align: center; font-size: 13px; line-height: 1.55; }

@media (max-width: 1024px) {
  .section { padding-block: 88px; }
  .hero-grid { gap: 36px; }
  .hero-visual { min-height: 500px; }
  .brief-layout, .inquiry-layout { grid-template-columns: 1fr; }
  .brief-intro, .inquiry-copy { position: static; }
  .decision-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--df-line); }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 72px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { min-height: 78px; }
  .brand-logo { width: 154px; max-height: 52px; }
  .mobile-panel { position: fixed; z-index: 25; inset: 0; display: grid; align-content: center; gap: 18px; padding: 74px 28px 36px; background: var(--df-primary); transform: translateX(100%); transition: transform 220ms ease; }
  .mobile-panel.is-open { transform: translateX(0); }
  .mobile-panel a { min-height: 54px; display: flex; align-items: center; color: var(--df-surface); text-decoration: none; font-size: 24px; font-weight: 800; }
  .mobile-close { position: absolute; top: 18px; right: 20px; min-width: 50px; min-height: 50px; border: 1px solid var(--df-white-16); border-radius: 12px; background: transparent; color: var(--df-surface); }
  .hero { min-height: 0; padding: 126px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero-copy { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 500px; margin-top: 12px; }
  .hero-photo { inset: 0 0 118px; }
  .brief-preview { left: 14px; right: 14px; }
  .field-grid, .form-grid { grid-template-columns: 1fr; }
  .purpose-options { grid-template-columns: 1fr; }
  .choice-button { min-height: 62px; }
  .brief-builder, .inquiry-form { padding: 24px 20px; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { min-height: 220px; }
  .evidence-layout { grid-template-columns: 1fr; }
  .evidence-photo { min-height: 400px; }
  .process-list { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--df-line); }
  .process-step:last-child { border-bottom: 0; }
  .process-step h3 { margin-top: 16px; }
  .portfolio-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; padding-bottom: 8px; scrollbar-width: none; }
  .portfolio-tabs::-webkit-scrollbar { display: none; }
  .portfolio-tab { flex: 0 0 auto; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 350px; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 54px; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
