/* =========================================================
   Abdullah Al Mahmood, Academic (Violet)  ·  v4.4

     1. Tokens            8. Contact
     2. Base              9. Footer
     3. Sticky dock      10. Responsive + reduced motion
     4. Hero + meters    12. CV viewer
     5. Section heads    13. Achievements and gallery
     6. Portrait         14. Doctoral interests grid
     7. Cards, pubs      15. Hero atmosphere
   ========================================================= */

/* ---------- 1. Tokens ---------- */

:root {
	--aam-bg:        #EFE9F8;
	--aam-surface:   #E7DFF6;
	--aam-deep:      #DED3F1;
	--aam-ink:       #2B1B4D;
	--aam-ink-soft:  #5A4880;
	--aam-hair:      #D2C4EC;
	--aam-accent:    #6A35C9;
	--aam-night:     #1B1030;
	--aam-onnight:   #CFC2EC;

	--aam-display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
	--aam-body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--aam-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

	--aam-gutter: clamp(1.15rem, 4.5vw, 3.75rem);
	--aam-rhythm: clamp(3rem, 5.5vw, 4.75rem);
	--aam-radius: 16px;

	--aam-shadow: 0 1px 2px rgba(43, 27, 77, 0.05),
	              0 12px 34px -22px rgba(43, 27, 77, 0.35);
}

/* ---------- 2. Base ---------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 1.5rem;
}

body {
	background: var(--aam-bg);
	color: var(--aam-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(52rem 38rem at 10% -10%, rgba(148, 106, 232, 0.20), transparent 62%),
		radial-gradient(42rem 30rem at 96% 2%, rgba(106, 53, 201, 0.12), transparent 60%);
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input, textarea, select):focus-visible {
	outline: 2px solid var(--aam-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--aam-ink);
	color: var(--aam-bg);
}

/* ---------- 3. Sticky dock, bottom centre, every screen ---------- */

.aam-menu {
	position: fixed;
	bottom: clamp(0.85rem, 2.4vh, 1.6rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.36rem 0.42rem;
	border: 1px solid var(--aam-hair);
	border-radius: 999px;
	background: rgba(239, 233, 248, 0.84);
	backdrop-filter: saturate(1.5) blur(16px);
	-webkit-backdrop-filter: saturate(1.5) blur(16px);
	box-shadow: 0 10px 34px rgba(43, 27, 77, 0.16);
	max-width: calc(100vw - 1.4rem);
}

.aam-menu .wp-block-navigation { gap: 0; min-width: 0; }

.aam-menu .wp-block-navigation__container,
.aam-menu ul.wp-block-navigation__container {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.1rem;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: calc(100vw - 6rem);
}

.aam-menu .wp-block-navigation__container::-webkit-scrollbar { display: none; }

.aam-menu .wp-block-navigation-item__content {
	display: block;
	font-family: var(--aam-mono);
	font-size: clamp(0.62rem, 1.4vw, 0.7rem);
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
	text-decoration: none;
	padding: 0.58rem clamp(0.6rem, 1.6vw, 0.95rem);
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.aam-menu .wp-block-navigation-item__content:hover,
.aam-menu .wp-block-navigation-item__content:focus-visible {
	background: var(--aam-deep);
	color: var(--aam-ink);
	text-decoration: none;
}

.aam-menu .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.aam-menu .wp-block-navigation-item.is-active .wp-block-navigation-item__content {
	background: var(--aam-ink);
	color: var(--aam-bg);
}

.aam-menu__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	margin-right: 0.18rem;
	border-radius: 999px;
	background: var(--aam-ink);
	color: var(--aam-bg);
	font-family: var(--aam-mono);
	font-size: 0.62rem;
	letter-spacing: 0.03em;
	text-decoration: none;
	flex: none;
}

.aam-menu__mark:hover { background: var(--aam-accent); color: #fff; }

/* ---------- 4. Hero ---------- */

.aam-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 3.5rem var(--aam-gutter) 6rem;
	overflow: hidden;
}

.aam-hang {
	position: relative;
	margin: 0;
	padding-top: 1.7rem;
	font-family: var(--aam-display);
	font-weight: 800;
	font-size: clamp(2rem, 9vw, 7rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--aam-ink);
	text-transform: uppercase;
}

.aam-hang::before {
	content: "";
	position: absolute;
	top: 1.7rem;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 1px;
	background: linear-gradient(90deg,
		transparent, var(--aam-hair) 14%, var(--aam-hair) 86%, transparent);
}

.aam-hang__line { display: block; white-space: nowrap; }

.aam-hang__char {
	position: relative;
	display: inline-block;
	transform-origin: 50% -6%;
	will-change: transform;
}

.aam-hang__char--space { width: 0.3em; }

.aam-hang__line:first-child .aam-hang__char::before {
	content: "";
	position: absolute;
	top: -1.35rem;
	left: 50%;
	width: 1px;
	height: 1.35rem;
	background: var(--aam-hair);
}

.aam-hero__lede {
	max-width: 62ch;
	margin: 1.8rem auto 0;
	font-size: clamp(0.98rem, 1.5vw, 1.12rem);
	line-height: 1.6;
	color: var(--aam-ink-soft);
}

/* Instrument panel: four cards that count up on load. */
.aam-meters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.85rem;
	width: 100%;
	max-width: 960px;
	margin: 2.1rem auto 0;
	text-align: left;
}

