/* ==========================================================================
   Learn By Ain — main stylesheet
   Colours come from Customizer (--accent, --accent-2, --lime, --ink).
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@property --rot {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

:root {
	--accent: #6d4aff;
	--accent-2: #ff4d8d;
	--lime: #c8ff3d;
	--ink: #140d2e;
	--bg: #fbfaff;
	--surface: #ffffff;
	--surface-2: #f4f1ff;
	--text: #1b1535;
	--muted: #5f5a7a;
	--line: #e7e3f5;
	--on-dark: #f6f3ff;
	--on-dark-muted: rgba(246, 243, 255, .72);
	--radius: 22px;
	--radius-sm: 14px;
	--shadow-sm: 0 1px 2px rgba(20, 13, 46, .06), 0 2px 8px rgba(20, 13, 46, .04);
	--shadow: 0 10px 30px -12px rgba(20, 13, 46, .18), 0 2px 6px rgba(20, 13, 46, .05);
	--shadow-lg: 0 30px 60px -20px rgba(20, 13, 46, .35);
	--font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0d0820;
	--surface: #161031;
	--surface-2: #1d1640;
	--text: #efeaff;
	--muted: #a7a0c7;
	--line: #2a2250;
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d0820;
		--surface: #161031;
		--surface-2: #1d1640;
		--text: #efeaff;
		--muted: #a7a0c7;
		--line: #2a2250;
		--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.icon { flex: none; }

/* ---------- Buttons, chips, pills ---------- */
.btn {
	--b: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 15px/1.1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.6em; font-size: 16px; }
.btn--sm { padding: .6em 1em; font-size: 14px; }
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 30px -10px var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--soft { background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--text); }
.btn--soft:hover { color: var(--text); background: color-mix(in srgb, var(--c, var(--accent)) 24%, transparent); }
.btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }

.eyebrow {
	display: inline-flex; align-items: center; gap: .5em; margin: 0 0 14px;
	padding: 6px 12px 6px 10px; border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent);
	font: 600 13px/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase;
}
.eyebrow--light { background: rgba(255, 255, 255, .1); color: var(--lime); border: 1px solid rgba(255, 255, 255, .14); }

.chip {
	--c: var(--accent);
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 12px 5px 6px; border-radius: 999px;
	background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--text);
	border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
	font: 600 13px/1.2 var(--font-body); text-decoration: none; transition: background .2s;
}
.chip:hover { color: var(--text); background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.chip em { font-style: normal; opacity: .55; font-weight: 500; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .chip.is-active { background: #fff; color: var(--ink); }
.chip__icon { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 13px/1.2 var(--font-body); color: var(--muted); }

.lba-term-icon { border-radius: 22%; object-fit: contain; display: block; }
.lba-term-icon--letter, .chip__icon.lba-term-icon--letter, .mini-icon.lba-term-icon--letter {
	display: inline-grid; place-items: center; color: #fff; font: 700 14px/1 var(--font-display);
	background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); border-radius: 22%;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 13, 46, .4); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.site-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); flex: none; }
.site-logo:hover { color: var(--text); }
.site-logo__img { max-height: 44px; width: auto; }
.site-logo__img--dark { display: none; }
:root[data-theme="dark"] .site-logo__img--light { display: none; }
:root[data-theme="dark"] .site-logo__img--dark { display: block; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark__mark svg { display: block; width: 40px; height: 40px; filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--accent) 45%, transparent)); transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
.site-logo:hover .wordmark__mark svg { transform: rotate(-8deg) scale(1.06); }
.wordmark__text { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-display); font-size: 23px; letter-spacing: -.03em; line-height: 1; }
.wordmark__learn { font-weight: 800; }
.wordmark__by { font-weight: 400; font-style: italic; font-size: .8em; color: var(--muted); }
.wordmark__ain { font-weight: 800; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font: 500 15px/1 var(--font-body); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--surface-2); color: var(--accent); }
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { border-radius: 10px; padding: 10px 12px; }
.submenu-toggle { display: none; background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-6deg); }
.icon-btn .icon-moon, :root[data-theme="dark"] .icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: inline; }
.icon-btn > span { display: inline-grid; }
.menu-toggle { display: none; }
.menu-toggle .icon-close, .menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: inline; }

