/* =========================================================
   Abdullah Al Mahmood — Academic (Violet)  ·  v3

   The rail is the motif. It opens the page under the name,
   reappears above every section, and closes the page across
   the top of the footer. Everything else stays quiet.

     1. Tokens
     2. Base
     3. Sticky dock
     4. Hero + meters
     5. Section furniture (rail, ghost index, centred heads)
     6. Portrait
     7. Cards, publications, timeline
     8. Contact
     9. Footer
    10. Responsive + reduced motion
   ========================================================= */

/* ---------- 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.68rem, 2vw, 1.05rem);
	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-hero__eyebrow {
	font-family: var(--aam-mono);
	font-size: clamp(0.6rem, 1.5vw, 0.7rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
	margin: 0 0 1.5rem;
}

.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: 56ch;
	margin: 1.8rem auto 0;
	font-size: clamp(0.98rem, 1.5vw, 1.14rem);
	line-height: 1.6;
	color: var(--aam-ink-soft);
}

/* Instrument panel — the four numbers a supervisor scans first. */
.aam-meters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	max-width: 800px;
	margin: 1.9rem auto 0;
	border-top: 1px solid var(--aam-hair);
	border-left: 1px solid var(--aam-hair);
	text-align: left;
}

.aam-meter {
	display: flex;
	flex-direction: column;
	padding: 0.8rem 0.9rem 0.85rem;
	border-right: 1px solid var(--aam-hair);
	border-bottom: 1px solid var(--aam-hair);
	background: rgba(255, 255, 255, 0.32);
	min-width: 0;
}

.aam-meter__label {
	margin: 0 0 auto;
	font-family: var(--aam-mono);
	font-size: 0.565rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--aam-ink-soft);
	line-height: 1.4;
	min-height: 2.6em;
}

.aam-meter__value {
	margin: 0.5rem 0 0;
	font-family: var(--aam-display);
	font-weight: 800;
	font-size: clamp(1.55rem, 2.8vw, 2.2rem);
	line-height: 0.9;
	letter-spacing: -0.02em;
	color: var(--aam-ink);
}

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

.aam-bar {
	margin-top: 0.55rem;
	height: 4px;
	border-radius: 2px;
	background: var(--aam-hair);
	overflow: hidden;
}

.aam-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 2px;
	background: var(--aam-accent);
	transition: width 1.1s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.aam-pips { margin-top: 0.55rem; display: flex; gap: 4px; }
.aam-pips span { flex: 1; height: 4px; border-radius: 2px; background: var(--aam-hair); }
.aam-pips span.on { background: var(--aam-accent); }
.aam-pips span.pending {
	background: repeating-linear-gradient(90deg, var(--aam-accent) 0 3px, transparent 3px 6px);
}

.aam-meter__note {
	margin: 0.5rem 0 0;
	font-family: var(--aam-mono);
	font-size: 0.545rem;
	letter-spacing: 0.04em;
	line-height: 1.45;
	color: var(--aam-ink-soft);
}

.aam-hero__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.aam-hero__tags li {
	font-family: var(--aam-mono);
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	color: var(--aam-ink-soft);
	border: 1px solid var(--aam-hair);
	border-radius: 999px;
	padding: 0.3rem 0.68rem;
	background: rgba(255, 255, 255, 0.4);
}

.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);
}

/* A tinted band with a faint dot field, so alternating sections read
   as different surfaces rather than different amounts of empty air. */
.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; }

/* The rail motif, repeated above each section. */
.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);
}

/* Centred section head with a ghosted index numeral behind it. */
.aam-head {
	position: relative;
	text-align: center;
	max-width: 780px;
	margin: 0 auto 2.4rem;
}

.aam-ghost {
	position: absolute;
	top: -0.42em;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--aam-display);
	font-weight: 800;
	font-size: clamp(5rem, 13vw, 10rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px var(--aam-hair);
	opacity: 0.55;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.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;
}

/* An accent rule runs across the card top on hover — the rail again. */
.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;
}

/* Methods strip */
.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);
}

/* Publications */
.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; }

/* Timeline */
.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 — deep purple, rail across the top ---------- */

.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;
}

.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: 480px; }

	.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-meter__value { font-size: 1.45rem; }

	.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; }