.aam-meter {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.05rem 1.1rem 1rem;
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
	border: 1px solid rgba(210, 196, 236, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -26px rgba(43, 27, 77, 0.55);
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.aam-meter::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #6A35C9, #B57BFF, #6A35C9);
	background-size: 200% 100%;
	animation: aam-sheen 6s linear infinite;
}

.aam-meter::after {
	content: "";
	position: absolute;
	width: 150px;
	height: 150px;
	right: -60px;
	top: -70px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(148, 106, 232, 0.3), transparent 70%);
	pointer-events: none;
	transition: transform 0.6s ease;
}

.aam-meter:hover {
	transform: translateY(-5px);
	border-color: rgba(106, 53, 201, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 28px 52px -24px rgba(106, 53, 201, 0.6);
}

.aam-meter:hover::after { transform: scale(1.45); }

@keyframes aam-sheen { to { background-position: 200% 0; } }

.aam-meter__top {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	position: relative;
	z-index: 1;
}

.aam-meter__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 11px;
	background: linear-gradient(135deg, #6A35C9, #9B6BF0);
	color: #fff;
	box-shadow: 0 8px 16px -8px rgba(106, 53, 201, 0.8);
}

.aam-meter__icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aam-meter__label {
	margin: 0;
	font-family: var(--aam-mono);
	font-size: 0.6rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	line-height: 1.35;
	color: var(--aam-ink-soft);
}

.aam-meter__figure {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.15rem 0.4rem;
	margin: 0.9rem 0 0;
	position: relative;
	z-index: 1;
}

.aam-meter__value {
	margin: 0;
	font-family: var(--aam-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 3.6vw, 2.9rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(135deg, #2B1B4D 25%, #6A35C9 95%);
	-webkit-background-clip: text;
	        background-clip: text;
	color: transparent;
}

.aam-meter.is-done .aam-meter__value { animation: aam-pop 0.45s cubic-bezier(0.22, 0.7, 0.25, 1); }

@keyframes aam-pop {
	0%   { transform: scale(1); }
	45%  { transform: scale(1.09); }
	100% { transform: scale(1); }
}

.aam-meter__unit {
	margin: 0;
	font-family: var(--aam-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
}

.aam-bar {
	position: relative;
	margin-top: 0.85rem;
	height: 7px;
	border-radius: 99px;
	background: rgba(210, 196, 236, 0.7);
	overflow: hidden;
}

.aam-bar i {
	position: relative;
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: linear-gradient(90deg, #6A35C9, #B57BFF);
	box-shadow: 0 0 12px rgba(106, 53, 201, 0.55);
	overflow: hidden;
	transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.aam-bar i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
	transform: translateX(-100%);
	animation: aam-shimmer 3s ease-in-out 2.4s infinite;
}

@keyframes aam-shimmer {
	0%   { transform: translateX(-100%); }
	60%, 100% { transform: translateX(100%); }
}

.aam-pips { margin-top: 0.85rem; display: flex; gap: 4px; }

.aam-pips span {
	flex: 1;
	height: 7px;
	border-radius: 99px;
	background: rgba(210, 196, 236, 0.7);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.aam-pips span.on {
	background: linear-gradient(90deg, #6A35C9, #B57BFF);
	box-shadow: 0 0 10px rgba(106, 53, 201, 0.5);
}

.aam-pips span.pending {
	background: repeating-linear-gradient(90deg, #6A35C9 0 3px, transparent 3px 6px);
	opacity: 0.7;
}

.aam-meter__note {
	margin: 0.75rem 0 0;
	font-family: var(--aam-mono);
	font-size: 0.58rem;
	letter-spacing: 0.03em;
	line-height: 1.5;
	color: var(--aam-ink-soft);
	position: relative;
	z-index: 1;
}

/* Research areas: solid buttons, white text. */
.aam-hero__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 1.6rem auto 0;
	padding: 0;
	list-style: none;
	max-width: 860px;
}

.aam-hero__tags li {
	font-family: var(--aam-body);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
	background: var(--aam-accent);
	border-radius: 999px;
	padding: 0.5rem 1.05rem;
	box-shadow: 0 10px 20px -12px rgba(106, 53, 201, 0.9);
	transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.aam-hero__tags li:hover {
	background: var(--aam-ink);
	transform: translateY(-2px);
	box-shadow: 0 14px 24px -12px rgba(43, 27, 77, 0.8);
}

.aam-hero__cue {
	margin: 1.8rem 0 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--aam-mono);
	font-size: 0.64rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
	text-decoration: none;
}

.aam-hero__cue span { display: inline-block; animation: aam-bob 2.4s ease-in-out infinite; }

@keyframes aam-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(4px); }
}

/* ---------- 5. Section furniture ---------- */

.aam-section {
	position: relative;
	padding: var(--aam-rhythm) var(--aam-gutter);
}

.aam-section--tint { background: rgba(222, 211, 241, 0.5); }

.aam-section--tint::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(var(--aam-hair) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.4;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 78%);
	        mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 78%);
}

.aam-shell {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin-inline: auto;
}

.aam-shell--narrow { max-width: 800px; }

.aam-rail {
	position: relative;
	height: 20px;
	margin-bottom: 1.9rem;
}

.aam-rail::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100vw;
	height: 1px;
	background: linear-gradient(90deg,
		transparent, var(--aam-hair) 12%, var(--aam-hair) 88%, transparent);
}

.aam-rail::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 1px;
	transform: translateX(-50%);
	width: 100vw;
	height: 9px;
	background-image: repeating-linear-gradient(90deg,
		var(--aam-hair) 0 1px, transparent 1px 68px);
	opacity: 0.6;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.aam-head {
	position: relative;
	text-align: center;
	max-width: 780px;
	margin: 0 auto 2.4rem;
}

/* Section index: a clean numbered badge above the eyebrow, never behind text. */
.aam-ghost {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	margin: 0 auto 0.9rem;
	border-radius: 50%;
	border: 1px solid rgba(106, 53, 201, 0.45);
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 0 6px rgba(106, 53, 201, 0.07);
	font-family: var(--aam-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	color: var(--aam-accent);
	user-select: none;
	z-index: 1;
}

.aam-head > *:not(.aam-ghost) { position: relative; z-index: 1; }

.aam-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	font-family: var(--aam-mono);
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--aam-accent);
	margin: 0 0 0.7rem;
}

.aam-eyebrow::before,
.aam-eyebrow::after {
	content: "";
	width: clamp(1.5rem, 6vw, 4rem);
	height: 1px;
	background: var(--aam-hair);
}

.aam-h2 {
	font-family: var(--aam-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 3.6vw, 2.6rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 auto 0.9rem;
	max-width: 24ch;
}

.aam-head__intro {
	margin: 0 auto;
	max-width: 62ch;
	color: var(--aam-ink-soft);
	font-size: 0.98rem;
	line-height: 1.62;
}

.aam-prose p { max-width: 66ch; margin: 0 0 1rem; }
.aam-prose strong { font-weight: 600; color: var(--aam-ink); }

/* ---------- 6. Portrait ---------- */

.aam-about {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(1.6rem, 4vw, 3.5rem);
	align-items: center;
}

.aam-portrait {
	position: relative;
	margin: 0;
	aspect-ratio: 3 / 4;
	border-radius: 20px;
	background: linear-gradient(165deg, #E1D4F6 0%, #CDBAEE 55%, #B9A0E4 100%);
	overflow: hidden;
	border: 1px solid var(--aam-hair);
	box-shadow: var(--aam-shadow);
}

.aam-portrait img {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom center;
	display: block;
}

.aam-portrait__halo {
	position: absolute;
	left: 50%;
	top: 12%;
	width: 78%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.42);
	filter: blur(2px);
}

/* ---------- 7. Cards, publications, timeline ---------- */

.aam-grid { display: grid; gap: 0.9rem; }
.aam-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aam-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.aam-card {
	position: relative;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--aam-hair);
	border-radius: var(--aam-radius);
	padding: clamp(1.1rem, 2.2vw, 1.7rem);
	box-shadow: var(--aam-shadow);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aam-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--aam-accent);
	transition: width 0.4s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.aam-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 1px 2px rgba(43, 27, 77, 0.05), 0 18px 40px -24px rgba(43, 27, 77, 0.5);
}

