:root {
  color-scheme: dark;
  --enter: 0;
  --white: #f4f2ea;
  --contact-entry-orb-x: 51vw;
  --contact-entry-orb-y: 70vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #030303;
  color: var(--white);
  font-family: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}

.filter-bank {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

.contact-webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: block;
  background: #020202;
}

.scene-vignette,
.horizon-bloom {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene-vignette {
  z-index: 5;
  background:
    radial-gradient(ellipse at 50% 58%, transparent 0 30%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.76)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.horizon-bloom {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 18%, transparent 48%),
    linear-gradient(180deg, transparent 0 54%, rgba(255, 255, 255, 0.18) 58%, transparent 66%);
  mix-blend-mode: screen;
  opacity: calc(0.25 + var(--enter) * 0.35);
}

.contact-webgl-lab.matrix-entry::before {
  content: "";
  position: fixed;
  pointer-events: none;
}

.contact-webgl-lab.matrix-entry::before {
  z-index: 7;
  inset: 0;
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 255, 248, 0.2), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.5) 42%, transparent 78%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: contact-matrix-resolve 1320ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.contact-arrival-orb {
  position: fixed;
  z-index: 12;
  left: var(--contact-entry-orb-x);
  top: var(--contact-entry-orb-y);
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.96);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.9),
    0 0 72px rgba(255, 255, 255, 0.42),
    0 0 180px rgba(255, 255, 255, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.48);
}

.contact-webgl-lab.matrix-entry .contact-arrival-orb {
  animation: contact-particle-resolve 1180ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.contact-webgl-lab.matrix-entry .contact-point--phone .contact-landing-orb {
  animation: contact-phone-landing-glow 900ms 1180ms ease-out both;
}

.contact-webgl-lab.is-contact-leaving {
  pointer-events: none;
}

.contact-webgl-lab.is-contact-leaving::after {
  content: "";
  position: fixed;
  z-index: 18;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 64px),
    radial-gradient(circle at var(--contact-entry-orb-x) var(--contact-entry-orb-y), rgba(255, 255, 250, 0.2), transparent 18%);
  mix-blend-mode: screen;
  animation: contact-matrix-return 680ms cubic-bezier(0.64, 0, 0.24, 1) both;
}

.contact-webgl-lab.is-contact-leaving .contact-webgl,
.contact-webgl-lab.is-contact-leaving .scene-vignette,
.contact-webgl-lab.is-contact-leaving .horizon-bloom,
.contact-webgl-lab.is-contact-leaving .contact-stage,
.contact-webgl-lab.is-contact-leaving .back-link,
.contact-webgl-lab.is-contact-leaving .hint {
  will-change: transform, opacity;
}

.contact-webgl-lab.is-contact-leaving .contact-webgl {
  animation: contact-canvas-return 680ms cubic-bezier(0.64, 0, 0.24, 1) both;
}

.contact-webgl-lab.is-contact-leaving .scene-vignette {
  animation: contact-vignette-return 680ms ease-out both;
}

.contact-webgl-lab.is-contact-leaving .horizon-bloom {
  animation: contact-bloom-return 520ms ease-out both;
}

.contact-webgl-lab.is-contact-leaving .contact-stage {
  animation: contact-stage-return 600ms cubic-bezier(0.64, 0, 0.24, 1) both;
}

.contact-webgl-lab.is-contact-leaving .contact-point--email {
  animation-delay: 0ms;
}

.contact-webgl-lab.is-contact-leaving .contact-point--phone {
  animation-delay: 36ms;
}

.contact-webgl-lab.is-contact-leaving .contact-point--wechat {
  animation-delay: 72ms;
}

.contact-webgl-lab.is-contact-leaving .contact-point {
  animation-name: contact-signal-return;
  animation-duration: 460ms;
  animation-timing-function: cubic-bezier(0.64, 0, 0.24, 1);
  animation-fill-mode: both;
}

.contact-webgl-lab.is-contact-leaving .contact-point--phone .contact-landing-orb {
  animation: contact-orb-return 520ms ease-out both;
}

.contact-webgl-lab.is-contact-leaving .back-link,
.contact-webgl-lab.is-contact-leaving .hint {
  animation: contact-ui-return 260ms ease both;
}

