:root {
  color-scheme: dark;
  --ink: #081114;
  --ink-2: #102126;
  --paper: #f7faf9;
  --muted: #b8cacb;
  --line: rgba(255, 255, 255, 0.18);
  --teal: #24c6c7;
  --gold: #d7ad62;
  --cobalt: #396dff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
}

a {
  color: inherit;
  text-decoration-color: rgba(36, 198, 199, 0.55);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
  text-decoration-color: var(--gold);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.contact-hero {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 20, 0.93) 0%, rgba(8, 17, 20, 0.76) 38%, rgba(8, 17, 20, 0.12) 72%),
    linear-gradient(180deg, rgba(8, 17, 20, 0.25), rgba(8, 17, 20, 0.72));
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.toplinks {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: rgba(247, 250, 249, 0.78);
}

.toplinks a {
  text-decoration: none;
}

.contact-layout,
.uhs-layout {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 28px;
}

.contact-layout {
  grid-template-columns: minmax(320px, 560px) minmax(220px, 280px);
  justify-content: space-between;
  padding: 48px 0 28px;
}

.identity-panel,
.scan-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 17, 20, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.identity-panel {
  padding: 28px;
}

.portrait-wrap {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(8, 17, 20, 0.9);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(1.28rem, 3.15vw, 2.35rem);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

h1 span {
  color: #dffafb;
}

.title-line {
  max-width: 38rem;
  margin: 18px 0 0;
  color: rgba(247, 250, 249, 0.78);
  font-size: clamp(1rem, 2.4vw, 1.16rem);
  line-height: 1.55;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button,
.text-button {
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button {
  padding: 0 16px;
}

.button.primary {
  color: #061011;
  background: linear-gradient(135deg, #ffffff, #82f7ef 46%, #e5bd73);
  border-color: rgba(255, 255, 255, 0.58);
}

.button:hover,
.text-button:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 173, 98, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.button.primary:hover {
  color: #061011;
  background: linear-gradient(135deg, #ffffff, #a7fff8 46%, #f1cd88);
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-list div {
  min-width: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.98rem;
}

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.text-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
}

button.text-button {
  appearance: none;
}

.copy-status {
  min-height: 1.35em;
  margin: 12px 0 0;
  color: #9af4ec;
  font-size: 0.88rem;
}

.scan-panel {
  align-self: end;
  padding: 18px;
  text-align: center;
  color: rgba(247, 250, 249, 0.82);
}

.qr-frame {
  width: 100%;
  max-width: 226px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7faf9;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.scan-panel p {
  margin: 14px 0 2px;
  font-weight: 760;
}

.scan-panel a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.uhs-layout {
  min-height: 70vh;
  grid-template-columns: minmax(320px, 620px);
  padding: 48px 0 28px;
}

.uhs-panel h1 {
  max-width: 10ch;
}

.compact-list {
  grid-template-columns: 1fr;
}

@media (max-width: 860px) {
  .contact-hero {
    padding: 18px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 17, 20, 0.94) 0%, rgba(8, 17, 20, 0.78) 50%, rgba(8, 17, 20, 0.48) 100%),
      linear-gradient(90deg, rgba(8, 17, 20, 0.84), rgba(8, 17, 20, 0.34));
  }

  .hero-image {
    object-position: 62% center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 36px 0 18px;
  }

  .identity-panel {
    padding: 22px;
  }

  .scan-panel {
    width: min(100%, 320px);
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .toplinks {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .utility-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .text-button {
    width: 100%;
  }

  .portrait-wrap {
    width: 92px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .identity-panel,
  .scan-panel {
    animation: rise-in 640ms ease both;
  }

  .scan-panel {
    animation-delay: 120ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
