/* Inquiries motion layer. The page stays fully visible until JavaScript opts in. */
.inquiries-page.inquiries-motion-ready .work-with-me-intro > .section-tag,
.inquiries-page.inquiries-motion-ready .work-with-me-title,
.inquiries-page.inquiries-motion-ready .work-with-me-sub {
  animation: inquiriesHeroRise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.inquiries-page.inquiries-motion-ready .work-with-me-title { animation-delay: 90ms; }
.inquiries-page.inquiries-motion-ready .work-with-me-sub:nth-of-type(2) { animation-delay: 170ms; }
.inquiries-page.inquiries-motion-ready .work-with-me-sub:nth-of-type(3) { animation-delay: 240ms; }
.inquiries-page.inquiries-motion-ready .work-with-me-sub:nth-of-type(4) { animation-delay: 310ms; }

@keyframes inquiriesHeroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.inquiries-page .inquiries-motion-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease var(--inquiries-motion-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--inquiries-motion-delay, 0ms);
}

.inquiries-page .inquiries-motion-item.is-inquiries-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Offer cards gain depth without moving the page grid. */
.inquiries-page .offer-card {
  position: relative;
  overflow: hidden;
  transition:
    opacity 0.7s ease var(--inquiries-motion-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--inquiries-motion-delay, 0ms),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.inquiries-page .offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 10%, rgba(245,166,35,0.08), transparent 38%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.inquiries-page .offer-card:hover {
  background: #0f0f0f;
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.18);
}

.inquiries-page .offer-card:hover::before { opacity: 1; }

.inquiries-page .offer-name {
  position: relative;
  transition: color 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.inquiries-page .offer-card:hover .offer-name {
  color: var(--amber);
  transform: translateX(4px);
}

.inquiries-page .offer-amber-rule {
  position: relative;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.inquiries-page .offer-card:hover .offer-amber-rule { width: 56px; }

.inquiries-page .offer-field,
.inquiries-page .offer-footer { position: relative; }

/* Calls to action use the same restrained glint as the homepage. */
.inquiries-page .offer-cta,
.inquiries-page .btn-submit,
.inquiries-page .offer-btn-process {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.26s ease, box-shadow 0.26s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.inquiries-page .offer-cta::before,
.inquiries-page .btn-submit::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40% auto -40% -55%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  transform: skewX(-18deg);
  transition: left 0.58s ease;
}

.inquiries-page .offer-cta:hover,
.inquiries-page .btn-submit:hover,
.inquiries-page .offer-btn-process:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.inquiries-page .offer-cta:hover::before,
.inquiries-page .btn-submit:hover::before { left: 125%; }

.inquiries-page .offer-cta .arrow { transition: color 0.2s, transform 0.25s ease; }
.inquiries-page .offer-cta:hover .arrow { transform: translateX(3px); }

/* The form reacts at the point of interaction rather than animating while typing. */
.inquiries-page .form-group label {
  transition: color 0.22s ease, transform 0.22s ease;
}

.inquiries-page .form-group:focus-within label {
  color: var(--amber);
  transform: translateX(3px);
}

.inquiries-page .form-group input,
.inquiries-page .form-group select,
.inquiries-page .form-group textarea {
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.inquiries-page .form-group:focus-within input,
.inquiries-page .form-group:focus-within select,
.inquiries-page .form-group:focus-within textarea {
  background: #1d1d1d;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
}

.inquiries-page .notes-list li {
  transition: color 0.24s ease, transform 0.24s ease;
}

.inquiries-page .notes-list li:hover {
  color: rgba(255,255,255,0.82);
  transform: translateX(4px);
}

/* Process dialogs arrive as a focused layer, not a sudden page swap. */
.inquiries-page .process-modal-backdrop.open { animation: inquiriesBackdropIn 0.22s ease both; }
.inquiries-page .process-modal-backdrop.open .process-modal {
  animation: inquiriesModalIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes inquiriesBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes inquiriesModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

  .inquiries-page .inquiries-motion-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