.back-link {
  position: fixed;
  z-index: 20;
  left: clamp(24px, 3vw, 44px);
  top: clamp(24px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.back-link::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 13px;
  background: rgba(255, 255, 255, 0.48);
}

.contact-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.contact-webgl-lab.from-world .contact-stage {
  animation: none;
}

.contact-webgl-lab.from-world .scene-vignette {
  animation: contact-vignette-arrive 1850ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.contact-webgl-lab.from-world .horizon-bloom {
  animation: contact-bloom-arrive 1850ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.contact-webgl-lab.from-world .field-title {
  animation: contact-title-arrive 2100ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.contact-webgl-lab.from-world .contact-point {
  animation: contact-signal-rise 1700ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
  animation-delay: var(--delay, 0ms);
}

.contact-webgl-lab.is-measuring-contact-orb .contact-point--phone {
  animation: none !important;
}

.field-title {
  position: absolute;
  left: 50%;
  top: 23%;
  width: min(1200px, 88vw);
  display: grid;
  gap: 10px;
  text-align: center;
  transform:
    translate(-50%, -50%)
    translateY(calc((1 - var(--enter)) * 8px));
  opacity: calc(0.04 + var(--enter) * 0.22);
  pointer-events: none;
}

.field-title > * {
  min-width: 0;
}

.field-title span,
.field-title em,
.contact-point span,
.contact-point em,
.hint {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.field-title span {
  color: rgba(255, 255, 255, 0.24);
}

.field-title h1 {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 14vw, 15rem);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.1),
    0 0 92px rgba(255, 255, 255, 0.07);
}

.field-title em {
  color: rgba(255, 255, 255, 0.22);
  font-style: normal;
}

.contact-horizon {
  position: absolute;
  z-index: 2;
  left: 8vw;
  right: 8vw;
  top: 57.8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.32), transparent);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.34),
    0 0 72px rgba(255, 255, 255, 0.16);
  opacity: calc(0.18 + var(--enter) * 0.52);
}

.contact-horizon::before,
.contact-horizon::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 22px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.2), transparent 68%);
  filter: blur(10px);
}

.contact-horizon::after {
  left: 22%;
  right: 22%;
  height: 68px;
  opacity: 0.42;
  filter: blur(22px);
}

.contact-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(390px, 28vw);
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  pointer-events: auto;
  opacity: calc(var(--enter) * 0.86);
  transform:
    translate(-50%, -50%)
    translateY(calc((1 - var(--enter)) * 10px + var(--float-y, 0px)))
    scale(var(--scale));
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.14))
    drop-shadow(0 0 42px rgba(255, 255, 255, 0.08));
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 220ms ease;
}

.contact-point::before {
  content: "";
  position: absolute;
  left: var(--pin, 50%);
  top: calc(100% + 18px);
  width: 1px;
  height: min(var(--stem, 92px), 15vh);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-50%);
  opacity: calc(var(--enter) * 0.46);
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    background 220ms ease;
  pointer-events: none;
}

.contact-point::after {
  content: "";
  position: absolute;
  left: var(--pin, 50%);
  top: calc(100% + min(var(--stem, 92px), 18vh) + 13px);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.36),
    0 0 12px rgba(255, 255, 255, 0.68),
    0 0 48px rgba(255, 255, 255, 0.24);
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  pointer-events: none;
}

.contact-point--phone::after {
  content: none;
}

.contact-landing-orb {
  position: absolute;
  left: var(--pin, 50%);
  top: calc(100% + min(var(--stem, 92px), 18vh) + 13px);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 13px rgba(255, 255, 255, 0.72),
    0 0 54px rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  pointer-events: none;
}

.contact-point i {
  width: 6px;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.82),
    0 0 46px rgba(255, 255, 255, 0.28);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.contact-point span {
  position: relative;
  color: rgba(255, 255, 255, 0.32);
  font-family: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(0.54rem, 0.62vw, 0.72rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.38em;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.14);
  transition:
    color 220ms ease,
    text-shadow 220ms ease;
}

.contact-point strong {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.96rem, 1.46vw, 1.76rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.26),
    0 0 22px rgba(255, 255, 255, 0.17),
    0 0 64px rgba(255, 255, 255, 0.08);
  transition:
    color 220ms ease,
    text-shadow 220ms ease;
}

.contact-point em {
  max-width: 220px;
  color: rgba(255, 255, 255, 0.26);
  font-style: normal;
  line-height: 1.6;
  transition:
    color 220ms ease,
    text-shadow 220ms ease;
}

.contact-point--email {
  justify-items: start;
  text-align: left;
}

