/*--------------------------------------------------------------
# Inner Circle — The Call, Part by Part
# "What happens on every Inner Circle call": the six parts of a
# call as a bento of tiles, each picturing the thing itself — Owen
# teaching, the news desk, the guests, a member's booking pass, a
# live question, and the prize draw as a band along the bottom.
--------------------------------------------------------------*/

/* ── Section ──
   No padding on desktop, the same as the core-value cards it replaced:
   .ic-banner above supplies the gap over it with its bottom padding, and
   .ic-guests below brings its own top padding. Below 992px the
   page-level rhythm in inner-circle-rhythm.css takes over. */
.ic-parts {
	/* The theme loads no monospace font; the same system stack the other
	   concept-built sections use. */
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
	--cream: #FBF9F4;

	background: var(--tpp-white);
}

.ic-parts__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* The page's section heading scale (see .ic-guests__heading, .ic-kit__heading) */
.ic-parts__heading {
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0 0 64px;
}

.ic-parts__heading-accent {
	color: var(--tpp-text-light);
}


/* ──────────────────────────────────────────────
   The grid
   Three across: the photo (two wide) and the news desk; guests, the
   pass and the Q&A; then the giveaway band the full width.
   ────────────────────────────────────────────── */

.ic-parts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.ic-parts__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 350px;
	margin: 0;
	padding: 24px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--tpp-off-white);
	border: 1px solid var(--tpp-border-light);
}

/* The picture area: takes the tile's spare height, art centred in it */
.ic-parts__art {
	flex: 1;
	display: grid;
	place-items: center;
	min-height: 180px;
	margin-bottom: 20px;
}

.ic-parts__text {
	position: relative;
	z-index: 1;
}

/* Small label over each tile's heading, and the labels inside the art */
.ic-parts__label,
.ic-parts__mono {
	font-family: var(--mono);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
}

.ic-parts__label {
	display: block;
}

.ic-parts__title {
	margin: 5px 0 0;
	font-family: var(--tpp-font-heading);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--tpp-black);
}

.ic-parts__desc {
	margin: 6px 0 0;
	font-family: var(--tpp-font-body);
	font-size: 0.90625rem;
	line-height: 1.55;
	color: var(--tpp-text-light);
}


/* ──────────────────────────────────────────────
   Owen, live — the photo tile
   ────────────────────────────────────────────── */

.ic-parts__tile--photo {
	grid-column: span 2;
	justify-content: flex-end;
	min-height: 390px;
	border: 0;
	background: #2A2724;
}

.ic-parts__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 30% 30%;
}

/* Darkens the lower half so the white copy reads on any part of the photo */
.ic-parts__tile--photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.82));
}

.ic-parts__tile--photo .ic-parts__label {
	color: rgba(255, 255, 255, 0.65);
}

.ic-parts__tile--photo .ic-parts__title {
	color: var(--tpp-white);
}

.ic-parts__tile--photo .ic-parts__desc {
	max-width: 480px;
	color: rgba(255, 255, 255, 0.8);
}

.ic-parts__chips {
	position: absolute;
	z-index: 1;
	top: 22px;
	right: 22px;
	left: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ic-parts__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 13px;
	border-radius: var(--tpp-radius-pill);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
	font-family: var(--tpp-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tpp-black);
}

.ic-parts__chip svg {
	flex: none;
	width: 13px;
	height: 13px;
}


/* ──────────────────────────────────────────────
   News desk — a small white card of tagged stories
   ────────────────────────────────────────────── */

.ic-parts__news {
	width: min(262px, 100%);
	padding: 16px;
	border-radius: 18px;
	background: var(--tpp-white);
	box-shadow: 0 0 0 1px var(--tpp-border-light), 0 22px 34px -24px rgba(0, 0, 0, 0.35);
}

.ic-parts__news-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--tpp-border-light);
}

/* A plain black card with a chip: no issuer, no product */
.ic-parts__minicard {
	position: relative;
	flex: none;
	width: 34px;
	height: 22px;
	border-radius: 4px;
	background: linear-gradient(135deg, #343434, #111111);
}

.ic-parts__minicard::after {
	content: '';
	position: absolute;
	top: 7px;
	left: 6px;
	width: 9px;
	height: 7px;
	border-radius: 2px;
	background: linear-gradient(135deg, #EAD9A4, #B99A52);
}

.ic-parts__news-title {
	font-family: var(--tpp-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tpp-black);
}

.ic-parts__live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	font-family: var(--mono);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpp-black);
}

