/* =========================================================
   ALSTON — SHARED UI (every page)

   1. Inline arrow        .ac-arrow
   2. Circular arrow      .ac-circ  (+ .ac-circ-btn wrapper)
   3. Sweep buttons       .ac-btn
   4. Underline links     .ac-link
   5. Progress dots       .ac-dots

   Hover effects fire on the element itself, on any ancestor
   with .ac-hover, and on the button/link that contains them.
========================================================= */

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:root {
	--ac-ease: cubic-bezier(.2, .7, .2, 1);
	--ac-swing: cubic-bezier(.7, 0, .2, 1);
}

/* ---------------------------------------------------------
   1. INLINE ARROW
   The tail grows out of a small dot while the head glides
   forward: a quick "launch" rather than a plain nudge.
--------------------------------------------------------- */

.ac-arrow {
	flex: none;
	display: inline-block;
	width: 28px;
	height: 12px;
	overflow: visible;
	transition: transform .55s var(--ac-ease);
}

.ac-arrow__tail {
	transform-box: fill-box;
	transform-origin: 100% 50%;
	transform: scaleX(.38);
	transition: transform .55s var(--ac-ease);
}

.ac-arrow__head {
	transition: transform .55s var(--ac-ease);
}

.ac-arrow__dot {
	opacity: 0;
	transform: translateX(12px);
	transition: opacity .35s ease, transform .55s var(--ac-ease);
}

.ac-arrow--prev {
	transform: scaleX(-1);
}

a:hover > .ac-arrow,
button:hover > .ac-arrow,
.ac-hover:hover .ac-arrow,
a:focus-visible > .ac-arrow {
	transform: translateX(4px);
}

a:hover > .ac-arrow--prev,
button:hover > .ac-arrow--prev,
.ac-hover:hover .ac-arrow--prev {
	transform: scaleX(-1) translateX(4px);
}

a:hover > .ac-arrow .ac-arrow__tail,
button:hover > .ac-arrow .ac-arrow__tail,
.ac-hover:hover .ac-arrow .ac-arrow__tail,
a:focus-visible > .ac-arrow .ac-arrow__tail {
	transform: scaleX(1);
}

a:hover > .ac-arrow .ac-arrow__dot,
button:hover > .ac-arrow .ac-arrow__dot,
.ac-hover:hover .ac-arrow .ac-arrow__dot,
a:focus-visible > .ac-arrow .ac-arrow__dot {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------
   2. CIRCULAR ARROW
   A gold ring draws itself round, the disc fills with ink,
   and the arrow is swapped for its twin sliding in behind.
--------------------------------------------------------- */

.ac-circ {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: #0E0E0E;
	background: transparent;
	transition: background .5s var(--ac-ease), color .5s var(--ac-ease), transform .5s var(--ac-ease);
}

.ac-circ--sm {
	width: 40px;
	height: 40px;
}

.ac-circ__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	transform: rotate(-90deg);
	pointer-events: none;
}

.ac-circ__ring circle {
	fill: none;
	stroke: #C9A961;
	stroke-width: 1.4;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	transition: stroke-dashoffset .8s var(--ac-ease);
}

/* Resting outline (sits under the gold ring). */
.ac-circ::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid #D6D6D6;
	transition: border-color .5s var(--ac-ease), transform .5s var(--ac-ease);
}

.ac-circ__track {
	position: relative;
	width: 18px;
	height: 10px;
	overflow: hidden;
}

.ac-circ--prev .ac-circ__track {
	transform: scaleX(-1);
}

.ac-circ__a,
.ac-circ__b {
	position: absolute;
	inset: 0;
	display: flex;
	transition: transform .55s var(--ac-swing);
}

.ac-circ__b {
	transform: translateX(-140%);
}

.ac-circ:hover,
.ac-hover:hover .ac-circ,
.ac-circ-btn:hover .ac-circ,
.ac-circ-btn:focus-visible .ac-circ,
a:focus-visible .ac-circ {
	background: #0E0E0E;
	color: #FFFFFF;
}

.ac-circ:hover::before,
.ac-hover:hover .ac-circ::before,
.ac-circ-btn:hover .ac-circ::before,
.ac-circ-btn:focus-visible .ac-circ::before {
	border-color: transparent;
	transform: scale(1.18);
}

.ac-circ:hover .ac-circ__ring circle,
.ac-hover:hover .ac-circ__ring circle,
.ac-circ-btn:hover .ac-circ__ring circle,
.ac-circ-btn:focus-visible .ac-circ__ring circle,
a:focus-visible .ac-circ__ring circle {
	stroke-dashoffset: 0;
}

.ac-circ:hover .ac-circ__a,
.ac-hover:hover .ac-circ__a,
.ac-circ-btn:hover .ac-circ__a,
.ac-circ-btn:focus-visible .ac-circ__a,
a:focus-visible .ac-circ__a {
	transform: translateX(140%);
}