.contact-point--phone {
  justify-items: center;
  text-align: center;
}

.contact-point--wechat {
  justify-items: end;
  text-align: right;
}

.contact-point--email span {
  font-size: clamp(0.62rem, 0.74vw, 0.82rem);
  letter-spacing: 0.34em;
}

.contact-point--phone span {
  font-size: clamp(0.6rem, 0.7vw, 0.8rem);
  letter-spacing: 0.38em;
}

.contact-point--wechat span {
  font-size: clamp(0.6rem, 0.72vw, 0.82rem);
  letter-spacing: 0.38em;
}

.contact-point--email strong {
  max-width: 380px;
  font-size: clamp(1.08rem, 1.78vw, 2.18rem);
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.contact-point--phone strong {
  font-size: clamp(0.95rem, 1.36vw, 1.62rem);
  letter-spacing: 0.14em;
}

.contact-point--wechat strong {
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  letter-spacing: 0.08em;
}

.contact-point--email em {
  transform: none;
}

.contact-point--phone em {
  transform: none;
}

.contact-point--wechat em {
  transform: none;
}

.contact-point:hover,
.contact-point:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 110px rgba(255, 255, 255, 0.22));
  transform:
    translate(-50%, -50%)
    translateY(calc((1 - var(--enter)) * 10px + var(--float-y, 0px) - 3px))
    scale(calc(var(--scale) * 1.018));
}

.contact-point:hover::before,
.contact-point:focus-visible::before {
  opacity: calc(var(--enter) * 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.2), transparent);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.55));
}

.contact-point:hover::after,
.contact-point:focus-visible::after,
.contact-point:hover .contact-landing-orb,
.contact-point:focus-visible .contact-landing-orb {
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 0 18px rgba(255, 255, 255, 0.92),
    0 0 88px rgba(255, 255, 255, 0.42),
    0 0 160px rgba(255, 255, 255, 0.18);
  transform: translateX(-50%) scale(1.42);
}

.contact-webgl-lab.matrix-entry .contact-point--phone:hover .contact-landing-orb,
.contact-webgl-lab.matrix-entry .contact-point--phone:focus-visible .contact-landing-orb {
  animation: none;
}

.contact-point:hover i,
.contact-point:focus-visible i {
  transform: scale(1.34);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.95),
    0 0 72px rgba(255, 255, 255, 0.42);
}

.contact-point:hover span,
.contact-point:focus-visible span,
.contact-point:hover em,
.contact-point:focus-visible em {
  color: rgba(255, 255, 255, 0.54);
}

.contact-point:hover strong,
.contact-point:focus-visible strong {
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.42),
    0 0 30px rgba(255, 255, 255, 0.34),
    0 0 92px rgba(255, 255, 255, 0.16);
}

.contact-reflections {
  position: absolute;
  inset: 58.4% 0 auto;
  height: 34vh;
  overflow: hidden;
  pointer-events: none;
  opacity: calc(var(--enter) * 0.36);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 34%, transparent 84%);
}

.reflection {
  position: absolute;
  left: var(--x);
  top: 7px;
  width: min(390px, 28vw);
  display: grid;
  gap: 7px;
  justify-items: center;
  color: rgba(255, 255, 255, 0.22);
  text-align: center;
  transform:
    translateX(-50%)
    scale(var(--scale))
    rotateX(73deg)
    scaleY(-1);
  transform-origin: top center;
  filter: url("#water-displace") blur(1.8px);
  animation: reflection-drift 5.8s ease-in-out infinite alternate;
}

.reflection span {
  font-size: clamp(0.95rem, 1.65vw, 2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.42),
    0 0 42px rgba(255, 255, 255, 0.18);
}

.reflection strong {
  max-width: 280px;
  font-size: clamp(0.58rem, 0.7vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.28),
    0 0 32px rgba(255, 255, 255, 0.12);
}

