:root {
  color-scheme: dark;
  background: #000;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #000; color: #e7e9dd; }
main { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gaze {
  position: absolute; left: 50%; top: 43.5%; transform: translate(-50%, -50%);
  display: block; width: clamp(230px, 71vw, 465px); height: auto; max-width: 90vw;
}
.contact {
  position: absolute; left: 50%; bottom: max(8svh, calc(env(safe-area-inset-bottom) + 18px));
  transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; min-height: 48px; padding: 0 25px; border: 1px solid #44483e; border-radius: 28px;
  color: #e1e4d8; background: #080a07; text-decoration: none; font-size: 15px; font-weight: 450;
  letter-spacing: .035em; touch-action: manipulation;
}
.contact svg { width: 19px; height: 19px; color: #b7c3a2; }
.contact:focus-visible { outline: 2px solid #c5d5ad; outline-offset: 6px; }
@media (hover: hover) { .contact:hover { background: #13170f; border-color: #839074; } }
@media (prefers-reduced-motion: no-preference) {
  .gaze { animation: emerge 1.15s ease-out both; }
  .contact { transition: background .2s, border-color .2s; }
  @keyframes emerge { from { opacity: 0; } to { opacity: 1; } }
}

[hidden] { display: none !important; }
.contacts-panel, .qr-screen { min-height: 100vh; min-height: 100dvh; padding: 24px; }
.contacts-panel { display: grid; place-items: center; }
.contact-card { width: min(100%, 380px); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: #b6c1a8; font-size: 15px; text-decoration: none; }
.contact-card h2 { font-size: clamp(32px, 7vw, 46px); letter-spacing: -.045em; margin: 20px 0 4px; font-weight: 500; }
.name { margin: 0 0 26px; color: #a6ae9c; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 84px; border-top: 1px solid #373c32; text-decoration: none; color: #e7e9dd; }
.contact-row strong, .contact-row small { display: block; }
.contact-row strong { font-size: 19px; font-weight: 500; }
.contact-row small { color: #b3bbaa; font-size: 14px; margin-top: 5px; }
.qr-row { border-bottom: 1px solid #373c32; }
.qr-row img, .large-qr { image-rendering: pixelated; }
.qr-screen { display: grid; align-content: center; justify-items: center; position: relative; padding: 66px 10px 24px; }
.qr-screen .back { position: absolute; top: max(8px,env(safe-area-inset-top)); left: max(16px,env(safe-area-inset-left)); }
.qr-content { width: 100%; text-align: center; }
.qr-content h2 { margin: 0 0 14px; font-size: clamp(19px,4vw,25px); font-weight: 500; }
.large-qr { display: block; width: min(100%, 72vh, 760px); width: min(100%, calc(100dvh - 174px), 760px); height: auto; margin: 0 auto; }
.qr-content p { margin: 12px 0 0; color: #bcc4b3; font-size: 15px; }
.back:focus-visible, .contact-row:focus-visible { outline: 2px solid #c5d5ad; outline-offset: 3px; }
h2[tabindex]:focus { outline: none; }
@media (max-height: 480px) and (orientation: landscape) {
 .qr-screen { padding: 6px; }
 .qr-content h2, .qr-content p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .large-qr { width: min(calc(100dvh - 12px), 66vw); }
}