.aam-card:hover::before { width: 100%; }

.aam-interest__index {
	font-family: var(--aam-mono);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	color: var(--aam-accent);
	display: block;
	margin-bottom: 0.6rem;
}

.aam-interest h3 {
	font-family: var(--aam-display);
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.5rem;
	letter-spacing: -0.01em;
}

.aam-interest p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--aam-ink-soft);
	line-height: 1.58;
}

.aam-methods {
	margin-top: 1.8rem;
	padding: 1.3rem clamp(1.1rem, 3vw, 2rem);
	border: 1px dashed var(--aam-hair);
	border-radius: var(--aam-radius);
	background: rgba(255, 255, 255, 0.35);
	text-align: center;
}

.aam-methods h3 {
	font-family: var(--aam-mono);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--aam-accent);
	margin: 0 0 0.7rem;
}

.aam-methods p {
	margin: 0 auto;
	max-width: 74ch;
	font-size: 0.92rem;
	line-height: 1.62;
	color: var(--aam-ink-soft);
}

.aam-pub-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--aam-hair);
}

.aam-pub {
	position: relative;
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) 8.5rem;
	gap: 1.3rem;
	padding: 1.35rem 0.9rem;
	border-bottom: 1px solid var(--aam-hair);
	align-items: start;
	transition: background 0.25s ease;
}

