:root {
  color-scheme: dark;
  --bg: #141916;
  --panel: #1c231e;
  --text: #f7f7f2;
  --sub: #b9c2b9;
  --lime: #eaff72;
  --line: #39463b;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button, input, textarea { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
.connect-shell { max-width: 1160px; margin: auto; padding: 0 clamp(16px, 4vw, 48px); }
.connect-header, .connect-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.brand-mark { display: inline-grid; place-items: center; border-radius: 8px; width: 34px; height: 34px; background: var(--lime); color: var(--bg); font-weight: 950; letter-spacing: -.08em; }
.language { display: flex; gap: 4px; }
.language a { padding: 10px; min-height: 44px; color: var(--sub); font-weight: 750; font-size: .85rem; }
.language [aria-current] { color: var(--lime); text-decoration: underline; text-underline-offset: 5px; }
.connect-hero { display: grid; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 0 0, #303b26, var(--panel) 65%); }
.portrait { position: relative; min-height: 0; }
.portrait img { display: block; width: 100%; height: clamp(140px, 42vw, 230px); object-fit: cover; object-position: center 35%; }
.portrait figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 99px; background: #141916; color: var(--text); font-size: .75rem; font-weight: 750; }
.portrait figcaption span, .qr-divider { color: var(--lime); padding: 0 .2em; }
.hero-content { padding: clamp(18px, 4vw, 44px); }
.role { color: var(--lime); font-size: .74rem; font-weight: 800; letter-spacing: .045em; }
.hero-content h1 { margin: 9px 0 12px; font-size: clamp(2.8rem, 11vw, 6.25rem); line-height: .86; letter-spacing: -.085em; font-weight: 900; }
.hero-content h1 span { color: var(--lime); }
.hero-content p { color: var(--sub); max-width: 33ch; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 19px; }
.actions .primary { grid-column: 1 / -1; }
.button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #151c17; color: var(--text); font-weight: 750; font-size: .85rem; cursor: pointer; }
.button:hover { border-color: var(--lime); }
.button.primary { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.button.primary:hover { background: #f3ffa9; }
.social-strip { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.social-strip a { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: .86rem; color: var(--sub); }
.social-strip a:hover, .connect-footer a:hover { color: var(--lime); }
.social-strip span, .project .arrow { color: var(--lime); }
.section { margin-top: clamp(34px, 7vw, 76px); }
.section h2 { font-size: clamp(2rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -.065em; margin-bottom: 20px; }
.project-grid { display: grid; gap: 8px; }
.project { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.project:hover { border-color: var(--lime); }
.project small { grid-column: 1 / -1; color: var(--sub); }
.exchange { display: grid; gap: 24px; padding: clamp(16px, 4vw, 36px); border-radius: 24px; background: #252e22; border: 1px solid var(--line); }
.services { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.services li { border: 1px solid #52604f; border-radius: 99px; padding: 6px 10px; font-size: .8rem; }
.exchange form { display: grid; gap: 12px; min-width: 0; }
.exchange h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.exchange label { display: grid; gap: 5px; font-size: .85rem; font-weight: 700; }
.exchange input, .exchange textarea { width: 100%; min-height: 44px; border: 1px solid #52604f; border-radius: 8px; padding: 10px; background: var(--bg); color: var(--text); font-size: 1rem; }
.exchange textarea { resize: vertical; }
.privacy-note, .connect-footer { color: var(--sub); font-size: .8rem; }
.privacy-note a { text-decoration: underline; }
.status { color: var(--lime); }
.status.error { color: #ffc1b7; }
@media (min-width: 480px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) {
  .connect-hero { grid-template-columns: 1fr 1.15fr; }
  .portrait img { position: absolute; inset: 0; height: 100%; }
  .hero-content h1 { font-size: clamp(4rem, 8.6vw, 6.25rem); }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exchange { grid-template-columns: 1fr 1fr; }
}
.qr-screen { min-height: 100svh; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 5%, #333f2b, var(--bg) 65%); padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.qr-pass { display: grid; justify-items: center; gap: clamp(5px, 1.8svh, 15px); text-align: center; width: min(100%, 600px); }
.qr-identity { display: flex; align-items: center; gap: 12px; text-align: left; }
.qr-avatar { width: clamp(34px, 10svh, 72px); height: auto; border-radius: 16px; border: 1px solid var(--line); }
.qr-name { font-weight: 850; letter-spacing: -.03em; font-size: clamp(.9rem, 3.5svh, 1.5rem); }
.qr-brand { color: var(--sub); font-size: .75rem; font-weight: 720; }
.qr-brand .brand-mark { width: 21px; height: 21px; border-radius: 5px; margin-right: 3px; }
.qr-pass h1 { font-size: clamp(1.65rem, min(11vw, 9svh), 4.8rem); line-height: .98; letter-spacing: -.075em; font-weight: 900; }
.qr-pass em { font-style: normal; color: var(--lime); }
.qr-code { width: min(76vw, 50svh, 410px); border: 1px solid #fff; border-radius: 16px; background: #fff; overflow: hidden; display: block; }
.qr-code img { display: block; width: 100%; aspect-ratio: 1; }
.qr-pass p { color: var(--sub); font-size: .85rem; }
.install, .install-help { color: var(--text); font-size: .78rem; }
.install, .install-help summary { min-height: 44px; padding: 10px; cursor: pointer; }
.install { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.install-help { position: relative; }
.install-help span { position: absolute; bottom: 100%; width: min(260px, 80vw); left: 50%; transform: translateX(-50%); padding: 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
@media (orientation: landscape) and (max-height: 520px) {
  .qr-pass { grid-template-columns: 1fr auto; align-items: center; }
  .qr-code { grid-column: 2; grid-row: 1 / span 4; width: min(72svh, 45vw); }
  .qr-pass h1 { font-size: clamp(1.5rem, 8svh, 3rem); }
}