.reflection--email strong {
  max-width: 320px;
  font-size: clamp(0.58rem, 0.7vw, 0.78rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.reflection--email {
  justify-items: start;
  text-align: left;
}

.reflection--phone {
  justify-items: center;
  text-align: center;
}

.reflection--wechat {
  justify-items: end;
  text-align: right;
}

.reflection--email span {
  font-size: clamp(1rem, 1.75vw, 2.1rem);
  letter-spacing: 0.04em;
}

.reflection--phone span {
  font-size: clamp(0.92rem, 1.45vw, 1.8rem);
  letter-spacing: 0.12em;
}

.reflection--wechat span {
  font-size: clamp(0.95rem, 1.55vw, 1.9rem);
  letter-spacing: 0.08em;
}

.hint {
  position: fixed;
  z-index: 20;
  left: clamp(24px, 3vw, 44px);
  bottom: clamp(22px, 2.8vw, 34px);
  margin: 0;
  color: rgba(255, 255, 255, 0.26);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.hint-touch { display: none; }

.contact-copy {
  appearance: none;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(244, 242, 234, 0.28);
  border-radius: 2px;
  background: rgba(3, 3, 3, 0.64);
  color: #f4f2ea;
  font: 500 12px/1.4 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.contact-copy:hover { border-color: rgba(244, 242, 234, 0.75); }
.contact-copy:focus-visible { outline: 2px solid #fff1b8; outline-offset: 4px; }
.contact-point--email:focus-visible { outline: 2px solid #fff1b8; outline-offset: 8px; }
.contact-copy:disabled { cursor: wait; opacity: 0.6; }

.contact-copy-status {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: max(66px, calc(env(safe-area-inset-bottom) + 52px));
  width: max-content;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(244, 242, 234, 0.18);
  background: #101110;
  color: #f4f2ea;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.contact-copy-status:empty { display: none; }

.webgl-fallback .contact-webgl {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(180deg, #020202 0%, #050505 48%, #5d5e59 74%, #c5c5bd 100%);
}

@keyframes reflection-drift {
  0% {
    translate: -7px 0;
    opacity: 0.54;
  }
  100% {
    translate: 8px 2px;
    opacity: 0.82;
  }
}

@keyframes contact-stage-arrive {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes contact-title-arrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(16px);
    filter: blur(6px);
  }
  100% {
    opacity: calc(0.06 + var(--enter) * 0.3);
    transform: translate(-50%, -50%) translateY(calc((1 - var(--enter)) * 10px));
    filter: blur(0);
  }
}

@keyframes contact-signal-rise {
  0% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translateY(calc(var(--float-y, 0px) + 34px))
      scale(calc(var(--scale) * 0.94));
    filter:
      blur(7px)
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
  }
  58% {
    opacity: 0.52;
  }
  100% {
    opacity: calc(var(--enter) * 0.92);
    transform:
      translate(-50%, -50%)
      translateY(calc((1 - var(--enter)) * 10px + var(--float-y, 0px)))
      scale(var(--scale));
    filter:
      blur(0)
      drop-shadow(0 0 14px rgba(255, 255, 255, 0.18))
      drop-shadow(0 0 56px rgba(255, 255, 255, 0.1));
  }
}

@keyframes contact-vignette-arrive {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 0.72;
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes contact-bloom-arrive {
  0% {
    opacity: 0;
  }
  68% {
    opacity: 0.42;
  }
  100% {
    opacity: calc(0.25 + var(--enter) * 0.35);
  }
}

@keyframes contact-matrix-resolve {
  0% {
    opacity: 0.82;
    filter: blur(0);
  }
  48% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    filter: blur(5px);
  }
}

@keyframes contact-particle-resolve {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-18vh) scale(0.26);
  }
  28% {
    opacity: 1;
  }
  72% {
    opacity: 0.86;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(0) scale(1.62);
  }
}

@keyframes contact-phone-landing-glow {
  0% {
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.38),
      0 0 13px rgba(255, 255, 255, 0.72),
      0 0 54px rgba(255, 255, 255, 0.28);
  }
  100% {
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.52),
      0 0 20px rgba(255, 255, 255, 0.82),
      0 0 92px rgba(255, 255, 255, 0.36),
      0 0 150px rgba(255, 255, 255, 0.14);
  }
}

@keyframes contact-matrix-return {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  42% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    transform: scale(0.74);
  }
}

@keyframes contact-canvas-return {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.24;
    transform: scale(1.025);
  }
}

@keyframes contact-stage-return {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.018);
  }
}

@keyframes contact-signal-return {
  from {
    opacity: calc(var(--enter) * 0.92);
    transform:
      translate(-50%, -50%)
      translateY(var(--float-y, 0px))
      scale(var(--scale));
  }
  to {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translateY(calc(var(--float-y, 0px) - 28px))
      scale(calc(var(--scale) * 0.94));
  }
}