.aam-pub::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--aam-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s ease;
}

.aam-pub:hover { background: rgba(255, 255, 255, 0.5); }
.aam-pub:hover::before { transform: scaleY(1); }

.aam-pub__ref {
	font-family: var(--aam-mono);
	font-size: 0.72rem;
	color: var(--aam-accent);
	letter-spacing: 0.06em;
	padding-top: 0.3rem;
}

.aam-pub__title {
	font-family: var(--aam-display);
	font-size: clamp(1rem, 1.7vw, 1.22rem);
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.012em;
	margin: 0 0 0.45rem;
}

.aam-pub__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--aam-accent), var(--aam-accent));
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.3s ease, color 0.2s ease;
}

.aam-pub__title a:hover { color: var(--aam-accent); background-size: 100% 1px; }

.aam-pub__authors { font-size: 0.87rem; color: var(--aam-ink-soft); margin: 0 0 0.4rem; }
.aam-pub__authors b { color: var(--aam-ink); font-weight: 600; }
.aam-pub__venue { font-size: 0.87rem; color: var(--aam-ink-soft); margin: 0 0 0.55rem; font-style: italic; }
.aam-pub__note { font-size: 0.87rem; line-height: 1.58; color: var(--aam-ink-soft); margin: 0; max-width: 62ch; }

.aam-pub__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
	text-align: right;
}

.aam-tag {
	display: inline-block;
	font-family: var(--aam-mono);
	font-size: 0.61rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	padding: 0.26rem 0.58rem;
	border-radius: 999px;
	border: 1px solid var(--aam-hair);
	color: var(--aam-ink-soft);
	background: rgba(255, 255, 255, 0.55);
	white-space: nowrap;
}

.aam-tag--live { border-color: var(--aam-accent); color: var(--aam-accent); }
.aam-tag--wip { border-style: dashed; }

.aam-pub__link {
	font-family: var(--aam-mono);
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--aam-accent);
}

.aam-pub__link:hover { text-decoration: underline; }

.aam-tl-col h3 {
	font-family: var(--aam-mono);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--aam-accent);
	margin: 0 0 1.1rem;
}

.aam-timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; position: relative; }

.aam-timeline::before {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 1px;
	background: linear-gradient(180deg, var(--aam-accent), var(--aam-hair) 40%, rgba(210, 196, 236, 0.1));
}

.aam-tl { position: relative; padding: 0 0 1.7rem; }

.aam-tl::before {
	content: "";
	position: absolute;
	left: -1.5rem;
	top: 0.55rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--aam-bg);
	border: 2px solid var(--aam-accent);
}

.aam-tl--past::before { border-color: var(--aam-hair); }

