/* ========================================================================
   WUAZEN — 우아젠 자사 홈페이지
   선(禪)·여백 · 딥네이비 #0D1B2A · 골드 #C9A84C · 아이보리 #F7F6F1
   ======================================================================== */

:root {
  /* Colors */
  --navy: #0D1B2A;
  --navy-card: #16273A;
  --navy-border: #1B2D3F;
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, 0.12);
  --ivory: #F7F6F1;
  --text-dark: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #F7F6F1;
  --text-light-dim: rgba(247, 246, 241, 0.66);
  --border-light: #E5E3DD;
  --white: #FFFFFF;

  /* Typography */
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Spacing */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-2xl: 96px;
  --sp-3xl: 128px;

  /* Layout */
  --max-width: 1200px;
  --pad: 48px;
  --header-h: 72px;
  --radius: 4px;
  --radius-card: 8px;
  --ease: 200ms ease-out;
  --ease-lux: 640ms cubic-bezier(0.16, 1, 0.3, 1);
  --gold-line: rgba(201, 168, 76, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--sp-2xl); padding-bottom: var(--sp-2xl); }
.section-navy { background: var(--navy); color: var(--text-light); }
.section-ivory { background: var(--ivory); color: var(--text-dark); }

/* ---------- Section head ---------- */
.section { position: relative; }
.section-head { max-width: 760px; margin-bottom: var(--sp-xl); }
.section-head.center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .divider-gold { margin-left: auto; margin-right: auto; }
.divider-gold { display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: var(--sp-md); }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: var(--sp-sm); text-transform: uppercase; }
.eyebrow-gold { color: var(--gold); }
.section-title { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.24; letter-spacing: -0.025em; }
.section-lead { margin-top: var(--sp-md); font-size: 1.125rem; color: var(--text-muted); line-height: 1.85; }
.section-lead-light { color: var(--text-light-dim); }
.section-navy .section-lead { color: var(--text-light-dim); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 15px 30px; border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  border: 1px solid transparent; letter-spacing: 0.01em;
  min-height: 48px; will-change: transform;
}
.btn-lg { padding: 18px 40px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 20px -8px rgba(201,168,76,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(201,168,76,0.6); background: #D8B85C; }
.btn-primary:active { transform: translateY(0); }
/* sheen sweep */
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); transition: left 620ms ease;
}
.btn-primary:hover::before { left: 160%; }
.btn-ghost { background: transparent; border-color: rgba(247,246,241,0.4); color: var(--text-light); }
.btn-ghost:hover { background: rgba(247,246,241,0.08); border-color: var(--text-light); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; font-size: 0.9375rem; transition: gap var(--ease); }
.text-link:hover { gap: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--ease), border-color var(--ease);
}
.site-header.scrolled { background: rgba(13, 27, 42, 0.94); border-bottom-color: var(--navy-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; }
.brand-logo-dark { display: block; }
.brand-logo-light { display: none; }
.site-header.scrolled .brand-logo-dark { display: none; }
.site-header.scrolled .brand-logo-light { display: block; }
.brand-mark { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.08em; color: var(--navy); transition: color var(--ease); }
.site-header.scrolled .brand-mark { color: var(--ivory); }
.nav-desktop { display: flex; gap: var(--sp-lg); margin-left: auto; margin-right: var(--sp-lg); }
.nav-desktop a { position: relative; font-size: 0.9375rem; font-weight: 500; color: var(--navy); padding: 6px 0; transition: color var(--ease); }
.site-header.scrolled .nav-desktop a { color: var(--text-light); }
.nav-desktop a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width var(--ease); }
.nav-desktop a:hover { color: var(--gold); }
.nav-desktop a:hover::after { width: 100%; }
.btn-nav-cta { padding: 10px 20px; min-height: 40px; font-size: 0.9375rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all var(--ease); }
.site-header.scrolled .hamburger span { background: var(--ivory); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-md);
  opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 300ms ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: var(--sp-lg); }
