:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #f6eee1;
  background: #100e0b;
  --gold: #ebc987;
  --muted: #d0c3b0;
  --line: #9a793e80;
  --surface: #18140fda;
  --display: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], dialog:not([open]) { display: none !important; }
body { margin: 0; min-height: 100vh; isolation: isolate; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, #0c0b0a3a, #0b090886), url('/assets/marble-mobile.webp') 76% center / cover;
}
body:has(.card-dialog[open]) { overflow: hidden; }
p, h1, h2, h3, ul { margin: 0; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: #ebc98736; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #ffe3a6; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.digital-card {
  width: min(100% - 1.65rem, 27rem);
  display: grid;
  gap: .55rem;
  margin-inline: auto;
  padding-block: 1.15rem 1rem;
  text-align: center;
}

.card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 0;
  color: var(--gold);
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .125em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card-brand img { width: min(100%, 14rem); height: auto; max-height: 5.6rem; object-fit: contain; }
.card-brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  border: 1px solid #c0995e;
  background: #17130fe6;
  color: var(--gold);
  font: 1.4rem / 1 var(--display);
  letter-spacing: 0;
}
.card-brand-mark::after { content: ''; position: absolute; inset: 3px; border: 1px solid #8a67376b; pointer-events: none; }

.card-identity { padding-block: .35rem .45rem; min-width: 0; }
.card-portrait {
  width: clamp(6.35rem, 29vw, 7.4rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto .7rem;
  padding: .21rem;
  border: 1px solid #d1a76a;
  border-radius: 50%;
  background: #18140f;
  box-shadow: 0 0 0 3px #c49d5929, 0 6px 26px #0504039c;
  overflow: hidden;
}
.card-portrait > * {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: inherit;
  aspect-ratio: 1;
  object-fit: cover;
}
.card-portrait span {
  display: grid;
  place-items: center;
  color: var(--gold);
  font: 2.8rem / 1 var(--display);
  letter-spacing: -.055em;
  background: radial-gradient(circle at 38% 28%, #483b25, #231b13 75%);
}
.card-identity h1 {
  color: #fff4e2;
  font: 400 clamp(2.25rem, 10.5vw, 3.15rem) / 1.03 var(--display);
  letter-spacing: -.046em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px #0a0605a1;
}
.card-job { margin-top: .31rem; color: #eae0d0; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-tagline { margin-top: .5rem; color: var(--gold); font-size: .92rem; font-weight: 650; letter-spacing: .08em; }

.card-main-actions, .card-secondary-actions { display: grid; gap: .5rem; min-width: 0; }
.card-button, .card-tile {
  min-width: 0;
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: .52rem;
  color: #fbefdd;
  background: var(--surface);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}
.card-button { width: 100%; font-size: 1rem; }
.card-button-gold { color: #25190c; border-color: #eac987; background: #eac987; }
.card-button-gold:hover { background: #f5d79a; }
.card-button-outline { color: #f6dca4; border-color: #c4a06a; background: #19140fda; }
.card-button-surface:hover, .card-button-outline:hover, a.card-tile:hover { border-color: #e2b778; background: #2b2116f1; }
.card-button:not(.card-button-gold) .card-icon, .card-tile .card-icon { color: var(--gold); }

.card-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .5rem; }
.card-tile { min-height: 4.75rem; flex-direction: column; gap: .32rem; padding: .48rem .24rem; font-size: .94rem; }
.card-tile-unavailable { border-color: #7b653e74; color: #bfb2a0; }
.card-tile-unavailable .card-icon { opacity: .68; }
.card-icon {
  flex: none;
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}
.card-tile .card-icon { width: 1.71rem; height: 1.71rem; }
.icon-save { --icon: url('/assets/icons/card-download.png'); }
.icon-call { --icon: url('/assets/icons/card-phone.png'); }
.icon-email { --icon: url('/assets/icons/card-mail.png'); }
.icon-website { --icon: url('/assets/icons/card-globe.png'); }
.icon-qr { --icon: url('/assets/icons/card-qr.png'); }
.icon-google-maps { --icon: url('/assets/icons/google-maps.png'); }
.icon-facebook { --icon: url('/assets/icons/facebook.png'); }
.icon-instagram { --icon: url('/assets/icons/instagram.png'); }
.icon-google-reviews { --icon: url('/assets/icons/google-reviews.png'); }

.card-footer {
  margin-top: .13rem;
  padding-top: .65rem;
  border-top: 1px solid #a3864b73;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
  text-shadow: 0 1px 6px #0b0907;
  overflow-wrap: anywhere;
}
.card-footer address { font-style: normal; }
.card-footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: .08rem .65rem; margin-top: .22rem; }
.footer-divider { color: var(--gold); }
.card-details-link { min-height: 3rem; display: inline-flex; align-items: center; color: var(--gold); font-weight: 650; text-underline-offset: .2em; }

.card-dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 28rem);
  max-width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #98764c;
  border-radius: 1.1rem 1.1rem 0 0;
  color: #f6eee1;
  background: #1b1611;
  box-shadow: 0 16px 60px #000b;
}
.card-dialog::backdrop { background: #0b0908d4; }
.card-dialog[open]:not(:modal) { z-index: 3; box-shadow: 0 0 0 100vmax #0b0908d4; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.dialog-header h2 { font: 400 clamp(1.6rem, 7vw, 2.05rem) / 1.08 var(--display); overflow-wrap: anywhere; }
.dialog-close {
  width: 3rem;
  height: 3rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
}
.dialog-close:hover { background: #302417; }
.dialog-description { margin: .45rem 0 1rem; color: var(--muted); line-height: 1.45; }
.exchange-form, .share-options, .details-links { display: grid; gap: .7rem; }
.exchange-form label { min-width: 0; font-size: 1rem; font-weight: 650; }
.exchange-form label > span, .details-address { color: var(--muted); font-weight: 400; }
.exchange-form input:not([type="checkbox"]), .exchange-form textarea, .share-url {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  display: block;
  margin-top: .28rem;
  padding: .6rem .72rem;
  border: 1px solid #79613c;
  border-radius: .4rem;
  color: #f8edda;
  background: #100d0b;
  font-size: 1rem;
  font-weight: 400;
}
.exchange-form input[type='hidden'] { display: none; }
.exchange-form textarea { resize: vertical; }
.exchange-form .consent { min-height: 3rem; display: flex; align-items: flex-start; gap: .62rem; padding-block: .4rem; cursor: pointer; }
.consent input { width: 1.35rem; height: 1.35rem; flex: none; margin: .1rem 0 0; accent-color: #e2bc7d; }
.exchange-form .consent span { color: #f6eee1; }
.form-notice { margin: .6rem 0 .8rem; padding: .65rem; border: 1px solid; border-radius: .4rem; }
.form-success { border-color: #667e53; color: #e5edcf; background: #242a1d; }
.form-error { border-color: #ad6e61; color: #ffdbd1; background: #36221d; }
.card-qr { width: 12rem; height: auto; aspect-ratio: 1; margin: 0 auto 1rem; border-radius: .45rem; background: #fff; }
.share-url { margin-top: 0; color: var(--muted); text-align: center; }
.share-status { margin-top: .65rem; color: var(--gold); }
.details-address { margin: .55rem 0 .75rem; font-style: normal; }
.details-links { margin-top: .7rem; }
.portfolio-card { width: min(100% - 1.65rem, 33rem); gap: .8rem; }
.portfolio-header { margin: .35rem 0 .45rem; }
.portfolio-header h1 { font: 400 clamp(2.25rem, 10vw, 3.1rem) / 1.05 var(--display); }
.portfolio-header p { margin-top: .35rem; color: var(--muted); overflow-wrap: anywhere; }
.portfolio-gallery { display: grid; gap: .9rem; min-width: 0; padding: 0; list-style: none; }
.portfolio-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; background: var(--surface); }
.portfolio-gallery img, .portfolio-gallery video { width: 100%; height: auto; background: #100d0b; }
.portfolio-gallery img { aspect-ratio: auto 3 / 2; }
.portfolio-gallery video { aspect-ratio: 16 / 9; object-fit: contain; }
.portfolio-gallery figcaption { padding: .65rem .8rem; text-align: start; overflow-wrap: anywhere; }

@media (min-width: 43rem) {
  body::before { background-image: linear-gradient(155deg, #0c0b0a38, #0b09088c), url('/assets/marble.webp'); background-position: center; }
  .digital-card { padding-top: 1.55rem; }
  .card-dialog { inset: 0; margin: auto; border-radius: .85rem; }
}
