:root {
  --text: #eceae4;
  --soft: #a9adb3;
  --gold: #cfa95e;
  --gold-hi: #f1dca4;
  --gold-grad: linear-gradient(180deg, #f6e6b6 0%, #d8b46a 50%, #a6823f 100%);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  font-family: var(--sans);
  color: var(--text);
  background-color: #121418;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(150,156,166,.20), transparent 75%),
    url(../images/brand/brushed.jpg);
  background-size: auto, 1040px 630px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.card {
  width: 100%; max-width: 800px;
  aspect-ratio: 1.75 / 1;
  display: grid; grid-template-columns: 33% 1fr; align-items: center;
  padding: 0 40px 0 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.12)),
    url(../images/brand/brushed.jpg) center / 1040px 630px,
    #23272d;
  border: 1px solid rgba(207,169,94,.35);
  border-radius: 6px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    0 10px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.card::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(207,169,94,.12); border-radius: 3px; pointer-events: none;
}

.mark { display: flex; justify-content: center; }
.mark img { width: 100%; max-width: 250px; height: auto; display: block; }

.info { padding-left: 30px; border-left: 1px solid rgba(207,169,94,.35); display: flex; flex-direction: column; align-items: center; text-align: center; }
.name {
  font-family: var(--serif); font-weight: 600; font-size: 48px; line-height: 1; letter-spacing: .06em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title { margin-top: 18px; font-size: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.focus span { white-space: nowrap; }
.focus { margin-top: 8px; font-size: 16px; font-weight: 400; color: #c4c8ce; }
.certs { margin-top: 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--gold); }

.wl { position: relative; z-index: 3; color: inherit; cursor: default; }
.wl:hover, .wl:focus-visible { color: var(--gold-hi); outline: none; }
.wl-pop {
  position: fixed; z-index: 10; width: 340px; max-width: calc(100vw - 16px);
  padding: 6px; border-radius: 5px;
  background: rgba(20, 22, 26, .96); border: 1px solid rgba(207,169,94,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none;
}
.wl-pop[hidden] { display: none; }
.wl-pop img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; -webkit-user-drag: none; }
.cred { position: relative; z-index: 3; color: inherit; cursor: pointer; }
.cert-pop {
  position: fixed; z-index: 10; width: 174px; max-width: calc(100vw - 16px);
  padding: 7px 7px 5px; border-radius: 5px;
  background: rgba(20, 22, 26, .96); border: 1px solid rgba(207,169,94,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none;
}
.cert-pop[hidden] { display: none; }
.cert-pop img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.cert-pop-hint { margin-top: 4px; text-align: center; font-size: 10.5px; letter-spacing: .04em; color: var(--soft); }
@media print { .cert-pop { display: none !important; } }

@media (max-width: 680px) {
  .card { aspect-ratio: auto; grid-template-columns: 1fr; padding: 40px 28px 44px; }
  .mark img { max-width: 170px; }
  .info { padding-left: 0; border-left: 0; border-top: 1px solid rgba(207,169,94,.35); margin-top: 24px; padding-top: 26px; }
  .name { font-size: 40px; }
  .title { font-size: 14px; letter-spacing: .1em; }
  .focus { font-size: 15px; }
  .certs { font-size: 12px; letter-spacing: .16em; }
}

.card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 2; background: transparent; }
.mark img { pointer-events: none; -webkit-user-drag: none; }

body.nf { flex-direction: column; gap: 22px; }
.nf-banner {
  width: 100%; max-width: 800px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 14px 20px;
  background: rgba(20, 22, 26, .85);
  border: 1px solid rgba(207,169,94,.45); border-radius: 6px;
  font-size: 15px; color: var(--text);
}
.nf-banner p { margin: 0; }
.nf-banner strong { color: var(--gold-hi); font-weight: 600; }
.nf-btn {
  display: inline-block; padding: 9px 16px; border-radius: 4px;
  background: var(--gold-grad); color: #1a1508; font-weight: 600; font-size: 14px; letter-spacing: .03em;
  white-space: nowrap;
}
.nf-btn:hover { filter: brightness(1.08); }

.card .nf-banner {
  position: absolute; z-index: 3; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 64px);
  justify-content: center; text-align: center;
}
@media (max-width: 680px) {
  .card .nf-banner { position: static; transform: none; width: auto; max-width: 100%; margin-top: 28px; flex-direction: column; }
}

body { flex-direction: column; }
.contact-open {
  margin-top: 22px; padding: 4px 8px; border: 0; background: none; cursor: pointer;
  color: var(--gold); font: 400 16px/1.4 var(--sans);
}
.contact-open:hover, .contact-open:focus-visible { color: var(--gold-hi); outline: none; text-decoration: underline; text-underline-offset: 4px; }
body.nf .contact-open { margin-top: 0; }
@media (max-width: 680px) { .contact-open { font-size: 15px; } }
dialog.contact {
  width: min(460px, calc(100vw - 32px)); padding: 0; margin: auto;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.12)), url(../images/brand/brushed.jpg) center / 1040px 630px, #23272d;
  border: 1px solid rgba(207,169,94,.45); border-radius: 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
dialog.contact::backdrop { background: rgba(8, 9, 12, .7); }
.contact-form { position: relative; padding: 28px 28px 26px; display: flex; flex-direction: column; }
.contact-form h2 {
  font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: .06em; margin-bottom: 18px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; align-self: flex-start;
}
.contact-form label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 11px;
  font: 400 15px/1.4 var(--sans); color: var(--text);
  background: rgba(10, 11, 14, .55); border: 1px solid rgba(207,169,94,.3); border-radius: 4px;
  text-transform: none; letter-spacing: normal;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-send {
  align-self: flex-start; margin-top: 4px; padding: 10px 26px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--gold-grad); color: #1a1508; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.contact-send:hover, .contact-send:focus-visible { filter: brightness(1.08); outline: none; }
.contact-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--soft); font-size: 26px; line-height: 1;
}
.contact-close:hover, .contact-close:focus-visible { color: var(--gold-hi); outline: none; }
.contact-note { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; border-left: 3px solid var(--gold); background: rgba(10, 11, 14, .5); }
.contact-error { border-left-color: #d36b5f; }