.mm-link { font-size: 1.5rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.04em; }
.mm-link:hover { color: var(--gold); }
.mm-cta { margin-top: var(--sp-md); }
.mobile-close { position: absolute; top: 20px; right: 24px; font-size: 2.5rem; line-height: 1; color: var(--text-light); width: 48px; height: 48px; }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: #0A1622; color: var(--text-light);
  padding-top: calc(var(--header-h) + var(--sp-2xl));
  padding-bottom: var(--sp-2xl);
  min-height: 100svh; display: flex; align-items: center;
  text-align: center;
}
/* Layer 1: deep gradient wash */
.hero-bg {
  position: absolute; inset: -2px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 8%, rgba(201,168,76,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 82% 90%, rgba(201,168,76,0.05) 0%, transparent 55%),
    linear-gradient(165deg, #0C1A29 0%, #10233A 52%, #091420 100%);
}
/* Layer 2: structural gold grid lines that draw in */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--gold-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold-line) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 30%, transparent 80%);
  opacity: 0; transform: scale(1.04);
  transition: opacity 1400ms ease, transform 1800ms cubic-bezier(0.16,1,0.3,1);
}
.hero.hero-ready .hero-grid { opacity: 1; transform: scale(1); }
/* Layer 3: fine grain */
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
/* Layer 4: sweeping halo ring */
.hero-bg::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.14);
  box-shadow: inset 0 0 120px rgba(201,168,76,0.04);
}
.hero-inner { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.34em; color: var(--gold);
  margin-bottom: var(--sp-lg); text-transform: uppercase;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 28px; height: 1px; background: rgba(201,168,76,0.5);
}
.hero-title { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.035em; color: #FCFBF7; }
.hero-title .accent { color: var(--gold); }
.hero-sub { margin: var(--sp-lg) auto 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.75; color: var(--text-light-dim); max-width: 640px; }
.hero-actions { margin-top: var(--sp-xl); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-sm); }
.hero-tagline { margin-top: var(--sp-2xl); font-size: 0.95rem; letter-spacing: 0.22em; color: rgba(201,168,76,0.8); text-transform: uppercase; }
.hero-tagline em { font-style: normal; }
/* Scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.6875rem; letter-spacing: 0.3em; color: rgba(247,246,241,0.4); text-transform: uppercase;
}
.hero-scroll span { display: block; width: 1px; height: 40px; background: linear-gradient(rgba(201,168,76,0.7), transparent); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* Staggered word/line reveal for hero */
.hero .reveal-up { opacity: 0; transform: translateY(28px); }
.hero.hero-ready .reveal-up { animation: heroRise 900ms cubic-bezier(0.16,1,0.3,1) forwards; }
.hero.hero-ready .reveal-up.d1 { animation-delay: 120ms; }
.hero.hero-ready .reveal-up.d2 { animation-delay: 260ms; }
.hero.hero-ready .reveal-up.d3 { animation-delay: 420ms; }
.hero.hero-ready .reveal-up.d4 { animation-delay: 620ms; }
.hero.hero-ready .reveal-up.d5 { animation-delay: 820ms; }
@keyframes heroRise { to { opacity: 1; transform: none; } }

/* ========================================================================
   CARDS / GRIDS
   ======================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.card { position: relative; border-radius: var(--radius-card); padding: 40px 34px; transition: transform var(--ease-lux), border-color var(--ease), box-shadow var(--ease-lux), background var(--ease); overflow: hidden; }
/* top gold hairline that grows on hover */
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--ease-lux); }
.card:hover::before { width: 100%; }
.feature-card { background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.55); }
.feature-card:hover { transform: translateY(-6px); background: rgba(201,168,76,0.08); box-shadow: 0 24px 50px -30px rgba(201,168,76,0.5); }
.svc-card { background: var(--white); border: 1px solid var(--border-light); display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 26px 50px -28px rgba(13,27,42,0.28); }
.card-num, .svc-index { display: inline-block; font-size: 1.375rem; font-weight: 800; color: var(--gold); margin-bottom: var(--sp-md); letter-spacing: 0.02em; font-feature-settings: 'tnum'; }
.card-title { font-size: 1.4rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; letter-spacing: -0.015em; }
.card-text { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: auto; }
.svc-card .text-link { margin-top: var(--sp-lg); }

