.contact {
  --bg: var(--inv-bg);
  --text: var(--inv-text);
  --muted: var(--inv-muted);
  --dither-bg: var(--inv-bg);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--inv-bg);
  color: var(--inv-text);
  isolation: isolate;
}
.contact-dither {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 24vh;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}
.contact-cols {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, var(--inv-line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-top: clamp(120px, 18vh, 200px);
  max-width: 1100px;
}
.contact .eyebrow { color: var(--inv-muted); }
.contact-title {
  margin: 28px 0 0;
  font-weight: 700;
  font-size: clamp(50px, 8.6vw, 136px);
  line-height: .92;
  letter-spacing: normal;
  max-width: 13ch;
  text-wrap: balance;
}
.contact-lead {
  margin: 26px 0 0;
  max-width: 460px;
  color: var(--inv-muted);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.contact-mail {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 6vh, 64px);
}
.mail-link {
  position: relative;
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.mail-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  opacity: .5;
  transform-origin: 0 50%;
  transition: opacity .25s ease, background-color .25s ease;
}
@media (hover: hover) { .mail-link:hover::after { opacity: 1; background: var(--accent); } }
.mail-copy {
  padding: 11px 18px;
  border-radius: 99px;
  border: 1px solid var(--inv-line);
  color: var(--inv-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease;
}
@media (hover: hover) { .mail-copy:hover { color: var(--inv-text); border-color: var(--inv-muted); } }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(28px, 5vw, 72px);
  margin-top: clamp(48px, 9vh, 110px);
}
.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.03em;
  transition: color .2s ease;
}
.contact-socials a svg { width: .6em; height: .6em; transition: transform .25s var(--ease-spring); }
@media (hover: hover) {
  .contact-socials a:hover { color: var(--accent); }
  .contact-socials a:hover svg { transform: translate(3px, -3px); }
}

.contact-foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--inv-muted);
}
@media (min-width: 900px) {
  .contact-foot { grid-template-columns: 1.4fr auto auto 1fr auto; }
}
.contact.no-figure [data-figure] { display: none !important; }
@media (min-width: 900px) {
  .contact.no-figure .contact-foot { grid-template-columns: 1fr auto; }
}
.foot-made { margin: 0; }
.foot-btn {
  justify-self: start;
  color: var(--inv-muted);
  transition: color .2s ease;
  padding: 4px 0;
}
@media (hover: hover) { .foot-btn:hover { color: var(--inv-text); } }
@media (pointer: coarse) { .foot-btn { padding: 12px 0; margin: -8px 0; } }
.sound-btn {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--inv-text);
  color: var(--inv-bg);
  transition: transform .2s var(--ease-spring);
}
@media (hover: hover) { .sound-btn:hover { transform: scale(1.06); } }
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn .snd-on { display: none; }
.sound-btn[aria-pressed="true"] .snd-on { display: block; }
.sound-btn[aria-pressed="true"] .snd-off { display: none; }

@media (max-width: 899px) {
  .contact-foot { padding-top: 24px; }
  .sound-btn { position: absolute; right: max(var(--px), env(safe-area-inset-right)); bottom: 24px; }
}

.figure-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.figure-wrap {
  position: absolute;
  right: clamp(-40px, 4vw, 120px);
  bottom: -9%;
  height: min(92%, 980px);
  aspect-ratio: 1560 / 2440;
  pointer-events: auto;
}
@media (max-width: 899px) {
  .figure-clip {
    position: relative;
    inset: auto;
    height: min(92vw, 460px);
    margin-top: 12px;
  }
  .figure-wrap {
    right: -4vw;
    bottom: -22%;
    height: 125%;
  }
}
.fig {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: pointer;
}
.fig .ink-line,
.fig .ink-stroke {
  fill: none;
  stroke: #0d0d10;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig .ink-line.thick { stroke-width: 30; }

.fig-strands path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: strand-wiggle 2.4s ease-in-out infinite;
}
.fig-strands path:nth-child(2) { animation-delay: -.6s; }
.fig-strands path:nth-child(3) { animation-delay: -1.2s; }
.fig-strands path:nth-child(4) { animation-delay: -1.8s; }
@keyframes strand-wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}
.fig-body {
  transform-box: view-box;
  transform-origin: 1180px 2600px;
  animation: breathe 4.2s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.012, 1.018); } }
.fig-all { transform-box: view-box; transform-origin: 1180px 2600px; }
.fig-head { transform-box: view-box; transform-origin: 1180px 1320px; }

.fig .eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .09s ease, opacity .1s ease;
}
.fig.is-blink .eye { transform: scaleY(.08); }
.fig .wink-r, .fig .m-grin, .fig .m-o { opacity: 0; }
.fig .m-smile { transition: opacity .15s ease; }
.fig.is-happy .m-smile, .fig.is-wink .m-smile { opacity: 0; }
.fig.is-happy .m-grin, .fig.is-wink .m-grin { opacity: 1; }
.fig.is-wink .eye-r { opacity: 0; }
.fig.is-wink .wink-r { opacity: 1; }
.fig-brows { transition: transform .25s var(--ease-spring); }
.fig.is-surprised .fig-brows { transform: translateY(-34px); }
.fig.is-surprised .eye { transform: scale(1.35); }
.fig.is-surprised .m-smile, .fig.is-surprised .m-grin { opacity: 0 !important; }
.fig.is-surprised .m-o { opacity: 1; }
.fig.is-surprised .fig-strands path { animation-duration: .25s; }

.fx-spark, .fx-bang {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.2);
  transition: opacity .2s ease, transform .35s var(--ease-spring);
}
.fig.is-wink .fx-spark { opacity: 1; transform: scale(1) rotate(20deg); }
.fig.is-surprised .fx-bang { opacity: 1; transform: scale(1); }

.fig .acc { display: none; }
.fig[data-outfit="cap"] .acc-cap,
.fig[data-outfit="beanie"] .acc-beanie,
.fig[data-outfit="glasses"] .acc-glasses,
.fig[data-outfit="headphones"] .acc-headphones,
.fig[data-outfit="drone"] .acc-drone {
  display: inline;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: acc-pop .5s var(--ease-spring) both;
}
@keyframes acc-pop {
  from { transform: translateY(-80px) scale(.8); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.fig[data-outfit="cap"] .fig-bun,
.fig[data-outfit="beanie"] .fig-bun { display: none; }
.drone-bob { animation: drone-bob 2.2s ease-in-out infinite; }
@keyframes drone-bob { 50% { transform: translate(-14px, 26px) rotate(-2deg); } }
.rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotor .12s linear infinite;
}
@keyframes rotor { 50% { transform: scaleX(.15); } }
.drone-led { animation: led 1s steps(2, jump-none) infinite; }
@keyframes led { 50% { opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  .fig-strands path, .fig-body, .drone-bob, .rotor, .drone-led { animation: none; }
  .fig .acc { animation: none !important; }
}
