﻿.project-discovery {
	min-width: 0;
}

.project-discovery-tabs {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	max-width: 100%;
	padding: 0.3rem;
	margin-bottom: 1rem;
	overflow-x: auto;
}

.project-discovery-tab {
	min-height: 2.55rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	padding: 0 1rem;
	color: var(--text-secondary);
	font-weight: 800;
	white-space: nowrap;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease;
}

.project-discovery-tab:hover {
	background: var(--btn-plain-bg-hover);
	color: var(--text-primary);
}

.project-discovery-tab[aria-selected="true"] {
	border-color: var(--theme-accent-border);
	background: var(--btn-regular-bg);
	color: var(--theme-accent-text);
}

.project-discovery-tab:focus-visible,
.problem-option-card:focus-visible,
.problem-back-button:focus-visible,
.problem-switch-button:focus-visible,
.problem-search-control input:focus-visible,
.problem-filter-chip:focus-visible,
.problem-use-case-chip:focus-visible,
.problem-related-chip:focus-visible,
.problem-clear-chip:focus-visible,
.problem-secondary-action:focus-visible,
.problem-project-actions .btn-regular:focus-visible,
.problem-project-actions .problem-secondary-action:focus-visible,
.problem-empty-actions button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--accent-color) 52%, transparent);
	outline-offset: 2px;
}

.problem-explorer {
	padding: 1.1rem;
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.problem-overview-header,
.problem-detail-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.problem-overview-header h1,
.problem-detail-header h2 {
	margin: 0 0 0.35rem;
	color: var(--text-primary);
	font-size: clamp(1.8rem, 3vw, 2.45rem);
	line-height: 1.08;
}

.problem-overview-header p,
.problem-detail-header p {
	max-width: 44rem;
	margin: 0;
	color: var(--text-secondary);
	line-height: 1.65;
}

.problem-option-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
}

.problem-option-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.85rem;
	min-height: 9.75rem;
	border: 1px solid var(--card-border);
	border-radius: var(--radius-large);
	background: color-mix(in srgb, var(--card-bg) 94%, var(--page-bg));
	padding: 1rem;
	text-align: left;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.problem-option-card:hover {
	border-color: var(--theme-accent-border);
	background: var(--btn-card-bg-hover);
	transform: translateY(-1px);
}

.problem-option-card.is-active,
.problem-option-card[aria-pressed="true"] {
	border-color: var(--accent-color);
	background: var(--btn-regular-bg);
}

.problem-option-icon,
.problem-detail-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border: 1px solid var(--theme-accent-border);
	border-radius: 0.85rem;
	background: var(--theme-accent-soft);
	color: var(--theme-accent-text);
}

.problem-option-icon svg,
.problem-detail-icon svg {
	width: 1.45rem;
	height: 1.45rem;
}

.problem-option-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.4rem;
}

.problem-option-content strong {
	color: var(--text-primary);
	font-size: 1.03rem;
	line-height: 1.25;
}

.problem-option-content span {
	color: var(--text-secondary);
	font-size: 0.9rem;
	line-height: 1.45;
}

.problem-option-count {
	grid-column: 1 / -1;
	align-self: end;
	color: var(--text-muted);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.problem-detail-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.problem-back-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.4rem;
	border-radius: 0.75rem;
	padding: 0 0.75rem;
	font-weight: 800;
}

.problem-switcher,
.problem-chip-row,
.problem-use-case-row,
.problem-related-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	flex-wrap: wrap;
}

.problem-switcher {
	justify-content: flex-end;
}

.problem-switch-button,
.problem-filter-chip,
.problem-use-case-chip,
.problem-related-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 2.15rem;
	border: 1px solid var(--card-border);
	border-radius: 999px;
	background: color-mix(in srgb, var(--card-bg) 92%, var(--page-bg));
	padding: 0.35rem 0.75rem;
	color: var(--text-secondary);
	font-size: 0.84rem;
	font-weight: 800;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease;
}

.problem-switch-button:hover,
.problem-filter-chip:hover,
.problem-use-case-chip:hover,
.problem-related-chip:hover {
	border-color: var(--theme-accent-border);
	background: var(--btn-plain-bg-hover);
	color: var(--text-primary);
}

.problem-switch-button[aria-pressed="true"],
.problem-switch-button.is-active,
.problem-filter-chip[aria-pressed="true"],
.problem-filter-chip.is-active,
.problem-use-case-chip[aria-pressed="true"],
.problem-use-case-chip.is-active {
	border-color: var(--accent-color);
	background: var(--btn-regular-bg);
	color: var(--theme-accent-text);
}

.problem-filter-chip small,
.problem-use-case-chip small,
.problem-related-chip small {
	color: var(--text-muted);
	font-family: var(--font-body);
	font-size: 0.72rem;
}

.problem-detail-heading {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	min-width: 0;
}

.problem-detail-count {
	flex: 0 0 auto;
	border: 1px solid var(--card-border);
	border-radius: 999px;
	background: var(--btn-regular-bg);
	padding: 0.45rem 0.75rem;
	color: var(--theme-accent-text);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
}