@keyframes contact-orb-return {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  52% {
    opacity: 1;
    transform: translateX(-50%) scale(2.4);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
  }
}

@keyframes contact-vignette-return {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

@keyframes contact-bloom-return {
  from { opacity: calc(0.25 + var(--enter) * 0.35); }
  to { opacity: 0; }
}

@keyframes contact-ui-return {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 900px) {
  /* feTurbulence+feDisplacementMap 作用于 infinite 动画元素时每帧实时求值，
     移动端 GPU/CPU 都扛不住，降级为静态模糊近似。 */
  .reflection {
    filter: blur(1.8px);
  }

  .contact-webgl-lab.is-contact-leaving::after {
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 52px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 52px),
      radial-gradient(circle at var(--contact-entry-orb-x) var(--contact-entry-orb-y), rgba(255, 255, 250, 0.18), transparent 24%);
    animation-duration: 520ms;
  }
  .field-title {
    top: 15%;
  }

  .field-title h1 {
    font-size: clamp(3rem, 16vw, 6rem);
  }

  .contact-point {
    width: min(260px, 72vw);
    gap: 5px;
    filter: none;
  }

  .contact-point span {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
  }

  .contact-point strong {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 8px #000;
  }

  .contact-point em {
    font-size: 0.58rem;
    line-height: 1.4;
    letter-spacing: 0.22em;
  }

  .contact-point--email {
    --x: 50% !important;
    --y: 37% !important;
    --scale: 1 !important;
    --pin: 50% !important;
    --stem: 64px !important;
    justify-items: center;
    text-align: center;
  }

  .contact-point--email span {
    font-size: 0.62rem;
  }

  .contact-point--email strong {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
    letter-spacing: 0;
  }

  .contact-point--phone {
    --x: 50% !important;
    --y: 52% !important;
    --scale: 1 !important;
    --pin: 50% !important;
    --stem: 64px !important;
  }

  .contact-point--phone strong {
    font-size: 0.94rem;
    letter-spacing: 0.1em;
  }

  .contact-point--wechat {
    --x: 50% !important;
    --y: 76% !important;
    --scale: 1 !important;
    --pin: 50% !important;
    --stem: 64px !important;
    justify-items: center;
    text-align: center;
  }

  .contact-point--wechat strong {
    font-size: 1.08rem;
    letter-spacing: 0.06em;
  }

  .contact-point--wechat {
    padding: 12px 16px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.76), transparent 74%);
  }

  .contact-point--wechat::before,
  .contact-point--wechat::after { display: none; }

  /* Each mobile row owns one pin; the preceding row's endpoint must not
     create a second almost-aligned light beside the next row's pin. */
  .contact-point--email::after { display: none; }

  .hint-desktop { display: none; }
  .hint-touch { display: inline; }
  .hint { font-size: 10px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.54); }

  .contact-point::before {
    height: 64px;
  }

  .contact-reflections {
    display: none;
  }

  .contact-point--email strong,
  .reflection--email strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reflection {
    animation: none;
    filter: blur(1.8px);
  }

  .contact-webgl-lab.from-world .contact-stage,
  .contact-webgl-lab.from-world .field-title,
  .contact-webgl-lab.from-world .contact-point,
  .contact-webgl-lab.from-world .scene-vignette,
  .contact-webgl-lab.from-world .horizon-bloom,
  .contact-webgl-lab.matrix-entry::before,
  .contact-webgl-lab.matrix-entry .contact-arrival-orb,
  .contact-webgl-lab.is-contact-leaving::after,
  .contact-webgl-lab.is-contact-leaving .contact-webgl,
  .contact-webgl-lab.is-contact-leaving .scene-vignette,
  .contact-webgl-lab.is-contact-leaving .horizon-bloom,
  .contact-webgl-lab.is-contact-leaving .contact-stage,
  .contact-webgl-lab.is-contact-leaving .contact-point,
  .contact-webgl-lab.is-contact-leaving .contact-point--phone .contact-landing-orb,
  .contact-webgl-lab.is-contact-leaving .back-link,
  .contact-webgl-lab.is-contact-leaving .hint {
    animation: none;
  }
}
/* ACCESSIBLE FOCUS — 2026-07-11 */
.back-link:focus-visible {
  outline: 2px solid #fff1b8;
  outline-offset: 5px;
  box-shadow: 0 0 0 5px rgba(255, 241, 184, 0.2);
}
