.reference-hero {
  position: relative;
  overflow: hidden;
  min-height: 556px;
}

.reference-hero::before,
.reference-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(154,37,59,.08);
  transform: rotate(30deg);
  pointer-events: none;
}

.reference-hero::before { width: 420px; height: 360px; left: -250px; top: 80px; }
.reference-hero::after { width: 310px; height: 270px; right: -190px; top: 145px; }

.hero-inner {
  min-height: 556px;
  display: grid;
  grid-template-columns: 622px 1fr;
  gap: 45px;
  align-items: center;
  padding-block: 70px 40px;
}

.reference-hero-copy { max-width: 622px; transform: translateY(7px); }

.lab-expansion {
  margin: 0 0 22px;
  color: var(--accent);
  font: 600 clamp(16px, 2vw, 22px)/1.4 var(--sans);
  letter-spacing: -.015em;
  white-space: nowrap;
}

.mono-intro,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font: 500 18px/1.55 var(--mono);
}

.mono-intro { margin-bottom: 28px; }

.reference-hero h1 {
  margin: 0 0 20px;
  font: 400 60px/1.05 var(--serif);
  letter-spacing: -.04em;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.reference-profile { width: 320px; align-self: center; transform: translateY(40px); }

.reference-photo {
  width: 320px;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(rgba(33,26,27,.02), rgba(33,26,27,.05)), url('https://shekharravi.github.io/author/ravi-shekhar/avatar_hu4752bbade52f7817bace9862d07a4a45_1842455_270x270_fill_q90_lanczos_center.jpg') center/cover;
  filter: saturate(.68);
}

.circle-links { justify-content: center; margin-top: 0; }

.reference-news { padding-block: 19px 24px; }

.reference-news h2,
.reference-explore h2 {
  margin: 0 0 24px;
  font: 400 36px/1.1 var(--serif);
  letter-spacing: -.025em;
}

.reference-news-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(154,37,59,.25);
  border-radius: 16px;
  background: var(--accent-soft);
  transition: border-color .2s;
}

.reference-news-card:hover { border-color: rgba(154,37,59,.62); }

.news-badge {
  flex: 0 0 160px;
  color: var(--accent);
  font: 500 11px/1.5 var(--mono);
}

.reference-news-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reference-news-card strong { color: var(--ink); }

.news-cta {
  flex: 0 0 112px;
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font: 500 11px/1.5 var(--mono);
}

.browse-news-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.browse-news-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font: 500 11px/1.5 var(--mono);
}

.browse-news-link span { transition: transform .2s; }
.browse-news-link:hover span { transform: translateX(3px); }

.reference-explore { padding-block: 40px 80px; }
.reference-explore h2 { margin-bottom: 10px; }

.explore-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.reference-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reference-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  transition: transform .2s;
}

.reference-card:nth-child(2),
.reference-card:nth-child(3) { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); }
.reference-card:hover { transform: translateY(-2px); }
.reference-card > div { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

.reference-card p { margin: 0; font-size: 13px; }
.reference-card > div > p:first-child { font: 500 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.reference-card h3 { margin: 5px 0 7px; font: 400 28px/1.1 var(--serif); }
.reference-card > div > span { display: flex; justify-content: space-between; margin-top: auto; font: 500 11px/1.5 var(--mono); }

.card-orbit {
  position: absolute;
  z-index: 1;
  top: -35px;
  right: -28px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transition: transform .5s;
}

.card-orbit::before,
.card-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}

.card-orbit::before { inset: 22px; }
.card-orbit::after { inset: 48px; background: rgba(255,255,255,.08); }
.orbit-two { border-radius: 35% 65% 45% 55%; transform: rotate(24deg); }
.orbit-three { width: 190px; height: 125px; border-radius: 50%; transform: rotate(-22deg); }
.orbit-four::after { inset: 38px; border-radius: 0; transform: rotate(45deg); }
.reference-card:hover .card-orbit { transform: scale(1.1) rotate(8deg); }

@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: minmax(0,1.25fr) minmax(240px,.75fr); gap: 32px; }
  .reference-profile,
  .reference-photo { width: min(100%, 290px); }
  .reference-photo { height: auto; aspect-ratio: 1; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1.35fr .65fr; gap: 32px; }
  .reference-photo { width: 250px; height: 250px; }
  .circle-links a { width: 39px; height: 39px; }
}

@media (max-width: 650px) {
  .reference-hero { min-height: auto; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-block: 50px; }
  .reference-hero h1 { font-size: 48px; }
  .reference-hero-copy { transform: none; }
  .lab-expansion { white-space: normal; }
  .reference-photo { width: 100%; height: min(85vw, 360px); }
  .reference-profile { width: 100%; transform: none; }
  .reference-news-card { align-items: flex-start; flex-direction: column; gap: 10px; }
  .news-badge, .news-cta { flex-basis: auto; width: 100%; }
  .reference-card-grid { grid-template-columns: 1fr; }
  .reference-card { height: 300px; }
  .reference-news { padding-top: 12px; }
}

@media (max-width: 420px) {
  .reference-hero h1 { font-size: clamp(39px, 13vw, 48px); }
  .mono-intro, .section-label { font-size: 15px; }
  .reference-news-card { padding: 18px; }
  .reference-card { height: auto; min-height: 260px; padding: 23px; }
}

.hero-summary a { color: inherit; text-decoration: none; transition: color .2s ease; }
.hero-summary a:hover, .hero-summary a:focus-visible { color: var(--accent); text-decoration: none; }