.problem-filter-row {
	display: flex;
	margin-bottom: 1rem;
}

.problem-search-control {
	display: flex;
	width: min(100%, 34rem);
	flex-direction: column;
	gap: 0.35rem;
	color: var(--text-secondary);
	font-size: 0.82rem;
	font-weight: 800;
}

.problem-search-control input {
	width: 100%;
	min-height: 2.75rem;
	border: 1px solid var(--card-border);
	border-radius: 0.85rem;
	background: color-mix(in srgb, var(--card-bg) 94%, var(--page-bg));
	padding: 0 0.9rem;
	color: var(--text-primary);
	outline: none;
}

.problem-facet-section {
	margin: 0 0 1rem;
}

.problem-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.problem-section-heading h3,
.problem-related-section h3,
.problem-empty-state h3 {
	margin: 0;
	color: var(--text-primary);
	font-size: 1rem;
	line-height: 1.25;
}

.problem-clear-chip {
	min-height: 2rem;
	border-radius: 0.65rem;
	padding: 0 0.65rem;
	color: var(--text-secondary);
	font-size: 0.78rem;
	font-weight: 800;
}

.problem-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.1rem;
}

.problem-project-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
}

.problem-architecture-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	border-bottom: 1px solid var(--card-border);
	background: color-mix(in srgb, var(--btn-regular-bg) 42%, var(--page-bg));
	color: var(--text-muted);
	font-size: 0.86rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.problem-architecture-preview.has-preview {
	background: color-mix(in srgb, var(--card-bg) 90%, var(--page-bg));
}

.problem-architecture-preview span {
	max-width: 18rem;
	padding: 1rem;
}

.problem-architecture-image,
.problem-architecture-image picture {
	width: 100%;
	height: 100%;
}

.problem-architecture-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: white;
}

.problem-architecture-preview.preview-unavailable .problem-architecture-image {
	display: none;
}

.problem-project-body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
}

.problem-project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	color: var(--text-muted);
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.problem-project-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 1.55rem;
	border: 1px solid var(--card-border);
	border-radius: 999px;
	padding: 0.1rem 0.45rem;
}

.problem-project-card h3 {
	margin: 0;
	font-size: 1.13rem;
	line-height: 1.3;
}

.problem-project-card h3 a {
	color: var(--text-primary);
	text-decoration: none;
}

.problem-project-card h3 a:hover {
	color: var(--primary);
}

.problem-project-card p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.93rem;
	line-height: 1.58;
}

.problem-match-summary {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	border: 1px solid var(--card-border);
	border-radius: 0.85rem;
	background: color-mix(in srgb, var(--btn-regular-bg) 48%, transparent);
	padding: 0.75rem;
}

.problem-match-summary > span {
	color: var(--text-muted);
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.problem-match-summary strong {
	color: var(--text-primary);
	font-size: 0.9rem;
	line-height: 1.45;
}

.problem-match-tags,
.problem-project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.problem-match-tags span,
.problem-project-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 1.65rem;
	border: 1px solid var(--card-border);
	border-radius: 999px;
	background: color-mix(in srgb, var(--card-bg) 88%, var(--page-bg));
	padding: 0.1rem 0.5rem;
	color: var(--text-secondary);
	font-size: 0.76rem;
	font-weight: 750;
}

.problem-project-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	border-top: 1px solid var(--card-border);
	padding: 0.85rem 1rem 1rem;
}

.problem-project-actions .btn-regular,
.problem-secondary-action {
	min-height: 2.3rem;
	border-radius: 0.7rem;
	padding: 0 0.75rem;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
}

.problem-secondary-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border: 1px solid var(--card-border);
	color: var(--text-secondary);
}

.problem-secondary-action:hover {
	border-color: var(--theme-accent-border);
	background: var(--btn-plain-bg-hover);
	color: var(--text-primary);
}

.problem-external-indicator {
	color: var(--text-muted);
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.problem-empty-state {
	margin-top: 1rem;
	padding: 1.25rem;
	text-align: center;
}

.problem-empty-state p {
	max-width: 32rem;
	margin: 0.45rem auto 0;
	color: var(--text-secondary);
}

.problem-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 1rem;
}

.problem-empty-actions .btn-regular {
	min-height: 2.35rem;
	border-radius: 0.75rem;
	padding: 0 0.75rem;
	font-size: 0.85rem;
	font-weight: 800;
}

