/* Digital business card: luxury night-blue & gold. Colours come from the brand; the build keeps this file generic. */
:root, [data-theme="dark"] {
  --bg: #0A1A33; --bg-deep: #050D1C; --ink: #E8EEF7; --muted: #B4C0D3; --gold: #D9B470; --gold-hi: #E8C979;
  --gold-line: rgba(232, 201, 121, .55); --panel: rgba(255, 255, 255, .045); --panel-brd: rgba(232, 201, 121, .22);
  --tile: rgba(255, 255, 255, .06); --tile-hover: rgba(232, 201, 121, .14); --focus: #F2D98F;
  --card-a: rgba(255, 255, 255, .10); --card-b: rgba(255, 255, 255, .02); --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  --foil: linear-gradient(115deg, #A87F3A 0%, #E8C979 32%, #FFF0BE 50%, #D4AA57 68%, #B8893B 100%);
  --btn-ink: #0A1A33; --qr-bg: #FFFFFF; --qr-ink: #0A1A33;
  --aur1: rgba(201, 158, 85, .22); --aur2: rgba(52, 92, 168, .30);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F7F3EA; --bg-deep: #EDE5D3; --ink: #0A1A33; --muted: #46526A; --gold: #7A5718; --gold-hi: #8A6424;
  --gold-line: rgba(138, 100, 36, .5); --panel: rgba(255, 255, 255, .62); --panel-brd: rgba(138, 100, 36, .25);
  --tile: rgba(255, 255, 255, .85); --tile-hover: rgba(201, 158, 85, .18); --focus: #0A1A33;
  --card-a: rgba(255, 255, 255, .92); --card-b: rgba(255, 255, 255, .55); --shadow: 0 30px 70px -32px rgba(10, 26, 51, .45);
  --aur1: rgba(201, 158, 85, .25); --aur2: rgba(10, 26, 51, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  --bg: #F7F3EA; --bg-deep: #EDE5D3; --ink: #0A1A33; --muted: #46526A; --gold: #7A5718; --gold-hi: #8A6424; --focus: #0A1A33;
  --panel: rgba(255,255,255,.62); --tile: rgba(255,255,255,.85); --card-a: rgba(255,255,255,.92); --card-b: rgba(255,255,255,.55); color-scheme: light; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
main:focus { outline: none; }
.ic { width: 1.35em; height: 1.35em; flex: none; }
[hidden] { display: none !important; }

/* theme-specific images */
[data-theme="light"] .only-dark, [data-theme="dark"] .only-light, :root:not([data-theme]) .only-light { display: none !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .only-dark { display: none !important; } :root:not([data-theme]) .only-light { display: block !important; } }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, var(--bg) 0%, var(--bg-deep) 100%); }
.aurora { position: absolute; inset: -30%; background:
  radial-gradient(38% 30% at 25% 20%, var(--aur1), transparent 70%),
  radial-gradient(40% 35% at 80% 70%, var(--aur2), transparent 70%),
  radial-gradient(25% 20% at 70% 15%, var(--aur1), transparent 70%);
  filter: blur(30px); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.08); } }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* skip + top bar */
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; background: var(--gold-hi); color: #0A1A33; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: none; }
.skip:focus { top: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px 6px; }
.mark { display: inline-flex; padding: 2px; border-radius: 50%; }
.mark img { width: 44px; height: 44px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--tile); color: var(--ink); border: 1px solid var(--panel-brd); font: 500 .9rem "Heebo", sans-serif; text-decoration: none; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.chip:hover { background: var(--tile-hover); border-color: var(--gold-line); }
.icon-btn { padding: 0; width: 44px; }
.icon-btn .ic { color: var(--gold); }

/* layout */
.layout { max-width: 1100px; margin: 0 auto; padding: 8px 16px 24px; display: grid; gap: 32px; justify-content: center; grid-template-columns: minmax(0, 480px); }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 480px) 300px; align-items: start; gap: 56px; padding-top: 24px; } }
main { display: grid; gap: 18px; min-width: 0; }

