.identity-page {
	--identity-rule: var(--line);
	--identity-display: Georgia, "Times New Roman", serif;
	background: var(--page);
}

.identity-wrap {
	width: min(1280px, calc(100% - 96px));
	margin-inline: auto;
}

.identity-kicker {
	margin: 0;
	color: var(--blue-dark);
	font-family: "Manrope", Arial, sans-serif;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.identity-hero {
	padding-block: clamp(32px, 4vw, 60px) clamp(34px, 3.6vw, 54px);
}

.identity-hero-kicker {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--identity-rule);
}

.identity-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(14rem, 27%);
	align-items: end;
	gap: 30px;
	padding-top: clamp(22px, 4vw, 48px);
}

.identity-hero h1,
.identity-section-head h2,
.identity-cta h2 {
	margin: 0;
	font-family: var(--identity-display);
	font-weight: 400;
	letter-spacing: -.057em;
	line-height: .99;
}

.identity-hero h1 {
	font-size: clamp(3.6rem, 7.5vw, 7.6rem);
}

.identity-hero h1 em {
	display: inline-block;
}

.identity-hero h1 em {
	color: var(--blue-dark);
	font-weight: inherit;
}

.identity-subtitle {
	margin: 18px 0 0;
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(1.08rem, 2vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -.03em;
}

.identity-hero-aside p,
.identity-section-head > p {
	margin: 0;
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.identity-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin-top: 4px;
	color: var(--blue-dark);
	font-weight: 700;
	text-underline-offset: 5px;
}

.identity-stage-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.identity-stage-top h2 {
	margin: 0;
	font: inherit;
}

.identity-stage-top > span {
	color: var(--muted);
	text-align: right;
}

.identity-stage-body {
	position: relative;
	isolation: isolate;
	padding: 10px clamp(16px, 2vw, 28px);
	border-radius: 18px;
	background: var(--ink);
	color: var(--white);
}

.identity-stage-wave {
	position: absolute;
	z-index: -1;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.identity-stage-wave svg {
	display: block;
	width: 100%;
	height: 100%;
}

.identity-wave-blue { stop-color: var(--blue); }
.identity-wave-slate { stop-color: var(--muted); }
.identity-wave-navy { stop-color: var(--ink); }

.identity-slides,
.identity-dialog-art {
	touch-action: pan-y pinch-zoom;
}

.identity-slides {
	--stage-columns: minmax(0, 44%) minmax(0, 1fr);
	--stage-gap: clamp(24px, 3.5vw, 54px);
	--stage-mat-height: 186px;
	display: grid;
	grid-template-columns: var(--stage-columns);
	column-gap: var(--stage-gap);
}

/* The white mat stays in place while both projects share the same grid area. */
.identity-slides::before {
	content: "";
	grid-area: 1 / 1;
	align-self: center;
	box-sizing: border-box;
	height: var(--stage-mat-height);
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	box-shadow: var(--shadow);
}

.identity-slide {
	display: grid;
	grid-area: 1 / 1 / 2 / -1;
	grid-template-columns: var(--stage-columns);
	align-items: center;
	gap: var(--stage-gap);
	z-index: 0;
}

.identity-slide.is-outgoing { z-index: 1; }

.identity-page [hidden] {
	display: none;
}

.identity-stage-art {
	display: grid;
	height: var(--stage-mat-height);
	place-items: center;
	padding: 5px clamp(10px, 1.7vw, 24px);
	border: 1px solid transparent;
}

/* Limits follow the visible marks and allow the entire source canvas to fit. */
#feature-reclamation-district-800 { --art-width: 155px; --art-height: 178px; }
#feature-backyard-bbq { --art-width: 278px; --art-height: 170px; }
#feature-homelife-senior-care { --art-width: 444px; --art-height: 196px; }
#feature-discovery-bay-community-foundation { --art-width: 184px; --art-height: 184px; }
#feature-rhythm-and-brews { --art-width: 274px; --art-height: 175px; }

.identity-stage-art img {
	width: min(100%, var(--art-width));
	height: min(100%, var(--art-height));
	object-fit: contain;
	min-height: 0;
}

.identity-stage-copy {
	padding-right: clamp(0px, 1vw, 16px);
}

.identity-stage-copy h3 {
	margin: 8px 0 12px;
	font-family: var(--identity-display);
	font-size: clamp(2rem, 3.25vw, 3.65rem);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: 1.02;
	overflow-wrap: anywhere;
}

.identity-stage-copy > p:not(.identity-kicker) {
	max-width: 43ch;
	margin: 0;
	color: var(--page);
	line-height: 1.55;
}

.identity-stage-index {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--blue-soft);
}

.identity-stage-index span {
	border-left: 1px solid var(--steel);
	padding-left: 10px;
	color: var(--white);
}

.identity-stage-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
	position: relative;
	z-index: 2;
}