.problem-related-section {
	margin-top: 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.problem-related-label {
	color: var(--text-muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.problem-option-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.problem-results-grid {
		grid-template-columns: 1fr;
	}

	.problem-detail-topbar {
		align-items: stretch;
		flex-direction: column;
	}

	.problem-switcher {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.project-discovery-tabs {
		display: flex;
		width: 100%;
	}

	.project-discovery-tab {
		flex: 1 1 0;
		min-width: max-content;
		padding: 0 0.75rem;
	}

	.problem-explorer {
		padding: 0.85rem;
	}

	.problem-overview-header,
	.problem-detail-header {
		flex-direction: column;
	}

	.problem-option-grid {
		grid-template-columns: 1fr;
	}

	.problem-option-card {
		min-height: 8.4rem;
	}

	.problem-detail-heading {
		flex-direction: column;
	}

	.problem-detail-count {
		align-self: flex-start;
	}

	.problem-search-control {
		width: 100%;
	}

	.problem-switcher,
	.problem-chip-row,
	.problem-use-case-row,
	.problem-related-row,
	.problem-project-actions {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 0.1rem;
		scrollbar-width: thin;
	}

	.problem-project-actions {
		padding-bottom: 1rem;
	}

	.problem-switch-button,
	.problem-filter-chip,
	.problem-use-case-chip,
	.problem-related-chip,
	.problem-project-actions .btn-regular,
	.problem-project-actions .problem-secondary-action {
		flex: 0 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.project-discovery-tab,
	.problem-option-card,
	.problem-switch-button,
	.problem-filter-chip,
	.problem-use-case-chip,
	.problem-related-chip {
		transition: none;
	}

	.problem-option-card:hover {
		transform: none;
	}
}

/* Premium portfolio control surface */
.project-discovery-toolbar,
.problem-explorer {
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-card);
	background: color-mix(in srgb, var(--card-bg) 92%, transparent);
	box-shadow: var(--card-shadow);
	backdrop-filter: blur(22px) saturate(1.08);
}

.project-discovery-toolbar {
	padding: 0.7rem;
}

.project-discovery-toolbar-topline {
	gap: 0.8rem;
}

.project-discovery-tabs {
	gap: 0.2rem;
	padding: 0.25rem;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-control);
	background: color-mix(in srgb, var(--page-bg) 72%, var(--card-bg));
}

.project-discovery-tab {
	min-height: 2.45rem;
	border-radius: 0.55rem;
	font-size: 0.78rem;
	letter-spacing: 0.01em;
}

.project-discovery-tab[aria-selected="true"] {
	border-color: color-mix(in srgb, var(--primary) 35%, var(--card-border));
	background: var(--card-bg);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 10%, transparent);
}

.project-main-search input,
.project-core-filters select {
	border-color: var(--border-soft);
	border-radius: var(--radius-control);
	background: color-mix(in srgb, var(--page-bg) 76%, var(--card-bg));
	box-shadow: inset 0 1px 0 color-mix(in srgb, white 40%, transparent);
}

.project-main-search input {
	min-height: 2.7rem;
	padding-inline: 0.9rem 2.7rem;
	font-size: 0.82rem;
}

.project-main-search input:hover {
	border-color: color-mix(in srgb, var(--primary) 34%, var(--card-border));
}

.project-main-search input:focus-visible {
	border-color: var(--primary);
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent),
		inset 0 1px 0 color-mix(in srgb, white 42%, transparent);
	outline: none;
}

.project-main-search kbd {
	border-color: var(--border-strong);
	border-radius: 0.4rem;
	background: var(--surface-elevated);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--text-primary) 10%, transparent);
	color: var(--text-muted);
}

.project-filter-drawer {
	gap: 0.65rem;
	margin-top: 0.7rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--border-soft);
}

.project-core-filters label {
	gap: 0.25rem;
	color: var(--text-muted);
	font-size: 0.62rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.project-core-filters select {
	min-height: 2.35rem;
	padding-inline: 0.55rem;
	color: var(--text-secondary);
}

.project-clear-all,
.project-clear-capabilities {
	border-radius: var(--radius-control);
	color: var(--text-muted);
}

.project-clear-all:hover,
.project-clear-capabilities:hover {
	background: var(--btn-plain-bg-hover);
	color: var(--primary);
}

.project-capability-quick-row {
	gap: 0.6rem;
	margin-top: 0.7rem;
	padding-top: 0.65rem;
	border-top-color: var(--border-soft);
}

.project-quick-label {
	flex: 0 0 auto;
	color: var(--text-muted);
	font-size: 0.62rem;
	letter-spacing: 0.08em;
}

.project-capability-scroll {
	gap: 0.4rem;
	padding-block: 0.15rem;
	overscroll-behavior-inline: contain;
}

.project-capability-scroll button {
	min-height: 2rem;
	border-color: var(--border-soft);
	border-radius: 0.55rem;
	background: color-mix(in srgb, var(--card-bg) 74%, var(--page-bg));
	padding-inline: 0.62rem;
	color: var(--text-secondary);
	font-size: 0.69rem;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.project-capability-scroll button:hover {
	border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
	background: var(--btn-card-bg-hover);
	color: var(--text-primary);
	transform: translateY(-1px);
}

.project-capability-scroll button[aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--primary) 62%, var(--card-border));
	background: var(--theme-accent-soft);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 12%, transparent);
}

.problem-explorer {
	padding: 1.35rem;
}

.problem-option-card,
.problem-project-card {
	border-color: var(--border-soft);
	border-radius: var(--radius-card);
	background: color-mix(in srgb, var(--card-bg) 88%, var(--page-bg));
	box-shadow: 0 8px 22px color-mix(in srgb, var(--text-primary) 4%, transparent);
}

.problem-option-card {
	transition:
		background-color 200ms ease,
		border-color 200ms ease,
		box-shadow 200ms ease,
		transform 200ms ease;
}