/* ========================================================================
   STATS (proof)
   ======================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.stat { position: relative; text-align: center; padding: var(--sp-lg) var(--sp-sm); border: 1px solid var(--navy-border); border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)); transition: border-color var(--ease), transform var(--ease-lux), box-shadow var(--ease-lux); }
.stat:hover { border-color: rgba(201,168,76,0.55); transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(201,168,76,0.4); }
.stat-num { font-size: clamp(2.4rem, 4vw, 3.25rem); font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -0.03em; font-feature-settings: 'tnum'; }
.stat-label { margin-top: 14px; font-size: 0.9375rem; color: var(--text-light-dim); line-height: 1.5; }
.proof-notes { margin-top: var(--sp-xl); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px var(--sp-lg); max-width: 820px; margin-left: auto; margin-right: auto; }
.proof-notes li { position: relative; padding-left: 20px; font-size: 0.9375rem; color: var(--text-light-dim); }
.proof-notes li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* ========================================================================
   PROCESS
   ======================================================================== */
.process-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); position: relative; }
.process-step { position: relative; padding: var(--sp-md) 0; }
.process-step::after { content: ''; position: absolute; top: 28px; right: -12px; width: 24px; height: 1px; background: rgba(201,168,76,0.4); }
.process-step:last-child::after { display: none; }
.process-node {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 1.2rem; font-weight: 800; margin-bottom: var(--sp-md);
  background: var(--gold-soft); transition: transform var(--ease-lux), background var(--ease), box-shadow var(--ease);
}
.process-step:hover .process-node { transform: translateY(-4px) scale(1.06); background: rgba(201,168,76,0.2); box-shadow: 0 0 0 6px rgba(201,168,76,0.08); }
.process-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--ivory); letter-spacing: -0.01em; }
.process-text { font-size: 0.9375rem; color: var(--text-light-dim); line-height: 1.6; }

/* ========================================================================
   DIAGNOSIS CTA (home) + SURVEY MODAL
   ======================================================================== */
.contact-cta { max-width: 640px; margin: var(--sp-lg) auto 0; text-align: center; }
.contact-cta .btn { min-width: 240px; }
.contact-cta-note { margin-top: var(--sp-md); font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }

/* Modal shell */
.survey-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 4vh, 56px) 16px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 260ms ease; }
.survey-modal.open { opacity: 1; visibility: visible; }
.survey-modal-overlay { position: fixed; inset: 0; background: rgba(10, 18, 30, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.survey-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 720px; margin: auto; background: var(--ivory, #F7F6F1); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(13,27,42,0.55); transform: translateY(22px) scale(0.98); transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.survey-modal.open .survey-modal-dialog { transform: translateY(0) scale(1); }
.survey-modal-close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: var(--text-muted); background: rgba(255,255,255,0.7); border-radius: 50%; transition: color var(--ease), background var(--ease); }
.survey-modal-close:hover { color: var(--navy); background: #fff; }
.survey-modal-body { max-height: calc(100vh - clamp(32px, 8vh, 112px)); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 40px); border-radius: 18px; }
.survey-modal-head { text-align: center; margin-bottom: var(--sp-lg); }
.survey-modal-title { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.25; margin: 8px 0 12px; }
.survey-modal-lead { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ========================================================================
   SURVEY
   ======================================================================== */
.survey-wrap { max-width: 780px; margin: 0 auto; }
.survey-modal .survey { padding: 0; border: none; box-shadow: none; background: transparent; }
.survey-modal .survey-done { padding: 40px 12px; border: none; background: transparent; }
.survey { background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; padding: 52px 48px; box-shadow: 0 30px 60px -34px rgba(13,27,42,0.22); }
.q-block { position: relative; border: none; padding: 0; margin-bottom: var(--sp-xl); }
.q-block:last-of-type { margin-bottom: var(--sp-md); }
.q-legend { font-size: 1.1875rem; font-weight: 700; color: var(--navy); line-height: 1.5; letter-spacing: -0.01em; }
.req { color: var(--gold); }
.q-help { font-size: 0.875rem; color: var(--text-muted); margin: 8px 0 18px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 13px 18px 13px 46px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 0.9375rem; color: var(--text-dark); cursor: pointer; transition: border-color var(--ease), background var(--ease), transform var(--ease); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
/* custom radio dot */
.opt::before { content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #C9C6BC; transition: all var(--ease); }
.opt:has(input:checked)::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 42%, transparent 46%); box-shadow: 0 0 0 3px rgba(201,168,76,0.18); }
.opt span { line-height: 1.4; }
.opt:hover { border-color: var(--gold); background: rgba(201,168,76,0.04); transform: translateY(-1px); }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Q3 checkbox = 사각형 체크(다중선택 시각 구분) */
.opt:has(input[type="checkbox"])::before { border-radius: 4px; }
.opt:has(input[type="checkbox"]:checked)::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.18); }
.opt:has(input[type="checkbox"]:checked)::after { content: ''; position: absolute; left: 21px; top: 50%; width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: translateY(-62%) rotate(45deg); }
/* '복수 선택 가능' 배지 */
.q-multi { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--gold); background: rgba(201,168,76,0.12); padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.02em; }

