:root {
  color-scheme: light;
  --bg: #f8f0e8;
  --bg-soft: #fffaf4;
  --ink: #2b160e;
  --muted: #705e52;
  --gold: #bf8e37;
  --gold-soft: #e4c888;
  --line: rgba(43, 22, 14, 0.13);
  --line-gold: rgba(191, 142, 55, 0.34);
  --shadow: 0 18px 48px rgba(43, 22, 14, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(115deg, transparent 0 26%, rgba(191, 142, 55, 0.08) 26.1%, transparent 26.45%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.86), transparent 26rem),
    linear-gradient(180deg, #fffaf4, var(--bg));
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(43, 22, 14, 0.04) 50%, transparent),
    radial-gradient(ellipse at 72% 17%, rgba(43, 22, 14, 0.05), transparent 18rem);
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.bio-page {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(28px, 7vw, 54px) 18px 34px;
}

.bio-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: clamp(142px, 40vw, 208px);
  margin-bottom: 18px;
  border-radius: 50%;
}

.avatar-wrap::before,
.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.avatar-wrap::after {
  inset: -13px;
  border-color: rgba(191, 142, 55, 0.24);
}

.avatar-wrap img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.monogram {
  position: absolute;
  left: 50%;
  bottom: -28px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.94);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(43, 22, 14, 0.12);
}

.name {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 4rem);
  line-height: 1;
}

.title,
.kicker {
  margin: 9px 0 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.divider {
  width: min(220px, 58vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 30px;
}

.divider::before,
.divider::after,
.seal span {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: var(--bg-soft);
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  max-width: 660px;
  font-size: clamp(2.05rem, 8.6vw, 4.1rem);
}

.intro {
  max-width: 600px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  line-height: 1.72;
}

.links {
  display: grid;
  gap: 14px;
}

.link-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  background: rgba(255, 250, 244, 0.72);
  box-shadow: 0 12px 34px rgba(43, 22, 14, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(191, 142, 55, 0.48);
  box-shadow: 0 18px 45px rgba(43, 22, 14, 0.13);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(191, 142, 55, 0.22);
  border-radius: 50%;
  background: rgba(191, 142, 55, 0.06);
  color: var(--gold);
}

.link-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.link-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.8vw, 1.62rem);
  font-weight: 400;
  line-height: 1.14;
}

.chevron {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.expert {
  display: grid;
  gap: 24px;
  margin-top: 42px;
  padding-top: 40px;
  border-top: 1px solid rgba(191, 142, 55, 0.18);
}

.portrait {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 250, 244, 0.72);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.expert-copy {
  text-align: left;
}

.expert-copy h2 {
  margin-top: 12px;
  color: var(--gold);
  font-size: clamp(3rem, 14vw, 5.2rem);
}

.role {
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-transform: uppercase;
}

.expert-copy p:not(.kicker):not(.role):not(.signature) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.signature {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3.3rem);
  line-height: 1.08;
}

.footer {
  margin-top: 32px;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  background: rgba(255, 250, 244, 0.44);
}

.seal {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(320px, 82%);
  margin: 0 auto 16px;
  color: var(--gold);
}

.seal svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.footer p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}

.footer strong {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  line-height: 1.65;
  text-transform: uppercase;
}

.footer small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  animation: none;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .bio-page {
    padding-top: 64px;
    width: min(100%, 920px);
  }

  .link-card {
    min-height: 100px;
    grid-template-columns: 76px minmax(0, 1fr) 26px;
    padding: 18px 24px;
  }

  .link-icon {
    width: 66px;
    height: 66px;
  }

  .expert {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    width: 100%;
    margin-inline: auto;
    padding-top: 56px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