.problem-option-card:hover {
	border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
	box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 10%, transparent);
}

.problem-project-card {
	box-shadow: var(--card-shadow);
}

.problem-architecture-preview {
	border-bottom-color: var(--border-soft);
	background: var(--card-media-bg);
}

.problem-project-body {
	gap: 0.85rem;
	padding: 1.15rem;
}

.problem-project-card h3 {
	font-size: 1.18rem;
	letter-spacing: -0.025em;
}

.problem-project-card p {
	color: var(--text-secondary);
	line-height: 1.62;
}

.problem-match-summary {
	border-color: var(--border-soft);
	border-radius: 0.8rem;
	background: color-mix(in srgb, var(--theme-accent-soft) 48%, var(--card-bg));
}

.problem-match-tags span,
.problem-project-tags span,
.problem-filter-chip,
.problem-use-case-chip,
.problem-related-chip,
.problem-switch-button {
	border-color: var(--border-soft);
	background: color-mix(in srgb, var(--card-bg) 74%, var(--page-bg));
}

.problem-project-actions {
	border-top-color: var(--border-soft);
	padding: 0.9rem 1.15rem 1.15rem;
}

.problem-project-actions .btn-regular {
	border-radius: var(--radius-control);
	box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 14%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.project-capability-scroll button,
	.problem-option-card {
		transition: none;
	}
}

/* Editorial collection introduction and cohesive discovery composition. */
.project-collection-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.75fr);
	align-items: end;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 0 0 var(--space-lg);
	padding: clamp(1.15rem, 2.8vw, 2rem) clamp(0.25rem, 1vw, 0.75rem)
		clamp(1.25rem, 2.6vw, 1.8rem);
	border-bottom: 1px solid var(--border-subtle);
}

.project-collection-copy {
	min-width: 0;
}

.project-collection-eyebrow {
	margin: 0 0 0.55rem;
	color: var(--primary);
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.project-collection-copy h1 {
	max-width: none;
	margin: 0;
	color: var(--text-primary);
	font-size: clamp(3rem, 5vw, 4rem);
	line-height: 0.98;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.project-collection-heading-line {
	display: block;
	white-space: normal;
}

.project-collection-summary {
	max-width: 58ch;
	margin: 0.85rem 0 0;
	color: var(--text-secondary);
	font-size: clamp(0.94rem, 1.4vw, 1.04rem);
	line-height: 1.68;
}

.project-collection-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--border-subtle);
	border-left: 1px solid var(--border-subtle);
}

.project-collection-stats > div {
	display: flex;
	min-width: 0;
	min-height: 4.8rem;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 0.18rem;
	padding: 0.85rem;
	border-right: 1px solid var(--border-subtle);
	border-bottom: 1px solid var(--border-subtle);
}

