.contact-page { background: var(--deep); }
.contact-page .site-header {
  position: absolute;
  top: 0;
  background: transparent;
  color: #fff;
}
.contact-page .site-header.is-scrolled { position: fixed; background: rgb(250 249 246 / 96%); color: var(--ink); }
.contact-page .brand-period { color: var(--citron); }
.contact-page .is-scrolled .brand-period { color: var(--action); }
.contact-page .mobile-menu { max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
.contact-page footer [aria-current] { text-decoration: underline; text-underline-offset: 4px; }

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: calc(var(--header-height) + clamp(44px, 4.2vw, 72px)) 0 clamp(54px, 5vw, 84px);
  background: var(--deep);
  color: #fff;
}
.contact-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 23%, #705dd480 0%, #5b429733 31%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, #34224c66, transparent 50%);
  mask-image: linear-gradient(#000 70%, transparent 100%);
}
.contact-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .6;
  background:
    radial-gradient(circle at 4% 26%, #bbaadd 0 1px, transparent 2px),
    radial-gradient(circle at 12% 87%, #bbaadd 0 1px, transparent 2px),
    radial-gradient(circle at 31% 18%, #bbaadd 0 1px, transparent 2px),
    radial-gradient(circle at 44% 75%, #bbaadd 0 1px, transparent 2px),
    radial-gradient(circle at 58% 12%, #bbaadd 0 1px, transparent 2px),
    radial-gradient(circle at 84% 84%, #bbaadd 0 1px, transparent 2px),
    radial-gradient(circle at 96% 36%, #bbaadd 0 1px, transparent 2px);
}
.contact-ornaments { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.contact-orbit { position: absolute; border: 1px solid #b49bdd26; border-radius: 50%; width: min(70vw, 940px); height: 580px; left: 48%; top: 64px; transform: rotate(-25deg); }
.contact-orbit-two { width: min(57vw, 800px); height: 710px; left: 50%; top: 10px; transform: rotate(23deg); border-color: #b49bdd18; }
.contact-envelope { position: absolute; width: 98px; left: 41%; top: 28%; transform: rotate(-14deg); filter: drop-shadow(0 12px 15px #0f07144d); }
.contact-hello { position: absolute; left: 34%; bottom: 11%; display: flex; gap: 11px; align-items: center; padding: 12px 15px; border: 1px solid #e8dbff3b; border-radius: 12px; background: linear-gradient(120deg, #d2bdf823, #af86ec0d); box-shadow: 0 15px 30px #0f07142b; color: #e4d9f3; font-size: 12px; transform: rotate(7deg); }
.contact-hello-dots { display: flex; gap: 3px; margin-left: 6px; }
.contact-hello-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--citron); }
.contact-star { position: absolute; color: var(--citron); line-height: 1; }
.contact-star-one { font-size: 42px; top: 17%; right: 8%; }
.contact-star-two { font-size: 22px; left: 6%; bottom: 29%; color: #a993f0; }
.contact-star-three { font-size: 17px; left: 38%; top: 42%; color: #a993f0; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}

.contact-intro .eyebrow { color: #c8bbd8; margin-bottom: 24px; }
.contact-intro h1 {
  font-size: clamp(72px, 7.4vw, 112px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.04;
}
.contact-intro h1 span {
  display: table;
  margin-top: 6px;
  padding: 0 .12em .075em;
  margin-left: -.08em;
  background: var(--citron);
  color: var(--ink);
  border-radius: 9px;
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-3deg);
}
.contact-lead { max-width: 30ch; margin-top: 32px; color: #cbbfda; font-size: 19px; line-height: 1.6; }
.contact-direct { margin-top: 16px; color: #cbbfda; font-size: 16px; line-height: 1.6; }
.contact-direct a { color: var(--citron); text-decoration: underline; text-underline-offset: .2em; }
.contact-book { margin-top: 20px; }

.form-panel {
  --form-surface: #231936e8;
  --form-muted: #bfafd5;
  --form-label: #e9def4;
  --form-placeholder: #a99bbf;
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  color-scheme: dark;
  color: #f9f5fc;
  background: linear-gradient(145deg, #6e52ad1f, transparent 50%), var(--form-surface);
  border: 1px solid #a892d64d;
  border-radius: 22px;
  box-shadow: 0 22px 56px #130b2d50;
}
.form-panel :is(input, select, textarea) {
  min-width: 0;
  min-height: 45px;
  width: 100%;
  padding: 8px 11px;
  color: #fcf7ff;
  background: #1c132f9c;
  border: 1px solid #a892d668;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}
.form-panel :is(input, textarea)::placeholder { color: var(--form-placeholder); opacity: 1; }
.form-panel :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--citron); outline-offset: 3px; }

.contact-panel { margin-top: 12px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field { display: grid; gap: 7px; }
.contact-field label { color: var(--form-label); font-size: .875rem; font-weight: 650; }
.contact-optional { color: var(--form-muted); font-weight: 400; }
.contact-field :is(input, select) { min-height: 48px; }
.contact-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d7c3ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.contact-field select:invalid { color: var(--form-placeholder); }
.contact-field select option { background: #2c2141; color: #fcf7ff; }
.contact-field select option:disabled { color: var(--form-placeholder); }
.contact-field textarea { resize: vertical; min-height: 130px; }
.contact-message { margin-top: 23px; }
.contact-send { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; margin-top: 26px; }
.contact-submit { background: var(--citron); color: var(--ink); font-size: 14px; min-height: 48px; padding: 0 16px; gap: 16px; }
.contact-submit:disabled { opacity: .62; cursor: wait; transform: none; box-shadow: none; }
.contact-form-status { margin: 14px 0 0; color: var(--form-muted); font-size: .875rem; line-height: 1.5; }
.contact-form-status:empty { margin: 0; }
.contact-form-status[data-error] { color: #ffd3e2; }

.contact-page .article-takeaway .cta-curve { background: var(--deep); }
.contact-page .takeaway-hand {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-4deg);
  transform-origin: 58% 82%;
}
.contact-wave-marks { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.contact-wave-mark { stroke: url(#contact-wave-ink); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(1px 3px 1px #58429e29); }
.contact-wave-mark-right { transform-origin: 520px 80px; }
.contact-wave-mark-left { transform-origin: 15px 360px; }

@keyframes contact-drift { 50% { translate: 0 -7px; } }
@keyframes contact-wave {
  0%, 60%, 100% { transform: rotate(-4deg); }
  10%, 34% { transform: rotate(9deg); }
  22%, 46% { transform: rotate(-12deg); }
}
@keyframes contact-wave-accent {
  0%, 60%, 100% { opacity: .55; transform: scale(.88); }
  10%, 34% { opacity: 1; transform: scale(1.04); }
  22%, 46% { opacity: .5; transform: scale(.94); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .contact-envelope { animation: contact-drift 7s ease-in-out infinite; }
  html:not(.motion-paused) .contact-hello { animation: contact-drift 8s -3s ease-in-out infinite; }
  html:not(.motion-paused) .contact-page .takeaway-hand { animation: contact-wave 4.2s ease-in-out infinite; }
  html:not(.motion-paused) .contact-wave-mark { animation: contact-wave-accent 4.2s ease-in-out infinite; }
  html:not(.motion-paused) .contact-wave-mark-left { animation-delay: -.5s; }
}
.contact-page.contact-motion-idle .contact-envelope,
.contact-page.contact-motion-idle .contact-hello,
.contact-page.contact-motion-idle .takeaway-hand,
.contact-page.contact-motion-idle .contact-wave-mark,
.contact-page.contact-motion-idle .takeaway-stars span,
.contact-section:not(.contact-in-view) .contact-envelope,
.contact-section:not(.contact-in-view) .contact-hello,
.contact-page .article-takeaway:not(.contact-in-view) .takeaway-hand,
.contact-page .article-takeaway:not(.contact-in-view) .contact-wave-mark,
.contact-page .article-takeaway:not(.contact-in-view) .takeaway-stars span { animation-play-state: paused; }

@media (min-width: 1001px) and (max-width: 1200px) {
  .contact-hello { left: 5%; bottom: 7%; }
}

@media (max-width: 1000px) {
  .contact-layout { gap: 34px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact-intro h1 { font-size: clamp(64px, 8.7vw, 85px); }
  .contact-lead { font-size: 17px; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact-send { align-items: flex-start; flex-direction: column; gap: 14px; }
  .contact-envelope { width: 74px; left: 30%; top: 17%; }
  .contact-hello { left: 12%; bottom: 9%; transform: rotate(-6deg); }
  .contact-star-two { left: 3%; bottom: 8%; }
  .contact-star-three { display: none; }
}

@media (max-width: 760px) {
  .contact-section { padding: calc(var(--header-height) + 32px) 0 48px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-intro .eyebrow { margin-bottom: 18px; }
  .contact-intro h1 { font-size: clamp(54px, 11.5vw, 80px); }
  .contact-lead { margin-top: 22px; max-width: 34ch; font-size: 17px; }
  .contact-panel { margin-top: 0; }
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .contact-send { align-items: center; flex-direction: row; }
  .contact-envelope { width: 60px; left: auto; right: 8%; top: 103px; }
  .contact-hello { display: none; }
  .contact-star-one { font-size: 22px; top: 25%; right: 4%; }
  .contact-star-two { font-size: 16px; left: 9%; bottom: 3%; }
  .contact-orbit { width: 660px; left: -35%; top: 220px; }
  .contact-orbit-two { width: 720px; left: -10%; top: 120px; }
  .contact-page .takeaway-stars span:nth-child(2) { right: 7%; bottom: 15%; font-size: 24px; }
}

@media (max-width: 360px) {
  .contact-envelope { width: 46px; right: 6%; top: 98px; }
}

@media (max-width: 480px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-field textarea { min-height: 130px; }
  .contact-message { margin-top: 19px; }
  .contact-send { flex-direction: column; align-items: stretch; gap: 15px; margin-top: 22px; }
  .contact-submit { padding-inline: 14px; gap: 12px; font-size: 13px; }
}

@media (max-width: 430px) { .form-panel { padding: 18px; border-radius: 16px; } }

@media (max-width: 400px) {
  .contact-page .footer-brand { display: flex; flex-wrap: wrap; gap: 20px; }
  .contact-page .footer-brand > p { text-align: left; }
  .contact-page .footer-note { flex-basis: 100%; margin-top: 0; }
}