@media (max-width: 980px) {
	.menu-toggle { display: inline-grid; }
	.site-header__cta { display: none; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0; background: var(--bg); padding: 20px var(--gutter) 40px;
		overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; z-index: 49;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .main-nav { transform: none; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu > li { flex-wrap: wrap; }
	.main-nav .menu > li > a { flex: 1; font-size: 20px; padding: 14px 12px; font-family: var(--font-display); font-weight: 600; }
	.submenu-toggle { display: inline-grid; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: 100%; display: none; background: var(--surface-2); }
	.main-nav li.is-open > .sub-menu { display: block; }
	.menu-open { overflow: hidden; }
}

/* ---------- Search ---------- */
.search-form { position: relative; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-form__icon { display: inline-grid; padding: 0 6px 0 12px; color: var(--muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 400 16px/1.2 var(--font-body); padding: 10px 6px; outline: none; }
.search-form__btn { border: 0; border-radius: 999px; padding: 11px 20px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
:root[data-theme="dark"] .search-form__btn { background: var(--accent); }
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(13, 8, 32, .55); backdrop-filter: blur(8px); display: grid; place-items: start center; padding: 14vh var(--gutter) 0; opacity: 0; transition: opacity .2s; }
.search-overlay.is-open { opacity: 1; }
.search-overlay__box { position: relative; width: min(720px, 100%); background: var(--bg); border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg); }
.search-overlay__hint { margin: 12px 4px 0; color: var(--muted); font-size: 14px; }
.search-overlay__close { position: absolute; top: -16px; right: -10px; }

/* ---------- Decorative blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; }
.blob--1 { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -80px; animation: float 16s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -200px; left: 18%; opacity: .55; animation: float 20s ease-in-out infinite reverse; }
.blob--3 { width: 240px; height: 240px; background: var(--lime); top: 30%; left: -100px; opacity: .25; animation: float 14s ease-in-out infinite; }
.blob--4 { width: 460px; height: 460px; background: var(--accent); top: -160px; left: -120px; opacity: .45; }
.blob--5 { width: 380px; height: 380px; background: var(--accent-2); bottom: -180px; right: -60px; opacity: .35; }
.blob--term { width: 520px; height: 520px; background: var(--c, var(--accent)); top: -300px; right: -120px; opacity: .25; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.08); } }
.hero__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 22px; color: #fff; }
.hero__title em { font-style: italic; font-weight: 500; background: linear-gradient(100deg, var(--lime), #7cf7ff 50%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__text { font-size: clamp(17px, 1.5vw, 19px); color: var(--on-dark-muted); max-width: 580px; margin-bottom: 28px; }
.hero__search { max-width: 560px; margin-bottom: 22px; }
.hero .search-form { background: rgba(255, 255, 255, .96); border-color: transparent; }
.hero .search-form__input { color: #1b1535; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: clamp(18px, 4vw, 40px); list-style: none; padding: 0; margin: 34px 0 0; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font: 800 clamp(28px, 3vw, 38px)/1 var(--font-display); color: #fff; }
.hero__stats span { font-size: 14px; color: var(--on-dark-muted); }
.hero__img { border-radius: 28px; box-shadow: var(--shadow-lg); }

/* Orbit of app logos */
.orbit { --r1: clamp(110px, 15vw, 170px); --r2: clamp(170px, 23vw, 255px); position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.orbit__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); transform: translate(-50%, -50%); }
.orbit__ring--1 { width: calc(var(--r1) * 2); height: calc(var(--r1) * 2); }
.orbit__ring--2 { width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); border-style: solid; border-color: rgba(255, 255, 255, .1); }
.orbit__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(120px, 15vw, 168px); aspect-ratio: 1; border-radius: 36px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(12px); box-shadow: 0 30px 80px -20px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .25); animation: corePulse 6s ease-in-out infinite; }
.orbit__core .wordmark { flex-direction: column; gap: 8px; }
.orbit__core .wordmark__mark svg { width: clamp(48px, 6vw, 64px); height: auto; }
.orbit__core .wordmark__text { font-size: clamp(14px, 1.5vw, 18px); color: #fff; }
.orbit__core .wordmark__by { color: var(--on-dark-muted); }
@keyframes corePulse { 0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); } 50% { transform: translate(-50%, -50%) rotate(4deg) scale(1.03); } }
.orbit__item {
	--base: calc(360deg / var(--n) * var(--i));
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	display: grid; place-items: center; border-radius: 20px;
	background: rgba(255, 255, 255, .95); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--c) 80%, transparent), 0 0 0 6px rgba(255, 255, 255, .06);
	transform: rotate(calc(var(--base) + var(--rot))) translateX(var(--r1)) rotate(calc(-1 * (var(--base) + var(--rot))));
	animation: spin 48s linear infinite;
}
.orbit__item--outer { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 18px; transform: rotate(calc(var(--base) + var(--rot))) translateX(var(--r2)) rotate(calc(-1 * (var(--base) + var(--rot)))); animation-duration: 70s; animation-direction: reverse; }
.orbit__item .lba-term-icon { width: 70%; height: 70%; }
@keyframes spin { to { --rot: 360deg; } }
.sticker { position: absolute; padding: 8px 14px; border-radius: 999px; font: 700 13px/1 var(--font-body); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); white-space: nowrap; }
.sticker--1 { background: var(--lime); top: 6%; left: 2%; transform: rotate(-8deg); animation: bob 5s ease-in-out infinite; }
.sticker--2 { background: #fff; bottom: 10%; left: -2%; transform: rotate(6deg); animation: bob 6s ease-in-out infinite reverse; }
.sticker--3 { background: var(--accent-2); color: #fff; top: 14%; right: 0; transform: rotate(7deg); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.marquee__list a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font: 600 15px/1 var(--font-body); white-space: nowrap; }
.marquee__icon { width: 30px; height: 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section--dark .section__title { color: #fff; }
.section--dark .section__text { color: var(--on-dark-muted); }
.section__bg { position: absolute; inset: 0; z-index: -1; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.035em; margin: 0 0 10px; }
.section__title--center { text-align: center; margin-bottom: 36px; }
.section__text { max-width: 620px; color: var(--muted); font-size: 18px; margin: 0; }

/* Tiles (software & AI tools) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tiles--small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile {
	--c: var(--accent); --mx: 50%; --my: 0%;
	position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px;
	padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	color: var(--text); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px color-mix(in srgb, var(--c) 70%, transparent); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); color: var(--text); }
.tile__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: .7; transition: opacity .3s; }
.tile:hover .tile__glow { opacity: 1; }
.tile__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 12px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.08); }
.tile__icon .lba-term-icon { width: 52px; height: 52px; }
.tile__name { font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.tile__tagline { color: var(--muted); font-size: 14px; line-height: 1.45; min-height: 2.9em; }
.tile__count { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); font: 600 13px/1 var(--font-body); color: var(--c); filter: saturate(1.2); }
:root[data-theme="dark"] .tile__count { color: color-mix(in srgb, var(--c) 60%, #fff); }
.tile--soon { opacity: .8; }
.tile--soon .tile__count { color: var(--muted); }
.tiles--small .tile { padding: 16px; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.tiles--small .tile__icon { width: 52px; height: 52px; margin: 0; border-radius: 16px; }
.tiles--small .tile__icon .lba-term-icon { width: 36px; height: 36px; }
.tiles--small .tile__name { font-size: 16px; flex: 1; }
.tiles--small .tile__count { width: 100%; margin-top: 0; padding-top: 10px; }
.section--dark .tile { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(6px); }
.section--dark .tile:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.section--dark .tile__tagline { color: var(--on-dark-muted); }
.section--dark .tile__icon { background: #fff; }
.section--dark .tile__count { border-color: rgba(255, 255, 255, .14); color: color-mix(in srgb, var(--c) 55%, #fff); }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { --c: var(--accent); position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; }
.card__label { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 12px/1 var(--font-body); letter-spacing: .02em; backdrop-filter: blur(6px); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__title { font-size: 21px; line-height: 1.22; margin: 0; letter-spacing: -.02em; }
.card__title a { color: var(--text); text-decoration: none; background-image: linear-gradient(var(--c), var(--c)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.card__title a:hover { background-size: 100% 2px; color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card .chip { position: relative; z-index: 1; }
.card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.card__meta { display: flex; gap: 16px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: auto; gap: 22px; }
.bento .card--feature { grid-row: span 2; }
.bento .card--feature .card__media { aspect-ratio: 16 / 10; }
.bento .card--feature .card__title { font-size: clamp(24px, 2.4vw, 32px); }
.bento .card--compact .card__media { aspect-ratio: 16 / 8; }
.bento .card--compact .card__title { font-size: 18px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why__card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.why__card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; bottom: -60px; border-radius: 50%; background: var(--k); opacity: .16; filter: blur(4px); }
.why__card--1 { --k: var(--accent); }
.why__card--2 { --k: var(--accent-2); }
.why__card--3 { --k: var(--lime); }
.why__card h3 { font-size: 22px; margin: 18px 0 8px; }
.why__card p { color: var(--muted); margin: 0; }
.why__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 24px -10px var(--accent); }

/* CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 30px; padding: clamp(32px, 5vw, 64px); border-radius: 34px; background: linear-gradient(120deg, var(--ink) 10%, color-mix(in srgb, var(--accent) 80%, var(--ink)) 60%, var(--accent-2)); color: #fff; isolation: isolate; }
.cta h2 { font-size: clamp(30px, 4vw, 50px); color: #fff; font-weight: 800; letter-spacing: -.035em; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta__shapes span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); z-index: -1; }
.cta__shapes span:nth-child(1) { width: 420px; height: 420px; right: -120px; top: -160px; }
.cta__shapes span:nth-child(2) { width: 280px; height: 280px; right: -40px; top: -80px; }
.cta__shapes span:nth-child(3) { width: 140px; height: 140px; left: 40%; bottom: -70px; background: rgba(255, 255, 255, .06); }
.cta__art { position: relative; height: 240px; }
.cta__swatch { position: absolute; width: 130px; height: 170px; border-radius: 20px; background: var(--c); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .55); border: 6px solid #fff; }
.cta__swatch:nth-child(1) { left: 6%; top: 30px; transform: rotate(-12deg); }
.cta__swatch:nth-child(2) { left: 32%; top: 0; transform: rotate(4deg); }
.cta__swatch:nth-child(3) { left: 58%; top: 40px; transform: rotate(14deg); }
.cta__type { position: absolute; right: 4%; bottom: -10px; font: 800 130px/1 var(--font-display); color: rgba(255, 255, 255, .9); letter-spacing: -.06em; text-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.cta__img img { border-radius: 22px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 28px; margin-top: 0; isolation: isolate; }
.site-footer__blob { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--accent); filter: blur(120px); opacity: .25; right: -200px; top: -300px; z-index: -1; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .site-logo { color: #fff; margin-bottom: 18px; }
.site-footer .wordmark__by { color: var(--on-dark-muted); }
.site-footer p { max-width: 380px; font-size: 15px; }
.footer__title { color: #fff; font-size: 16px; margin: 6px 0 16px; letter-spacing: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a, .socials a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.footer__links a:hover, .socials a:hover { color: #fff; }
.mini-icon { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; font-size: 9px; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.socials a { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bottom p { margin: 0; max-width: none; }
.to-top { color: var(--on-dark-muted); text-decoration: none; }
.to-top:hover { color: var(--lime); }

/* ---------- Archive & term hero ---------- */
.archive-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--accent)) 8%, var(--bg)), var(--bg)); isolation: isolate; }
.archive-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.archive-hero .hero__grid { background-image: linear-gradient(color-mix(in srgb, var(--c, var(--accent)) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c, var(--accent)) 10%, transparent) 1px, transparent 1px); }
.archive-title { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; letter-spacing: -.04em; margin: 6px 0 12px; }
.archive-desc { color: var(--muted); font-size: 18px; max-width: 720px; }
.archive-desc p:last-child { margin: 0; }
.term-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; margin-top: 18px; }
.term-hero__icon { width: clamp(110px, 14vw, 164px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 36px; background: var(--surface); box-shadow: 0 30px 60px -24px var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); transform: rotate(-4deg); }
.term-hero__icon .lba-term-icon { width: 66%; height: 66%; }
.term-hero__tagline { font: 600 20px/1.4 var(--font-display); color: var(--c); filter: saturate(1.2) brightness(.85); margin-bottom: 10px; }
:root[data-theme="dark"] .term-hero__tagline { filter: none; color: color-mix(in srgb, var(--c) 60%, #fff); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; }
.facts div { padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] span { color: var(--text); font-weight: 500; display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.about-hero .breadcrumbs ol, .about-hero .breadcrumbs a, .about-hero .breadcrumbs [aria-current] span { color: var(--on-dark-muted); }

/* ---------- Article ---------- */
.article-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--bg)), var(--bg)); isolation: isolate; }
.article-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.article-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.entry-title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin: 0 0 16px; }
.article-hero__lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 760px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.byline__name { display: block; font-weight: 700; color: var(--text); text-decoration: none; }
.byline__meta { font-size: 14px; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font: 700 16px/1 var(--font-display); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.article-cover { margin: 0 auto clamp(28px, 4vw, 48px); }
.article-cover img { display: block; width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 290px minmax(0, 760px); gap: clamp(28px, 4vw, 64px); justify-content: center; padding-bottom: 72px; }
.article-aside__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.side-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.side-card__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-family: var(--font-body); font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 52vh; overflow: auto; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.is-active { color: var(--text); background: color-mix(in srgb, var(--c) 12%, transparent); border-left-color: var(--c); font-weight: 600; }
.toc__l3 a { padding-left: 22px; font-size: 13px; }
.tool-card { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface)); }
.tool-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-card__head strong { display: block; font: 700 18px/1.2 var(--font-display); }
.tool-card__head span { font-size: 13px; color: var(--muted); }
.tool-card p { font-size: 14px; color: var(--muted); }
.tool-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.key-takeaways { position: relative; margin: 0 0 36px; padding: 24px 26px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, var(--surface)), color-mix(in srgb, var(--accent-2) 8%, var(--surface))); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); }
.key-takeaways h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; }
.key-takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.key-takeaways li { position: relative; padding-left: 28px; font-size: 16px; }
.key-takeaways li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Prose (article body) */
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.8em 0 .5em; letter-spacing: -.03em; }
.prose h3 { font-size: clamp(21px, 2.2vw, 25px); margin: 1.5em 0 .4em; }
.prose h2::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; margin-bottom: 14px; background: linear-gradient(90deg, var(--c, var(--accent)), var(--accent-2)); }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c, var(--accent)); font-weight: 700; }
.prose strong { color: var(--text); }
.prose img { border-radius: 18px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--c, var(--accent)); font: 500 22px/1.5 var(--font-display); color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: .15em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose pre { position: relative; padding: 20px 22px; border-radius: 16px; background: #120c28; color: #ece6ff; overflow-x: auto; font-size: 15px; line-height: 1.6; border: 1px solid #2a2250; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre-wrap; }
.copy-code { position: absolute; top: 10px; right: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.prose kbd { display: inline-block; font: 600 .78em/1 var(--font-mono); padding: .3em .5em; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-family: var(--font-body); font-weight: 700; background: var(--surface-2); }
.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.prose .wp-block-table.is-style-stripes { border-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose a { color: var(--accent); }
.callout { padding: 18px 22px 18px 56px !important; border-radius: 18px; position: relative; border: 1px solid var(--line); background: var(--surface); }
.callout > * { margin: 0 !important; }
.callout > * + * { margin-top: .6em !important; }
.callout::before { position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-weight: 800; font-size: 15px; color: #fff; }
.callout--tip { background: color-mix(in srgb, var(--lime) 18%, var(--surface)); border-color: color-mix(in srgb, var(--lime) 60%, var(--line)); }
.callout--tip::before { content: "✦"; background: #6b8f00; }
.callout--warn { background: color-mix(in srgb, #ffb020 14%, var(--surface)); border-color: color-mix(in srgb, #ffb020 50%, var(--line)); }
.callout--warn::before { content: "!"; background: #d97706; }
.callout--prompt { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.callout--prompt::before { content: "›"; background: var(--accent); font-size: 20px; }
.callout--prompt pre { margin-top: .8em !important; }
.is-style-lba-card { padding: 24px; border-radius: 20px; background: var(--surface-2); }
.is-style-lba-shadow img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.is-style-lba-checks { list-style: none; padding-left: 0 !important; }
.is-style-lba-checks li { position: relative; padding-left: 30px; }
.is-style-lba-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.alignwide { margin-left: -8%; margin-right: -8%; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

/* FAQ, tags, share, author */
.faq { margin-top: 48px; }
.faq h2 { font-size: 28px; margin-bottom: 18px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font: 600 17px/1.4 var(--font-body); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 18px; transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq__a p:last-child { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 18px; }
.tags a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-decoration: none; font-size: 14px; }
.tags a:hover { color: var(--accent); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0 36px; }
.share__label { font-weight: 700; margin-right: 6px; }
.share__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: .2s; }
.share__btn:hover, .share__btn.is-done { background: var(--accent); color: #fff; border-color: var(--accent); }
.author-box { display: flex; gap: 20px; padding: 26px; border-radius: 22px; background: var(--surface-2); margin-bottom: 40px; }
.author-box__label { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.author-box__name { font-size: 24px; margin: 2px 0 8px; }
.author-box p { color: var(--muted); font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* Comments */
.comments { margin-top: 16px; }
.comments__title, .comment-reply-title { font-size: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; font-size: 16px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea, .contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 400 16px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus, .comment-form textarea:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Pagination */
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 8px; }
.empty p { color: var(--muted); }

/* ---------- About ---------- */
.about-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0; isolation: isolate; }
.about-hero__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-hero__role { font: 600 clamp(18px, 2vw, 24px)/1.3 var(--font-display); color: var(--lime); margin: -6px 0 18px; }
.about-photo { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.about-photo__img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 40px 40px 40px 140px; box-shadow: 0 40px 80px -30px var(--accent); z-index: 1; }
.about-photo__ring { position: absolute; inset: -18px -18px 18px 18px; border-radius: 44px 44px 44px 150px; background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--lime)); z-index: 0; transform: rotate(4deg); }
.about-photo__placeholder { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 40px; background: rgba(255, 255, 255, .06); }
.about-sticker { position: absolute; z-index: 2; padding: 10px 16px; border-radius: 999px; font: 700 14px/1 var(--font-body); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); white-space: nowrap; }
.about-sticker--1 { background: var(--lime); color: var(--ink); top: 8%; left: -8%; transform: rotate(-8deg); animation: bob 6s ease-in-out infinite; }
.about-sticker--2 { background: #fff; color: var(--ink); bottom: 18%; right: -10%; transform: rotate(6deg); animation: bob 7s ease-in-out infinite reverse; }
.about-sticker--3 { background: var(--accent-2); color: #fff; bottom: -3%; left: 10%; transform: rotate(-3deg); animation: bob 8s ease-in-out infinite; }
.skills { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.skills__item { padding: 14px 22px; border-radius: 999px; font: 600 clamp(15px, 1.5vw, 19px)/1 var(--font-display); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.skills__item:nth-child(4n+1) { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.skills__item:nth-child(4n+2) { background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); }
.skills__item:nth-child(4n+3) { background: color-mix(in srgb, var(--lime) 28%, var(--surface)); }
.tool-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tool-cloud__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; padding: 18px 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; text-align: center; transition: transform .3s, box-shadow .3s; }
.tool-cloud__item:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: 0 20px 40px -18px var(--c); color: var(--text); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-aside { display: grid; gap: 16px; }
.contact-card h2 { font-size: 20px; margin: 14px 0 6px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card--grad { background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--accent) 70%, var(--ink))); color: #fff; border: 0; }
.contact-card--grad h2 { color: #fff; }
.contact-card--grad p { color: rgba(255, 255, 255, .78); }
.contact-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form label > span { display: block; font: 600 14px/1.4 var(--font-body); margin-bottom: 6px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.contact-form__consent input { width: auto; margin-top: 4px; }
.contact-form__consent span { display: inline !important; font-weight: 400 !important; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; border: 0; }
.form-notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.form-notice--ok { background: color-mix(in srgb, #16a34a 14%, var(--surface)); color: #15803d; }
.form-notice--err { background: color-mix(in srgb, #dc2626 12%, var(--surface)); color: #b91c1c; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.notfound__code { font: 800 clamp(110px, 22vw, 220px)/1 var(--font-display); letter-spacing: -.06em; margin: 0; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__code span { display: inline-block; animation: spin404 6s linear infinite; }
@keyframes spin404 { to { transform: rotate(360deg); } }
.notfound h1 { font-size: clamp(28px, 4vw, 42px); }
.notfound p { color: var(--muted); }
.notfound .search-form { max-width: 520px; margin: 24px auto; }

/* ---------- Progress & reveal ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--lime)); transform-origin: 0 50%; transform: scaleX(0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2), .grid .reveal:nth-child(2), .why .reveal:nth-child(2) { transition-delay: .08s; }
.tiles .reveal:nth-child(3), .grid .reveal:nth-child(3), .why .reveal:nth-child(3) { transition-delay: .16s; }
.tiles .reveal:nth-child(4), .grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.article-layout { grid-template-columns: minmax(0, 760px); }
	.article-aside { order: 2; }
	.article-aside__sticky { position: static; }
	.toc { display: none; }
	.bento { grid-template-columns: 1fr 1fr; }
	.bento .card--feature { grid-column: span 2; grid-row: auto; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.hero__inner, .about-hero__inner, .cta, .contact-layout { grid-template-columns: 1fr; }
	.hero__art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
	.orbit { --r1: 30vw; --r2: 44vw; max-width: 100%; }
	.why { grid-template-columns: 1fr; }
	.cta__art { display: none; }
	.term-hero { grid-template-columns: 1fr; }
	.about-photo { max-width: 340px; }
	.alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.prose { font-size: 17px; }
	.bento { grid-template-columns: 1fr; }
	.bento .card--feature { grid-column: auto; }
	.grid--3 { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
	.tile { padding: 16px; }
	.tile__icon { width: 56px; height: 56px; }
	.tile__icon .lba-term-icon { width: 40px; height: 40px; }
	.tile__tagline { display: none; }
	.tile__name { font-size: 17px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.contact-form__row { grid-template-columns: 1fr; }
	.orbit__item { width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 14px; }
	.orbit__item--outer { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 12px; }
	.sticker { font-size: 11px; padding: 6px 10px; }
	.wordmark__text { font-size: 20px; }
	.wordmark__mark svg { width: 34px; height: 34px; }
	.site-header__actions .js-search-open { display: none; }
	.author-box { flex-direction: column; }
	.search-form__btn { padding: 11px 14px; }
	.hero__stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
@media print {
	.site-header, .site-footer, .article-aside, .share, .comments, .progress, .section--tint { display: none !important; }
	.article-layout { display: block; }
}
.cta__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section--why + .section--cta { padding-top: 0; }
html { overflow-x: clip; }
@media (max-width: 980px) {
	.main-nav { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
	.menu-open .main-nav { visibility: visible; transition: transform .3s ease; }
}
@media (max-width: 860px) { .orbit { --r1: 27vw; --r2: 39vw; } }
.search-overlay[hidden] { display: none; }
