/*--------------------------------------------------------------
# Inner Circle — The private Facebook group
# Concept 02 of ref-doc/inner-circle-facebook-group-concepts.html,
# built 30 Nov 2026: a brushed-metal panel with the pitch on the
# left and real posts from the group drifting past on the right.
--------------------------------------------------------------*/

/* Top padding only on desktop: .ic-parts above has none, and .ic-guests
   below brings its own 100px top. Below 992px inner-circle-rhythm.css makes
   it bottom-only, like every other section on the page. */
.ic-group {
	padding: 100px 0 0;
	background: var(--tpp-white);
}

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

/* The brushed black of the hero card. Full container width, like the
   Lounge Pass card further down (1232px on wide screens). */
.ic-group__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
	gap: 56px;
	align-items: center;
	padding-left: 64px;
	border-radius: 32px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
		linear-gradient(135deg, #3C3C3C, #151515 52%, #2B2B2B);
	overflow: hidden;
	box-shadow: 0 40px 80px -50px rgba(26, 26, 26, 0.6);

	/* Scroll-reveal */
	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-group.is-visible .ic-group__panel {
	opacity: 1;
	transform: translateY(0);
}

/* No screenshots set: the text takes the whole panel */
.ic-group--text-only .ic-group__panel {
	grid-template-columns: minmax(0, 1fr);
	padding-right: 64px;
}


/* ──────────────────────────────────────────────
   The pitch
   ────────────────────────────────────────────── */

.ic-group__copy {
	padding: 52px 0;
	container-type: inline-size; /* the heading sizes to this column (cqi) */
}

.ic-group__heading {
	margin: 0;
	font-family: var(--tpp-font-heading);
	/* Sized to the text column so each line of "Join the private Facebook
	   group. / Where members share their best finds." stays on one line from
	   tablets up: the longer line is about 17.4 times the font size wide. */
	font-size: clamp(1.5rem, 5.6cqi, 2.5rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--tpp-white);
}

.ic-group__heading-line {
	display: block;
	text-wrap: balance;
}

.ic-group__heading-line + .ic-group__heading-line {
	color: #8C8C8C;
}

.ic-group__facts {
	display: grid;
	gap: 8px;
	margin: 22px 0 28px;
	padding: 0;
	list-style: none;
}

.ic-group__facts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem; /* one line each on desktop */
	line-height: 1.5;
	color: #D4D4D4;
	text-wrap: pretty; /* no lone last word */
}

/* Owen's sky blue for the dots: information, not an action */
.ic-group__facts li::before {
	content: '';
	flex: none;
	width: 7px;
	height: 7px;
	margin-top: 0.6em;
	border-radius: 50%;
	background: var(--tpp-sky);
}

/* Join: orange, the key action on this dark panel, like .ic-kit__join */
.ic-group__join {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 22px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease;
}

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

.ic-group__join:hover {
	background: var(--tpp-accent-dark);
}

.ic-group__join:focus-visible {
	outline: 2px solid var(--tpp-white);
	outline-offset: 3px;
}

.ic-group__join-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tpp-black);
	color: var(--tpp-accent);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ic-group__join:hover .ic-group__join-icon {
	transform: translateX(3px);
}

.ic-group__join-icon svg {
	width: 15px;
	height: 15px;
}

/* "Lately in the group": three real finds, where the concept had clocks */
.ic-group__finds {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ic-group__finds-label {
	margin: 0;
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ABABAB;
}

.ic-group__finds-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)); /* one row of three */
	gap: 20px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.ic-group__find {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	align-content: start;
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	line-height: 1.45;
	color: #D4D4D4;
	text-wrap: pretty;
}

.ic-group__find-tag {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tpp-sky);
}


/* ──────────────────────────────────────────────
   The posts, drifting in two columns
   ────────────────────────────────────────────── */

.ic-group__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	height: 560px;
	padding-right: 28px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.ic-group__cols--one {
	grid-template-columns: minmax(0, 260px);
	justify-content: center;
}

/* Each track holds its posts twice and moves by one set (-50%), so the loop
   is seamless. Paused until the section is on screen (.is-moving, from the
   script) and under the pointer. */
.ic-group__track {
	display: flex;
	flex-direction: column;
	animation: ic-group-up 70s linear infinite;
	animation-play-state: paused;
}

.ic-group__col--down .ic-group__track {
	animation-name: ic-group-down;
	animation-duration: 80s;
}

.ic-group.is-moving .ic-group__track {
	animation-play-state: running;
}

.ic-group__cols:hover .ic-group__track {
	animation-play-state: paused;
}

.ic-group__shot {
	margin: 0 0 18px;
	overflow: hidden;
	border-radius: 14px;
	background: #252728;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.ic-group__img {
	display: block;
	width: 100%;
	height: auto;
}

@keyframes ic-group-up {
	to {
		transform: translateY(-50%);
	}
}

@keyframes ic-group-down {
	from {
		transform: translateY(-50%);
	}

	to {
		transform: none;
	}
}


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

/* Small laptops (992–1199px): a slimmer posts column, so the pitch keeps
   about 450px rather than 300 */
@media screen and (min-width: 992px) and (max-width: 1199px) {
	.ic-group__panel {
		grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
		gap: 40px;
		padding-left: 48px;
	}

	.ic-group--text-only .ic-group__panel {
		padding-right: 48px;
	}
}

/* Tablet (≤991px): one column, the posts under the pitch */
@media screen and (max-width: 991px) {
	.ic-group__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 40px 32px 0;
	}

	.ic-group--text-only .ic-group__panel {
		padding: 48px 32px;
	}

	.ic-group__copy {
		padding: 0 0 32px;
	}

	.ic-group--text-only .ic-group__copy {
		padding: 0;
	}

	.ic-group__cols {
		height: 400px;
		padding-right: 0;
	}
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
	.ic-group__panel {
		padding: 32px 20px 0;
		border-radius: 24px;
	}

	.ic-group--text-only .ic-group__panel {
		padding: 36px 20px;
	}

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

	.ic-group__facts li {
		font-size: 0.9375rem;
	}

	.ic-group__join {
		width: 100%;
		justify-content: space-between;
	}

	.ic-group__finds {
		margin-top: 28px;
	}

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

	.ic-group__finds-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.ic-group__cols {
		height: 320px;
		gap: 12px;
	}

	.ic-group__shot {
		margin-bottom: 12px;
		border-radius: 10px;
	}
}

/* Reduced motion: shown at once, and the posts stand still */
@media (prefers-reduced-motion: reduce) {
	.ic-group__panel {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ic-group__track {
		animation: none;
	}

	.ic-group__join,
	.ic-group__join-icon {
		transition: none;
	}
}