.aam-tl__when {
	font-family: var(--aam-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	color: var(--aam-ink-soft);
	display: block;
	margin-bottom: 0.25rem;
}

.aam-tl__what {
	font-family: var(--aam-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.2rem;
}

.aam-tl__where { margin: 0; font-size: 0.88rem; color: var(--aam-ink-soft); line-height: 1.55; }

/* ---------- 8. Contact ---------- */

.aam-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.6rem, 4vw, 3.5rem);
	align-items: start;
}

.aam-contact__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aam-hair); }

.aam-contact__rows li {
	display: flex;
	justify-content: space-between;
	gap: 1.2rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--aam-hair);
	font-size: 0.92rem;
	flex-wrap: wrap;
}

.aam-contact__rows span:first-child {
	font-family: var(--aam-mono);
	font-size: 0.64rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
	padding-top: 0.2rem;
}

.aam-contact__rows a { color: var(--aam-ink); text-decoration: none; border-bottom: 1px solid var(--aam-hair); }
.aam-contact__rows a:hover { color: var(--aam-accent); border-color: var(--aam-accent); }

.aam-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.78rem 1.4rem;
	border-radius: 999px;
	background: var(--aam-ink);
	color: var(--aam-bg) !important;
	font-family: var(--aam-body);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none !important;
	border: 1px solid var(--aam-ink);
	transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.aam-btn:hover {
	background: var(--aam-accent);
	border-color: var(--aam-accent);
	color: #fff !important;
	transform: translateY(-1px);
}

.aam-btn--ghost { background: transparent; color: var(--aam-ink) !important; border-color: var(--aam-hair); }
.aam-btn--ghost:hover { background: var(--aam-deep); color: var(--aam-ink) !important; border-color: var(--aam-ink); }

.aam-btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.aam-btn-row--center { justify-content: center; }

/* ---------- 9. Footer ---------- */

.aam-footer {
	position: relative;
	background: var(--aam-night);
	color: var(--aam-onnight);
	padding: clamp(2.6rem, 5vw, 4rem) var(--aam-gutter) 6.5rem;
	overflow: hidden;
}

.aam-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	background-image: repeating-linear-gradient(90deg,
		rgba(207, 194, 236, 0.45) 0 1px, transparent 1px 68px);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.aam-footer::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(38rem 26rem at 88% 110%, rgba(106, 53, 201, 0.4), transparent 65%),
		radial-gradient(30rem 20rem at 6% -20%, rgba(148, 106, 232, 0.22), transparent 68%);
}

.aam-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin-inline: auto;
}

.aam-footer__name {
	font-family: var(--aam-display);
	font-weight: 800;
	font-size: clamp(1.9rem, 6vw, 4.2rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	color: #F1EAFB;
	margin: 0 0 0.5rem;
}

.aam-footer__role {
	font-family: var(--aam-mono);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(207, 194, 236, 0.72);
	margin: 0 0 2.2rem;
	line-height: 1.7;
}

.aam-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.8rem 2.4rem;
	padding-top: 1.8rem;
	border-top: 1px solid rgba(207, 194, 236, 0.18);
}

.aam-footer__cols h3 {
	font-family: var(--aam-mono);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(207, 194, 236, 0.6);
	margin: 0 0 0.85rem;
}

.aam-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.aam-footer__cols li { margin: 0 0 0.55rem; }

.aam-footer__cols a,
.aam-footer__cols span.aam-footer__static {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--aam-onnight);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.aam-footer__cols a:hover { color: #fff; transform: translateX(2px); }

.aam-footer__cols svg {
	width: 15px;
	height: 15px;
	flex: none;
	fill: currentColor;
	opacity: 0.72;
}

.aam-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.8rem 2rem;
	margin-top: 2.4rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(207, 194, 236, 0.18);
	font-family: var(--aam-mono);
	font-size: 0.64rem;
	letter-spacing: 0.06em;
	color: rgba(207, 194, 236, 0.65);
}