.project-collection-stats dt {
	color: var(--text-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.project-collection-stats dd {
	margin: 0;
	color: var(--text-primary);
	font-family: var(--font-display);
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1;
}

.project-discovery-toolbar {
	padding: 0.8rem;
	background: var(--card-bg);
	box-shadow: var(--shadow-md);
	backdrop-filter: none;
}

.project-discovery-toolbar-topline {
	gap: 0.75rem;
}

.project-discovery-toolbar .project-discovery-tabs {
	padding: 0.22rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	background: var(--surface-2);
}

.project-discovery-tab {
	min-height: 2.65rem;
	border-radius: calc(var(--radius-md) - 0.15rem);
	font-size: 0.78rem;
}

.project-main-search input {
	min-height: 3.1rem;
	padding-inline: 1rem 3rem;
	border-color: var(--border-strong);
	background: var(--page-bg);
	font-size: 0.9rem;
}

.project-filter-drawer {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--border-subtle);
}

.project-core-filters {
	gap: 0.6rem;
}

.project-core-filters label {
	gap: 0.3rem;
	font-family: var(--font-body);
	font-size: 0.61rem;
	font-weight: 600;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.project-core-filters select {
	min-height: 2.65rem;
	padding-inline: 0.65rem 1.8rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 500;
}

.project-clear-all {
	min-height: 2.65rem;
	padding-inline: 0.75rem;
	white-space: nowrap;
}

.project-capability-quick-row {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--border-subtle);
}

.project-quick-label {
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.project-result-summary {
	margin-bottom: 0.8rem;
	padding: 0 0.25rem 0.65rem;
	border-bottom: 1px solid var(--border-subtle);
	font-family: var(--font-body);
	font-variant-numeric: tabular-nums;
}

.project-result-summary [data-project-result-count] {
	color: var(--primary);
	font-size: 0.78rem;
}

@media (min-width: 901px) and (max-width: 1023px) {
	.project-collection-copy h1 {
		font-size: clamp(2.8rem, 5.2vw, 3.35rem);
	}
}

@media (max-width: 900px) {
	.project-collection-intro {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.project-collection-copy h1 {
		font-size: clamp(2.65rem, 6.5vw, 3.4rem);
	}

	.project-collection-stats {
		max-width: 34rem;
	}
}

@media (max-width: 640px) {
	.project-collection-intro {
		gap: 1rem;
		padding-inline: 0.25rem;
	}

	.project-collection-copy h1 {
		font-size: clamp(2.35rem, 11vw, 3.2rem);
		line-height: 1;
	}

	.project-collection-heading-line {
		display: inline;
		white-space: normal;
	}

	.project-collection-stats > div {
		min-height: 4.2rem;
		padding: 0.7rem;
	}

	.project-discovery-toolbar {
		padding: 0.55rem;
	}

	.project-main-search input {
		min-height: 2.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.project-collection-intro *,
	.project-discovery-toolbar * {
		scroll-behavior: auto;
	}
}

/* Main project-discovery controls */
.project-discovery-sticky-sentinel {
	height: 1px;
	margin-bottom: -1px;
}

.project-discovery-toolbar {
	position: relative;
	z-index: 1;
	margin-bottom: 1.25rem;
	padding: 0.55rem;
	border: 1px solid var(--card-border);
	background: var(--card-bg);
	transition:
		box-shadow 140ms ease,
		border-color 140ms ease;
}

.project-discovery-toolbar.is-stuck {
	border-color: color-mix(in srgb, var(--card-border) 70%, var(--text-muted));
	box-shadow: 0 4px 10px rgb(15 23 42 / 0.08);
}

.project-discovery-toolbar-topline {
	display: grid;
	grid-template-columns: auto minmax(15rem, 1fr) auto;
	align-items: center;
	gap: 0.65rem;
}

.project-discovery-toolbar .project-discovery-tabs {
	margin: 0;
	padding: 0;
}

.project-main-search {
	position: relative;
	min-width: 0;
}

.project-main-search input {
	width: 100%;
	min-height: 2.55rem;
	padding: 0.5rem 2.5rem 0.5rem 0.75rem;
	border: 1px solid var(--card-border);
	border-radius: 0.65rem;
	background: var(--page-bg);
	color: var(--text-primary);
	font-size: 0.86rem;
}

.project-main-search kbd {
	position: absolute;
	top: 50%;
	right: 0.7rem;
	padding: 0.08rem 0.36rem;
	border: 1px solid var(--card-border);
	border-radius: 0.3rem;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	transform: translateY(-50%);
}

.project-search-suggestions {
	position: absolute;
	z-index: 40;
	top: calc(100% + 0.35rem);
	right: 0;
	left: 0;
	max-height: min(24rem, 60vh);
	overflow-y: auto;
	padding: 0.42rem;
	border: 1px solid var(--card-border);
	border-radius: 0.7rem;
	background: var(--card-bg);
	box-shadow: 0 8px 18px rgb(15 23 42 / 0.12);
}

.project-suggestion-group + .project-suggestion-group {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--card-border);
}

.project-suggestion-group h3 {
	margin: 0.1rem 0.42rem 0.2rem;
	color: var(--text-muted);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.project-suggestion-option {
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.6rem;
	padding: 0.48rem 0.55rem;
	border: 0;
	border-radius: 0.45rem;
	background: transparent;
	color: var(--text-primary);
	font-size: 0.78rem;
	text-align: left;
	cursor: pointer;
}

.project-suggestion-option small {
	color: var(--text-muted);
	font-size: 0.67rem;
}

.project-suggestion-option[aria-selected="true"],
.project-suggestion-option:hover {
	background: var(--btn-card-bg-hover);
}

.project-suggestion-option mark {
	background: var(--theme-accent-soft);
	color: inherit;
	font-weight: 800;
}

.project-filter-drawer {
	display: flex;
	align-items: end;
	gap: 0.55rem;
	margin-top: 0.55rem;
}

.project-filter-drawer-header,
.project-mobile-filter-button {
	display: none;
}

.project-core-filters {
	display: grid;
	min-width: 0;
	flex: 1;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.45rem;
}

.project-core-filters label {
	display: grid;
	min-width: 0;
	gap: 0.16rem;
	color: var(--text-muted);
	font-size: 0.64rem;
	font-weight: 750;
}

.project-core-filters select {
	width: 100%;
	min-height: 2.1rem;
	padding: 0.36rem;
	border: 1px solid var(--card-border);
	border-radius: 0.5rem;
	background: var(--page-bg);
	color: var(--text-primary);
	font-size: 0.72rem;
}

.project-clear-all {
	min-height: 2.1rem;
	padding: 0.3rem 0.4rem;
	font-size: 0.7rem;
	white-space: nowrap;
}

.project-capability-quick-row {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.55rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--card-border);
}

.project-quick-label {
	color: var(--text-muted);
	font-size: 0.67rem;
	font-weight: 800;
	text-transform: uppercase;
}

.project-capability-scroll {
	display: flex;
	min-width: 0;
	overflow-x: auto;
	gap: 0.35rem;
	scrollbar-width: thin;
}

.project-capability-scroll button {
	display: inline-flex;
	min-height: 1.9rem;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.32rem;
	padding: 0.3rem 0.52rem;
	border: 1px solid var(--card-border);
	border-radius: 999px;
	background: var(--page-bg);
	color: var(--text-secondary);
	font-size: 0.7rem;
	font-weight: 700;
}

.project-capability-scroll button[aria-pressed="true"] {
	border-color: var(--primary);
	background: var(--theme-accent-soft);
	color: var(--theme-accent-text);
}

.project-capability-scroll small {
	color: var(--text-muted);
	font-size: 0.62rem;
}

.project-clear-capabilities {
	flex: 0 0 auto;
	font-size: 0.68rem;
}

.project-result-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.55rem;
	color: var(--text-muted);
	font-size: 0.7rem;
}

.project-result-summary p {
	margin: 0;
}

.project-result-summary [data-project-result-count] {
	color: var(--text-secondary);
	font-weight: 800;
}

.project-discovery-empty {
	padding: 1.2rem;
	text-align: center;
}

.project-discovery-empty h2,
.project-discovery-empty p {
	margin: 0 0 0.55rem;
}

.project-recently-viewed {
	margin-top: 1rem;
	padding: 0.8rem;
}

.project-recently-viewed header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.55rem;
}

.project-recently-viewed h2 {
	margin: 0;
	font-size: 1rem;
}

.project-recently-viewed [data-project-recent-list] {
	display: flex;
	overflow-x: auto;
	gap: 0.5rem;
}

.project-recently-viewed a {
	display: inline-flex;
	min-width: 10rem;
	min-height: 2.6rem;
	align-items: center;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--card-border);
	border-radius: 0.55rem;
	color: var(--text-primary);
	font-size: 0.76rem;
	font-weight: 750;
	text-decoration: none;
}

