@font-face {
    font-family: "Lora";
    src: url("fonts/lora-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("fonts/public-sans-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("fonts/public-sans-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
}

:root {
    --navy-950: #262c34;
    --navy-900: #2c4c6e;
    --navy-800: #4a7396;
    --paper: #f8f6f3;
    --muted: #626d79;
    --line: rgba(44, 76, 110, 0.14);
    --gold: #4a7396;
    --gold-light: #d6e4ef;
    --shadow: 0 26px 70px -26px rgba(44, 76, 110, 0.42);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--navy-950);
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 14% 8%, rgba(169, 198, 222, 0.48), transparent 34%),
        radial-gradient(circle at 90% 88%, rgba(214, 228, 239, 0.66), transparent 31%),
        var(--paper);
    overflow-x: hidden;
}

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

.ambient {
    position: fixed;
    width: 23rem;
    height: 23rem;
    border: 1px solid rgba(74, 115, 150, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.ambient::before {
    content: "";
    position: absolute;
    inset: 25%;
    border: inherit;
    border-radius: inherit;
}

.ambient-one { top: -14rem; right: -10rem; }
.ambient-two { bottom: -16rem; left: -13rem; transform: scale(1.25); }

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.business-card {
    position: relative;
    width: min(100%, 41rem);
    overflow: hidden;
    border: 1px solid rgba(44, 76, 110, 0.11);
    border-radius: 1.5rem;
    padding: clamp(1.35rem, 4vw, 2.35rem);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.business-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 22rem;
    height: 22rem;
    top: -15rem;
    right: -10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(169, 198, 222, 0.22), transparent 68%);
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-align: center;
}

.topline-rule { width: 2rem; height: 1px; background: rgba(74, 115, 150, 0.45); }

.identity {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    margin-top: clamp(1.4rem, 5vw, 2.2rem);
    text-align: center;
}

.monogram {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(4.8rem, 16vw, 6.2rem);
    aspect-ratio: 1;
    border: 1px solid rgba(74, 115, 150, 0.28);
    border-radius: 50%;
    background: linear-gradient(145deg, #4a7396, #2c4c6e);
    box-shadow: inset 0 0 0 0.38rem rgba(255, 255, 255, 0.035), 0 14px 28px rgba(44, 76, 110, 0.18);
}

.monogram::after {
    content: "";
    position: absolute;
    inset: 0.42rem;
    border: 1px solid rgba(214, 228, 239, 0.4);
    border-radius: inherit;
}

.monogram span {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(1.55rem, 5.4vw, 2.15rem);
    letter-spacing: 0.06em;
    color: var(--gold-light);
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1, h2 {
    margin: 0;
    font-family: "Lora", Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.15rem, 7vw, 3.5rem); line-height: 1.05; color: var(--navy-950); }
.title { margin: 0.62rem 0 0; color: var(--navy-800); font-size: clamp(1rem, 2.8vw, 1.16rem); }
.current-role { margin: 0.34rem 0 0; color: var(--muted); font-size: 0.87rem; line-height: 1.5; }

.primary-actions {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 0.7rem;
    margin-top: clamp(1.45rem, 4vw, 1.9rem);
}

.button {
    min-height: 3.15rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: #fff; background: linear-gradient(135deg, #4a7396, var(--navy-900)); }
.button-secondary { color: var(--navy-900); border-color: var(--line); background: rgba(11, 32, 55, 0.035); }
.button-secondary:hover { background: rgba(11, 32, 55, 0.07); border-color: rgba(11, 32, 55, 0.2); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.contact-item {
    width: 100%;
    min-width: 0;
    min-height: 4.2rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    color: var(--navy-950);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.5);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.contact-item:hover { background: #fff; border-color: rgba(74, 115, 150, 0.4); }
.contact-item small, .contact-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-item small { margin-bottom: 0.16rem; color: var(--muted); font-size: 0.71rem; }
.contact-item strong { font-size: 0.82rem; font-weight: 500; }
.contact-icon { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 0.7rem; background: rgba(11, 32, 55, 0.06); color: var(--navy-800); }
.contact-icon svg, .arrow, .location svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon svg { width: 1.12rem; }
.arrow { width: 0.95rem; color: #83909d; }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.location { display: inline-flex; align-items: center; gap: 0.42rem; }
.location svg { width: 0.95rem; }

.qr-dialog {
    width: min(calc(100% - 2rem), 23rem);
    border: 1px solid rgba(169, 198, 222, 0.35);
    border-radius: 1.35rem;
    padding: 0;
    color: #fff;
    background: #2c4c6e;
    box-shadow: var(--shadow);
}

.qr-dialog::backdrop { background: rgba(1, 7, 14, 0.78); backdrop-filter: blur(7px); }
.dialog-inner { position: relative; padding: 1.6rem; text-align: center; }
.dialog-inner h2 { font-size: 2rem; }
.dialog-close { position: absolute; top: 0.7rem; right: 0.75rem; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; color: #b7c0ca; background: rgba(255, 255, 255, 0.06); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.qr-frame { width: fit-content; margin: 1.2rem auto 0; padding: 0.7rem; border-radius: 0.95rem; background: #fff; }
.qr-frame img { display: block; width: min(58vw, 15rem); height: auto; }
.qr-url { margin: 0.85rem 0 0; color: #b7c0ca; font-size: 0.82rem; }

.toast {
    position: fixed;
    left: 50%;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    z-index: 5;
    transform: translate(-50%, 1rem);
    opacity: 0;
    pointer-events: none;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    background: #2c4c6e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    font-size: 0.84rem;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
:focus-visible { outline: 3px solid rgba(74, 115, 150, 0.72); outline-offset: 3px; }

@media (max-width: 560px) {
    .page-shell { align-items: start; padding-top: max(0.75rem, env(safe-area-inset-top)); }
    .business-card { border-radius: 1.25rem; }
    .card-topline { font-size: 0.62rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-item { min-height: 3.9rem; }
}

@media (max-width: 390px) {
    .primary-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
    body { background: #fff; }
    .ambient, .primary-actions, .qr-dialog, .toast { display: none; }
    .page-shell { padding: 0; }
    .business-card { box-shadow: none; border-radius: 0; }
}