.aam-footer__bar p { margin: 0; }
.aam-footer__bar a { color: rgba(207, 194, 236, 0.85); text-decoration: none; }
.aam-footer__bar a:hover { color: #fff; }

/* ---------- 10. Responsive + reduced motion ---------- */

.aam-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
	            transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.aam-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.aam-about,
	.aam-contact { grid-template-columns: minmax(0, 1fr); }

	.aam-portrait { max-width: 300px; margin-inline: auto; }

	.aam-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.aam-pub { grid-template-columns: 3rem minmax(0, 1fr); }

	.aam-pub__meta {
		grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		flex-wrap: wrap;
		margin-top: 0.3rem;
	}

	.aam-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }

	.aam-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.aam-grid--2,
	.aam-grid--3 { grid-template-columns: minmax(0, 1fr); }

	.aam-menu .wp-block-navigation-item__content { padding: 0.55rem 0.68rem; }

	.aam-hero {
		min-height: auto;
		padding-top: 3rem;
		padding-bottom: 7.5rem;
	}

	.aam-hero__cue { display: none; }

	.aam-meters { gap: 0.6rem; }
	.aam-meter { padding: 0.9rem 0.85rem; }
	.aam-meter__value { font-size: 1.9rem; }
	.aam-hero__tags li { font-size: 0.76rem; padding: 0.45rem 0.85rem; }

	.aam-footer { padding-bottom: 7rem; }
	.aam-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 380px) {
	.aam-menu__mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.aam-hang__char { transform: none !important; transition: none !important; }
	.aam-hero__cue span { animation: none; }
	.aam-reveal { opacity: 1; transform: none; transition: none; }
	.aam-card { transition: none; }
}

/* Editor canvas */
.editor-styles-wrapper .aam-menu {
	position: static;
	transform: none;
	margin-inline: auto;
	max-width: max-content;
}

.editor-styles-wrapper .aam-hero { min-height: 50vh; }

/* ---------- 12. CV viewer, modal, opened by any .aam-cv-open ---------- */

.aam-modal {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.6rem, 3vw, 2.2rem);
}

.aam-modal[hidden] { display: none; }

.aam-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(27, 16, 48, 0.62);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: aam-fade 0.22s ease;
}

.aam-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	height: min(92vh, 1100px);
	background: var(--aam-bg);
	border: 1px solid var(--aam-hair);
	border-radius: var(--aam-radius);
	box-shadow: 0 24px 70px rgba(27, 16, 48, 0.38);
	overflow: hidden;
	animation: aam-rise 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes aam-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aam-rise {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to   { opacity: 1; transform: none; }
}

.aam-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.8rem clamp(0.8rem, 2vw, 1.3rem);
	border-bottom: 1px solid var(--aam-hair);
	background: var(--aam-surface);
}

.aam-modal__title {
	margin: 0;
	font-family: var(--aam-mono);
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
}

.aam-modal__actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.aam-modal__actions .aam-btn { padding: 0.5rem 0.95rem; font-size: 0.8rem; }

.aam-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--aam-hair);
	border-radius: 999px;
	background: transparent;
	color: var(--aam-ink);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.aam-modal__close:hover { background: var(--aam-accent); border-color: var(--aam-accent); color: #fff; }

.aam-modal__body { position: relative; flex: 1; min-height: 0; background: var(--aam-deep); }
.aam-modal__doc { display: block; width: 100%; height: 100%; border: 0; }

.aam-modal__inline-fallback,
.aam-modal__fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	padding: 2rem;
	text-align: center;
	color: var(--aam-ink-soft);
	font-size: 0.9rem;
}

.aam-modal__inline-fallback { height: 100%; }
.aam-modal__fallback { position: absolute; inset: 0; display: none; }

.aam-modal.is-fallback .aam-modal__fallback { display: flex; }
.aam-modal.is-fallback .aam-modal__doc { display: none; }

body.aam-modal-open { overflow: hidden; }

@media (max-width: 640px) {
	.aam-modal__panel { height: 94vh; }
	.aam-modal__title { display: none; }
	.aam-modal__bar { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
	.aam-modal__backdrop,
	.aam-modal__panel { animation: none; }
}

/* ---------- 13. Achievements and gallery ---------- */

.aam-showcase {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.7rem, 1.6vw, 1.15rem);
	align-items: start;
}

.aam-tile {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
	color: inherit;
	text-decoration: none !important;
	cursor: zoom-in;
}

