/* A seasonal layer for the existing home/contact page. */
#contact .contact-heading-row > .halloween-signature {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  line-height: 0;
}

#contact .halloween-signature > .contact-wordmark {
  display: block;
  width: 150px;
  height: auto;
  overflow: hidden;
  transform-box: border-box;
  transform: none;
}

#halloween-toggle {
  --pumpkin-look-x: 0px;
  --pumpkin-look-y: 0px;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  width: 68px;
  height: 74px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #f4efe3;
  line-height: 0;
  transform: translateX(-50%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#halloween-toggle:focus-visible {
  outline: 2px solid #eab16a;
  outline-offset: 3px;
}

#halloween-status.halloween-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#halloween-toggle .halloween-toggle-label {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #9e704d;
  border-radius: 16px;
  color: #eab16a;
  font: 11px/1.2 var(--sans, sans-serif);
}

#halloween-toggle .halloween-pumpkin {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px #0008);
  transition: filter 240ms ease;
}

#halloween-toggle:is(:hover, :focus-visible, .is-curious) .halloween-pumpkin {
  filter: drop-shadow(0 2px 3px #0008) drop-shadow(0 0 7px #dc883d66);
  transform-origin: 50% 68%;
  animation: halloween-pumpkin-tilt 4.6s ease-in-out infinite;
}

#halloween-toggle :is(.pumpkin-eye-left, .pumpkin-eye-right, .pumpkin-pupils, .pumpkin-pupil-left, .pumpkin-pupil-right, .pumpkin-brows, .pumpkin-mouth, .pumpkin-stem) {
  transform-box: fill-box;
  transform-origin: center;
}

#halloween-toggle .pumpkin-pupils {
  translate: var(--pumpkin-look-x) var(--pumpkin-look-y);
  transition: translate 100ms ease-out;
}

#halloween-toggle :is(.pumpkin-eye-left, .pumpkin-eye-right, .pumpkin-brows, .pumpkin-mouth) {
  transition: rotate 220ms ease, scale 220ms ease, translate 220ms ease;
}

#halloween-toggle:is(:hover, :focus-visible, .is-curious) .pumpkin-eye-left { rotate: -6deg; }
#halloween-toggle:is(:hover, :focus-visible, .is-curious) .pumpkin-eye-right { rotate: 6deg; }
#halloween-toggle:is(:hover, :focus-visible, .is-curious) :is(.pumpkin-eye-left, .pumpkin-pupil-left) {
  animation: halloween-pumpkin-wink 5.8s ease-in-out infinite;
}
#halloween-toggle:is(:hover, :focus-visible, .is-curious) .pumpkin-brows {
  translate: 0 -3px;
  rotate: -2deg;
}
#halloween-toggle:is(:hover, :focus-visible, .is-curious) .pumpkin-mouth { scale: 1.10 1.14; }
#halloween-toggle:is(:hover, :focus-visible, .is-curious) .pumpkin-mouth-smile { opacity: .55; }
#halloween-toggle:is(:hover, :focus-visible, .is-curious) .pumpkin-stem {
  transform-origin: 50% 95%;
  animation: halloween-stem-sway 3.8s ease-in-out infinite;
}

body.halloween-mode #halloween-toggle .halloween-pumpkin {
  filter: drop-shadow(0 2px 3px #0008) drop-shadow(0 0 7px #dc883d66);
}

body.halloween-mode #contact {
  background-color: #0d0910;
  border-top-color: #5d4437;
  color: #f4efe3;
}

body.halloween-mode #contact :is(.eyebrow, .contact-info-block h3) { color: #c9b393; }
body.halloween-mode #contact .contact-wordmark { filter: drop-shadow(0 0 4px #ddb57430); }
body.halloween-mode #contact .footer-bottom {
  border-top-color: #c19b6a66;
  color: #bfb2a2;
}

#contact .footer-skyline-stage > .halloween-street-scene {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

body.halloween-mode #contact .footer-skyline-stage > .halloween-street-scene { display: block; }
#contact .footer-skyline-stage > :is(.footer-pet-layer, #footer-go-button) { z-index: 1; }

#contact .halloween-street-scene :is(.halloween-ghost, .halloween-bat, .halloween-curio-visitor-motion, .halloween-clock-walk, .halloween-portrait-walk) {
  transform-box: fill-box;
  transform-origin: center;
}

body.halloween-mode #contact .halloween-ghost {
  animation: halloween-ghost-glide 7.8s ease-in-out infinite;
}
body.halloween-mode #contact #halloween-ghosts > g:nth-child(2) .halloween-ghost {
  animation-delay: -2.6s;
  animation-duration: 9.4s;
}
body.halloween-mode #contact #halloween-ghosts > g:nth-child(3) .halloween-ghost { animation-delay: -5.1s; }