/* hero card */
.hero { display: grid; gap: 20px; padding-top: 8px; }
.tilt { perspective: 1000px; }
.card3d { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; position: relative; isolation: isolate; overflow: hidden; border-radius: 26px;
  padding: 34px 24px 26px; text-align: center; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  background: radial-gradient(80% 60% at var(--mx) var(--my), rgba(232, 201, 121, .10), transparent 65%), linear-gradient(150deg, var(--card-a), var(--card-b));
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .12); }
.card3d.is-tilting { transition: transform .08s linear; }
.card-edge { position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; background: var(--foil); pointer-events: none; z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .85; }
.sheen { position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 240, 190, .16) 49%, rgba(255, 255, 255, .22) 50%, rgba(255, 240, 190, .12) 52%, transparent 58%);
  transform: translateX(-60%); animation: sheen 7.5s cubic-bezier(.4, 0, .2, 1) 1.2s infinite; }
@keyframes sheen { 0% { transform: translateX(-60%); } 35%, 100% { transform: translateX(60%); } }
.seal, .id, .latin { position: relative; z-index: 1; }
.seal { width: 132px; height: 132px; margin: 0 auto 14px; transform: translateZ(40px); }
.seal img { width: 100%; height: 100%; }
.kicker { font: 400 1.05rem "Bellefair", "Heebo", serif; letter-spacing: .32em; color: var(--gold); margin-bottom: 2px; }
[lang="en"] .kicker { letter-spacing: .24em; text-transform: uppercase; font-size: .95rem; }
.name { margin: 0; font: 400 clamp(2.4rem, 11vw, 3.25rem)/1.1 "Bellefair", "Heebo", serif; letter-spacing: .02em;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .name { background: linear-gradient(115deg, #5E4214, #A57C33 45%, #6A4C1A); -webkit-background-clip: text; background-clip: text; }
@media (forced-colors: active) { .name { color: CanvasText; background: none; } }
.rule { width: 120px; height: 1px; margin: 14px auto 12px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); position: relative; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--gold-hi); transform: translate(-50%, -50%) rotate(45deg); }
.tagline { font: 500 1.08rem/1.45 "Heebo", sans-serif; }
.city { color: var(--muted); font-size: .98rem; }
.since { color: var(--gold); font-size: .9rem; margin-top: 4px; }
.latin { margin-top: 20px; font: 400 .72rem "Prata", serif; letter-spacing: .3em; color: var(--muted); }

/* buttons */
.cta { display: grid; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 22px; border-radius: 16px;
  font: 500 1.06rem "Heebo", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-gold { background: var(--foil); background-size: 160% 100%; color: var(--btn-ink); font-weight: 700; box-shadow: 0 12px 30px -12px rgba(201, 158, 85, .7); }
.btn-gold:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-ghost { background: var(--tile); color: var(--ink); border-color: var(--gold-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--tile-hover); }
.btn-ghost .ic { color: var(--gold); }
.cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cta-row .btn { padding: 10px 12px; font-size: 1rem; }
@media (max-width: 359px) { .cta-row { grid-template-columns: minmax(0, 1fr); } }
.cta-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: -2px; }

/* panels */
.panel { position: relative; background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 22px; padding: 20px 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 400 1.45rem/1.2 "Bellefair", "Heebo", serif; color: var(--ink); }
.h2 .ic { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* contact actions */
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; }
.acts > .act { flex: 0 0 33.333%; }
.act { display: grid; justify-items: center; gap: 6px; text-decoration: none; padding: 4px 2px; border-radius: 14px; }
.act-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--tile); border: 1px solid var(--gold-line); color: var(--gold);
  transition: transform .25s, background .25s, box-shadow .25s; }
.act-ic .ic { width: 26px; height: 26px; }
.act:hover .act-ic { background: var(--tile-hover); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(201, 158, 85, .8); }
.act-l { font-size: .9rem; font-weight: 500; text-align: center; }

/* share */
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sbtn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: var(--tile); color: var(--ink);
  border: 1px solid var(--panel-brd); font: 500 .95rem/1.25 "Heebo", sans-serif; text-decoration: none; cursor: pointer; text-align: start; transition: background .2s, border-color .2s; }
.sbtn:hover { background: var(--tile-hover); border-color: var(--gold-line); }
.sbtn .ic { color: var(--gold); }
.sbtn-wa { grid-column: 1 / -1; justify-content: center; min-height: 56px; border-color: var(--gold-line); font-weight: 700; font-size: 1.02rem; }
.sbtn-wa .ic { color: #25D366; }
.sbtn-span { grid-column: 1 / -1; justify-content: center; }
[data-theme="light"] .sbtn-wa .ic { color: #128C4A; }
.link-box { margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--gold-line); font: 400 .88rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--muted); overflow-wrap: anywhere; text-align: center; }
.status { min-height: 1.4em; margin-top: 8px; text-align: center; color: var(--gold); font-weight: 500; }
#iosHint { margin-top: 10px; }

