.contact-page { min-height: 100svh; padding: clamp(18px, 6vw, 88px); display: grid; place-items: center; background: var(--paper); }
.contact-card { width: min(860px, 100%); display: grid; grid-template-columns: .93fr 1.07fr; border-radius: 20px; overflow: hidden; background: white; box-shadow: 0 15px 48px #10154018; border: 1px solid #10154018; }
.identity { overflow: hidden; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px; padding: 32px; background: var(--navy-dark); color: white; }
.identity .brand { width: fit-content; z-index: 1; }
.portrait { position: absolute; inset: 0; z-index: -1; background: var(--navy-dark); }
.portrait::before, .portrait::after { content: ""; position: absolute; inset-inline: 0; background-size: cover; }
.portrait::before { top: 0; height: 48%; background-image: linear-gradient(145deg,#10154099,transparent 65%), url('/assets/keyrun-hero-720.webp'); background-position: 55% 51%; }
.portrait::after { top: 48%; bottom: 0; background-image: linear-gradient(170deg,#10154038,#101540ad 45%,#101540eb 100%), url('/assets/editorial/rekey-front-door.webp'); background-position: 53% 47%; }
.identity-copy { padding-top: 70px; }
.identity h1 { color: white; font: 800 clamp(48px, 5.3vw, 72px)/.93 var(--display); letter-spacing: -.025em; }
.identity h1 em { color: var(--lime); font-style: normal; }
.identity-copy p { margin-top: 16px; max-width: 320px; font-size: 15px; font-weight: 500; }
.contact-info { padding: clamp(26px, 4.3vw, 46px); align-self: center; color: var(--navy); min-width: 0; }
.emergency { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.emergency span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); outline: 1px solid #848c3d; }
.number { display: inline-block; font: 800 clamp(34px, 4.2vw, 48px)/1 var(--display); margin: 7px 0 8px; letter-spacing: -.02em; }
.quick-links, .controls { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-links { gap: 20px; font-size: 15px; }
.quick-links a, .card-details a, .text-action { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #adb1c8; }
.quick-links a { padding-block: 4px; }
.controls { margin: 19px 0; }
.action { border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px; background: white; color: var(--navy); border: 1px solid #b9bccc; font: 700 15px/1.3 var(--body); min-height: 46px; }
.action svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action.primary { background: var(--lime); border-color: var(--lime); }
.action:hover { border-color: var(--navy); }
.card-details { display: grid; gap: 8px; margin-bottom: 18px; font-size: 15px; line-height: 1.4; }
.card-details div { display: grid; gap: 3px; }
.card-details div + div { margin: 2px 0 7px; }
.card-details span { color: var(--muted); }
.card-details a { width: fit-content; overflow-wrap: anywhere; }
.action.qr-action { background: var(--navy); border-color: var(--navy); color: white; }
.qr-panel { margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-align: center; scroll-margin-top: 12px; }
.qr-panel:not(:target) { display: none; }
.qr-panel h2 { font: 800 1.65rem/1.15 var(--display); }
.contact-qr { display: block; width: min(296px,100%); height: auto; margin: 5px auto; background: white; image-rendering: pixelated; }
.qr-panel .text-action { display: inline-flex; align-items: center; min-height: 44px; }
.share-status, #copy-link { font-size: 15px; }
#copy-link input { width: 100%; padding: 8px; margin: 0 0 12px; }
.share-status { color: var(--blue); margin-bottom: 12px; }
@media(max-width: 680px) {
  .contact-page { padding: 14px; place-items: start center; }
  .contact-card { max-width: 490px; grid-template-columns: 1fr; border-radius: 16px; }
  .identity { min-height: 213px; padding: 20px 23px; }
  .portrait::before, .portrait::after { left: 42%; }
  .portrait::before { background-image: linear-gradient(90deg,var(--navy-dark),#10154060 28%,transparent 76%), url('/assets/keyrun-hero-720.webp'); }
  .portrait::after { background-image: linear-gradient(90deg,var(--navy-dark),#10154068 28%,transparent 76%), url('/assets/editorial/rekey-front-door.webp'); }

  .identity h1 { font-size: 44px; }
  .identity-copy { padding-top: 22px; }
  .identity-copy p { margin-top: 6px; font-size: 14px; }
  .contact-info { padding: 22px 23px 13px; }
  .number { font-size: 40px; }
}

.wallet-download { border-top: 1px solid var(--line); padding-top: 15px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wallet-button { background: var(--navy-dark); color: white; padding: 10px 13px; border-radius: 8px; font-size: 15px; font-weight: 700; }
.wallet-download .text-action { font-size: 14px; }