.ic-parts__live::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tpp-accent-dark);
	box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.4);
}

.ic-parts__news-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--tpp-border-light);
}

.ic-parts__news-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ic-parts__tag {
	flex: none;
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--tpp-off-white);
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tpp-black);
}

.ic-parts__tag--hot {
	background: var(--tpp-accent);
}

/* Stand-in lines for each story's text */
.ic-parts__news-bar {
	display: block;
	flex: 1;
	max-width: 90px;
	height: 7px;
	border-radius: 4px;
	background: #ECE8E0;
}


/* ──────────────────────────────────────────────
   Guests — overlapping faces and the kinds of guest
   ────────────────────────────────────────────── */

.ic-parts__faces {
	display: flex;
	justify-content: center;
}

.ic-parts__face {
	display: grid;
	place-items: center;
	flex: none;
	width: 58px;
	height: 58px;
	margin-left: -12px;
	overflow: hidden;
	border-radius: 50%;
	border: 3px solid var(--tpp-off-white);
	background: #5E5A53;
	color: rgba(255, 255, 255, 0.85);
}

.ic-parts__face:first-child {
	margin-left: 0;
}

.ic-parts__face svg {
	width: 26px;
	height: 26px;
}

.ic-parts__face-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Placeholder faces, each a different neutral */
.ic-parts__face--blank:nth-child(1) { background: linear-gradient(135deg, #8E8A82, #5E5A53); }
.ic-parts__face--blank:nth-child(2) { background: linear-gradient(135deg, #3B3B3B, #1C1C1C); }
.ic-parts__face--blank:nth-child(3) { background: linear-gradient(135deg, #B9AE9C, #8C806C); }
.ic-parts__face--blank:nth-child(4) { background: linear-gradient(135deg, #5B6B78, #34404A); }

.ic-parts__face--more {
	background: var(--tpp-accent);
	color: var(--tpp-black);
	font-family: var(--tpp-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
}

.ic-parts__roles {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.ic-parts__role {
	padding: 5px 10px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-white);
	box-shadow: inset 0 0 0 1px var(--tpp-border-light);
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tpp-black);
}


/* ──────────────────────────────────────────────
   Members' trips — a booking pass, tilted
   ────────────────────────────────────────────── */

.ic-parts__pass {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
	width: min(262px, 100%);
	overflow: hidden;
	border-radius: 16px;
	background: var(--cream);
	color: var(--tpp-black);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 24px 36px -24px rgba(0, 0, 0, 0.55);
	transform: rotate(-3deg);
}

.ic-parts__pass-main {
	padding: 14px 14px 16px;
}

.ic-parts__pass-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ic-parts__pass-top .ic-parts__mono {
	color: var(--tpp-black);
}

.ic-parts__pass-plane {
	display: inline-flex;
}

.ic-parts__pass-plane svg {
	width: 15px;
	height: 15px;
	transform: rotate(90deg);
}

.ic-parts__pass-class {
	display: block;
	margin-top: 12px;
	font-family: var(--tpp-font-heading);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.ic-parts__pass-fare {
	display: block;
	margin-top: 4px;
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	line-height: 1.4;
	color: var(--tpp-text-light);
}

.ic-parts__pass-stamp {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 12px;
	padding: 4px 8px;
	border: 1.5px solid var(--tpp-accent-dark);
	border-radius: 5px;
	font-family: var(--mono);
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpp-accent-ink);
	transform: rotate(-4deg);
}

.ic-parts__pass-stamp svg {
	width: 9px;
	height: 9px;
}

.ic-parts__pass-stub {
	display: grid;
	align-content: space-between;
	padding: 14px 10px;
	border-left: 2px dashed #D9D2C4;
	text-align: center;
}

.ic-parts__pass-seat {
	font-family: var(--tpp-font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
}

.ic-parts__pass-code {
	display: block;
	height: 26px;
	background: repeating-linear-gradient(90deg, var(--tpp-black) 0 2px, transparent 2px 4px, var(--tpp-black) 4px 5px, transparent 5px 7px);
}


/* ──────────────────────────────────────────────
   Live Q&A — a member's question, Owen answering
   ────────────────────────────────────────────── */

.ic-parts__chat {
	display: grid;
	gap: 10px;
	width: min(262px, 100%);
}

.ic-parts__msg {
	max-width: 88%;
	padding: 11px 14px;
	border-radius: 16px;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.ic-parts__msg-who {
	display: block;
	margin-bottom: 3px;
	font-family: var(--mono);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
}

.ic-parts__msg--member {
	justify-self: start;
	border-bottom-left-radius: 5px;
	background: var(--tpp-white);
	box-shadow: 0 0 0 1px var(--tpp-border-light);
	color: var(--tpp-black);
}

.ic-parts__msg--owen {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom-right-radius: 5px;
	background: var(--tpp-black);
	color: var(--tpp-white);
}

.ic-parts__msg--owen .ic-parts__msg-who {
	color: rgba(255, 255, 255, 0.55);
}

.ic-parts__msg-avatar {
	flex: none;
	width: 26px;
	height: 26px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 30%;
}

.ic-parts__typing {
	display: inline-flex;
	gap: 4px;
}

/* The one thing that keeps moving. Paused until the script marks the chat
   as on screen, and paused again when it scrolls away. */
.ic-parts__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tpp-accent);
	animation: ic-parts-typing 1.2s ease-in-out infinite;
	animation-play-state: paused;
}

.ic-parts__dot:nth-child(2) {
	animation-delay: 0.15s;
}

.ic-parts__dot:nth-child(3) {
	animation-delay: 0.3s;
}

.ic-parts__chat.is-in-view .ic-parts__dot {
	animation-play-state: running;
}

@keyframes ic-parts-typing {
	0%, 60%, 100% {
		opacity: 0.3;
		transform: none;
	}

	30% {
		opacity: 1;
		transform: translateY(-3px);
	}
}


/* ──────────────────────────────────────────────
   Giveaways — the dark band and its prize ticket
   ────────────────────────────────────────────── */

.ic-parts__tile--band {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 0;
	padding: 30px 36px;
	border-color: var(--tpp-black);
	background: radial-gradient(ellipse at 80% 50%, #2E2E2E, var(--tpp-black) 65%);
}

.ic-parts__tile--band .ic-parts__label {
	color: var(--tpp-accent);
}

.ic-parts__tile--band .ic-parts__title {
	color: var(--tpp-white);
}

.ic-parts__tile--band .ic-parts__desc {
	color: rgba(255, 255, 255, 0.65);
}

.ic-parts__ticket {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 64px;
	flex: none;
	width: 300px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--tpp-accent);
	color: var(--tpp-black);
	box-shadow: 0 26px 40px -24px rgba(0, 0, 0, 0.9);
	transform: rotate(3deg);
}

.ic-parts__ticket-main {
	padding: 16px 18px;
}

.ic-parts__ticket-main .ic-parts__mono {
	color: var(--tpp-black);
	opacity: 0.7;
}

.ic-parts__ticket-title {
	display: block;
	margin-top: 6px;
	font-family: var(--tpp-font-heading);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.ic-parts__ticket-stub {
	display: grid;
	place-items: center;
	border-left: 2px dashed rgba(26, 26, 26, 0.35);
}

.ic-parts__ticket-stub svg {
	width: 22px;
	height: 22px;
}


/* ──────────────────────────────────────────────
   Scroll-reveal
   .is-visible comes from js/inner-circle-call-parts.js, per tile, with a
   short stagger (--reveal-delay) across the tiles that arrive together.
   ────────────────────────────────────────────── */

.ic-parts__heading,
.ic-parts__tile {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-parts__heading.is-visible,
.ic-parts__tile.is-visible {
	opacity: 1;
	transform: none;
	transition-delay: var(--reveal-delay, 0s);
}


/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≤991px) — two across: the photo and the band the full width */
@media screen and (max-width: 991px) {
	.ic-parts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ic-parts__tile--photo {
		grid-column: 1 / -1;
	}
}

/* Mobile (≤767px) — one column */
@media screen and (max-width: 767px) {
	.ic-parts__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
		margin-bottom: 40px;
	}

	.ic-parts__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.ic-parts__tile {
		min-height: 0;
	}

	.ic-parts__tile--photo {
		min-height: 400px;
	}

	.ic-parts__tile--band {
		flex-direction: column;
		align-items: flex-start;
		padding: 26px 22px;
	}

	.ic-parts__ticket {
		width: 100%;
		max-width: 300px;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion — everything in place, the dots still
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ic-parts__heading,
	.ic-parts__tile {
		transition: none;
	}

	.ic-parts__dot {
		animation: none;
	}
}
