
.hofPage {
	--hof-red: #E90802;
	--hof-black: #111;
	--hof-muted: #606060;
	--hof-rule: #e5e5e5;
	--hof-surface: #f5f5f5;
	--hof-radius: 0.2rem;
	--hof-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.hofPage [hidden] {
	display: none !important;
}

.hofPage inventor-hall,
.hofPage inventor-profile {
	width: 100%;
	min-width: 0;
	display: block;
}

.hofInitialState {
	padding: 2rem;
	background: var(--hof-surface);
	color: var(--hof-muted);
	text-align: center;
}


/* ==================================================
   ABOUT / EDITORIAL INTRO
   ================================================== */

.hofAbout {
	padding: clamp(2.75rem, 6vw, 5.5rem) 0;
	display: grid;
	grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.hofSectionHeading h2,
.hofAboutCopy p,
.hofContact h2,
.hofContact p {
	margin-top: 0;
}

.hofSectionHeading h2 {
	max-width: 15ch;
	margin-bottom: 0;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.hofAboutCopy {
	max-width: 72ch;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.hofAboutCopy p {
	margin-bottom: 0;
	line-height: 1.75;
}


/* ==================================================
   DIRECTORY SHELL
   ================================================== */

.hofDirectory {
	padding: 0 0 clamp(4rem, 7vw, 7rem);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.hofDirectoryHeader {
	padding-top: 2rem;
	border-top: 1px solid var(--hof-rule);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hofDirectoryHeader h2,
.hofDirectoryHeader p {
	margin: 0;
}

.hofDirectoryHeader h2 {
	font-weight: 400;
	letter-spacing: -0.02em;
}

.hofDirectoryIntro {
	max-width: 64ch;
	color: var(--hof-muted);
	line-height: 1.6;
}


/* ==================================================
   FILTERS
   ================================================== */

.hofControls {
	padding: 1rem;
	border: 1px solid var(--hof-rule);
	border-radius: var(--hof-radius);
	background: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hofSearchRow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
}

.hofSearchLabel {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hofSearchLabel > span {
	margin: 0;
	padding: 0;
	color: var(--hof-red);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hofSearchInput {
	box-sizing: border-box;
	width: 100%;
	height: 3rem;
	margin: 0;
	padding: 0.7rem 0.8rem;
	border: 1px solid #000;
	border-radius: var(--hof-radius);
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
}

.hofSearchInput:hover {
	border-color: var(--hof-red);
}

.hofSearchInput:focus {
	outline: none;
}

.hofSearchInput:focus-visible {
	border-color: var(--hof-red);
	outline: 3px solid var(--hof-red);
	outline-offset: 2px;
}

.hofResetButton {
	min-width: 8rem;
	margin-bottom: 0.15rem; 
}

.hofInstitutionFilters {
	width: fit-content;
	max-width: 100%;
	padding: 0.3rem;
	overflow-x: auto;
	display: flex;
	gap: 0.25rem;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 0.35rem;
	background: #f0f0f0;
	scrollbar-width: none;
}

.hofInstitutionFilters::-webkit-scrollbar {
	display: none;
}

.hofFilterButton {
	all: unset;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	border-radius: 0.2rem;
	color: #555;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.hofFilterButton::before,
.hofFilterButton::after {
	content: none !important;
	display: none !important;
}

.hofFilterButton:hover,
.hofFilterButton:focus-visible,
.hofFilterButton[aria-pressed="true"] {
	background: var(--hof-red);
	color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.08);
}

.hofFilterButton:focus {
	outline: none;
}

.hofFilterButton:focus-visible {
	outline: 3px solid var(--hof-red);
	outline-offset: 2px;
}

.hofMeta {
	min-height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.hofResultsCount {
	margin: 0;
	color: var(--hof-muted);
	font-size: 0.9rem;
}


/* ==================================================
   MEMBER SECTIONS
   ================================================== */

.hofMemberSection {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hofMemberSectionHeader {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
	padding: 1rem; 
}

.hofMemberSectionHeader h3,
.hofMemberSectionHeader p {
	margin: 0;
}

.hofMemberSectionHeader h3 {
	font-size: clamp(1.4rem, 2vw, 1.9rem);
	font-weight: 400;
	letter-spacing: -0.02em;
}

.hofMemberSectionHeader p {
	max-width: 62ch;
	justify-self: end;
	color: var(--hof-muted);
	line-height: 1.6;
}

.hofFormerSection {
	margin-top: clamp(2rem, 5vw, 4rem);
	padding-top: clamp(2rem, 4vw, 3.5rem);
	border-top: 5px solid var(--hof-red);
}

.hofGrid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

.hofEmptyState,
.hofErrorState {
	padding: 2rem;
	border: 1px solid var(--hof-rule);
	background: #fafafa;
	color: var(--hof-muted);
}

.hofErrorState strong {
	color: #000;
}


/* ==================================================
   INVENTOR CARD
   ================================================== */

.hofCard {
	min-width: 0;
	margin: 0;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border: 1px solid var(--hof-rule);
	border-radius: var(--hof-radius);
	background: linear-gradient(145deg, #fff 0%, #fafafa 100%);
	box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 5px 16px rgba(0,0,0,0.055);
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

/* Subtle color wash behind the inset card content. */
.hofCard::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(135deg, rgba(233, 8, 2, 0.075), transparent 45%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

/* Red registration line, matching the resource-browser interaction language. */
.hofCard::before {
	content: "";
	width: 2.75rem;
	height: 3px;
	position: absolute;
	top: 0;
	left: 1rem;
	z-index: 3;
	background: var(--hof-red);
	transform-origin: left center;
	transition: width 0.25s ease;
}

.hofCard:hover,
.hofCard:focus-within {
	border-color: rgba(0, 0, 0, 0.14);
	box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.10);
	transform: translateY(-4px) scale(1.012);
}

.hofCard:hover::after,
.hofCard:focus-within::after {
	opacity: 1;
}

.hofCard:hover::before,
.hofCard:focus-within::before {
	width: calc(100% - 2rem);
}

.hofCardLink {
	box-sizing: border-box;
	height: 100%;
	padding: 0.65rem;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	color: #000 !important;
	text-decoration: none !important;
}

/* TTU's template underlines child headings/paragraphs inside links. Kill that here. */
.l-main-pagecontent .hofCardLink,
.l-main-pagecontent .hofCardLink :is(h1, h2, h3, h4, h5, h6, p, span, div) {
	text-decoration: none !important;
	text-decoration-line: none !important;
	text-decoration-color: transparent !important;
	text-decoration-thickness: 0 !important;
}

.hofCardLink:focus {
	outline: none;
}

.hofCardLink:focus-visible {
	outline: 3px solid var(--hof-red);
	outline-offset: -3px;
}

.hofCardMedia {
	min-width: 100%; 
	width: 100%;
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
	border-radius: 0.15rem;
/* 	background: linear-gradient(
		145deg,
		#fdfdfd,
		#f7f7f7
	); */
}

.hofCardImage {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: 50% 15%;
	transition:
		transform 0.55s
		cubic-bezier(0.22, 1, 0.36, 1);
}

/* .hofCardMedia {
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
	border-radius: 0.15rem;
	background:
		radial-gradient(circle at 75% 20%, rgba(233,8,2,0.08), transparent 35%),
		linear-gradient(145deg, #f5f5f5, #e9e9e9);
}

.hofCardImage {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 0.45rem;
	display: block;
	object-fit: contain;
	object-position: center center;
	transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
} */

.hofCard:hover .hofCardImage,
.hofCard:focus-within .hofCardImage {
	transform: scale(1.025);
}

.hofImageFallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(0,0,0,0.2);
	font-size: clamp(2.25rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.05em;
}

.hofImageFallback + img {
	position: relative;
	z-index: 1;
}


.hofCardBadges {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	display: flex;
	pointer-events: none;
}


/* .hofCardBadges {
	padding: 0.65rem;
	position: absolute;
	inset: 0 0 auto;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	pointer-events: none;
} */

.hofBadge {
	width: fit-content;
	padding: 0.3rem 0.5rem;
	border-radius: 0.15rem;
	background: rgba(255,255,255,0.94);
	color: #000;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.15;
	box-shadow: 0 1px 5px rgba(0,0,0,0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.hofCardBody {
	padding: 1rem 0.55rem 0.55rem;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.4rem;
}

.hofCardName {
	margin: 0 !important;
	color: #111 !important;
	font-size: clamp(1.1rem, 1.35vw, 1.35rem) !important;
	font-weight: 700 !important;
	line-height: 1.16 !important;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.hofCardDesignation,
.hofCardInstitution {
	margin: 0 !important;
	line-height: 1.4;
}

.hofCardDesignation {
	color: #222 !important;
	font-size: 0.9rem;
	font-weight: 600;
}

.hofCardInstitution {
	color: var(--hof-muted) !important;
	font-size: 0.82rem;
	font-weight: 600;
}

.hofCardChips {
	margin-top: 0.4rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.hofChip {
	width: fit-content;
	padding: 0.28rem 0.45rem;
	border-radius: 0.15rem;
	background: #111;
	color: #fff !important;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
}

.hofCardPatentStat {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	border-top: 1px solid var(--hof-rule);
}

.hofCardPatentNumber {
	color: var(--hof-red) !important;
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.hofCardPatentLabel {
	color: #333 !important;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.hofCardAction {
	margin-top: auto;
	padding-top: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #111 !important;
	font-size: 0.82rem;
	font-weight: 700;
}

.hofCardActionArrow {
	color: var(--hof-red) !important;
	font-size: 1.2em;
	transition: transform 0.2s ease;
}

.hofCard:hover .hofCardAction,
.hofCard:focus-within .hofCardAction {
	color: var(--hof-red) !important;
}

.hofCard:hover .hofCardActionArrow,
.hofCard:focus-within .hofCardActionArrow {
	transform: translateX(4px);
}

.hofFormerSection .hofCard {
	background: linear-gradient(145deg, #fff 0%, #f8f8f8 100%);
}


/* ==================================================
   CONTACT
   ================================================== */

.hofContact {
	margin-bottom: clamp(3rem, 6vw, 6rem);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	border-left: 5px solid var(--hof-red);
	background: var(--ri-card-gradient, linear-gradient(145deg, #fff, #f3f3f3));
}

.hofContact > div {
	max-width: 62ch;
}

.hofContact h2 {
	font-weight: 400;
	letter-spacing: -0.02em;
}

.hofContact p:last-child {
	margin-bottom: 0;
}


/* ==================================================
   PROFILE PAGE
   ================================================== */

.hofProfilePage .mainWrap {
	padding-top: clamp(1rem, 3vw, 2rem);
}

.hofProfile {
	padding: clamp(1rem, 2vw, 2rem) 0 clamp(4rem, 7vw, 7rem);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.hofProfileBack {
	width: fit-content;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: .25rem .5rem; 
	border-radius: 0.15rem; 
	color: white !important;
	font-weight: 700;
	text-decoration: none !important;
	background-color: var(--hof-red); 
}

.hofProfileBack:hover,
.hofProfileBack:focus {
	color: white !important;
	background-color: black !important; 
}

.hofProfileHero {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: stretch;
}

.hofProfileMedia {
	min-height: 460px;
	position: relative;
	overflow: hidden;
	border-radius: var(--hof-radius);
	background:
		radial-gradient(circle at 75% 20%, rgba(233,8,2,0.11), transparent 35%),
		linear-gradient(145deg, #f5f5f5, #e8e8e8);
	box-shadow: var(--ri-shadow-image, 0 2px 8px rgba(0,0,0,0.12));
}

.hofProfileMedia img {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	display: block;
	object-fit: cover;
	object-position: center;
}

.hofProfileMedia .hofImageFallback {
	font-size: clamp(4rem, 10vw, 8rem);
}

.hofProfileSummary {
	padding: clamp(1rem, 2vw, 2rem) 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
}

.hofProfileKicker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hofProfileKicker .hofChip:first-child {
	background: #000;
	color: #fff;
}

.hofProfileName {
	max-width: 14ch;
	margin: 0 !important;
	font-size: clamp(2.2rem, 5vw, 4.5rem) !important;
	font-weight: 400 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.hofProfileDesignation,
.hofProfileDepartment {
	max-width: 55ch;
	margin: 0;
	line-height: 1.5;
}

.hofProfileDesignation {
	font-size: clamp(1.1rem, 1.6vw, 1.35rem);
	font-weight: 700;
}

.hofProfileDepartment {
	color: var(--hof-muted);
}

.hofProfileFacts {
	margin: 0.75rem 0 0;
	display: grid;
	grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
	gap: 0;
}

.hofProfileFacts > div {
	display: contents;
}

.hofProfileFacts dt,
.hofProfileFacts dd {
	margin: 0;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--hof-rule);
}

.hofProfileFacts dt {
	padding-right: 1rem;
	font-weight: 700;
}

.hofProfileFacts dd {
	min-width: 0;
	overflow-wrap: anywhere;
}

.hofProfileBody {
	padding-top: clamp(2rem, 5vw, 4rem);
	border-top: 1px solid var(--hof-rule);
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
	gap: clamp(2rem, 5vw, 5rem);
}

.hofProfileBio,
.hofProfileHighlights,
.hofCelebration {
	min-width: 0;
}

.hofProfileBody h2 {
	margin-top: 0;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.hofProfileBioCopy {
	max-width: 72ch;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hofProfileBioCopy p {
	margin: 0;
	line-height: 1.75;
}

.hofProfileHighlights ul {
	margin: 0;
	padding-left: 1.25rem;
}

.hofProfileHighlights li + li {
	margin-top: 0.75rem;
}

.hofForthcoming {
	padding: 1rem;
	border-left: 3px solid var(--hof-red);
	background: var(--hof-surface);
	color: var(--hof-muted);
}

.hofCelebration {
	grid-column: 1 / -1;
	padding-top: 2rem;
	border-top: 1px solid var(--hof-rule);
}

.hofCelebration figure {
	margin: 0;
	max-width: 900px;
}

.hofCelebration img {
	width: 100%;
	height: auto;
	display: block;
}

.hofCelebration figcaption {
	margin-top: 0.65rem;
	color: var(--hof-muted);
	font-size: 0.9rem;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1000px) {
	.hofGrid {
		max-width: 35rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hofProfileHero {
		grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
	}
}

@media (max-width: 760px) {
	.hofAbout,
	.hofMemberSectionHeader,
	.hofProfileHero,
	.hofProfileBody {
		grid-template-columns: minmax(0, 1fr);
	}

	.hofSectionHeading h2 {
		max-width: 22ch;
	}

	.hofMemberSectionHeader p {
		justify-self: start;
	}

	.hofSearchRow {
		grid-template-columns: minmax(0, 1fr);
	}

	.hofResetButton {
		width: 100% !important;
	}

	.hofProfileMedia {
		min-height: 0;
		aspect-ratio: 1 / 1;
		max-width: 34rem;
	}

	.hofProfileSummary {
		padding-top: 0;
	}

	.hofProfileName {
		max-width: 18ch;
	}

	.hofProfileFacts {
		grid-template-columns: minmax(0, 1fr);
	}

	.hofProfileFacts > div {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		padding: 0.65rem 0;
		border-bottom: 1px solid var(--hof-rule);
	}

	.hofProfileFacts dt,
	.hofProfileFacts dd {
		padding: 0;
		border: 0;
	}

	.hofContact {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.hofGrid {
		max-width: 20rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.hofControls {
		padding: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hofPage .hofCard,
	.hofPage .hofCard::before,
	.hofPage .hofCard::after,
	.hofPage .hofCardImage,
	.hofPage .hofCardActionArrow,
	.hofPage .hofFilterButton {
		transition: none !important;
	}

	.hofPage .hofCard:hover,
	.hofPage .hofCard:focus-within {
		transform: none;
	}
}