.project-comparison-bar {
	display: grid;
	position: fixed;
	z-index: 45;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	grid-template-columns: auto auto;
	align-items: center;
	gap: 0.15rem 0.75rem;
	max-width: min(27rem, calc(100vw - 2rem));
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--card-border);
	background: var(--card-bg);
	box-shadow: 0 5px 14px rgb(15 23 42 / 0.14);
}

.project-comparison-bar[hidden] {
	display: none;
}

.project-discovery:has(.project-comparison-bar:not([hidden])) {
	padding-bottom: 5.25rem;
}

.project-comparison-bar p {
	margin: 0;
	font-size: 0.76rem;
}

.project-comparison-bar > div {
	display: flex;
	grid-row: 1 / 3;
	grid-column: 2;
	align-items: center;
	gap: 0.4rem;
}

.project-comparison-bar [aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
}

.project-comparison-limit {
	color: var(--text-muted);
}

.project-discovery.is-problem-mode .project-filter-drawer,
.project-discovery.is-problem-mode .project-capability-quick-row {
	display: none;
}

@media (max-width: 760px) {
	.project-discovery-toolbar {
		padding: 0.45rem;
	}

	.project-discovery-toolbar-topline {
		grid-template-columns: minmax(0, auto) minmax(8rem, 1fr) auto;
		gap: 0.38rem;
	}

	.project-discovery-tab {
		min-height: 2.3rem;
		padding: 0 0.55rem;
		font-size: 0.7rem;
	}

	.project-main-search input {
		min-height: 2.3rem;
		font-size: 0.76rem;
	}

	.project-main-search kbd {
		display: none;
	}

	.project-mobile-filter-button {
		display: inline-flex;
		min-height: 2.3rem;
		align-items: center;
		gap: 0.25rem;
		padding: 0.35rem 0.52rem;
		border: 1px solid var(--card-border);
		border-radius: 0.5rem;
		background: var(--page-bg);
		color: var(--text-secondary);
		font-size: 0.7rem;
		font-weight: 750;
	}

	.project-filter-drawer {
		display: none;
		position: fixed;
		z-index: 60;
		right: 0;
		bottom: 0;
		left: 0;
		max-height: 75vh;
		overflow-y: auto;
		align-items: stretch;
		flex-direction: column;
		padding: 0.85rem;
		border: 1px solid var(--card-border);
		border-radius: 0.9rem 0.9rem 0 0;
		background: var(--card-bg);
		box-shadow: 0 -5px 16px rgb(15 23 42 / 0.15);
	}

	.project-filter-drawer.is-open {
		display: flex;
	}

	.project-filter-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

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

	.project-capability-quick-row {
		margin-top: 0.45rem;
	}

	.project-quick-label {
		display: none;
	}

	.project-result-summary p:last-child {
		display: none;
	}

	.project-search-suggestions {
		position: fixed;
		top: 8rem;
		right: 0.75rem;
		left: 0.75rem;
		max-height: calc(100vh - 9rem);
	}

	.project-comparison-bar {
		right: 0.65rem;
		bottom: max(0.65rem, env(safe-area-inset-bottom));
		left: 0.65rem;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.project-discovery-toolbar-topline {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.project-discovery-tabs {
		grid-column: 1 / -1;
		width: 100%;
	}

	.project-discovery-tab {
		flex: 1;
	}

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

	.project-comparison-bar > div {
		grid-row: auto;
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.project-discovery-toolbar,
	.project-suggestion-option {
		transition: none;
	}
}

/* Final premium overrides keep the control surface consistent across breakpoints. */
.project-discovery-toolbar {
	position: relative;
	top: auto;
	z-index: 1;
	margin-bottom: 1.25rem;
	border-color: var(--border-soft);
	border-radius: var(--radius-card);
	background: color-mix(in srgb, var(--card-bg) 92%, transparent);
	box-shadow: var(--card-shadow);
	backdrop-filter: blur(22px) saturate(1.08);
}

.project-discovery-toolbar.is-stuck {
	border-color: color-mix(in srgb, var(--primary) 32%, var(--card-border));
	box-shadow: var(--card-shadow-hover);
}

.project-discovery-panel {
	position: relative;
	margin-top: 0;
}

.project-discovery-panel .project-listing-surface {
	position: relative;
	margin-top: 0;
}

.project-main-search input,
.project-core-filters select {
	border-color: var(--border-soft);
	border-radius: var(--radius-control);
	background: color-mix(in srgb, var(--page-bg) 76%, var(--card-bg));
}

.project-main-search input:focus-visible {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
	outline: none;
}

.project-main-search kbd {
	border-color: var(--border-strong);
	border-radius: 0.4rem;
	background: var(--surface-elevated);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.project-capability-scroll {
	gap: 0.4rem;
	padding-block: 0.15rem;
	overscroll-behavior-inline: contain;
}

.project-capability-scroll button {
	min-height: 2rem;
	border-color: var(--border-soft);
	border-radius: 0.55rem;
	background: color-mix(in srgb, var(--card-bg) 74%, var(--page-bg));
	padding-inline: 0.62rem;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.project-capability-scroll button:hover {
	border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
	background: var(--btn-card-bg-hover);
	color: var(--text-primary);
	transform: translateY(-1px);
}

.project-capability-scroll button[aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--primary) 62%, var(--card-border));
	background: var(--theme-accent-soft);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 12%, transparent);
}

.project-discovery-tab[aria-selected="true"] {
	border-color: color-mix(in srgb, var(--primary) 35%, var(--card-border));
	background: var(--card-bg);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 10%, transparent);
}

.problem-explorer,
.problem-project-card,
.problem-option-card {
	border-color: var(--border-soft);
	border-radius: var(--radius-card);
	box-shadow: var(--card-shadow);
}

.problem-explorer {
	background: color-mix(in srgb, var(--card-bg) 92%, transparent);
	backdrop-filter: blur(22px) saturate(1.08);
}

.problem-option-card {
	background: color-mix(in srgb, var(--card-bg) 88%, var(--page-bg));
	transition:
		background-color 200ms ease,
		border-color 200ms ease,
		box-shadow 200ms ease,
		transform 200ms ease;
}

.problem-option-card:hover {
	border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
	box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 10%, transparent);
}