.aam-tile__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--aam-hair);
	box-shadow: var(--aam-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.aam-showcase--photos .aam-tile__frame { aspect-ratio: 1 / 1; background: var(--aam-deep); }

.aam-tile__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0.45rem;
	object-fit: contain;
	display: block;
	transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.aam-showcase--photos .aam-tile__frame img { padding: 0; object-fit: cover; object-position: center 30%; }

.aam-tile:hover .aam-tile__frame,
.aam-tile:focus-visible .aam-tile__frame {
	transform: translateY(-3px);
	border-color: var(--aam-accent);
	box-shadow: 0 1px 2px rgba(43, 27, 77, 0.05), 0 22px 44px -24px rgba(43, 27, 77, 0.55);
}

.aam-tile:hover .aam-tile__frame img { transform: scale(1.04); }

.aam-tile__hint {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 999px;
	background: var(--aam-ink);
	color: var(--aam-bg);
	font-family: var(--aam-mono);
	font-size: 1rem;
	line-height: 1;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.aam-tile:hover .aam-tile__hint,
.aam-tile:focus-visible .aam-tile__hint { opacity: 1; transform: none; }

.aam-tile__cap {
	display: block;
	font-family: var(--aam-mono);
	font-size: 0.64rem;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-align: center;
	color: var(--aam-ink-soft);
}

.aam-tile--empty { cursor: default; }
.aam-tile--empty .aam-tile__frame { border-style: dashed; background: rgba(255, 255, 255, 0.4); box-shadow: none; }

.aam-tile__todo {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
	text-align: center;
	font-family: var(--aam-mono);
	font-size: 0.62rem;
	letter-spacing: 0.05em;
	color: var(--aam-ink-soft);
}

.aam-peek {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: grid;
	place-items: center;
	padding: 2rem;
	pointer-events: none;
	background: rgba(27, 16, 48, 0.42);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.aam-peek.is-on { opacity: 1; visibility: visible; transition: opacity 0.22s ease, visibility 0s; }

.aam-peek__card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 0.6rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(27, 16, 48, 0.45);
	transform: scale(0.94);
	transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.aam-peek.is-on .aam-peek__card { transform: none; }

.aam-peek__card img {
	display: block;
	max-width: min(920px, 84vw);
	max-height: 76vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	object-fit: contain;
}

.aam-peek__cap,
.aam-lightbox__cap {
	margin: 0;
	font-family: var(--aam-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--aam-ink-soft);
}

.aam-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9600;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: clamp(0.8rem, 3vw, 2.4rem);
	background: rgba(27, 16, 48, 0.9);
	cursor: zoom-out;
	animation: aam-fade 0.2s ease;
}

.aam-lightbox[hidden] { display: none; }

.aam-lightbox img {
	display: block;
	max-width: 94vw;
	max-height: 84vh;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.aam-lightbox__cap { color: var(--aam-onnight); }

.aam-lightbox__close {
	position: absolute;
	top: clamp(0.6rem, 2vw, 1.2rem);
	right: clamp(0.6rem, 2vw, 1.2rem);
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid rgba(207, 194, 236, 0.5);
	background: transparent;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.aam-lightbox__close:hover { background: var(--aam-accent); border-color: var(--aam-accent); }

@media (max-width: 640px) {
	.aam-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.aam-tile__frame, .aam-tile__frame img, .aam-tile__hint, .aam-peek, .aam-peek__card { transition: none; }
	.aam-lightbox { animation: none; }
}

/* ---------- 14. Doctoral interests grid ---------- */

.aam-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aam-grid--4 .aam-interest { display: flex; flex-direction: column; }
.aam-grid--4 .aam-interest p:not(.aam-interest__base) { margin-bottom: 0.9rem; }

.aam-interest__base {
	margin-top: auto !important;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--aam-hair);
	font-family: var(--aam-mono);
	font-size: 0.6rem !important;
	letter-spacing: 0.04em;
	line-height: 1.5 !important;
	color: var(--aam-accent) !important;
}

@media (max-width: 1100px) { .aam-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .aam-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 15. Hero atmosphere ---------- */

.aam-hero > *:not(.aam-hero__bg) { position: relative; z-index: 2; }

.aam-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.aam-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(106, 53, 201, 0.075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(106, 53, 201, 0.075) 1px, transparent 1px),
		linear-gradient(rgba(106, 53, 201, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(106, 53, 201, 0.035) 1px, transparent 1px);
	background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
	background-position: center center;
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 30%, transparent 85%);
	        mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 30%, transparent 85%);
}

.aam-hero__aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }

.aam-hero__aurora--a {
	width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
	left: -10vw; top: -14vw;
	background: radial-gradient(circle, rgba(148, 106, 232, 0.55), transparent 65%);
	animation: aam-drift-a 26s ease-in-out infinite alternate;
}

.aam-hero__aurora--b {
	width: 40vw; height: 40vw; max-width: 640px; max-height: 640px;
	right: -12vw; top: 12%;
	background: radial-gradient(circle, rgba(106, 53, 201, 0.38), transparent 65%);
	animation: aam-drift-b 32s ease-in-out infinite alternate;
}

.aam-hero__aurora--c {
	width: 36vw; height: 36vw; max-width: 560px; max-height: 560px;
	left: 30%; bottom: -18vw;
	background: radial-gradient(circle, rgba(196, 160, 255, 0.5), transparent 65%);
	animation: aam-drift-c 38s ease-in-out infinite alternate;
}

@keyframes aam-drift-a { to { transform: translate(8vw, 6vw) scale(1.12); } }
@keyframes aam-drift-b { to { transform: translate(-7vw, 5vw) scale(0.92); } }
@keyframes aam-drift-c { to { transform: translate(5vw, -6vw) scale(1.08); } }

.aam-hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	-webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 47%, rgba(0, 0, 0, 0.18), #000 80%);
	        mask-image: radial-gradient(ellipse 46% 40% at 50% 47%, rgba(0, 0, 0, 0.18), #000 80%);
}

.aam-hero__veil {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 42% 38% at 50% 50%, rgba(239, 233, 248, 0.72), transparent 78%);
}

