:root {
  color-scheme: dark;
  --ink: #f7f1e8;
  --muted: #c9c0b3;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --gold: #d9b66d;
  --gold-soft: #f1d89c;
  --navy: #14213d;
  --ruby: #6f1d1b;
  --green: #1b4332;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 182, 109, 0.35), transparent 28rem),
    radial-gradient(circle at 92% 16%, rgba(111, 29, 27, 0.42), transparent 24rem),
    linear-gradient(145deg, #0e172c 0%, var(--navy) 42%, var(--green) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 34px;
}

.profile {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0 26px;
}

.portrait-wrap {
  position: relative;
  display: grid;
  place-items: end center;
  width: 130px;
  aspect-ratio: 0.9;
  padding: 4px;
  border: 1px solid rgba(241, 216, 156, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(241, 216, 156, 0.28), transparent 58%),
    linear-gradient(160deg, rgba(241, 216, 156, 0.24), rgba(255, 255, 255, 0.07));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait {
  display: block;
  width: 116%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.3));
}

.brand-logo {
  display: block;
  width: min(178px, 100%);
  height: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(91%) sepia(32%) saturate(628%) hue-rotate(353deg) brightness(100%) contrast(91%);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.15rem, 12vw, 3.55rem);
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.28rem;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.actions,
.services,
.location {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover,
.link-card:focus-visible,
.topic-grid a:hover,
.topic-grid a:focus-visible,
.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 216, 156, 0.65);
  background: var(--panel-strong);
  outline: none;
}

.link-card.primary {
  border-color: rgba(217, 182, 109, 0.76);
  background: linear-gradient(135deg, rgba(217, 182, 109, 0.28), rgba(255, 255, 255, 0.12));
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(217, 182, 109, 0.18);
  color: var(--gold-soft);
  font-size: 1.15rem;
  font-weight: 800;
}

.link-card strong {
  display: block;
  font-size: 1rem;
}

.link-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.services {
  margin-top: 24px;
}

.section-heading {
  padding-top: 4px;
}

.service-groups {
  display: grid;
  gap: 12px;
}

.service-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.service-group h3 {
  color: var(--gold-soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.topic-grid a {
  display: grid;
  align-items: center;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.18;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.location {
  margin-top: 16px;
}

.compact {
  min-height: 68px;
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--gold-soft);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

footer {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.78rem;
}

footer strong {
  color: var(--ink);
}

@media (min-width: 700px) {
  .page-shell {
    width: min(100%, 760px);
    padding-top: 46px;
  }

  .profile {
    grid-template-columns: 230px 1fr;
    gap: 32px;
  }

  .portrait-wrap {
    width: 230px;
    border-radius: 22px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 14px;
  }

  .profile {
    grid-template-columns: 112px 1fr;
    gap: 14px;
  }

  .portrait-wrap {
    width: 112px;
  }

  .subtitle {
    font-size: 0.9rem;
  }
}
