/* ==========================================================================
   HeroMount components: buttons, chips, cards, form fields, pop-up windows.
   ========================================================================== */

/* Buttons ------------------------------------------------------------------
   Sponsor a Hole = gold fill + navy text. Event Details = gold outline.
   Everything else = royal blue. Minimum 48px tall. (spec Section 4)
   -------------------------------------------------------------------------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 28px;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn--primary {
	background: var(--blue);
	color: var(--white);
	box-shadow: 0 4px 16px rgba(10, 77, 179, 0.2);
}

.btn--primary:hover {
	background: var(--blue-hover);
	color: var(--white);
}

.btn--gold {
	background: var(--gold);
	color: var(--navy);
}

.btn--gold:hover {
	background: #E3C767;
	color: var(--navy);
}

.btn--gold-outline {
	border-color: var(--gold);
	background: transparent;
	color: var(--gold);
}

.btn--gold-outline:hover {
	background: rgba(217, 185, 83, 0.14);
	color: var(--gold);
}

.btn--tonal {
	background: var(--blue-tint);
	color: var(--navy);
}

.btn--tonal:hover {
	background: var(--blue-tint-hover);
	color: var(--navy);
}

.btn--outline {
	border-color: var(--blue);
	background: transparent;
	color: var(--blue);
}

.btn--outline:hover {
	background: var(--blue-tint);
	color: var(--blue-hover);
}

.btn--lg {
	min-height: 52px;
	padding-inline: 32px;
}

.btn--block {
	width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
	background: var(--border);
	color: var(--text-muted);
	box-shadow: none;
	cursor: not-allowed;
}

/* Material-style ripple on tap */
.btn__ripple {
	position: absolute;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.22;
	transform: scale(0);
	animation: hm-ripple 0.5s ease-out forwards;
	pointer-events: none;
}

@keyframes hm-ripple {
	to {
		opacity: 0;
		transform: scale(2.5);
	}
}

/* Round icon-only button (close, menu) */
.icon-button,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--navy);
	transition: background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.icon-button:hover,
.menu-toggle:hover {
	background: var(--blue-tint);
}

/* Text-style link or button ("Details →", "See it in action →") */
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.text-link:hover {
	color: var(--blue-hover);
	text-decoration: underline;
}

/* Chips -------------------------------------------------------------------- */

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--white);
	color: var(--navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.chip--on-navy {
	border-color: transparent;
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
	min-height: 30px;
	padding: 4px 14px;
	font-size: 13px;
}

.chip--on-navy-gold {
	background: rgba(217, 185, 83, 0.16);
	color: var(--gold);
}

.chip__dot {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1E9E57;
}

/* "Live" status light: a soft ring pulses out from the dot. */
.chip__dot--live::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #1E9E57;
	animation: hm-ping 1.8s ease-out infinite;
}

@keyframes hm-ping {
	0% {
		opacity: 0.7;
		transform: scale(1);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(2.8);
	}
}

/* Holes-remaining pills pulse with a soft gold glow to draw the eye. */
.is-live {
	position: relative;
	animation: hm-live-glow 1.8s ease-in-out infinite;
}

@keyframes hm-live-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(217, 185, 83, 0.55);
	}

	50% {
		box-shadow: 0 0 0 7px rgba(217, 185, 83, 0);
	}
}

