:root {
  color-scheme: dark;
  --black: #070707;
  --panel: #0d0d0d;
  --gold: #c9a665;
  --gold-light: #ead39a;
  --white: #f8f5ee;
  --muted: #9f9b92;
  --line: rgba(201, 166, 101, 0.22);
  --safe-top: max(22px, env(safe-area-inset-top));
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 100% -5%, rgba(201, 166, 101, 0.16), transparent 30rem),
    radial-gradient(circle at -10% 100%, rgba(201, 166, 101, 0.08), transparent 28rem),
    var(--black);
  font-family: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.business-card {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  padding: var(--safe-top) 22px var(--safe-bottom);
  overflow: hidden;
  isolation: isolate;
}

.business-card::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(130deg, transparent 0 44%, rgba(255, 255, 255, 0.016) 44.2% 44.5%, transparent 44.8%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.008) 0 1px, transparent 1px 5px);
  content: "";
}

.brand-orbit {
  position: absolute;
  z-index: -2;
  width: 390px;
  height: 390px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: -235px;
  right: -170px;
}

.orbit-two {
  top: -190px;
  right: -218px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo-frame {
  width: 56px;
  height: 56px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 166, 101, 0.34);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity {
  padding: 68px 0 42px;
}

.role {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.role strong,
.role span {
  display: block;
}

.role strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 15px;
}

h1 {
  max-width: 360px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 17vw, 84px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

h1 span {
  display: block;
  color: var(--gold-light);
  font-style: italic;
}

.location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location::before {
  width: 28px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.primary-actions {
  margin-bottom: 26px;
}

.action {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.action-primary {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 34px rgba(201, 166, 101, 0.18);
}

.action-qr {
  color: var(--white);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.action-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 7, 7, 0.23);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.action strong,
.contact-grid strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.action small,
.contact-grid small {
  display: block;
  margin-top: 5px;
  color: inherit;
  font-size: 10px;
  opacity: 0.65;
}

.qr-mini {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.qr-mini i {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid var(--gold);
}

.qr-mini i:nth-child(1) { top: 0; left: 0; }
.qr-mini i:nth-child(2) { top: 0; right: 0; }
.qr-mini i:nth-child(3) { bottom: 0; left: 0; }
.qr-mini i:nth-child(4) {
  right: 2px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--gold);
}

.site-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(201, 166, 101, 0.3);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(201, 166, 101, 0.1), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.site-qr-copy h2 {
  margin: 9px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

.site-qr-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.site-qr-code {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 3px solid var(--gold);
  border-radius: 17px;
  background: #fff;
}

.site-qr-code img,
.site-qr-code canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.contact-grid {
  border-top: 1px solid var(--line);
}

.contact-grid > a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-index {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.arrow {
  color: var(--gold);
  font-size: 17px;
  transition: transform 160ms ease;
}

.contact-grid > a:active .arrow {
  transform: translate(2px, -2px);
}

.qr-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--black);
}

.qr-dialog::backdrop {
  background: #000;
}

.qr-panel {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--safe-top) 28px var(--safe-bottom);
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(201, 166, 101, 0.17), transparent 22rem),
    var(--black);
}

.close-button {
  position: fixed;
  top: var(--safe-top);
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font-size: 25px;
  cursor: pointer;
}

.qr-logo {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.qr-panel h2 {
  margin: 12px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.qr-code {
  width: min(76vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 7px solid var(--gold);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.qr-code img,
.qr-code canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.qr-hint {
  max-width: 280px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 700px) {
  body {
    padding: 32px;
  }

  .business-card {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 360px) {
  .business-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .identity {
    padding-top: 48px;
  }

  .site-qr-card {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 12px;
    padding: 14px;
  }

  .site-qr-code {
    width: 116px;
    height: 116px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .business-card {
    animation: reveal 480ms ease-out both;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