.ac-circ:hover .ac-circ__b,
.ac-hover:hover .ac-circ__b,
.ac-circ-btn:hover .ac-circ__b,
.ac-circ-btn:focus-visible .ac-circ__b,
a:focus-visible .ac-circ__b {
	transform: translateX(0);
}

.ac-circ-btn:active .ac-circ {
	transform: scale(.94);
}

/* Light version for dark backgrounds */
.ac-circ--light {
	color: #FFFFFF;
}

.ac-circ--light::before {
	border-color: rgba(255, 255, 255, .35);
}

.ac-circ--light:hover,
.ac-hover:hover .ac-circ--light,
.ac-circ-btn:hover .ac-circ--light {
	background: #FFFFFF;
	color: #0E0E0E;
}

/* Nothing further in this direction */
.ac-circ-btn[aria-disabled="true"] {
	opacity: .35;
	pointer-events: none;
}

/* Bare button wrapper */
.ac-circ-btn {
	display: inline-flex;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	border-radius: 50%;
	cursor: pointer;
	color: inherit;
}

.ac-circ-btn:focus-visible {
	outline: 2px solid #C9A961;
	outline-offset: 4px;
}

/* ---------------------------------------------------------
   3. SWEEP BUTTONS
   Colour sweeps in from the left; the arrow launches.
--------------------------------------------------------- */

.ac-btn {
	--ac-a: #FFFFFF;        /* resting background   */
	--ac-b: #C9A961;        /* sweep colour         */
	--ac-fg: #0E0E0E;       /* resting text         */
	--ac-fg-hover: #0E0E0E; /* text once swept      */
	--ac-line: transparent; /* border               */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 54px;
	padding: 0 30px;
	border: 1px solid var(--ac-line);
	color: var(--ac-fg);
	font: 500 11px/1 "Inter", system-ui, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	background: linear-gradient(to right, var(--ac-b) 50%, var(--ac-a) 50%);
	background-size: 202% 100%;
	background-position: 100% 0;
	transition: background-position .55s var(--ac-ease), color .45s var(--ac-ease), border-color .45s var(--ac-ease);
}

.ac-btn:hover,
.ac-btn:focus-visible {
	background-position: 0 0;
	color: var(--ac-fg-hover);
}

.ac-btn:focus-visible {
	outline: 2px solid #C9A961;
	outline-offset: 3px;
}

/* White → gold (on dark / photo backgrounds) */
.ac-btn--light {
	--ac-a: #FFFFFF;
	--ac-b: #C9A961;
}

/* Outline white → fills white */
.ac-btn--ghost-light {
	--ac-a: transparent;
	--ac-b: #FFFFFF;
	--ac-fg: #FFFFFF;
	--ac-fg-hover: #0E0E0E;
	--ac-line: rgba(255, 255, 255, .8);
}

/* Ink → gold (on white) */
.ac-btn--dark {
	--ac-a: #0E0E0E;
	--ac-b: #C9A961;
	--ac-fg: #FFFFFF;
	--ac-fg-hover: #0E0E0E;
}

/* Outline ink → fills ink */
.ac-btn--ghost-dark {
	--ac-a: transparent;
	--ac-b: #0E0E0E;
	--ac-fg: #0E0E0E;
	--ac-fg-hover: #FFFFFF;
	--ac-line: #0E0E0E;
}

.ac-btn--sm {
	height: 44px;
	padding: 0 22px;
}

/* ---------------------------------------------------------
   4. UNDERLINE LINK
--------------------------------------------------------- */

.ac-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	color: #0E0E0E;
	font: 500 11px/1 "Inter", system-ui, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	background: linear-gradient(#C9A961, #C9A961) 0 100% / 100% 1px no-repeat;
	transition: background-size .5s var(--ac-ease), color .3s;
}

.ac-link:hover {
	color: #0E0E0E;
	background-size: 30% 1px;
}

.ac-link--light,
.ac-link--light:hover {
	color: #FFFFFF;
}

/* ---------------------------------------------------------
   5. PROGRESS DOTS
--------------------------------------------------------- */

.ac-dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ac-dots button {
	width: 24px;
	height: 14px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	transition: width .45s var(--ac-ease);
}

.ac-dots button::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 6px;
	height: 2px;
	background: #D6D6D6;
	transition: background .45s var(--ac-ease);
}

.ac-dots button[aria-current="true"] {
	width: 48px;
}

.ac-dots button[aria-current="true"]::before {
	background: #C9A961;
}

.ac-dots button:focus-visible {
	outline: 2px solid #C9A961;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

	.ac-arrow,
	.ac-arrow *,
	.ac-circ,
	.ac-circ *,
	.ac-circ::before,
	.ac-btn,
	.ac-link {
		transition: none !important;
	}
}