.aam-hero__mark {
	position: absolute;
	width: 18px;
	height: 18px;
	border-color: rgba(106, 53, 201, 0.35);
	border-style: solid;
	border-width: 0;
}

.aam-hero__mark--tl { top: 1.4rem; left: 1.4rem; border-top-width: 1px; border-left-width: 1px; }
.aam-hero__mark--tr { top: 1.4rem; right: 1.4rem; border-top-width: 1px; border-right-width: 1px; }
.aam-hero__mark--bl { bottom: 1.4rem; left: 1.4rem; border-bottom-width: 1px; border-left-width: 1px; }
.aam-hero__mark--br { bottom: 1.4rem; right: 1.4rem; border-bottom-width: 1px; border-right-width: 1px; }

.aam-hero__note {
	position: absolute;
	top: 1.55rem;
	font-family: var(--aam-mono);
	font-size: 0.58rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(90, 72, 128, 0.7);
}

.aam-hero__note--tl { left: 2.9rem; }
.aam-hero__note--tr { right: 2.9rem; }

/* Top line: centred, clear type, one item per keyword. */
.aam-hero__eyebrow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0;
	max-width: min(100%, 1220px);
	margin: 0 auto 1.6rem;
	padding: 0.6rem 1.3rem;
	border: 1px solid var(--aam-hair);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 10px 28px -20px rgba(43, 27, 77, 0.5);
	font-family: var(--aam-body);
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	line-height: 1.45;
	color: var(--aam-ink-soft);
	text-align: center;
}

.aam-hero__eyebrow-item { display: inline-flex; align-items: center; white-space: nowrap; }

.aam-hero__eyebrow-item + .aam-hero__eyebrow-item::before {
	content: "";
	width: 4px;
	height: 4px;
	margin: 0 0.75rem;
	border-radius: 50%;
	background: var(--aam-accent);
	opacity: 0.6;
}

.aam-hero__eyebrow-item.is-live { color: var(--aam-ink); font-weight: 600; }

.aam-hero__eyebrow-item.is-live::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: #2fb67c;
	animation: aam-live 2.2s ease-out infinite;
}

@keyframes aam-live {
	0%   { box-shadow: 0 0 0 0 rgba(47, 182, 124, 0.55); }
	80%  { box-shadow: 0 0 0 8px rgba(47, 182, 124, 0); }
	100% { box-shadow: 0 0 0 0 rgba(47, 182, 124, 0); }
}

@media (max-width: 900px) {
	.aam-hero__note { display: none; }
	.aam-hero__aurora { filter: blur(50px); }
}

@media (max-width: 640px) {
	.aam-hero__mark { display: none; }
	.aam-hero__eyebrow { border-radius: 18px; font-size: 0.8rem; padding: 0.65rem 1rem; gap: 0.3rem 0.9rem; }
	.aam-hero__eyebrow-item + .aam-hero__eyebrow-item::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
	.aam-hero__aurora,
	.aam-hero__eyebrow-item.is-live::before,
	.aam-meter::before,
	.aam-bar i::after,
	.aam-meter.is-done .aam-meter__value { animation: none; }
	.aam-meter, .aam-bar i { transition: none; }
}