.identity-indicators,
.identity-arrows {
	display: flex;
	gap: 6px;
}

.identity-indicators button,
.identity-round-button {
	display: grid;
	min-width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--steel);
	background: var(--ink);
	color: inherit;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

.identity-indicators button {
	border-radius: 6px;
	font-size: .76rem;
	font-weight: 800;
}

.identity-indicators button[aria-pressed="true"] {
	border-color: var(--blue-soft);
	background: var(--blue-soft);
	color: var(--ink);
}

.identity-round-button {
	border-radius: 50%;
	font-size: 1.35rem;
	line-height: 1;
}

.identity-stage button:hover,
.identity-dialog button:hover {
	background: var(--white);
	color: var(--ink);
}

.identity-page :is(a, button):focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 4px;
}

.identity-page :is(.identity-stage, .identity-dialog) button:focus-visible {
	outline-color: var(--blue-soft);
}

.identity-wall {
	padding-block: clamp(62px, 6.3vw, 92px);
	scroll-margin-top: 100px;
}

.identity-section-head {
	display: grid;
	grid-template-columns: 1fr minmax(16rem, 32%);
	align-items: end;
	gap: 20px 32px;
	margin-bottom: clamp(22px, 3vw, 40px);
	padding-bottom: 22px;
	border-bottom: 1px solid var(--identity-rule);
}

.identity-section-head h2 {
	margin-top: 8px;
	font-size: clamp(3rem, 6.2vw, 6.4rem);
}

.identity-wall h2 {
	font-size: clamp(2.9rem, 5.2vw, 5rem);
}

.identity-gallery {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.identity-tile.span-3 { grid-column: span 3; }
.identity-tile.span-4 { grid-column: span 4; }
.identity-tile.span-5 { grid-column: span 5; }

.identity-tile a,
.identity-app-card a {
	display: block;
	text-decoration: none;
}

.identity-tile-art {
	position: relative;
	display: grid;
	height: clamp(128px, 14vw, 196px);
	place-items: center;
	overflow: hidden;
	padding: clamp(7px, 1.35vw, 20px);
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	transition: border-color 210ms ease, box-shadow 210ms ease;
}

.identity-tile-art img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
}

.identity-tile-plus {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--blue-pale);
	color: var(--blue-dark);
	font-size: 1rem;
	line-height: 1;
	transition: background-color 210ms ease, color 210ms ease;
}