.contact-block { margin-top: var(--sp-lg); padding-top: var(--sp-lg); border-top: 1px solid var(--border-light); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.opt-tag { color: var(--text-muted); font-weight: 400; }
.field input { width: 100%; padding: 15px 16px; font-size: 1rem; color: var(--navy); background: #FCFBF8; border: 1px solid var(--border-light); border-radius: 8px; transition: border-color var(--ease), box-shadow var(--ease), background var(--ease); }
.field input::placeholder { color: #9CA3AF; }
.field input:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: var(--sp-md); font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }

.form-error { color: #C0392B; font-size: 0.875rem; margin-bottom: var(--sp-sm); font-weight: 500; }
.form-note { margin-top: var(--sp-sm); font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; text-align: center; }

/* Success screen */
.survey-done { background: var(--white); border: 1px solid var(--gold); border-radius: var(--radius-card); padding: 56px 44px; text-align: center; }
.done-check { display: flex; justify-content: center; margin-bottom: var(--sp-md); }
.done-title { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: var(--sp-sm); }
.done-text { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: var(--sp-lg); }
.done-reset { margin-top: var(--sp-md); display: inline-block; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer { padding-top: var(--sp-3xl); }
.footer-cta { text-align: center; padding-bottom: var(--sp-3xl); border-bottom: 1px solid var(--navy-border); }
.footer-cta-kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: var(--sp-md); }
.footer-cta-title { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; color: var(--ivory); margin-bottom: var(--sp-lg); letter-spacing: -0.03em; line-height: 1.2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: var(--sp-lg); padding-top: var(--sp-2xl); padding-bottom: var(--sp-xl); }
.footer-logo { color: var(--gold); font-size: 1.5rem; }
.footer-logo-img { height: 96px; width: auto; margin-bottom: var(--sp-sm); }
.footer-slogan { margin-top: var(--sp-sm); font-size: 1rem; color: var(--text-light-dim); line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--text-light-dim); transition: color var(--ease); }
.footer-nav a:hover { color: var(--gold); }
.footer-info p { font-size: 0.9375rem; color: var(--text-light-dim); line-height: 1.9; }
.footer-info a:hover { color: var(--gold); }
.footer-bottom { padding-top: var(--sp-md); padding-bottom: var(--sp-lg); border-top: 1px solid var(--navy-border); }
.footer-bottom p { font-size: 0.8125rem; color: rgba(247,246,241,0.4); }

/* ========================================================================
   SCROLL REVEAL
   ======================================================================== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 720ms var(--ease-lux), transform 720ms var(--ease-lux); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Survey attention pulse when CTA jumps here */
@keyframes surveyPulse {
  0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.0), 0 30px 60px -30px rgba(13,27,42,0.25); }
  30% { box-shadow: 0 0 0 4px rgba(201,168,76,0.55), 0 30px 60px -24px rgba(201,168,76,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.0), 0 30px 60px -30px rgba(13,27,42,0.18); }
}
.survey.is-highlight { animation: surveyPulse 1600ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-grid { opacity: 1 !important; transform: none !important; }
  .hero .reveal-up { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-scroll span { animation: none !important; }
  .survey.is-highlight { animation: none !important; }
}

/* ========================================================================
   RESPONSIVE — 1024 / 768 / 480
   ======================================================================== */
@media (max-width: 1023px) {
  :root { --pad: 32px; --sp-2xl: 80px; --sp-3xl: 96px; }
  .hero-title { font-size: 2.75rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 .card:last-child { grid-column: 1 / -1; }
  .process-flow { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg) var(--sp-md); }
  .process-step:nth-child(2)::after { display: none; }
  .nav-desktop { gap: var(--sp-md); margin-right: var(--sp-md); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-info { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --pad: 24px; --sp-2xl: 64px; --sp-3xl: 72px; --sp-xl: 48px; }
  .nav-desktop, .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 88vh; padding-top: calc(var(--header-h) + var(--sp-2xl)); }
  .hero-title { font-size: 2.25rem; }
  .hero-sub { font-size: 1.0625rem; }
  .section-title { font-size: 1.875rem; }
  .footer-cta-title { font-size: 1.875rem; }
  .grid-3, .svc-card:last-child, .grid-3 .card:last-child { grid-template-columns: 1fr; grid-column: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 2.5rem; }
  .proof-notes { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .survey { padding: 28px 20px; }
  .survey-modal { padding: 0; align-items: stretch; }
  .survey-modal-dialog { max-width: none; min-height: 100%; border-radius: 0; margin: 0; }
  .survey-modal-body { max-height: 100vh; height: 100vh; max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 64px 20px 40px; }
  .survey-modal-close { top: 10px; right: 10px; }
  .contact-cta .btn { width: 100%; min-width: 0; }
  .opt-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .footer-info { grid-column: auto; }
}

@media (max-width: 479px) {
  :root { --pad: 20px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.625rem; }
  body { font-size: 15px; }
}

/* ========================================================================
   SUBPAGE COMPONENTS (about / services / education / portfolio / contact)
   ======================================================================== */
/* Page hero (navy, compact) */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--text-light);
  padding-top: calc(var(--header-h) + var(--sp-2xl)); padding-bottom: var(--sp-2xl); }
