/*--------------------------------------------------------------
# Inner Circle — Call Clips
# Centered heading over a rounded panel holding a swipeable
# carousel of short session clips, each opening in a lightbox.
--------------------------------------------------------------*/

/* ── Section ── */
.ic-clips {
	background: var(--tpp-white);
	/* First section under the hero since 28 Nov 2026 (Owen: the sample calls
	   should be the first thing you see), so it owns the gap under the hero.
	   No bottom padding: .ic-horizon below opens with its own strip of sky,
	   which is the gap. Below 992px inner-circle-rhythm.css sets both. */
	padding: 100px 0 0;
	overflow: hidden;
}

/* ── Container ── */
.ic-clips__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}


/* ──────────────────────────────────────────────
   Heading
   ────────────────────────────────────────────── */

.ic-clips__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 12px;
}

.ic-clips__sub {
	text-align: center;
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--tpp-text-light);
	margin: 0 0 48px;
}


/* ──────────────────────────────────────────────
   Panel
   ────────────────────────────────────────────── */

.ic-clips__panel {
	background: var(--tpp-off-white);
	border: 1px solid var(--tpp-border-light);
	border-radius: 16px;
	padding: 32px;
}


/* ──────────────────────────────────────────────
   Scroll-reveal
   ────────────────────────────────────────────── */

.ic-clips__heading,
.ic-clips__sub,
.ic-clips__panel {
	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-clips.is-visible .ic-clips__heading,
.ic-clips.is-visible .ic-clips__sub,
.ic-clips.is-visible .ic-clips__panel {
	opacity: 1;
	transform: translateY(0);
}

.ic-clips.is-visible .ic-clips__sub {
	transition-delay: 0.08s;
}

.ic-clips.is-visible .ic-clips__panel {
	transition-delay: 0.16s;
}


/* ──────────────────────────────────────────────
   Carousel viewport + track

   Native horizontal scrolling gives touch swipe for free;
   JS only syncs the arrows and dots to it.
   ────────────────────────────────────────────── */

.ic-clips__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ic-clips__viewport::-webkit-scrollbar {
	display: none;
}

.ic-clips__viewport:focus-visible {
	outline: 2px solid var(--tpp-black);
	outline-offset: 4px;
	border-radius: 12px;
}

.ic-clips__track {
	display: flex;
	gap: 16px;
	align-items: stretch;
}


/* ──────────────────────────────────────────────
   Clip card — 3 across on desktop
   ────────────────────────────────────────────── */

.ic-clips__card {
	flex: 0 0 calc((100% - 32px) / 3);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: 0;
	background: var(--tpp-black);
	border: none;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ic-clips__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

/* Inset so the ring is not clipped by the scroll container. */
.ic-clips__card:focus-visible {
	outline: 2px solid var(--tpp-white);
	outline-offset: -4px;
}

/* Placeholder cards carry no video and cannot be opened. */
.ic-clips__card--placeholder {
	cursor: default;
	opacity: 0.55;
}

.ic-clips__card--placeholder:hover {
	transform: none;
	box-shadow: none;
}


/* ── Thumbnail ── */
.ic-clips__card-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.ic-clips__card-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.ic-clips__card-play {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: var(--tpp-black);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ic-clips__card:hover .ic-clips__card-play {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ic-clips__card--placeholder:hover .ic-clips__card-play {
	transform: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}


/* ── Caption ── */
.ic-clips__card-title {
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--tpp-white);
	padding: 16px 18px 18px;
}


/* ──────────────────────────────────────────────
   Controls — only shown once the track overflows
   ────────────────────────────────────────────── */

.ic-clips__controls {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.ic-clips.has-overflow .ic-clips__controls {
	display: flex;
}

.ic-clips__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--tpp-border);
	border-radius: 50%;
	color: var(--tpp-black);
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.ic-clips__arrow:hover:not(:disabled) {
	background: var(--tpp-black);
	border-color: var(--tpp-black);
	color: var(--tpp-white);
}

.ic-clips__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.ic-clips__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ic-clips__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: var(--tpp-border);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: width 0.3s ease, background 0.3s ease;
}

.ic-clips__dot.is-active {
	width: 24px;
	border-radius: 100px;
	background: var(--tpp-black);
}


/* ──────────────────────────────────────────────
   Lightbox
   ────────────────────────────────────────────── */

.ic-clips-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;

	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.ic-clips-modal.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ic-clips-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ic-clips-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	background: var(--tpp-black);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);

	transform: scale(0.92) translateY(16px);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-clips-modal.is-active .ic-clips-modal__dialog {
	transform: scale(1) translateY(0);
}

.ic-clips-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	color: var(--tpp-white);
	cursor: pointer;
	transition: background 0.25s ease;
}

