/* page-about: styles for /about/gavin-washburn.php */

.mm-case-hero .mm-hero-h1 {
	max-width: 20ch;
}

/* Hero stat cards: stagger the color-twinkle by column index so each
   card cycles independently. Component default uses :nth-of-type() which
   resets inside each column wrapper, syncing all three cards. */
.mm-case-hero .row > .col-md-4:nth-of-type(1) .mm-stat-card,
.mm-case-hero .row > .col-md-4:nth-of-type(1) .mm-stat-card .mm-stat-num {
	animation-delay: 0s;
}
.mm-case-hero .row > .col-md-4:nth-of-type(2) .mm-stat-card,
.mm-case-hero .row > .col-md-4:nth-of-type(2) .mm-stat-card .mm-stat-num {
	animation-delay: -2s;
}
.mm-case-hero .row > .col-md-4:nth-of-type(3) .mm-stat-card,
.mm-case-hero .row > .col-md-4:nth-of-type(3) .mm-stat-card .mm-stat-num {
	animation-delay: -4s;
}

a.mm-card.mm-card-tall {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease;
}

a.mm-card.mm-card-tall:hover {
	transform: translateY(-4px);
	text-decoration: none;
	color: inherit;
}


/* ============================================================
   THE STORY: alternating full-width bands with bordered cards.
   Each band lives inside its own .row > .col-md-12 to match
   the site-wide row-per-logical-element markup pattern.
   ============================================================ */

.mm-story-band {
	position: relative;
	padding: 44px 48px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0.35) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

/* Thin accent line at the top of each band. Colored on alternates. */
.mm-story-band::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 100%;
	background: linear-gradient(90deg, var(--mm-accent, #00B4FF), rgba(0, 180, 255, 0));
	opacity: 0.55;
	transition: opacity 0.35s ease;
}

/* Soft accent glow that appears on hover. */
.mm-story-band::after {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(0, 180, 255, 0), 0 24px 60px -30px rgba(0, 180, 255, 0);
	transition: box-shadow 0.4s ease;
}

.mm-story-band:hover {
	border-color: rgba(0, 180, 255, 0.35);
	background: linear-gradient(135deg, rgba(0, 180, 255, 0.1) 0%, rgba(255, 255, 255, 0.025) 45%, rgba(0, 0, 0, 0.35) 100%);
	transform: translateY(-2px);
}

.mm-story-band:hover::before {
	opacity: 1;
}

.mm-story-band:hover::after {
	box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.25), 0 24px 60px -30px rgba(0, 180, 255, 0.6);
}

/* Alt band: reverse the row so the side panel sits on the right on desktop. */
.mm-story-band-alt .mm-story-band-row {
	flex-direction: row-reverse;
}

/* Finale band: heavier presence, brighter accent line. */
.mm-story-band-finale {
	background: linear-gradient(135deg, rgba(0, 180, 255, 0.12) 0%, rgba(0, 180, 255, 0.04) 45%, rgba(0, 0, 0, 0.4) 100%);
	border-color: rgba(0, 180, 255, 0.3);
	padding: 56px 48px;
}

