/* =========================================================
   ENLOVUE — shared project inquiry dialog
   The main site's "Let's make it alive." form, packaged for
   LAB and PRISM (assets/js/inquiry.js injects the markup).
   Everything is scoped under .inq so page styles don't leak in.
   ========================================================= */

@font-face {
  font-family: 'Inq Serif';
  src: url('../fonts/instrument-serif-italic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inq Sans';
  src: url('../fonts/inter-tight-300_700.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inq Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.inq {
  --inq-paper: #ede8df;
  --inq-ink: #141310;
  --inq-muted: #615c53;
  --inq-muted-2: #898275;
  --inq-line: rgba(20, 19, 16, 0.16);
  --inq-cream: #f3eee5;
  --inq-accent: #ff4a1a;
  --inq-accent-deep: #e63b0c;
  --inq-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --inq-sans: 'Inq Sans', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --inq-mono: 'Inq Mono', 'SFMono-Regular', Consolas, 'Pretendard Variable', Pretendard, monospace;
  --inq-serif: 'Inq Serif', 'Times New Roman', Georgia, serif;

  color-scheme: light;
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--inq-paper);
  color: var(--inq-ink);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.6);
  font-family: var(--inq-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.inq[open] {
  animation: inq-in 0.5s var(--inq-ease);
}
.inq::backdrop {
  background: rgba(9, 8, 7, 0.66);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
@keyframes inq-in {
  from { opacity: 0; transform: translateY(18px) scale(0.992); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inq[open] { animation: none; }
}
html.inq-lock,
html.inq-lock body {
  overflow: hidden;
}

/* pages with a custom cursor hide the native one; the dialog sits in the
   top layer above their cursor, so bring the real cursor back inside it */
.inq.inq,
.inq.inq * {
  cursor: auto !important;
}
.inq.inq button,
.inq.inq a,
.inq.inq label,
.inq.inq .inq-chips span {
  cursor: pointer !important;
}
.inq.inq input,
.inq.inq textarea {
  cursor: text !important;
}

.inq :where(*, *::before, *::after) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.inq :where(button, input, textarea) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  letter-spacing: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.inq :where(a) {
  color: inherit;
}
.inq.inq :focus-visible {
  outline: 2px solid var(--inq-accent);
  outline-offset: 3px;
  box-shadow: none;
}
.inq.inq .inq-field input:focus-visible,
.inq.inq .inq-field textarea:focus-visible {
  outline: none;
}

.inq-shell {
  position: relative;
  padding: clamp(22px, 3.4vw, 42px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.inq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--inq-line);
}
.inq-kicker {
  font-family: var(--inq-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inq-muted-2);
  margin-bottom: 14px;
}
.inq-head h2 {
  font-family: var(--inq-sans);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--inq-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.inq-head h2 em {
  font-family: var(--inq-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--inq-accent);
  letter-spacing: -0.02em;
}
.inq-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--inq-line) !important;
  border-radius: 999px !important;
  font-family: var(--inq-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inq-muted);
  transition: background-color 0.3s var(--inq-ease), color 0.3s var(--inq-ease), border-color 0.3s var(--inq-ease);
}
.inq-close i {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.4s var(--inq-ease);
}
.inq-close:hover {
  background: var(--inq-ink);
  border-color: var(--inq-ink) !important;
  color: var(--inq-cream);
}
.inq-close:hover i {
  transform: rotate(90deg);
}

/* Form */
.inq-form {
  padding-top: clamp(20px, 2.6vw, 30px);
}
.inq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(18px, 2.4vw, 28px);
}
.inq-field {
  display: block;
  margin-bottom: clamp(16px, 2vw, 23px);
}
.inq-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--inq-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--inq-ink);
  margin-bottom: 2px;
}
.inq-label i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inq-muted-2);
}
.inq-field input,
.inq-field textarea {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--inq-line);
  padding: 9px 0 10px;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--inq-ink);
  outline: none;
  box-shadow: none;
  transition: border-color 0.3s var(--inq-ease);
}
.inq-field input::placeholder,
.inq-field textarea::placeholder {
  color: var(--inq-muted-2);
  opacity: 0.7;
}
.inq-field input:focus,
.inq-field textarea:focus {
  border-color: var(--inq-accent);
}
.inq-field textarea {
  resize: vertical;
  min-height: 86px;
  line-height: 1.6;
}
.inq-budget {
  border: 0;
  padding: 0;
  margin: 2px 0 clamp(18px, 2.2vw, 26px);
  min-width: 0;
}
.inq-budget .inq-label {
  justify-content: flex-start;
  margin-bottom: 12px;
}
.inq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.inq-chips label {
  position: relative;
}
.inq-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.inq-chips span {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--inq-line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--inq-ink);
  transition: background-color 0.3s var(--inq-ease), color 0.3s var(--inq-ease), border-color 0.3s var(--inq-ease);
}
.inq-chips label:hover span {
  border-color: var(--inq-ink);
}
.inq-chips input:checked + span {
  background: var(--inq-ink);
  border-color: var(--inq-ink);
  color: var(--inq-cream);
}
.inq-chips input:focus-visible + span {
  outline: 2px solid var(--inq-accent);
  outline-offset: 3px;
}
.inq-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--inq-muted);
}
.inq.inq .inq-consent input {
  position: static;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  opacity: 1;
  pointer-events: auto;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--inq-ink);
  cursor: pointer !important;
}
.inq-consent b {
  display: block;
  font-weight: 600;
  color: var(--inq-ink);
}
.inq-consent a {
  color: var(--inq-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inq-consent a:hover {
  color: var(--inq-accent);
}
.inq [hidden] {
  display: none !important;
}
.inq-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.inq-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}
.inq-error {
  color: var(--inq-accent-deep);
  font-size: 12px;
  margin: 0 0 12px;
}
.inq-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-top: 20px;
  border-top: 1px solid var(--inq-line);
}
.inq-note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--inq-muted-2);
  letter-spacing: -0.005em;
}
.inq-note a {
  color: var(--inq-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inq-note a:hover {
  color: var(--inq-accent);
}

/* Button: ink pill, accent fill rises on hover */
.inq-btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 176px;
  height: 52px;
  padding: 0 26px !important;
  border: 1px solid var(--inq-ink) !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: var(--inq-ink) !important;
  color: var(--inq-cream) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.4s var(--inq-ease);
}
.inq-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--inq-accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--inq-ease);
  border-radius: inherit;
}
.inq-btn > span {
  position: relative;
  z-index: 1;
}
.inq-btn:hover::before,
.inq-btn:focus-visible::before {
  transform: translateY(0);
}
.inq-btn:hover,
.inq-btn:focus-visible {
  color: var(--inq-ink) !important;
}
.inq-btn .inq-arrow {
  font-size: 15px;
  transition: transform 0.45s var(--inq-ease);
}
.inq-btn:hover .inq-arrow {
  transform: translate(2px, -2px);
}

/* Success */
.inq-success {
  padding: clamp(26px, 3vw, 40px) 0 8px;
}
.inq-mark {
  display: block;
  width: fit-content;
  color: var(--inq-accent);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 24px;
  animation: inq-spin 12s linear infinite;
}
@keyframes inq-spin {
  to { transform: rotate(360deg); }
}
.inq-success .inq-kicker {
  margin-bottom: 12px;
}
.inq-success h3 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--inq-ink);
  margin-bottom: 14px;
}
.inq-success-copy {
  color: var(--inq-muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 26px;
  word-break: keep-all;
}
.inq-back {
  display: block;
  margin-top: 28px;
  color: var(--inq-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inq-back:hover {
  color: var(--inq-ink);
}

@media (max-width: 760px) {
  .inq {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }
  .inq-shell {
    padding: 22px 20px 24px;
    max-height: calc(100svh - 16px);
  }
  .inq-head {
    gap: 16px;
  }
  .inq-close span {
    display: none;
  }
  .inq-close {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
  .inq-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .inq-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .inq-btn {
    width: 100%;
  }
  .inq-chips span {
    padding: 8px 12px;
    font-size: 11.5px;
  }
}
