/*--------------------------------------------------------------
# Inner Circle — Lounge Pass
# An off-white card: the heading, three short facts and a join
# button on the left; on the right, a member pass hanging from
# a lanyard off the card's top edge. The lanyard swings gently while
# the section is on screen, and an orange sheen follows the pointer
# across the pass. Stacks below 992px with the pass on top.
--------------------------------------------------------------*/

/* ── Section ──
   Top padding only on desktop: .ic-guests above has none at the
   bottom, and .ic-diff below brings its own 120px. Below 992px the
   page-level rhythm in inner-circle-rhythm.css takes over. */
.ic-lounge {
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

	background: var(--tpp-white);
	padding: 120px 0 0;
}

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


/* ──────────────────────────────────────────────
   Card
   No top padding, so the strap hangs from the card's top edge.
   ────────────────────────────────────────────── */

.ic-lounge__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 64px;
	align-items: center;
	padding: 0 64px 48px;
	border-radius: 28px;
	background: var(--tpp-off-white);
	overflow: hidden;

	/* Scroll-reveal */
	opacity: 0;
	transform: translateY(32px);
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ic-lounge.is-visible .ic-lounge__card {
	opacity: 1;
	transform: none;
}


/* ──────────────────────────────────────────────
   Copy
   ────────────────────────────────────────────── */

/* Even padding above and below, so the copy centres beside the pass and
   can't touch the card's top edge if it ever runs taller than the pass.
   Also the size container the heading measures itself against. */
.ic-lounge__copy {
	container-type: inline-size;
	padding: 40px 0;
}

/* Sized to its own column rather than the window (cqi), so the longer
   second line keeps to one row wherever the column is wide enough for
   it. The first font-size is the fallback for browsers without
   container units. */
.ic-lounge__heading {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 3vw + 0.25rem, 2.625rem);
	font-size: clamp(2rem, 5.6cqi, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	text-wrap: balance;
	margin: 0;
}

/* The community line under the heading (Owen, 24 Nov 2026 meeting). */
.ic-lounge__intro {
	max-width: 46ch;
	margin: 18px 0 0;
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--tpp-text);
}

.ic-lounge__facts {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 32px;
	margin: 28px 0 32px;
}

.ic-lounge__fact dt {
	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: var(--tpp-text-light);
}

.ic-lounge__fact dd {
	margin: 4px 0 0;
	font-family: var(--tpp-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tpp-black);
}


/* ──────────────────────────────────────────────
   The pass
   ────────────────────────────────────────────── */

/* Pinned to the top of its column, so the strap starts at the card's
   top edge however tall the copy beside it runs. */
.ic-lounge__art {
	display: flex;
	justify-content: center;
	align-self: start;
}

/* Swings from the top of the strap. Paused until the script marks the
   section as on screen, and paused again when it scrolls away. */
.ic-lounge__lanyard {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform-origin: 50% 0;
	animation: ic-lounge-swing 5s infinite;
	animation-play-state: paused;
}

.ic-lounge.is-in-view .ic-lounge__lanyard {
	animation-play-state: running;
}

/* A pendulum: fastest through the middle, easing at each end, and
   upright at rest. */
@keyframes ic-lounge-swing {
	0% {
		transform: rotate(0deg);
		animation-timing-function: ease-out;
	}

	25% {
		transform: rotate(2.2deg);
		animation-timing-function: ease-in-out;
	}

	75% {
		transform: rotate(-2.2deg);
		animation-timing-function: ease-in;
	}

	100% {
		transform: rotate(0deg);
	}
}

.ic-lounge__strap {
	position: relative;
	width: 34px;
	height: 70px;
	overflow: hidden;
	background: repeating-linear-gradient(180deg, var(--tpp-black) 0 18px, #2A2A2A 18px 20px);
}

/* The printed "TPP" running down the strap, trimmed where a shorter
   strap ends */
.ic-lounge__strap-print {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(90deg);
	font-family: var(--mono);
	font-size: 0.5rem;
	line-height: 1;
	letter-spacing: 0.3em;
	white-space: nowrap;
	color: var(--tpp-accent);
}

.ic-lounge__clip {
	position: relative;
	z-index: 2;
	width: 44px;
	height: 28px;
	margin-top: -4px;
	border-radius: 6px 6px 10px 10px;
	background: linear-gradient(#D9D9D9, #9B9B9B);
}

.ic-lounge__pass {
	--mx: 50%;
	--my: 30%;

	position: relative;
	display: flex;
	flex-direction: column;
	width: 260px;
	aspect-ratio: 0.66;
	margin-top: -10px;
	padding: 30px 24px 24px;
	border-radius: 20px;
	background: var(--tpp-black);
	color: var(--tpp-white);
	overflow: hidden;
	box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.5);
}

/* Holographic sheen: an orange glow wherever the pointer is (--mx / --my,
   set by the script) over a faint diagonal glint */
.ic-lounge__pass::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at var(--mx) var(--my), rgba(255, 153, 0, 0.35), transparent 40%),
		linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
	mix-blend-mode: screen;
	pointer-events: none;
}

/* The punched slot the clip goes through */
.ic-lounge__slot {
	width: 64px;
	height: 10px;
	margin: -18px auto 26px;
	border-radius: 10px;
	background: var(--tpp-off-white);
	box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}

.ic-lounge__chip {
	position: absolute;
	top: 30px;
	right: 24px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--tpp-accent);
	border-radius: 50%;
	color: var(--tpp-accent);
}

.ic-lounge__kicker {
	font-family: var(--mono);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpp-accent);
}

.ic-lounge__pass-name {
	margin: 10px 0 0;
	font-family: var(--tpp-font-heading);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--tpp-white);
}

/* The three detail rows sit at the foot of the pass */
.ic-lounge__rows {
	display: grid;
	gap: 12px;
	margin-top: auto;
}

.ic-lounge__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.ic-lounge__row-label {
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.ic-lounge__row-status {
	color: var(--tpp-accent);
}


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

/* Narrow desktop (992–1199px) — a little more room for the copy */
@media screen and (max-width: 1199px) {
	.ic-lounge__card {
		gap: 40px;
		padding: 0 48px 48px;
	}
}

/* Tablet and below (≤991px) — stacked, the pass on top so its strap
   still hangs from the card's top edge, the copy centred beneath it */
@media screen and (max-width: 991px) {
	.ic-lounge__card {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding: 0 28px 56px;
		text-align: center;
	}

	.ic-lounge__art {
		order: -1;
	}

	.ic-lounge__copy {
		padding: 0;
	}

	.ic-lounge__facts {
		justify-content: center;
	}
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
	.ic-lounge__card {
		border-radius: 22px;
	}

	.ic-lounge__strap {
		height: 60px;
	}

	.ic-lounge__pass {
		width: 240px;
	}

	.ic-lounge__facts {
		grid-template-columns: repeat(2, auto);
		gap: 18px 28px;
	}
}

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

	.ic-lounge__strap {
		height: 52px;
	}

	.ic-lounge__pass {
		width: 220px;
		padding: 26px 20px 20px;
	}

	.ic-lounge__chip {
		top: 26px;
		right: 20px;
	}

	.ic-lounge__pass-name {
		font-size: 1.75rem;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion — shown at once, the pass hangs still
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ic-lounge__card {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ic-lounge__lanyard {
		animation: none;
	}
}