body.halloween-mode #contact .halloween-bat {
  animation: halloween-bat-glide 8.6s ease-in-out infinite;
}
body.halloween-mode #contact #halloween-bats > g:nth-child(2) .halloween-bat {
  animation-delay: -4.2s;
  animation-duration: 10.2s;
}
body.halloween-mode #contact #halloween-bats > g:nth-child(3) .halloween-bat { animation-delay: -6.4s; }

body.halloween-mode #contact .halloween-curio-visitor-motion {
  animation: halloween-curio-entrance 19s ease-in-out infinite;
}
body.halloween-mode #contact .halloween-clock-walk {
  animation: halloween-clock-exit 24s ease-in-out infinite;
}
body.halloween-mode #contact .halloween-portrait-walk {
  animation: halloween-portrait-exit 21s ease-in-out infinite;
}
body.halloween-mode #contact .halloween-curio-aura {
  animation: halloween-curio-breathe 8.4s ease-in-out infinite;
}
#contact .halloween-street-scene #halloween-street-pumpkins { filter: drop-shadow(0 0 3px #ffb66d55); }
#contact .halloween-street-scene #halloween-moon { filter: drop-shadow(0 0 4px #dbc69e44); }

@keyframes halloween-stem-sway {
  0%, 100% { rotate: -1.5deg; }
  50% { rotate: 1.5deg; }
}
@keyframes halloween-pumpkin-tilt {
  0%, 100% { rotate: -2deg; translate: 0 0; }
  50% { rotate: 2.5deg; translate: 0 -1.5px; }
}
@keyframes halloween-pumpkin-wink {
  0%, 61%, 74%, 100% { scale: 1 1; }
  66% { scale: 1.06 .12; }
  70% { scale: 1.02 .5; }
}
@keyframes halloween-ghost-glide {
  0%, 100% { transform: translate(0, 2px) rotate(-1deg); }
  50% { transform: translate(4px, -5px) rotate(1.5deg); }
}
@keyframes halloween-bat-glide {
  0%, 100% { transform: translate(-5px, 2px) rotate(-3deg); }
  50% { transform: translate(8px, -4px) rotate(3deg); }
}
@keyframes halloween-curio-entrance {
  0%, 8%, 91%, 100% { opacity: 0; transform: translate(0, 12px) scale(.88); }
  20% { opacity: .9; transform: translate(0, 0) scale(1); }
  50% { opacity: .95; transform: translate(66px, -5px) scale(1); }
  68% { opacity: .95; transform: translate(96px, 0) scale(1); }
  82% { opacity: .8; transform: translate(38px, 6px) scale(.94); }
}
@keyframes halloween-clock-exit {
  0%, 10%, 96%, 100% { opacity: 0; transform: translate(127px, -3px) scale(.86); }
  24% { opacity: .95; transform: translate(109px, -4px) rotate(-2deg); }
  50% { opacity: 1; transform: translate(18px, -3px) rotate(1deg); }
  65% { opacity: 1; transform: translate(0, -1px) rotate(-2deg); }
  80% { opacity: .95; transform: translate(57px, -4px) rotate(1deg); }
}
@keyframes halloween-portrait-exit {
  0%, 16%, 95%, 100% { opacity: 0; transform: translate(-51px, -3px) scale(.88); }
  30% { opacity: .95; transform: translate(-36px, -6px) rotate(-5deg); }
  52% { opacity: 1; transform: translate(19px, -3px) rotate(3deg); }
  68% { opacity: 1; transform: translate(34px, -6px) rotate(-2deg); }
  82% { opacity: .85; transform: translate(-12px, -3px) rotate(2deg); }
}
@keyframes halloween-curio-breathe {
  0%, 100% { opacity: .72; }
  50% { opacity: .94; }
}

body.halloween-face-paused #halloween-toggle *,
body.halloween-paused #contact .halloween-street-scene * { animation-play-state: paused !important; }

body.halloween-reduced-motion #halloween-toggle *,
body.halloween-reduced-motion #contact .halloween-street-scene * {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 620px) {
  #contact .contact-heading-row > .halloween-signature {
    width: 135px;
    margin-top: 82px;
    align-self: flex-end;
  }
  #contact .halloween-signature > .contact-wordmark { width: 135px; }
}

@media (prefers-reduced-motion: reduce) {
  #halloween-toggle *,
  #contact .halloween-street-scene * {
    animation: none !important;
    transition: none !important;
  }
}