/* Chips with a little life: an icon, and a lift on hover. */
.chip--lively {
	gap: 8px;
	box-shadow: var(--shadow-1);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chip--lively .icon {
	color: var(--blue);
}

@media (hover: hover) {
	.chip--lively:hover {
		border-color: #C9D3EA;
		box-shadow: var(--shadow-2);
		transform: translateY(-2px);
	}
}

.chip--blue-soft {
	border-color: transparent;
	background: var(--blue-tint);
	color: var(--navy);
	min-height: 32px;
	padding: 4px 14px;
	font-size: 13px;
}

.chip--blue-soft .icon {
	color: var(--blue);
}

/* Small line under every Sponsor a Hole button */
.checkout-note {
	margin-top: 8px;
	color: #AEB6CC;
	font-size: 12px;
	line-height: 1.3;
}

/* Cards -------------------------------------------------------------------- */

/* Lift 4px with a deeper shadow on hover (desktop pointers only) */
@media (hover: hover) {
	.card--lift {
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.card--lift:hover {
		box-shadow: var(--shadow-2);
		transform: translateY(-4px);
	}
}

/* Form fields -------------------------------------------------------------- */

.input {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid #C9CFDD;
	border-radius: var(--radius-md);
	background: var(--white);
	color: var(--text);
	font-size: 16px;
}

.input--pill {
	padding-inline: 20px;
	border-radius: var(--radius-pill);
}

.input::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

.input:focus-visible {
	border-color: var(--blue);
	outline: 2px solid var(--blue);
	outline-offset: 0;
	border-radius: var(--radius-md);
}

.input--pill:focus-visible {
	border-radius: var(--radius-pill);
}

/* Form fields and the three-step form (spec 7.14) --------------------------------- */

.input--area {
	min-height: 120px;
	resize: vertical;
}

.input[aria-invalid="true"] {
	border-color: #B3261E;
}

.field {
	margin-top: 16px;
}

.field__label {
	display: block;
	margin-bottom: 6px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
}

.field__optional {
	color: var(--text-muted);
	font-weight: 400;
}

.field__error {
	margin-top: 6px;
	color: #B3261E;
	font-size: 14px;
}

.field__error:empty {
	display: none;
}

.wizard__progress {
	margin-bottom: 20px;
}

.wizard__count {
	color: var(--blue);
	font-size: 13px;
	font-weight: 700;
}

.wizard__bar {
	height: 6px;
	margin-top: 8px;
	overflow: hidden;
	border-radius: var(--radius-pill);
	background: var(--blue-tint);
}

.wizard__bar span {
	display: block;
	width: 33.33%;
	height: 100%;
	border-radius: inherit;
	background: var(--blue);
	transition: width 0.3s ease;
}

.wizard__step {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.wizard__legend {
	display: block;
	width: 100%;
	padding: 0;
	outline: none;
}

.wizard__question {
	display: block;
	color: var(--navy);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.wizard__hint {
	display: block;
	margin-top: 4px;
	color: var(--text-muted);
	font-size: 15px;
}

.option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.option-grid--stack {
	grid-template-columns: 1fr;
}

/* Large tappable option card with a radio mark. */
.option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	padding: 10px 12px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	background: #F7F9FD;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.option:hover {
	border-color: #C9D3EA;
}

.option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.option__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--white);
	color: var(--blue);
	box-shadow: var(--shadow-1);
}

.option__label {
	flex: 1 1 auto;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.option__mark {
	flex: none;
	width: 20px;
	height: 20px;
	border: 2px solid #AEB6CC;
	border-radius: 50%;
	background: var(--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Phones: two-column cards stack the icon above the label, with the mark in the corner. */
@media (max-width: 599px) {
	.option-grid:not(.option-grid--stack) .option {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		min-height: 96px;
		padding: 12px;
	}

	.option-grid:not(.option-grid--stack) .option__mark {
		position: absolute;
		top: 12px;
		right: 12px;
	}
}

.option:has(.option__input:checked) {
	border-color: var(--blue);
	background: var(--blue-tint);
}

.option__input:checked ~ .option__mark {
	border-color: var(--blue);
	box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--blue);
}

.option:has(.option__input:focus-visible) {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.check-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.check {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.check__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.check__label {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 20px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-pill);
	background: #F7F9FD;
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.check__input:checked + .check__label {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
	font-weight: 700;
}

.check__input:focus-visible + .check__label {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.wizard__picked {
	width: fit-content;
	margin-top: 12px;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: var(--blue-tint);
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
}

.wizard__checkout {
	margin-top: 8px;
}

.wizard__problem {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: #FCEEEE;
	color: #8C1D18;
	font-size: 14px;
}

.wizard__nav {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.wizard__next {
	flex: 1 1 auto;
}

.wizard__back {
	flex: none;
}

.wizard__done {
	padding: 24px 0 8px;
	outline: none;
	text-align: center;
}

.done-mark {
	margin-inline: auto;
	color: var(--blue);
}

.done-mark__circle {
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: hm-draw 0.5s ease-out forwards;
}

.done-mark__check {
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
	animation: hm-draw 0.3s ease-out 0.45s forwards;
}

@keyframes hm-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.wizard__done-title {
	margin-top: 16px;
	color: var(--navy);
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
}

.wizard__done-text {
	margin-top: 6px;
	font-size: 16px;
}

.wizard__preview-note {
	margin-top: 16px;
	color: var(--text-muted);
	font-size: 13px;
}

@media (min-width: 600px) {
	.wizard__nav {
		justify-content: flex-end;
	}

	.wizard__next {
		flex: none;
		min-width: 140px;
	}

	.wizard__back {
		margin-right: auto;
	}

	.option__label {
		font-size: 15px;
	}
}

/* Pop-up windows (spec Section 9) -------------------------------------------
   Phone: bottom sheet sliding up to 92% of the screen, content scrolls inside.
   Desktop: centered window about 720px wide over a 60% navy dimmed page.
   -------------------------------------------------------------------------- */

.hm-window {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: transparent;
	color: var(--text-body);
}

.hm-window::backdrop {
	background: rgba(2, 5, 25, 0.6);
}

.hm-window__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	max-height: 92dvh;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	background: var(--white);
	box-shadow: var(--shadow-3);
	animation: hm-sheet-up 0.28s ease-out;
}

.hm-window.is-closing .hm-window__panel {
	animation: hm-sheet-down 0.2s ease-in forwards;
}

.hm-window.is-closing::backdrop {
	opacity: 0;
	transition: opacity 0.2s ease;
}

@keyframes hm-sheet-up {
	from {
		transform: translateY(100%);
	}
}

@keyframes hm-sheet-down {
	to {
		transform: translateY(100%);
	}
}

.hm-window__grab {
	display: flex;
	justify-content: center;
	padding: 10px 0 2px;
	touch-action: none;
}

.hm-window__handle {
	width: 40px;
	height: 5px;
	border-radius: var(--radius-pill);
	background: #C9CFDD;
}

.hm-window__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 12px 8px 20px;
	border-bottom: 1px solid var(--border);
	touch-action: none;
}

.hm-window__title {
	color: var(--navy);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.hm-window__body {
	flex: 1 1 auto;
	/* Lets the body shrink inside the sheet so long profiles scroll instead of spilling off the top. */
	min-height: 0;
	padding: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.hm-window__body > * + * {
	margin-top: 14px;
}

.hm-window__foot {
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--border);
	background: var(--white);
}

@media (min-width: 768px) {
	.hm-window {
		display: none;
		align-items: center;
		justify-content: center;
		padding: 24px;
	}

	.hm-window[open] {
		display: flex;
	}

	.hm-window__panel {
		position: relative;
		width: min(720px, 100%);
		max-height: min(86vh, 820px);
		border-radius: var(--radius-card);
		animation: hm-window-in 0.22s ease-out;
	}

	.hm-window.is-closing .hm-window__panel {
		animation: hm-window-out 0.16s ease-in forwards;
	}

	.hm-window__grab {
		display: none;
	}

	.hm-window__head {
		padding: 16px 16px 12px 28px;
	}

	.hm-window__title {
		font-size: 20px;
	}

	.hm-window__body {
		padding: 28px;
	}

	.hm-window__foot {
		padding: 16px 28px;
		border-radius: 0 0 var(--radius-card) var(--radius-card);
	}
}

@keyframes hm-window-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@keyframes hm-window-out {
	to {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* Accordions -------------------------------------------------------------------
   One open at a time, 250ms expand (spec Section 12). Without JavaScript,
   every panel stays open so nothing is hidden.
   -------------------------------------------------------------------------- */

.accordion__trigger {
	display: flex;
	align-items: center;
	width: 100%;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.accordion__chevron {
	display: inline-flex;
	flex: none;
	margin-left: auto;
	transition: transform 0.25s ease;
}

.accordion__item.is-open .accordion__chevron {
	transform: rotate(180deg);
}

.js .accordion__panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s;
}

.js .accordion__item.is-open > .accordion__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition-delay: 0s;
}

.accordion__inner {
	min-height: 0;
	overflow: hidden;
}

/* Carousels ----------------------------------------------------------------------
   Phones: swipe sideways, the next card peeks in, dots show the position.
   No auto-advance. Wider screens turn the same list into a grid.
   -------------------------------------------------------------------------- */

.carousel__track {
	display: flex;
	gap: 12px;
	margin-inline: calc(var(--gutter) * -1);
	padding: 4px var(--gutter) 12px;
	overflow-x: auto;
	scroll-padding-inline: var(--gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__slide {
	display: flex;
	flex: 0 0 85%;
	scroll-snap-align: start;
}

.carousel__slide > * {
	width: 100%;
}

.carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-top: 4px;
}

.carousel__dot {
	position: relative;
	width: 32px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.carousel__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: var(--radius-pill);
	background: #B9C2D8;
	transform: translate(-50%, -50%);
	transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel__dot[aria-current="true"]::before {
	width: 20px;
	background: var(--blue);
}

/* Photo slots ----------------------------------------------------------------
   A real photo fills its frame. Until J supplies one, a plain labeled box
   stands in so the layout can be reviewed. No stand-in images are created.
   -------------------------------------------------------------------------- */

.photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 16px;
	background: #E4E8F1;
	color: #4B5468;
	text-align: center;
}

/* On navy bands the placeholder goes dark so it does not glare. */
.section--navy .photo-placeholder {
	background: #151B33;
	color: #AEB6CC;
}

.photo-placeholder__label {
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

/* Marquee rows (ticker, logo rows) -----------------------------------------------
   The track holds the same set of items several times and slides left by half
   its width, so the loop never shows a gap. Still when reduced motion is on.
   -------------------------------------------------------------------------- */

@keyframes hm-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Scrolling logo rows (Partners & Supporters, Year One Supporters) */

.logo-row {
	overflow: hidden;
	border-radius: var(--radius-pill);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.logo-row__track {
	display: flex;
	width: max-content;
	animation: hm-marquee var(--marquee-duration, 120s) linear infinite;
}

/* Pauses on hover, keyboard focus, or touch. */
.logo-row:hover .logo-row__track,
.logo-row:focus-within .logo-row__track,
.logo-row:focus .logo-row__track,
.logo-row.is-paused .logo-row__track {
	animation-play-state: paused;
}

.logo-row__set {
	display: flex;
	flex: none;
	gap: 16px;
	padding-right: 16px;
}

/* Grayscale at rest, full color on hover. */
.logo-pill {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--white);
	color: var(--text-muted);
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.logo-pill__name {
	font-size: 15px;
	font-weight: 700;
}

/* A pill that holds a real logo: a little taller. Gray until hovered (spec 7.4). */
.logo-pill--logo {
	min-height: 60px;
	padding: 8px 24px;
}

.logo-pill__logo {
	width: auto;
	height: 40px;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-pill:hover .logo-pill__logo,
.logo-pill.is-center .logo-pill__logo {
	filter: none;
	opacity: 1;
}

/* Spotlight rows: the highlighted pill grows about 15% and shows in color. */
.logo-row--spotlight {
	padding-block: 12px;
}

.logo-row--spotlight .logo-pill {
	transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.logo-row--spotlight .logo-pill.is-center,
.logo-row--spotlight .logo-pill:hover {
	border-color: var(--blue);
	color: var(--blue);
	transform: scale(1.15);
}

/* When every logo fits on screen the row stands still, with no repeats. */
.logo-row.is-static {
	overflow: visible;
	border-radius: 0;
	-webkit-mask-image: none;
	mask-image: none;
}

.logo-row.is-static .logo-row__track {
	width: auto;
	justify-content: center;
	animation: none;
}

.logo-row.is-static .logo-row__set {
	padding-right: 0;
}

.logo-row.is-static .logo-row__set + .logo-row__set {
	display: none;
}

/* White logos sit on a navy pill so they can be seen. */
.logo-pill--dark {
	border-color: var(--navy);
	background: var(--navy);
}

.logo-pill:hover {
	border-color: #C9D3EA;
	color: var(--navy);
}

.logo-pill:hover .icon {
	color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
	.logo-row {
		border-radius: 0;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.logo-row__track {
		width: auto;
		animation: none;
	}

	.logo-row__set {
		flex: 1 1 auto;
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 12px;
		padding-right: 0;
	}

	.logo-row__set + .logo-row__set {
		display: none;
	}
}

/* Section entrances: a soft rise and fade that settles gently, once (spec Section 12).
   Only opacity and transform move, so the browser handles it without redrawing the page. */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s var(--ease-settle), transform 0.6s var(--ease-settle);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* Tiles that fade in one after another, once. */
.js [data-reveal-stagger] > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s var(--ease-settle), transform 0.5s var(--ease-settle);
}

.js [data-reveal-stagger] > .is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal],
	.js [data-reveal-stagger] > * {
		opacity: 1;
		transform: none;
	}
}

/* Pill tabs (Join the Crew roles, Get in Touch paths) ---------------------------- */

.pill-tabs {
	display: flex;
	gap: 4px;
	padding: 6px;
	border-radius: var(--radius-pill);
	background: var(--blue-tint);
}

.pill-tabs__tab {
	flex: 1 1 0;
	min-width: 0;
	min-height: 44px;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.pill-tabs__tab:hover {
	color: var(--navy);
}

.pill-tabs__tab[aria-selected="true"] {
	background: var(--blue);
	color: var(--white);
	font-weight: 700;
}

/* FAQ accordion: open = light blue fill, royal blue left bar, chevron flips. ------- */

.faq {
	display: grid;
	gap: 12px;
}

.faq__column {
	display: grid;
	gap: 12px;
	align-content: start;
}

.faq__item {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--white);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.faq__item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	background: var(--blue);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.faq__item.is-open {
	border-color: #C9D3EA;
	background: var(--blue-tint);
}

.faq__item.is-open::before {
	opacity: 1;
}

@media (hover: hover) {
	.faq__item:not(.is-open):hover {
		border-color: #C9D3EA;
		background: #F7F9FD;
	}
}

.faq__trigger {
	gap: 16px;
	min-height: 64px;
	padding: 16px 20px;
	color: var(--navy);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.faq__chevron {
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--blue-tint);
	color: var(--blue);
}

.faq__item.is-open .faq__chevron {
	background: var(--white);
}

.faq__answer {
	padding: 0 20px 20px;
	font-size: 15px;
}

.faq-more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: fit-content;
	max-width: 100%;
	margin: 28px auto 0;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	background: var(--white);
	box-shadow: var(--shadow-1);
}

.faq-more__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--blue-tint);
	color: var(--blue);
}

.faq-more__text {
	color: var(--navy);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 700;
}

.faq-more__button {
	margin-left: auto;
}

@media (min-width: 900px) {
	.faq {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 24px;
	}

	.faq__column {
		gap: 16px;
	}

	.faq__trigger {
		padding: 20px 24px;
		font-size: 17px;
	}

	.faq__answer {
		padding: 0 24px 24px;
	}

	.faq-more {
		gap: 16px;
		padding: 16px 16px 16px 20px;
		border-radius: var(--radius-pill);
	}

	.faq-more__button {
		margin-left: 32px;
	}
}

/* Window contents (spec Section 9) ------------------------------------------------- */

.hm-window__foot--stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

/* Photo gallery with arrows and dots (Mission Details). */
.gallery {
	position: relative;
}

.gallery__track {
	display: flex;
	overflow-x: auto;
	border-radius: var(--radius-md);
	background: var(--border);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
	display: none;
}

.gallery__slide {
	flex: 0 0 100%;
	aspect-ratio: 4 / 3;
	scroll-snap-align: start;
}

.gallery__arrow {
	position: absolute;
	top: calc(50% - 34px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--navy);
	box-shadow: var(--shadow-2);
	cursor: pointer;
}

.gallery__arrow--prev {
	left: 10px;
}

.gallery__arrow--next {
	right: 10px;
}

.gallery__arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.gallery__dots {
	margin-top: 2px;
}

/* Mission Details */
.mission__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
}

.mission__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mission__title {
	font-size: clamp(22px, 3vw + 12px, 28px);
}

.mission__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mission__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid #C9D3EA;
	border-radius: var(--radius-pill);
	background: var(--blue-tint);
	color: var(--blue);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.mission__chip--gold {
	border-color: rgba(217, 185, 83, 0.55);
	background: var(--gold-tint);
	color: var(--gold-dark);
}

.mission__label {
	margin-top: 20px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hm-window__body > .mission__label + p {
	margin-top: 8px;
}

/* Gold quote block (approved quotes, founder quote). */
.quote-block {
	margin: 20px 0 0;
	padding: 14px 18px;
	border-left: 4px solid var(--gold);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--gold-tint);
	color: var(--navy);
	font-size: 16px;
	font-style: italic;
	font-weight: 500;
}

.quote-block footer {
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 14px;
	font-style: normal;
}

/* Meet the Team */
.profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Nothing in the profile squeezes when the sheet is shorter than the content; it scrolls instead. */
.profile > * {
	flex-shrink: 0;
}

/* Navy-to-blue band behind the photo. */
.profile__banner {
	align-self: stretch;
	height: 124px;
	margin: -20px -20px 0;
	background:
		linear-gradient(120deg, rgba(217, 185, 83, 0.28), rgba(217, 185, 83, 0) 45%),
		linear-gradient(135deg, var(--navy), var(--blue));
}

.hm-window__body > .profile__photo {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 168px;
	height: 168px;
	margin-top: -84px;
	overflow: hidden;
	border: 4px solid var(--white);
	border-radius: 50%;
	background: #E4E8F1;
	box-shadow: 0 0 0 3px var(--gold), var(--shadow-2);
	color: #4B5468;
}

.profile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile__name {
	font-size: 24px;
}

.hm-window__body > .profile__title {
	margin-top: 6px;
	color: var(--blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.profile__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.profile__bio {
	max-width: 500px;
	font-size: 16px;
}

.profile .quote-block {
	width: 100%;
	text-align: left;
}

.quote-block--mark {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.quote-block__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--navy);
}

.quote-block--mark p {
	margin: 0;
	padding-top: 5px;
}

.profile__link {
	min-height: 44px;
	padding: 8px 20px;
	font-size: 14px;
}

@media (min-width: 768px) {
	.profile__banner {
		height: 104px;
		margin: -28px -28px 0;
	}
}

.hm-window__note {
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 13px;
	text-align: center;
}

/* Sample Impact Report */
.report-page {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.report-page__label {
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.report-page__title {
	margin-top: 4px;
	font-size: 19px;
}

.report-page__place {
	margin-top: 4px;
	color: var(--text-muted);
	font-size: 14px;
}

.report-stats,
.report-rows {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
}

.report-stats div,
.report-rows div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.report-stats div {
	padding: 12px 16px;
	border-radius: var(--radius-pill);
	background: var(--blue-tint);
}

.report-stats dt {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-body);
	font-size: 14px;
	font-weight: 500;
}

.report-stats dt .icon {
	color: var(--blue);
}

.report-stats dd,
.report-rows dd {
	margin: 0;
	color: var(--navy);
	font-weight: 700;
	text-align: right;
}

.report-stats dd {
	font-family: var(--font-head);
	font-size: 17px;
}

.report-rows div {
	padding-block: 10px;
	border-bottom: 1px solid var(--border);
	font-size: 15px;
}

.report-rows dt {
	color: var(--text-muted);
}

.report-photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.report-photos figure {
	margin: 0;
}

.report-photos__frame {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--border);
}

.report-photos figcaption {
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

/* Sponsor pop-up: navy card */
.hm-window--navy .hm-window__panel {
	background: var(--navy);
	color: var(--text-on-navy);
}

.hm-window--navy .hm-window__head {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hm-window--navy .icon-button {
	color: var(--white);
}

.hm-window--navy .icon-button:hover {
	background: rgba(255, 255, 255, 0.12);
}

.hm-window--navy :focus-visible {
	outline-color: var(--gold);
}

.promo__title {
	color: var(--white);
	font-size: clamp(26px, 4vw + 12px, 34px);
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.promo__title span {
	display: block;
	white-space: nowrap;
}

.promo__title .promo__title-gold {
	color: var(--gold);
}

.promo__text {
	font-size: 16px;
}

.promo__pill {
	width: fit-content;
	padding: 8px 16px;
	border: 1px solid rgba(217, 185, 83, 0.6);
	border-radius: var(--radius-pill);
	background: rgba(217, 185, 83, 0.1);
	color: var(--gold);
	font-size: 14px;
	font-weight: 700;
}

.hm-window__body > .promo__action {
	margin-top: 24px;
	text-align: center;
}

.promo__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
}

.promo__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.promo__link:hover {
	color: var(--gold);
}

@media (min-width: 768px) {
	.hm-window--navy .hm-window__panel {
		width: min(520px, 100%);
	}
}

/* Wait list */
.team-size {
	min-width: 0;
	margin-inline: 0;
	padding: 0;
	border: 0;
}

.team-size .check-row {
	margin-top: 0;
}

.team-size .check__label {
	justify-content: center;
	min-width: 56px;
}

.simple-form__send {
	margin-top: 24px;
}

/* Photo lightbox */
.hm-window--lightbox .hm-window__panel {
	position: absolute;
	inset: 0;
	width: 100%;
	max-height: none;
	border-radius: 0;
	background: rgba(2, 5, 25, 0.96);
	animation: hm-fade-only 0.2s ease-out;
}

@keyframes hm-fade-only {
	from {
		opacity: 0;
	}
}

.hm-window--lightbox.is-closing .hm-window__panel {
	animation: none;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.14);
	color: var(--white);
}

.lightbox__close:hover {
	background: rgba(255, 255, 255, 0.26);
}

.lightbox {
	position: relative;
	height: 100%;
}

.lightbox__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.lightbox__track::-webkit-scrollbar {
	display: none;
}

.lightbox__slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	padding: 64px 12px;
	scroll-snap-align: start;
}

.lightbox__slide img {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--radius-sm);
	object-fit: contain;
}

.lightbox .gallery__arrow {
	top: calc(50% - 22px);
}

@media (min-width: 768px) {
	.hm-window--lightbox {
		padding: 0;
	}

	.lightbox__slide {
		padding: 72px 88px;
	}

	.lightbox .gallery__arrow--prev {
		left: 24px;
	}

	.lightbox .gallery__arrow--next {
		right: 24px;
	}
}

/* Steppers (How Funding Works, event Impact Timeline) ---------------------------------
   Current step = filled. Done = blue with a check. Upcoming = gray. The last step
   always keeps its gold accent. The line fills to the current step.

   Default stepper: phones show one description at a time in a panel (tap a number
   or "Next"); wide screens show every step as a card and walk through them.
   Timeline stepper (.stepper--timeline): phones show every step in a vertical line.
   -------------------------------------------------------------------------- */

.stepper {
	position: relative;
}

.stepper__rail {
	position: absolute;
	top: 21px;
	right: 12.5%;
	left: 12.5%;
	height: 3px;
	border-radius: var(--radius-pill);
	background: var(--border);
}

/* The whole line is drawn navy to gold; only the part up to the current step is revealed. */
.stepper__fill {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(to right, var(--navy), var(--blue) 60%, var(--gold));
	clip-path: inset(0 calc(100% - var(--stepper-progress, 0%)) 0 0);
	transition: clip-path 0.45s ease;
}

.stepper__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stepper__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.stepper__marker {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #C9CFDD;
	border-radius: 50%;
	background: var(--white);
	color: var(--text-muted);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.stepper__check {
	display: none;
}

.stepper__when {
	color: var(--gold-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.stepper__name {
	color: var(--text-muted);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
}

.stepper__step.is-current .stepper__marker {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
	box-shadow: 0 0 0 6px rgba(10, 77, 179, 0.14);
	transform: scale(1.06);
}

.stepper__step.is-current .stepper__name {
	color: var(--navy);
	font-weight: 700;
}

.stepper__step.is-done .stepper__marker {
	border-color: var(--blue);
	background: var(--blue-tint);
	color: var(--blue);
}

.stepper__step.is-done .stepper__number {
	display: none;
}

.stepper__step.is-done .stepper__check {
	display: inline-flex;
}

.stepper__step--gold .stepper__marker {
	border-color: var(--gold);
	background: var(--gold-tint);
	color: var(--gold-dark);
}

.stepper__step--gold .stepper__name {
	color: var(--gold-dark);
	font-weight: 700;
}

.stepper__step--gold.is-current .stepper__marker {
	border-color: var(--gold);
	background: var(--gold);
	color: var(--navy);
	box-shadow: 0 0 0 6px rgba(217, 185, 83, 0.25);
}

/* Phones, default stepper: one description at a time in the panel below. */
.js .stepper__text,
.stepper__when {
	display: none;
}

.stepper__panel {
	display: none;
}

.js .stepper__panel {
	display: block;
	margin-top: 20px;
	padding: 16px 16px 4px;
	border: 1px solid #C9D3EA;
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-1);
}

.stepper__panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.stepper__panel-title {
	color: var(--navy);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 700;
}

.stepper__panel-count {
	color: var(--text-muted);
	font-size: 13px;
}

.stepper__panel-text {
	margin-top: 6px;
	font-size: 15px;
}

.stepper__panel-text.is-fading {
	animation: hm-fade-in 0.25s ease;
}

@keyframes hm-fade-in {
	from {
		opacity: 0;
	}
}

.stepper__panel-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
	border-top: 1px solid var(--border);
}

html:not(.js) .stepper__list {
	grid-template-columns: 1fr;
	gap: 16px;
}

html:not(.js) .stepper__rail {
	display: none;
}

/* Phones, timeline stepper: every step visible down a vertical line. */
@media (max-width: 899px) {
	.stepper--timeline .stepper__rail {
		top: 22px;
		right: auto;
		bottom: 22px;
		left: 21px;
		width: 3px;
		height: auto;
	}

	.stepper--timeline .stepper__fill {
		background: linear-gradient(to bottom, var(--navy), var(--blue) 60%, var(--gold));
		clip-path: inset(0 0 calc(100% - var(--stepper-progress, 0%)) 0);
	}

	.stepper--timeline .stepper__list {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.stepper--timeline .stepper__step {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 16px;
		align-items: start;
		gap: 2px 16px;
		padding: 10px 12px 12px 0;
		border-radius: var(--radius-md);
		text-align: left;
		transition: background-color 0.3s ease;
	}

	.stepper--timeline .stepper__marker {
		grid-row: 1 / span 3;
	}

	.stepper--timeline .stepper__when,
	.js .stepper--timeline .stepper__text {
		display: block;
	}

	.stepper--timeline .stepper__name,
	.stepper--timeline .stepper__step--gold .stepper__name,
	.stepper--timeline .stepper__step.is-current .stepper__name {
		color: var(--navy);
		font-family: var(--font-head);
		font-size: 17px;
		font-weight: 700;
	}

	.stepper--timeline .stepper__text {
		font-size: 15px;
	}

	.js .stepper--timeline .stepper__panel {
		display: none;
	}
}

@media (min-width: 900px) {
	/* Wide screens: four step cards in a row. The current one is raised. */
	.stepper__rail {
		top: 47px;
		right: calc((100% - 48px) / 4 - 48px);
		left: 48px;
	}

	.stepper__list {
		gap: 16px;
		align-items: stretch;
	}

	.stepper__step {
		align-items: flex-start;
		gap: 0;
		padding: 20px;
		border: 1px solid transparent;
		border-radius: var(--radius-card);
		text-align: left;
		cursor: pointer;
		transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
	}

	.stepper__marker {
		width: 56px;
		height: 56px;
		font-size: 18px;
	}

	.stepper__when {
		display: block;
		margin-top: 18px;
	}

	.stepper__name,
	.stepper__step--gold .stepper__name,
	.stepper__step.is-current .stepper__name {
		margin-top: 18px;
		color: var(--navy);
		font-family: var(--font-head);
		font-size: 18px;
		font-weight: 700;
	}

	.stepper__when + .stepper__name {
		margin-top: 4px;
	}

	.js .stepper__text,
	.stepper__text {
		display: block;
		margin-top: 8px;
		font-size: 15px;
	}

	.js .stepper__panel {
		display: none;
	}

	.stepper__step.is-current {
		border-color: #C9D3EA;
		background: var(--white);
		box-shadow: var(--shadow-2);
		transform: translateY(-4px);
	}

	.section--tint .stepper__step.is-current {
		border-color: transparent;
	}

	.stepper__step--gold.is-current {
		border-color: rgba(217, 185, 83, 0.6);
		background: var(--gold-tint);
	}

	.stepper__step:not(.is-current):hover {
		background: rgba(238, 242, 251, 0.6);
	}
}

/* 9.4 Sponsor flag (both pages): a ball rolls in, drops into the cup, and the cup
   becomes a small flag that stays in the corner. Only transform and opacity move. --- */

.putt {
	position: fixed;
	right: 0;
	bottom: calc(16px + env(safe-area-inset-bottom));
	left: 0;
	z-index: 39;
	display: flex;
	justify-content: flex-end;
	height: 48px;
	padding-right: var(--gutter);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Out of the way over forms, and while any window is open. */
.putt.is-away {
	opacity: 0;
	transform: translateY(20px);
}

.putt.is-away .putt__flag {
	pointer-events: none;
}

.is-locked .putt {
	display: none;
}

.putt__cup {
	position: absolute;
	right: calc(var(--gutter) + 8px);
	bottom: 4px;
	width: 30px;
	height: 10px;
	border-radius: 50%;
	background: var(--navy);
	box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
	opacity: 0;
}

.putt__ball {
	position: absolute;
	right: calc(var(--gutter) + 15px);
	bottom: 8px;
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--navy);
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, #FFFFFF 0 46%, #D5DAE8 100%);
	box-shadow: 0 2px 6px rgba(2, 5, 25, 0.25);
	opacity: 0;
}

.putt__flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	pointer-events: auto;
	opacity: 0;
	transform: scale(0.3);
	transform-origin: 100% 100%;
}

.putt__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 18px 8px 14px;
	border: 2px solid var(--gold);
	border-radius: var(--radius-pill);
	background: var(--navy);
	color: var(--white);
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--shadow-3);
}

.putt__open .icon {
	color: var(--gold);
	transform-origin: 50% 100%;
	animation: hm-flag-wave 2.4s ease-in-out infinite;
}

.putt__count {
	padding-left: 8px;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--gold);
}

.putt__open:hover {
	background: #0B1436;
}

.putt__close {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--white);
	color: var(--text-muted);
	cursor: pointer;
	box-shadow: var(--shadow-2);
}

.putt__close::after {
	content: "";
	position: absolute;
	width: 44px;
	height: 44px;
}

/* First showing: the putt. */
.putt.is-rolling .putt__cup {
	animation: hm-cup 2.6s ease-out both;
}

.putt.is-rolling .putt__ball {
	animation: hm-putt 2.3s cubic-bezier(0.16, 0.72, 0.3, 1) both;
}

.putt.is-rolling .putt__flag {
	animation: hm-flag-up 0.5s var(--ease-settle) 2.3s both;
}

/* Later visits: the flag is simply there. */
.putt.is-resting .putt__flag {
	opacity: 1;
	transform: none;
}

@keyframes hm-putt {
	0% {
		opacity: 1;
		transform: translateX(-100vw) rotate(-1440deg);
	}

	86% {
		opacity: 1;
		transform: translateX(0) rotate(0deg);
	}

	100% {
		opacity: 0;
		transform: translateY(8px) scale(0.3);
	}
}

@keyframes hm-cup {
	0%,
	88% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes hm-flag-up {
	from {
		opacity: 0;
		transform: scale(0.3);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hm-flag-wave {
	0%,
	100% {
		transform: rotate(-5deg);
	}

	50% {
		transform: rotate(6deg);
	}
}

@media (min-width: 768px) {
	.putt {
		bottom: 24px;
		padding-right: 24px;
	}

	.putt__cup {
		right: 32px;
	}

	.putt__ball {
		right: 39px;
	}
}

/* Phones: a smaller flag, and it moves up while the bottom "Partner With Us" bar is showing. */
@media (max-width: 767px) {
	.putt {
		height: 40px;
		transition: opacity 0.25s ease, transform 0.25s ease, bottom 0.25s ease;
	}

	.has-sticky-bar .putt:not(.putt--event) {
		bottom: calc(74px + env(safe-area-inset-bottom));
	}

	.putt__open {
		gap: 6px;
		min-height: 40px;
		padding: 6px 12px 6px 10px;
		font-size: 13px;
	}

	.putt__open .icon {
		width: 16px;
		height: 16px;
	}

	.putt__count {
		padding-left: 6px;
	}

	.putt__close {
		width: 24px;
		height: 24px;
	}

	.putt__ball {
		bottom: 6px;
	}

	.putt__cup {
		bottom: 2px;
	}
}

a.putt__open {
	text-decoration: none;
}

a.putt__open:hover {
	color: var(--white);
}

@media (min-width: 768px) {
	.putt--event {
		bottom: 24px;
	}
}