.page-hero .hero-bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 82% 18%, rgba(201,168,76,0.12) 0%, transparent 44%),
    linear-gradient(160deg, #0D1B2A 0%, #0F2033 60%, #0B1622 100%); }
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero-title { font-size: 3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ivory); margin-top: var(--sp-sm); }
.page-hero-sub { margin-top: var(--sp-md); font-size: 1.1875rem; line-height: 1.75; color: var(--text-light-dim); max-width: 640px; }
.breadcrumb { font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text-light-dim); margin-bottom: var(--sp-sm); }
.breadcrumb a:hover { color: var(--gold); }

/* Prose blocks */
.prose { max-width: 760px; }
.prose p { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.9; margin-bottom: var(--sp-md); }
.section-navy .prose p { color: var(--text-light-dim); }
.lead-quote { font-size: 1.5rem; font-weight: 600; line-height: 1.6; color: var(--navy); letter-spacing: -0.01em; margin: var(--sp-lg) 0; padding-left: var(--sp-md); border-left: 3px solid var(--gold); }
.section-navy .lead-quote { color: var(--ivory); }

/* Two-column detail rows */
.detail-row { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-lg); padding: var(--sp-lg) 0; border-top: 1px solid var(--border-light); }
.detail-row:last-child { border-bottom: 1px solid var(--border-light); }
.detail-label { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.detail-label .svc-index { display: block; }
.detail-body p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.detail-body ul.ticks { margin-top: var(--sp-sm); display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 0.9375rem; color: var(--text-dark); line-height: 1.6; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }

/* Status pill */
.pill { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding: 4px 12px; border-radius: 999px; }
.pill-live { background: rgba(46,160,90,0.12); color: #2E7D46; border: 1px solid rgba(46,160,90,0.4); }
.pill-plan { background: var(--gold-soft); color: #9A7C2E; border: 1px solid rgba(201,168,76,0.5); }

/* Course cards (education) */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.course-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 36px 32px; display: flex; flex-direction: column; }
.course-card:hover { border-color: var(--gold); }
.course-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-sm); }
.course-card h3 { font-size: 1.375rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.course-meta { font-size: 0.875rem; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.course-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75; margin-bottom: var(--sp-md); }
.course-card .ticks { margin-top: auto; }

/* Curriculum weeks */
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: var(--sp-md); }
.week-item { border: 1px solid var(--navy-border); border-radius: var(--radius-card); padding: 18px 20px; background: rgba(255,255,255,0.015); }
.week-item .wk { font-size: 0.8125rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.week-item .wt { font-size: 0.9375rem; color: var(--ivory); margin-top: 6px; line-height: 1.5; }

/* Org chart */
.org { text-align: center; }
.org-tier { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-md); margin-bottom: var(--sp-lg); }
.org-node { min-width: 180px; padding: 20px 24px; border-radius: var(--radius-card); border: 1px solid var(--navy-border); background: var(--navy-card); }
.org-node.core { border-color: var(--gold); }
.org-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.org-name { font-size: 1.0625rem; font-weight: 700; color: var(--ivory); }
.org-desc { font-size: 0.8125rem; color: var(--text-light-dim); margin-top: 4px; line-height: 1.5; }
.org-tier-label { font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; font-weight: 600; margin-bottom: var(--sp-sm); }
.org-connector { width: 1px; height: 28px; background: rgba(201,168,76,0.4); margin: 0 auto var(--sp-md); }