.mm-story-band-finale::before {
	opacity: 1;
	height: 3px;
	background: linear-gradient(90deg, var(--mm-accent, #00B4FF), rgba(255, 255, 255, 0.3), var(--mm-accent, #00B4FF));
}


/* ============================================================
   Left side panel: era, big stat, tag.
   ============================================================ */

.mm-story-band-side {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 32px;
}

.mm-story-era {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mm-accent, #00B4FF);
	margin-bottom: 14px;
}

.mm-story-stat {
	font-size: clamp(48px, 6vw, 84px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: #fff;
	margin-bottom: 12px;
}

.mm-story-band-finale .mm-story-stat {
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1;
}

.mm-story-stat-label {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 20px;
	max-width: 240px;
}

/* Role list: square bullets, muted, one role per line. */
.mm-story-roles {
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
}

.mm-story-roles li {
	position: relative;
	padding-left: 30px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.55);
}

.mm-story-roles li::before {
	content: '';
	position: absolute;
	left: 10px;
	top: 0.7em;
	width: 8px;
	height: 8px;
	background: var(--mm-accent, #00B4FF);
}

/* Finale band logo: replaces the giant stat number. */
.mm-story-stat-logo {
	margin-bottom: 12px;
}

.mm-story-logo {
	width: clamp(140px, 16vw, 200px);
	height: auto;
	display: block;
}


/* ============================================================
   WHAT WE BUILD: dynamic cards inspired by the apps-aggregate
   product tiles. Rotating spectrum via per-card --pcolor.
   ============================================================ */

/* Equal-height rows: turn the .row into a flex container so all
   .col-md-4 siblings stretch to match the tallest card in the row. */
.mm-build-row {
	display: flex;
	flex-wrap: wrap;
}

.mm-build-row > [class*="col-"] {
	display: flex;
}

.mm-build-card {
	--pcolor: #00B4FF;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #0e0e0e;
	border: 1px solid #222;
	overflow: hidden;
	transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

/* Per-card accent color (rotating spectrum). */
.mm-build-card[data-pcolor="1"] { --pcolor: #00B4FF; }  /* cyan */
.mm-build-card[data-pcolor="2"] { --pcolor: #B800B8; }  /* magenta */
.mm-build-card[data-pcolor="3"] { --pcolor: #C084FC; }  /* violet */
.mm-build-card[data-pcolor="4"] { --pcolor: #F5C542; }  /* amber */
.mm-build-card[data-pcolor="5"] { --pcolor: #4EA8FF; }  /* azure */
.mm-build-card[data-pcolor="6"] { --pcolor: #8CE6C8; }  /* mint */

/* Radial background wash on hover in the top-right corner. */
.mm-build-card::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at top right, var(--pcolor) 0%, transparent 45%);
	opacity: 0.06;
	transition: opacity 0.28s ease;
	z-index: 1;
}

.mm-build-card:hover {
	border-color: var(--pcolor);
	transform: translateY(-4px);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.6),
		0 0 60px -20px var(--pcolor);
}

.mm-build-card:hover::after {
	opacity: 0.14;
}


/* --------------------------------------------------------------
   Chips + ribbons (positioned in the hero corners).
   -------------------------------------------------------------- */

.mm-build-chip {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 3;
	padding: 7px 14px;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--pcolor);
}

.mm-build-ribbon {
	display: none;
}


/* --------------------------------------------------------------
   Hero band (top of card): title + tag with accent gradient.
   -------------------------------------------------------------- */

.mm-build-hero {
	position: relative;
	padding: 70px 28px 26px;
	background: transparent;
	z-index: 2;
}

.mm-build-title {
	position: relative;
	z-index: 2;
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mm-build-tag {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}


/* --------------------------------------------------------------
   Body: what + feature label + feature list.
   -------------------------------------------------------------- */

.mm-build-body {
	position: relative;
	z-index: 2;
	padding: 26px 28px 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mm-build-what {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 48px;
}

.mm-build-feat-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 11px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pcolor);
}

.mm-build-feat-label::before {
	content: '';
	width: 20px;
	height: 2px;
	background: var(--pcolor);
}

.mm-build-features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	flex: 1;
}

.mm-build-features li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mm-build-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 12px;
	height: 12px;
	background: var(--pcolor);
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, 0.04),
		0 0 12px -2px var(--pcolor);
}


/* --------------------------------------------------------------
   Foot: buyer strip at the bottom.
   -------------------------------------------------------------- */

.mm-build-foot {
	position: relative;
	z-index: 2;
	padding: 20px 28px 24px;
	background: transparent;
}

.mm-build-buyer {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.55);
}

.mm-build-buyer strong {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pcolor);
}


/* --------------------------------------------------------------
   Responsive: two-per-row on tablet, single column on phone.
   -------------------------------------------------------------- */



/* ============================================================
   Right side: headline + body copy.
   ============================================================ */

.mm-story-band-body {
	padding-left: 32px;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-story-band-headline {
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0 0 20px;
}

.mm-story-band-copy {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 16px;
}

.mm-story-band-copy:last-child {
	margin-bottom: 0;
}


/* ============================================================
   Mobile: collapse to single column, side panel above body.
   ============================================================ */

@media (max-width: 991px) {
	.mm-story-band,
	.mm-story-band-finale {
		padding: 32px 24px;
	}
	.mm-story-band-alt .mm-story-band-row {
		flex-direction: row;
	}
	.mm-story-band-side,
	.mm-story-band-alt .mm-story-band-side {
		padding: 0 0 24px;
		margin-bottom: 24px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.mm-story-band-body,
	.mm-story-band-alt .mm-story-band-body {
		padding: 0;
		border: 0;
	}
	.mm-story-stat-label {
		max-width: none;
	}
}