.ic-clips-modal__close:hover {
	background: rgba(0, 0, 0, 0.75);
}

.ic-clips-modal__player {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ic-clips-modal__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ic-clips-modal__caption {
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	padding: 16px 20px;
}


/* ── CTA overlay ── */
.ic-clips-modal__cta {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(26, 26, 26, 0.94);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);

	opacity: 0;
	transition: opacity 0.3s ease;
}

.ic-clips-modal__cta.is-visible {
	opacity: 1;
}

.ic-clips-modal__cta-inner {
	text-align: center;
	padding: 32px;
}

.ic-clips-modal__cta-title {
	font-family: var(--tpp-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--tpp-white);
	margin: 0 0 10px;
}

.ic-clips-modal__cta-desc {
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.68);
	margin: 0 0 24px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.ic-clips-modal__cta-btn {
	padding: 14px 28px;
	font-size: 0.9375rem;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent); /* orange key button, white until 29 Nov 2026 */
	border: 1.5px solid var(--tpp-accent);
}

.ic-clips-modal__cta-btn,
.ic-clips-modal__cta-btn:visited,
.ic-clips-modal__cta-btn:hover,
.ic-clips-modal__cta-btn:focus,
.ic-clips-modal__cta-btn:active {
	color: var(--tpp-black);
}

.ic-clips-modal__cta-btn:hover {
	background: var(--tpp-accent-dark);
	border-color: var(--tpp-accent-dark);
}

.ic-clips-modal__cta-btn:visited,
.ic-clips-modal__cta-btn:hover:visited {
	color: var(--tpp-black);
}

/* Flex (block-level) so it drops onto its own line below the join button. */
.ic-clips-modal__cta-replay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 18px auto 0;
	padding: 0;
	background: none;
	border: none;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: color 0.25s ease;
}

.ic-clips-modal__cta-replay:hover {
	color: var(--tpp-white);
}


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

/* Tablet (≤991px) — 2 cards across */
@media screen and (max-width: 991px) {
	.ic-clips__card {
		flex: 0 0 calc((100% - 16px) / 2);
	}

	.ic-clips__panel {
		padding: 24px;
	}
}

/* Mobile (≤767px) — 1 card, with a peek of the next */
@media screen and (max-width: 767px) {
	.ic-clips {
		padding: 0 0 72px;
	}

	.ic-clips__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
	}

	.ic-clips__sub {
		margin-bottom: 32px;
	}

	.ic-clips__panel {
		padding: 20px;
	}

	.ic-clips__track {
		gap: 12px;
	}

	.ic-clips__card {
		flex: 0 0 84%;
	}

	.ic-clips__card-title {
		padding: 14px 16px 16px;
	}

	.ic-clips-modal {
		padding: 16px;
	}

	.ic-clips-modal__dialog {
		border-radius: 16px;
	}

	.ic-clips-modal__cta-title {
		font-size: 1.25rem;
	}

	.ic-clips-modal__cta-inner {
		padding: 24px;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.ic-clips {
		padding: 0 0 56px;
	}

	.ic-clips__panel {
		padding: 16px;
	}

	.ic-clips__card {
		flex: 0 0 88%;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ic-clips__heading,
	.ic-clips__sub,
	.ic-clips__panel {
		transition: none;
	}

	.ic-clips__viewport {
		scroll-behavior: auto;
	}

	.ic-clips__card,
	.ic-clips__card-play,
	.ic-clips-modal,
	.ic-clips-modal__dialog,
	.ic-clips-modal__cta {
		transition: none;
	}
}