/* Portfolio grid */
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.pf-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 32px; }
.pf-card:hover { border-color: var(--gold); }
.pf-card .svc-index { color: var(--gold); }
.pf-card h3 { font-size: 1.1875rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pf-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-md); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--gold); border-radius: 999px; padding: 8px 16px; }
.section-navy .badge { color: var(--ivory); background: var(--navy-card); }

/* Contact info blocks */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: start; }
.contact-info dl { display: grid; gap: var(--sp-md); }
.contact-info dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.contact-info dd { font-size: 1.0625rem; color: var(--navy); line-height: 1.6; }
.contact-info dd a:hover { color: var(--gold); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: 2.25rem; font-weight: 700; color: var(--ivory); margin-bottom: var(--sp-sm); letter-spacing: -0.01em; }
.cta-band p { color: var(--text-light-dim); margin-bottom: var(--sp-lg); font-size: 1.0625rem; }

@media (max-width: 1023px) {
  .page-hero-title { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
}
@media (max-width: 767px) {
  .page-hero-title { font-size: 2rem; }
  .detail-row { grid-template-columns: 1fr; gap: var(--sp-sm); }
  .course-grid, .pf-grid { grid-template-columns: 1fr; }
  .footer-logo-img { height: 80px; }
}


/* ===================================================
   메인 재제작 보강 (2026-07-25) — 기획안 v1.4 7섹션 대응
   · 섹션 리듬 128px (기획안: 섹션 간 120~160px)
   · 아이보리 배경에서 골드 텍스트 대비 보정 (#C9A84C는 밝은 배경에서 AA 미달)
   · process 블록을 아이보리 섹션에서도 쓸 수 있게 색 재정의
   =================================================== */
@media (min-width: 1024px) {
  .section { padding-top: var(--sp-3xl); padding-bottom: var(--sp-3xl); }
}

/* 밝은 배경용 골드 — 대비 확보(4.5:1 이상) */
.section-ivory .text-link,
.section-ivory .eyebrow-gold { color: #8A6A20; }

/* process 블록: 아이보리 섹션 대응 */
.section-ivory .process-title { color: var(--navy); }
.section-ivory .process-text { color: var(--text-muted); }
.section-ivory .process-node { color: #8A6A20; border-color: rgba(201, 168, 76, 0.85); }
.section-ivory .process-step::after { background: rgba(201, 168, 76, 0.6); }

/* 단계별 산출물 라벨 */
.proc-out {
  margin-top: var(--sp-md); padding-top: 12px;
  border-top: 1px solid var(--gold-line);
  font-size: 0.875rem; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.proc-out span {
  display: block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #8A6A20; margin-bottom: 4px;
}
.section-navy .proc-out { color: var(--ivory); }
.section-navy .proc-out span { color: var(--gold); }

/* 교육 섹션(네이비) 안의 흰 카드 — 목록 텍스트 대비 유지 */
.section-navy .course-card .ticks li { color: var(--text-dark); }

/* 진단·연락처 2단 구성에서 좌측 블록 여백 */
#diagnosis .contact-grid > div:first-child .divider-gold { margin-bottom: var(--sp-md); }

/* ---------------------------------------------------
   접근성 대비 보정 (2026-07-25 실측 · WCAG AA 4.5:1)
   ★골드 #C9A84C는 밝은 배경에서 2.1~2.3으로 AA 미달이라
     '밝은 배경용 골드'(--gold-ink)를 따로 둔다. 네이비 위에서는 원래 골드 유지.
   --------------------------------------------------- */
:root {
  --text-muted: #5F6673;      /* 이전 #6B7280 = 아이보리 위 4.47(미달) */
  --gold-ink: #8A6A20;        /* 밝은 배경 전용 골드 */
}
.card-num, .svc-index, .text-link, .contact-info dt { color: var(--gold-ink); }
.section-navy .card-num,
.section-navy .svc-index,
.section-navy .text-link { color: var(--gold); }
.pill-live { color: #1F6B39; }
.pill-plan { color: #7A6015; }
.hero-scroll { color: rgba(247, 246, 241, 0.82); }
.footer-bottom p { color: rgba(247, 246, 241, 0.74); }

/* ---------------------------------------------------
   대비·터치영역 2차 보정 (2026-07-25 전 페이지 실측)
   · portfolio.html의 process-node가 흰 배경 위 1.95로 미달 → 밝은 배경 기본값을 gold-ink로
   · 모바일 탭 영역 44px 미달 3종(모바일 메뉴 링크 41px, 닫기 43px, 푸터 링크 26px)
   --------------------------------------------------- */
.process-node { color: var(--gold-ink); border-color: rgba(201, 168, 76, 0.85); }
.section-navy .process-node { color: var(--gold); border-color: var(--gold); }

@media (max-width: 1023px) {
  .mobile-menu .mm-link { min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .mobile-close { width: 48px; height: 48px; }
  .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* 모달 닫기 버튼 터치영역 48px (실측 43px, 2026-07-25) */
@media (max-width: 1023px) {
  .survey-modal-close { width: 48px; height: 48px; }
}

/* ---------------------------------------------------
   대비 3차 보정 (2026-07-25 · 모달 강제 표시 + pf-card 포함 재실측)
   · .req / .q-multi : 설문 모달(흰 배경)에서 골드 2.11·1.95 → gold-ink
   · .pf-card .svc-index : 기존 규칙(0,2,0)이 앞의 보정(0,1,0)을 덮어써서 2.29로 남아 있었다
   --------------------------------------------------- */
.req, .q-multi { color: var(--gold-ink); }
.pf-card .svc-index { color: var(--gold-ink); }
.section-navy .pf-card .svc-index { color: var(--gold); }

/* ---------------------------------------------------
   대비·터치 4차 (2026-07-25 · 1440/768/390 3폭 재실측)
   · .q-multi 4.29 → 4.5 미달분 보정(골드 배경 위라 더 진하게)
   · 768~1023px(태블릿)에서는 데스크톱 내비가 노출되는데 링크 높이 38px → 44px
   · 모달 '다시 작성하기' 링크 18px → 44px
   --------------------------------------------------- */
.q-multi { color: #6E5313; }
.done-reset { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1023px) {
  .nav-desktop a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* 카드 내 인라인 링크도 모바일 44px 확보 (실측 26~27px) */
@media (max-width: 1023px) {
  .text-link { min-height: 44px; }
}