/* A theatrical night of curiosities, still drawn around the original Delano street. */
#contact .contact-heading-row h1.contact-brand-statement {
  font-size: clamp(36px, 4.3vw, 70px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
#contact .contact-brand-statement span { display: block; }
#contact .contact-brand-description {
  max-width: 60ch;
  margin: 12px 0 8px;
  font: 17px/1.55 var(--sans);
  color: #bcb6ab;
  text-wrap: balance;
}
#contact .contact-heading-row { align-items: center; }
#contact .contact-heading-row > .halloween-signature { margin-top: 55px; }
#contact { position: relative; isolation: isolate; }
#contact > .halloween-atmosphere {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
body.halloween-mode #contact {
  background: radial-gradient(ellipse at 82% 13%, #63311f55, transparent 36%),
    radial-gradient(ellipse at 38% 90%, #51315a66, transparent 52%), #110b17;
  border-top-color: #b57a42;
}
body.halloween-mode #contact > .halloween-atmosphere { display: block; }
body.halloween-mode #contact .eyebrow { color: #efad65; }
body.halloween-mode #contact .eyebrow::after {
  content: ' · NUIT DES CURIOSITÉS';
  font-weight: 400;
  font-size: .75em;
  letter-spacing: .14em;
  color: #d3baa4;
}
body.halloween-mode #contact .contact-heading-row h1 { color: #fff2de; text-shadow: 0 0 34px #f08d3433; }
body.halloween-mode #contact .contact-info-block { color: #fff2de; }
body.halloween-mode #contact .contact-brand-description { color: #d6c1aa; }
body.halloween-mode #contact .contact-info-block a { text-shadow: 0 1px 10px #110b17; }
body.halloween-mode #contact .footer-wall-switch { filter: drop-shadow(0 0 12px #ee98452b); }
body.halloween-mode #contact .contact-wordmark { filter: drop-shadow(0 0 10px #f8b57655); }
body.halloween-mode #contact #halloween-toggle { width: 84px; height: 91px; }
body.halloween-mode #halloween-toggle .halloween-pumpkin {
  filter: drop-shadow(0 0 6px #ffc665aa) drop-shadow(0 0 20px #ed85325c);
  animation: halloween-pumpkin-tilt 3.8s ease-in-out infinite;
}
body.halloween-mode #halloween-toggle .pumpkin-mouth { scale: 1.12 1.16; }
body.halloween-mode #halloween-toggle .pumpkin-brows { translate: 0 -3px; }
body.halloween-mode #contact .footer-skyline-stage {
  background: radial-gradient(ellipse at 44% 90%, #f09b3040, transparent 29%),
    linear-gradient(0deg, #884c3845, transparent 35%);
}
body.halloween-mode #contact .footer-skyline { filter: drop-shadow(0 0 3px #ffad6038); }
body.halloween-mode #contact .footer-bottom { border-top-color: #cf9853; }
body.halloween-mode #contact .streetscape-toolbar { color: #e6b588; }
body.halloween-mode #contact .streetscape-controls button { border-color: #98683e; color: #f6c990; }
#contact .halloween-street-scene { overflow: visible; }
body.halloween-mode #contact .halloween-street-scene .halloween-curio-aura { animation: halloween-portal-glow 5.5s ease-in-out infinite; }
body.halloween-mode #contact .halloween-curio-visitor-motion { animation: halloween-visitor-parade 17s ease-in-out infinite; animation-delay: -3.6s; }
body.halloween-mode #contact .halloween-clock-walk { animation: halloween-clock-exit 20s ease-in-out infinite; animation-delay: -7s; }
body.halloween-mode #contact .halloween-portrait-walk { animation: halloween-portrait-exit 18s ease-in-out infinite; animation-delay: -8s; }
body.halloween-mode #contact .halloween-ghost { animation: halloween-ghost-float 6s ease-in-out infinite; }
body.halloween-mode #contact .halloween-bat { animation: halloween-bat-flight 7s ease-in-out infinite; }
body.halloween-mode #contact .halloween-bat-wing { animation: halloween-wing-beat .85s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
body.halloween-mode #contact .halloween-lantern-glow { animation: halloween-lantern-breathe 4.5s ease-in-out infinite; }
body.halloween-mode #contact :is(.halloween-street-mist, .halloween-ground-mist) { animation: halloween-ground-mist-drift 18s ease-in-out infinite alternate; }
body.halloween-mode #contact .halloween-curio-roof-lights { filter: drop-shadow(0 0 5px #ffb15199); }
body.halloween-mode #contact .halloween-pumpkin-flames { animation: halloween-lantern-breathe 4.5s ease-in-out infinite; }
body.halloween-mode #contact .halloween-spider-sway { animation: halloween-spider-sway 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top; }
body.halloween-mode #contact .halloween-clock-pendulum { animation: halloween-pendulum-swing 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top; }
body.halloween-mode #contact .halloween-portrait-eyes { animation: halloween-portrait-blink 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
body.halloween-mode #contact .halloween-oddity-arm { animation: halloween-oddity-wave 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
body.halloween-mode #contact .halloween-sky-moon { filter: drop-shadow(0 0 16px #ffca7855); }
body.halloween-mode #contact .halloween-sky-bat { animation: halloween-sky-flight 12s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
body.halloween-mode #contact .halloween-sky-bat-position:nth-child(6) .halloween-sky-bat { animation-delay: -5s; animation-duration: 15s; }
body.halloween-mode #contact .halloween-sky-bat-position:nth-child(7) .halloween-sky-bat { animation-delay: -7s; animation-duration: 10s; }
body.halloween-mode #contact .halloween-sky-spider { animation: halloween-spider-sway 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top; }
body.halloween-mode #contact .halloween-sky-mist { animation: halloween-sky-mist-drift 24s ease-in-out infinite alternate; }
@keyframes halloween-visitor-parade {
  0%,100% { opacity: 1; transform: translate(0, -2px) rotate(-3deg); }
  22% { opacity: 1; transform: translate(24px, -14px) rotate(4deg); }
  55% { opacity: 1; transform: translate(92px, -9px) rotate(-3deg); }
  76% { opacity: 1; transform: translate(115px, -3px) rotate(4deg); }
  92% { opacity: .8; transform: translate(20px, 0) scale(.95); }
}
@keyframes halloween-ghost-float { 0%,100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(10px, -14px) rotate(5deg); } }
@keyframes halloween-bat-flight { 0%,100% { transform: translate(-10px, 4px) rotate(-7deg); } 50% { transform: translate(20px, -10px) rotate(6deg); } }
@keyframes halloween-wing-beat { from { scale: 1 .8; } to { scale: 1 1.18; } }
@keyframes halloween-portal-glow { 0%,100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes halloween-lantern-breathe { 0%,100% { opacity: .76; } 50% { opacity: 1; } }
@keyframes halloween-mist-drift { from { transform: translate(-18px, 0); opacity: .55; } to { transform: translate(24px, -4px); opacity: .9; } }
@keyframes halloween-sky-mist-drift { from { transform: translate(-18px, 0); opacity: .08; } to { transform: translate(24px, -4px); opacity: .18; } }
@keyframes halloween-ground-mist-drift { from { transform: translate(-12px, 0); opacity: .22; } to { transform: translate(18px, -2px); opacity: .4; } }
@keyframes halloween-pendulum-swing { from { rotate: -12deg; } to { rotate: 12deg; } }
@keyframes halloween-portrait-blink { 0%,74%,82%,100% { scale: 1 1; } 78% { scale: 1 .12; } }
@keyframes halloween-oddity-wave { 0%,100% { rotate: -10deg; } 50% { rotate: 14deg; } }
@keyframes halloween-sky-flight { from { transform: translate(-24px, 5px) rotate(-9deg); } to { transform: translate(32px, -16px) rotate(7deg); } }
@keyframes halloween-spider-sway { from { rotate: -5deg; translate: 0 -4px; } to { rotate: 5deg; translate: 0 8px; } }
body.halloween-atmosphere-paused #contact > .halloween-atmosphere * { animation-play-state: paused !important; }
body.halloween-reduced-motion #contact > .halloween-atmosphere * { animation: none !important; transition: none !important; }
@media(max-width:700px) {
  #contact .contact-heading-row h1.contact-brand-statement { font-size: clamp(18px, 5.5vw, 34px); line-height: 1.3; letter-spacing: -.02em; }
  #contact .contact-brand-description { margin-top: 4px; margin-bottom: 18px; max-width: 38ch; font-size: 14px; line-height: 1.6; }
  #contact .contact-heading-row > .halloween-signature { margin-top: 38px; }
  #contact > .halloween-atmosphere { aspect-ratio: 7 / 5; }
  #contact .halloween-sky-web { opacity: .3; }
  body.halloween-mode #contact { background: radial-gradient(ellipse at 84% 8%, #68342a70, transparent 37%), #110b17; }
  body.halloween-mode #contact .eyebrow::after { content: ' · HALLOWEEN'; font-size: .74em; }
  body.halloween-mode #contact #halloween-toggle { width: 70px; height: 76px; }
  body.halloween-mode #contact .contact-heading-row h1 { text-shadow: 0 1px 6px #110b17, 0 0 28px #ff9a3d33; }
}
@media(prefers-reduced-motion:reduce) {
  #contact > .halloween-atmosphere *, body.halloween-mode #contact .halloween-street-scene *, body.halloween-mode #halloween-toggle * { animation: none !important; transition: none !important; }
}
