/* Direction A — motion system */
:root {
	--afa-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--afa-dur: 0.9s;
}

html { scroll-behavior: smooth; }

/* --- Hero entrance: staggered rise --- */
.afa-hero .afa-kicker,
.afa-hero h1,
.afa-hero .afa-manifesto,
.afa-hero .afa-hero-foot {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--afa-dur) var(--afa-ease), transform var(--afa-dur) var(--afa-ease);
}

.afa-hero-in .afa-kicker,
.afa-hero-in h1,
.afa-hero-in .afa-manifesto,
.afa-hero-in .afa-hero-foot {
	opacity: 1;
	transform: none;
}

/* Headline tightening effect */
.afa-hero h1 {
	letter-spacing: 0.04em;
	transition: letter-spacing 1.4s var(--afa-ease), opacity var(--afa-dur) var(--afa-ease), transform var(--afa-dur) var(--afa-ease);
}
.afa-hero-in h1 { letter-spacing: -0.02em; }

/* --- Scroll reveals --- */
.afa-reveal-scroll {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity var(--afa-dur) var(--afa-ease), transform var(--afa-dur) var(--afa-ease);
}
.afa-reveal-scroll.afa-in {
	opacity: 1;
	transform: none;
}

/* Works grid: images rise + hover zoom; captions slide */
.afa-work img {
	transition: transform 1.1s var(--afa-ease), filter 1.1s var(--afa-ease);
	filter: saturate(0.9);
}
.afa-work:hover img {
	transform: scale(1.06);
	filter: saturate(1.08);
}
.afa-work .afa-work-cap {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s var(--afa-ease), transform 0.5s var(--afa-ease);
}
.afa-work:hover .afa-work-cap {
	opacity: 1;
	transform: none;
}

/* Section heads: rule grows in */
.afa-section-head {
	position: relative;
}
.afa-section-head::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	height: 1px;
	width: 0;
	background: var(--afa-ink);
	transition: width 1.2s var(--afa-ease);
}
.afa-section-head.afa-in::after { width: 100%; }

/* Statement: quote fade + slide */
.afa-statement blockquote {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 1.1s var(--afa-ease), transform 1.1s var(--afa-ease);
}
.afa-statement.afa-in blockquote {
	opacity: 1;
	transform: none;
}

/* Link underline animations */
.afa-link-more, .afa-lang a, .entry-content a:not([class]) {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.45s var(--afa-ease);
}
.afa-link-more:hover, .afa-lang a:hover, .entry-content a:not([class]):hover {
	background-size: 100% 1px;
}

/* Hero ambient glow (slow, subtle) */
.afa-hero::before {
	content: "";
	position: absolute;
	inset: -30% -20%;
	background:
		radial-gradient(38% 55% at 72% 28%, rgba(156, 107, 63, 0.16), transparent 62%),
		radial-gradient(45% 60% at 18% 72%, rgba(108, 91, 123, 0.14), transparent 65%);
	animation: afa-drift 16s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes afa-drift {
	0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
	100% { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* Scroll cue at hero bottom */
.afa-scroll-cue {
	position: absolute;
	bottom: 2.4rem;
	left: 7vw;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	color: rgba(247, 245, 241, 0.55);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}
.afa-scroll-cue .afa-cue-line {
	display: inline-block;
	width: 34px;
	height: 1px;
	background: currentColor;
	animation: afa-cue 2.2s var(--afa-ease) infinite;
	transform-origin: left center;
}
@keyframes afa-cue {
	0%, 100% { transform: scaleX(0.35); opacity: 0.45; }
	50%      { transform: scaleX(1);    opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.afa-hero .afa-kicker, .afa-hero h1, .afa-hero .afa-manifesto, .afa-hero .afa-hero-foot,
	.afa-reveal-scroll, .afa-statement blockquote, .afa-work .afa-work-cap {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.afa-hero::before { animation: none; }
	html { scroll-behavior: auto; }
}