.problem-architecture-preview {
	border-bottom-color: var(--border-soft);
	background: var(--card-media-bg);
}

.problem-match-summary {
	border-color: var(--border-soft);
	border-radius: 0.8rem;
	background: color-mix(in srgb, var(--theme-accent-soft) 48%, var(--card-bg));
}

.problem-match-tags span,
.problem-project-tags span,
.problem-filter-chip,
.problem-use-case-chip,
.problem-related-chip,
.problem-switch-button {
	border-color: var(--border-soft);
	background: color-mix(in srgb, var(--card-bg) 74%, var(--page-bg));
}

@media (prefers-reduced-motion: reduce) {
	.project-capability-scroll button,
	.problem-option-card {
		transition: none;
	}
}


/* === HERO TWO-LINE TITLE FIX START === */

/*
 * Desktop target:
 *
 * Research systems & production AI
 * for real-world impact
 *
 * The Astro markup already contains one span for each intended line.
 */


/* Base behavior */
.project-collection-heading-line {
    display: block;
}


/* Desktop / laptop */
@media (min-width: 1024px) {

    /*
     * Prevent either intended line from wrapping internally.
     */
    .project-collection-heading-line {
        display: block;
        white-space: nowrap;
    }

    /*
     * Give the heading copy as much room as its grid column permits.
     */
    .project-collection-copy {
        min-width: 0;
        max-width: none;
    }

    /*
     * Slight optical tuning so the long first line fits while
     * preserving the large editorial hero treatment.
     */
    .project-collection-copy h1 {
        max-width: none;
        font-size: clamp(3rem, 4.1vw, 4.25rem);
        line-height: 0.96;
        letter-spacing: -0.025em;
    }
}


/* Tablet/mobile: allow normal wrapping */
@media (max-width: 1023px) {

    .project-collection-heading-line {
        display: inline;
        white-space: normal;
    }

    /*
     * Restore the space that would otherwise disappear between
     * the two inline spans.
     */
    .project-collection-heading-line + .project-collection-heading-line::before {
        content: " ";
    }
}

/* === HERO TWO-LINE TITLE FIX END === */

/* === HERO TITLE + STATS TUNING START === */