/* details rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--panel-brd); }
.row:first-child { border-top: 0; }
.row-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tile); color: var(--gold); flex: none; }
.row-t { display: grid; min-width: 0; flex: 1; }
.row-l { font-size: .82rem; color: var(--muted); }
.row-v { overflow-wrap: anywhere; }
.row-v a { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.row-v a:hover { text-decoration-color: currentColor; }
.copy { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.copy:hover { color: var(--gold); border-color: var(--panel-brd); }
.copy.done { color: var(--gold); }
.rows.plain li { padding: 4px 0; border: 0; display: block; }

/* practice areas */
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.area { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--tile); border: 1px solid var(--panel-brd); }
.area-n { font: 400 1.25rem/1.2 "Prata", serif; color: var(--gold); min-width: 2ch; }
.area h3 { margin: 0; font: 500 1.02rem/1.35 "Heebo", sans-serif; }
.area p { color: var(--muted); font-size: .92rem; }
.about-h { margin: 18px 0 4px; font: 400 1.2rem "Bellefair", "Heebo", serif; color: var(--gold); }
.about { color: var(--ink); }

/* desktop QR aside */
.desk-qr { display: none; }
@media (min-width: 960px) { .desk-qr { display: block; position: sticky; top: 32px; }
  .desk-qr-in { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 22px; padding: 22px; text-align: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .desk-qr .h2 { justify-content: center; font-size: 1.3rem; } }
.qr-box { background: var(--qr-bg); border-radius: 18px; padding: 14px; margin: 6px auto 12px; width: 220px; box-shadow: 0 0 0 1px var(--gold-line), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.qr-box svg, .qr-big svg { width: 100%; height: auto; }

/* QR dialog */
.qr-dialog { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; background: var(--bg); color: var(--ink); }
.qr-dialog::backdrop { background: rgba(5, 13, 28, .7); }
.qr-dialog[open] { display: grid; place-items: center; animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: scale(.97); } }
.qr-dialog-in { display: grid; justify-items: center; gap: 10px; padding: 24px 20px; text-align: center; width: min(100%, 460px); }
.qr-mono { width: 56px; height: 56px; }
.qr-dialog h2 { margin: 0; font: 400 1.6rem/1.2 "Bellefair", "Heebo", serif; }
.qr-big { width: min(78vw, 360px, 52dvh); background: #fff; padding: 18px; border-radius: 22px; box-shadow: 0 0 0 1.5px var(--gold-line), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.qr-name { font-weight: 500; color: var(--gold); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* doc page */
.page-doc main.doc { max-width: 760px; margin: 12px auto 24px; padding: 26px 22px; display: block; }
.doc-h1 { margin: 0 0 14px; font: 400 2.1rem/1.15 "Bellefair", "Heebo", serif; color: var(--gold); }
.doc h2 { font: 500 1.15rem "Heebo", sans-serif; margin: 22px 0 6px; color: var(--ink); }
.doc p, .doc li { line-height: 1.75; }
.doc .bul { padding-inline-start: 1.2em; margin: 0; }
.doc a:not(.btn) { color: var(--ink); text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.doc .btn { margin-top: 22px; }
[dir="rtl"] .flip { transform: scaleX(-1); display: inline-flex; }

/* footer */
.foot { max-width: 1100px; margin: 0 auto; padding: 8px 18px max(28px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }
.foot a { color: var(--ink); text-decoration-color: var(--gold-line); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.row-v a { display: inline-flex; align-items: center; min-height: 44px; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero, .panel { animation: up .8s cubic-bezier(.2, .8, .2, 1) both; }
  .panel:nth-of-type(2) { animation-delay: .08s; } .panel:nth-of-type(3) { animation-delay: .14s; } .panel:nth-of-type(4) { animation-delay: .2s; }
}
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sheen { display: none; }
  .card3d { transform: none !important; }
}
@media (max-width: 360px) {
  .acts { gap: 12px 4px; } .act-ic { width: 54px; height: 54px; }
  .share-grid { grid-template-columns: minmax(0, 1fr); }
  .card3d { padding: 28px 16px 22px; }
}
@media print { .bg, .topbar, .share, .desk-qr, .foot, .cta .btn-ghost { display: none !important; } body { background: #fff; color: #000; } }