.identity-tile-caption {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	font-size: .94rem;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.identity-tile-number {
	flex: 0 0 auto;
	color: var(--blue-dark);
	font-size: .72rem;
	letter-spacing: .05em;
	line-height: 1.8;
}

@media (hover: hover) {
	.identity-tile a:hover .identity-tile-art {
		border-color: var(--steel);
		box-shadow: 0 5px 18px rgba(8, 34, 56, .08);
	}
	.identity-tile a:hover .identity-tile-plus { background: var(--blue-dark); color: #fff; }
	.identity-tile a:hover .identity-tile-caption,
	.identity-app-card a:hover strong { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }
}

.identity-applications {
	padding-block: clamp(28px, 3.5vw, 48px);
	background: var(--white);
}

.identity-app-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.identity-app-card {
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
}

.identity-app-card figure { margin: 0; }

.identity-app-image {
	display: grid;
	height: clamp(122px, 11vw, 160px);
	place-items: center;
	padding: 7px;
	border-radius: 12px 12px 0 0;
	background: var(--blue-pale);
}

.identity-app-image img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
}

.identity-app-card figcaption {
	position: relative;
	display: grid;
	gap: 3px;
	padding: 10px 29px 13px 12px;
}

.identity-app-card strong {
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.identity-app-arrow {
	position: absolute;
	right: 12px;
	bottom: 12px;
	color: var(--blue-dark);
}

.identity-page .identity-cta {
	margin-block: clamp(24px, 3vw, 42px);
	padding: clamp(22px, 2.35vw, 34px) clamp(18px, 4vw, 58px);
}

.identity-cta h2 {
	margin: 6px auto 0;
	font-size: clamp(2rem, 3.25vw, 3.125rem);
	line-height: 1.1;
	text-wrap: balance;
}

.identity-cta em,
.identity-cta .identity-kicker {
	color: var(--blue-soft);
}

.identity-cta .identity-kicker { font-size: .72rem; }
.identity-cta .contact-button { margin-top: 14px; }
.identity-cta .contact-button:focus-visible { outline-color: var(--blue-soft); }

.identity-dialog {
	width: min(860px, calc(100% - 28px));
	max-width: none;
	max-height: calc(100dvh - 28px);
	padding: 0;
	overflow: auto;
	border: 1px solid var(--steel);
	border-radius: 16px;
	background: var(--ink);
	color: var(--white);
}

.identity-dialog::backdrop {
	background: rgba(8, 34, 56, .8);
}

html:has(.identity-dialog[open]) {
	overflow: hidden;
}

.identity-dialog-inner {
	padding: clamp(12px, 2.5vw, 28px);
}

.identity-dialog-head,
.identity-dialog-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.identity-dialog .identity-kicker {
	color: var(--blue-soft);
}

.identity-dialog-head { margin-bottom: 10px; }
.identity-dialog-footer { margin-top: 14px; }
.identity-dialog-footer h2 {
	margin: 3px 0 0;
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(1rem, 3vw, 1.5rem);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.identity-dialog-art {
	display: grid;
	height: min(510px, 58dvh);
	place-items: center;
	padding: clamp(10px, 3vw, 28px);
	border-radius: 8px;
	background: #fff;
}

.identity-dialog-art img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
}

@media (min-width: 921px) {
	.identity-hero { padding-block: clamp(27px, 3.35vw, 50px) clamp(28px, 3vw, 45px); }
	.identity-hero-inner { padding-top: clamp(18px, 3.35vw, 40px); }
	.identity-hero h1 { font-size: clamp(3.17rem, 6.6vw, 6.69rem); }
	.identity-stage-copy h3 { font-size: clamp(2rem, 2.8vw, 3.2rem); }
	.identity-wall { padding-block: clamp(52px, 5.25vw, 76px); }
	.identity-section-head { margin-bottom: clamp(19px, 2.5vw, 34px); padding-bottom: 18px; }
	.identity-section-head h2 { font-size: clamp(2.58rem, 5.33vw, 5.5rem); }
	.identity-wall h2 { font-size: clamp(2.5rem, 4.47vw, 4.3rem); }
	.identity-gallery { row-gap: 17px; }
	.identity-tile-art { height: clamp(114px, 12.45vw, 175px); padding: clamp(7px, 1.05vw, 16px); }
}

@media (max-width: 920px) {
	.identity-wrap { width: calc(100% - 48px); }
	.identity-hero-inner { align-items: center; }
	.identity-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.identity-gallery .identity-tile { grid-column: span 2; }
	.identity-slides { --stage-gap: 24px; }
	.identity-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.identity-app-image { height: clamp(126px, 20vw, 172px); }
	.identity-gallery .identity-tile:nth-child(4),
	.identity-gallery .identity-tile:nth-child(9) { grid-column: span 4; }
	.identity-gallery .identity-tile:nth-child(n+17) { grid-column: span 3; }
}

@media (max-width: 680px) {
	.identity-wrap { width: calc(100% - 32px); }
	.identity-hero-inner,
	.identity-section-head { grid-template-columns: 1fr; }
	.identity-hero-inner { gap: 15px; }
	.identity-hero h1 { font-size: clamp(3.2rem, 12vw, 5.25rem); }
	.identity-subtitle { margin-top: 12px; }
	.identity-stage-body { padding: 16px; border-radius: 14px; }
	.identity-stage-nav { margin-top: 18px; }
	.identity-slides {
		--stage-columns: minmax(0, 1fr);
		--stage-gap: 18px;
		--stage-mat-height: clamp(215px, 65vw, 335px);
	}
	.identity-slides::before,
	.identity-slide { align-self: start; }
	.identity-stage-art { padding-block: 12px; }
	#feature-homelife-senior-care .identity-stage-art { padding-inline: 6px; }
	.identity-stage-copy { min-height: 180px; }
	.identity-stage-copy h3 { margin: 8px 0; }
	.identity-stage-top > span,
	.identity-hero-kicker > span + span { display: none; }
	.identity-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
	.identity-gallery .identity-tile:nth-child(n) { grid-column: auto; }
	.identity-gallery .identity-tile:nth-child(5n + 1) { grid-column: 1 / -1; }
	.identity-wall { padding-block: clamp(62px, 8vw, 114px); }
	.identity-tile-art { height: clamp(120px, 36vw, 190px); padding: clamp(8px, 1.65vw, 24px); }
	.identity-gallery .identity-tile:nth-child(5n + 1) .identity-tile-art { height: clamp(146px, 47vw, 228px); }
	.identity-tile-caption { font-size: .86rem; }
}

@media (max-width: 560px) {
	.identity-app-grid { grid-template-columns: minmax(0, 1fr); }
	.identity-app-image { height: clamp(128px, 42vw, 190px); }
}

@media (prefers-reduced-motion: reduce) {
	html:has(.identity-page) { scroll-behavior: auto; }
	.identity-tile-art,
	.identity-tile-plus,
	.identity-page button { transition: none; }
}