@media (min-width: 1180px) {
  .project-collection-intro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 230px !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 2rem !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  .project-collection-copy {
    display: contents !important;
  }

  .project-collection-eyebrow {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 0 0.5rem !important;
  }

  .project-collection-heading {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: clamp(2.55rem, 3.6vw, 3.45rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.02em !important;
  }

  .project-collection-heading-line {
    display: block !important;
    white-space: nowrap !important;
    line-height: inherit !important;
  }

  .project-collection-summary {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 1.1rem 0 0 !important;
    max-width: 42rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .project-collection-stats,
  .project-collection-metrics,
  .project-collection-stat-grid {
    grid-column: 2 !important;
    grid-row: 2 / span 2 !important;
    justify-self: end !important;
    align-self: start !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    margin-top: 5.75rem !important; /* pushes stats a little down */
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  /* Make the stats feel slightly smaller/lower emphasis */
  .project-collection-stats *,
  .project-collection-metrics *,
  .project-collection-stat-grid * {
    line-height: 1.15 !important;
  }
}

@media (min-width: 1180px) and (max-width: 1440px) {
  .project-collection-heading {
    font-size: 2.95rem !important;
  }

  .project-collection-stats,
  .project-collection-metrics,
  .project-collection-stat-grid {
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;
    margin-top: 5.2rem !important;
  }
}

@media (max-width: 1179px) {
  .project-collection-copy {
    display: block !important;
  }

  .project-collection-heading {
    font-size: clamp(2.1rem, 6vw, 3rem) !important;
    line-height: 1 !important;
  }

  .project-collection-heading-line {
    display: block !important;
    white-space: normal !important;
  }

  .project-collection-stats,
  .project-collection-metrics,
  .project-collection-stat-grid {
    margin-top: 1.25rem !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* === HERO TITLE + STATS TUNING END === */



/* === COMPACT HERO INTRO SPACING START === */

@media (min-width: 1180px) {
  .project-collection-intro {
    row-gap: 0 !important;
    padding-bottom: 0.75rem !important;
  }

  .project-collection-eyebrow {
    margin-bottom: 0.3rem !important;
  }

  .project-collection-heading {
    margin-bottom: 0 !important;
    line-height: 0.94 !important;
  }

  .project-collection-summary {
    margin-top: 0.55rem !important;
    margin-bottom: 0 !important;
    line-height: 1.42 !important;
  }

  .project-collection-stats,
  .project-collection-metrics,
  .project-collection-stat-grid {
    margin-top: 3.6rem !important;
  }

  .project-collection-intro + *,
  .project-collection-toolbar {
    margin-top: 0.8rem !important;
  }
}

/* === COMPACT HERO INTRO SPACING END === */


/* === COMPACT HERO INTRO SPACING START === */

@media (min-width: 1180px) {
  .project-collection-intro {
    row-gap: 0 !important;
    padding-bottom: 0.75rem !important;
  }

  .project-collection-eyebrow {
    margin-bottom: 0.3rem !important;
  }

  .project-collection-heading {
    margin-bottom: 0 !important;
    line-height: 0.94 !important;
  }

  .project-collection-summary {
    margin-top: 0.55rem !important;
    margin-bottom: 0 !important;
    line-height: 1.42 !important;
  }

  .project-collection-stats,
  .project-collection-metrics,
  .project-collection-stat-grid {
    margin-top: 3.6rem !important;
  }

  .project-collection-intro + *,
  .project-collection-toolbar {
    margin-top: 0.8rem !important;
  }
}

/* === COMPACT HERO INTRO SPACING END === */

/* === IMPACT DOMAIN ONE-LINE TITLE START === */

/*
 * Keep "Project Impact Landscape" on one line on desktop.
 * Allow normal wrapping on small screens.
 */

@media (min-width: 900px) {
    .impact-domain-page h1,
    .impact-domain-page .impact-title,
    .impact-domain-page .impact-heading,
    .impact-domain-page .project-impact-title,
    [data-impact-domain] h1 {
        white-space: nowrap !important;
        width: max-content !important;
        max-width: none !important;
        font-size: clamp(2.6rem, 3.4vw, 3.65rem) !important;
        line-height: 0.98 !important;
    }
}

@media (max-width: 899px) {
    .impact-domain-page h1,
    .impact-domain-page .impact-title,
    .impact-domain-page .impact-heading,
    .impact-domain-page .project-impact-title,
    [data-impact-domain] h1 {
        white-space: normal !important;
        width: auto !important;
        max-width: 100% !important;
    }
}

/* === IMPACT DOMAIN ONE-LINE TITLE END === */

/* === SAFE IMPACT LANDSCAPE ONE LINE START === */

/*
 * Impact Domain desktop title only.
 * No Astro markup changes.
 */
@media (min-width: 900px) {
    h1. {
        white-space: nowrap !important;
        text-wrap: nowrap !important;

        width: max-content !important;
        max-width: none !important;

        font-size: clamp(2.2rem, 2.65vw, 2.75rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.018em !important;

        overflow: visible !important;
    }
}

/* Mobile remains responsive. */
@media (max-width: 899px) {
    h1. {
        white-space: normal !important;
        text-wrap: balance !important;

        width: auto !important;
        max-width: 100% !important;
    }
}

/* === SAFE IMPACT LANDSCAPE ONE LINE END === */

