/*
Theme Name: Aarushi's Edit
Description: Portfolio block theme for Aarushi Singh: a designer's personal workspace inspired by Figma and FigJam. Warm off-white dotted canvas, charcoal text, blue / lavender / lime / coral accents, Manrope headings and Inter body. Light and dark mode.
Version: 2.10.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aarushi
*/

/* Colours, type and spacing live in theme.json. This file holds dark mode,
   the canvas background and the workspace components (see DESIGN.md). */

/* ---------- Dark mode: redefine the same tokens ---------- */
html[data-mode="dark"] {
	--wp--preset--color--base: #16171A;
	--wp--preset--color--surface: #1F2125;
	--wp--preset--color--card: #24262B;
	--wp--preset--color--contrast: #ECECE8;
	--wp--preset--color--muted: #A3A4A8;
	--wp--preset--color--line: #34363C;
	--wp--preset--color--accent: #7D9AF2;
	--wp--preset--color--lavender: #B7A9EE;
	--wp--preset--color--lime: #B9DC63;
	--wp--preset--color--coral: #FF927F;
	--wp--custom--ink--lavender: #241A55;
	--wp--custom--ink--lime: #1F2A05;
	--wp--custom--ink--coral: #4A140B;
	--wp--custom--ink--on-accent: #0F1530;
	--wp--custom--tint--lavender: #2E2944;
	--wp--custom--tint--lime: #2A3220;
	--wp--custom--tint--coral: #3A2723;
	--wp--custom--tint--accent: #232B45;
	--wp--preset--color--orange: #FF8C4D;
	--wp--preset--color--sky: #8ACBEE;
	--wp--preset--color--yellow: #F5CF4A;
	--wp--preset--color--mint: #94D9BB;
	--wp--custom--ink--orange: #3D1600;
	--wp--custom--ink--sky: #0A2A3F;
	--wp--custom--ink--yellow: #332700;
	--wp--custom--ink--mint: #0A3323;
	--wp--custom--tint--orange: #3A2A20;
	--wp--custom--tint--sky: #1E2F3A;
	--wp--custom--tint--yellow: #36321E;
	--wp--custom--tint--mint: #1F332B;
	--wp--custom--dot: rgba(236, 236, 232, 0.1);
	--wp--custom--glass: rgba(22, 23, 26, 0.88);
	--wp--custom--shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.7);
	color-scheme: dark;
}

/* ---------- The canvas ---------- */
body {
	background-color: var(--wp--preset--color--base);
	background-image: radial-gradient(var(--wp--custom--dot) 1.1px, transparent 1.5px);
	background-size: 22px 22px;
	background-position: 11px 11px;
	background-attachment: fixed;
}
:where(a, button, input, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.screen-reader-text:focus { clip: auto !important; }

/* shared bits */
.ae-tag, .wp-block-post-terms.is-style-tags a {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 0.78rem; font-weight: 500; line-height: 1.4;
	padding: 4px 10px; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.ae-tag.is-lime { background: var(--wp--preset--color--lime); border-color: transparent; color: var(--wp--custom--ink--lime); }
.ae-tag.is-lavender { background: var(--wp--preset--color--lavender); border-color: transparent; color: var(--wp--custom--ink--lavender); }
.ae-tag .ae-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ae-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ae-kicker { font-size: 0.8rem; font-weight: 500; color: var(--wp--preset--color--muted); margin: 0 0 6px; }
.ae-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--muted); background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); }
.ae-link a, a.ae-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* ---------- Header ---------- */
.ae-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--wp--custom--glass);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .ae-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ae-header__bar { min-height: 64px; }
.ae-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--wp--preset--font-family--manrope); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: var(--wp--preset--color--contrast); text-decoration: none; }
.ae-badge i { width: 30px; height: 30px; border-radius: 9px; background: var(--wp--preset--color--lavender); color: var(--wp--custom--ink--lavender); display: grid; place-items: center; font: 800 12px var(--wp--preset--font-family--manrope); font-style: normal; }
.ae-header .wp-block-navigation-item__content { padding: 7px 13px !important; border-radius: 8px; transition: background 0.2s; }
.ae-header .wp-block-navigation-item__content:hover,
.ae-header .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); }
.ae-header .wp-block-navigation__container { gap: 2px; }
.ae-actions { display: flex; align-items: center; gap: 8px; }
.ae-iconbtn {
	width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0;
	border-radius: 10px; border: 1px solid var(--wp--preset--color--line);
	background: transparent; color: var(--wp--preset--color--contrast); cursor: pointer;
}
.ae-iconbtn:hover { background: var(--wp--preset--color--surface); }
.ae-iconbtn .ae-moon { display: none; }
html[data-mode="dark"] .ae-iconbtn .ae-moon { display: block; }
html[data-mode="dark"] .ae-iconbtn .ae-sun { display: none; }
.ae-resume .wp-block-button__link {
	background: transparent !important; color: var(--wp--preset--color--contrast) !important;
	display: inline-flex; align-items: center; gap: 7px; padding: 0.55rem 0.7rem !important;
}
.ae-resume .wp-block-button__link:hover { background: var(--wp--preset--color--surface) !important; }
.ae-resume .wp-block-button__link::before {
	content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12M7 10l5 5 5-5M4 20h16'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12M7 10l5 5 5-5M4 20h16'/></svg>") center / contain no-repeat;
}

/* presence + cursor strip */
.ae-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; font-size: 0.78rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.ae-here { display: inline-flex; align-items: center; gap: 8px; }
.ae-here .ae-live { width: 6px; height: 6px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 3px rgba(59, 178, 115, 0.18); }
.ae-avs { display: flex; }
.ae-avs i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--wp--preset--color--base); margin-left: -5px; display: grid; place-items: center; font: 700 8.5px var(--wp--preset--font-family--inter); font-style: normal; }
.ae-avs i:first-child { background: var(--wp--preset--color--lavender); color: var(--wp--custom--ink--lavender); }
.ae-avs i:last-child { background: var(--wp--preset--color--accent); color: var(--wp--custom--ink--on-accent); }
.ae-cursors { display: inline-flex; align-items: center; gap: 8px; }
.ae-cursors b { color: var(--wp--preset--color--contrast); font-weight: 600; }
.ae-cset { display: inline-flex; gap: 2px; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 3px; }
.ae-cset button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; display: grid; place-items: center; cursor: pointer; color: var(--wp--preset--color--contrast); }
.ae-cset button:hover { background: var(--wp--preset--color--surface); }
.ae-cset button[aria-pressed="true"] { background: var(--wp--preset--color--accent); color: var(--wp--custom--ink--on-accent); }
.ae-cset svg { width: 16px; height: 16px; }
.ae-zone { cursor: var(--ae-cur, auto); }
.ae-zone a, .ae-zone .ae-pg { cursor: var(--ae-cur-link, pointer); }

/* ---------- Hero ---------- */
.ae-hero { position: relative; }
.ae-namewrap { position: relative; display: inline-block; }
.ae-name { position: relative; display: inline-block; cursor: pointer; padding: 6px 8px; margin: 0 0 0 -8px !important; }
.ae-name .ae-light { color: var(--wp--preset--color--muted); font-weight: 600; }
.ae-handles { position: absolute; inset: 0; border: 1.5px solid var(--wp--preset--color--accent); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.ae-handles i { position: absolute; width: 8px; height: 8px; background: var(--wp--preset--color--card); border: 1.5px solid var(--wp--preset--color--accent); }
.ae-handles i:nth-child(1) { left: -4px; top: -4px; } .ae-handles i:nth-child(2) { right: -4px; top: -4px; }
.ae-handles i:nth-child(3) { left: -4px; bottom: -4px; } .ae-handles i:nth-child(4) { right: -4px; bottom: -4px; }
.ae-handles .ae-dim { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); background: var(--wp--preset--color--accent); color: var(--wp--custom--ink--on-accent); font: 500 11px var(--wp--preset--font-family--inter); letter-spacing: 0; padding: 2px 7px; border-radius: 5px; white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.ae-name:hover .ae-handles { opacity: 0.4; }
.ae-name.is-selected .ae-handles, .ae-name.is-selected .ae-dim { opacity: 1; }
.ae-pop {
	position: absolute; z-index: 40; background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); box-shadow: var(--wp--custom--shadow);
	opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.25s, transform 0.3s cubic-bezier(.2,.75,.25,1);
}
.ae-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.ae-inspect { width: 290px; padding: 0 !important; font-size: 0.84rem; }
.ae-inspect > *:first-child { display: flex; justify-content: space-between; padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); font-weight: 600; font-size: 0.82rem; }
.ae-inspect dl, .ae-inspect .ae-rows { margin: 0; padding: 10px 14px 14px; display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px; }
.ae-inspect .ae-rows p { margin: 0; }
.ae-inspect .ae-rows p:nth-child(odd) { color: var(--wp--preset--color--muted); font-size: 0.75rem; padding-top: 2px; }
.ae-close { border: 0; background: none; cursor: pointer; color: var(--wp--preset--color--muted); font-size: 18px; line-height: 1; padding: 0; }
.ae-anno {
	color: inherit !important; text-decoration: none !important; cursor: pointer;
	background-image: linear-gradient(var(--wp--preset--color--coral), var(--wp--preset--color--coral));
	background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s;
}
.ae-anno:hover, .ae-anno[aria-expanded="true"] { background-size: 100% 42%; }
.ae-comment { display: flex !important; gap: 8px; align-items: flex-start; background: none !important; border: 0 !important; box-shadow: none !important; width: max-content; max-width: min(320px, 90vw); }
.ae-comment::before { content: "AS"; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; background: var(--wp--preset--color--coral); color: var(--wp--custom--ink--coral); font: 700 11px var(--wp--preset--font-family--manrope); display: grid; place-items: center; border: 2px solid var(--wp--preset--color--card); flex-shrink: 0; }
.ae-comment > .wp-block-group, .ae-comment > div { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--wp--custom--shadow); font-size: 0.875rem; line-height: 1.45; }
.ae-comment p { margin: 0; }
.ae-comment strong { display: block; font-size: 0.78rem; }
.ae-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--wp--preset--color--muted); }
.js .ae-pop:not(.is-open) { visibility: hidden; }
html:not(.js) .ae-pop { display: none; }

/* notes canvas */
.ae-board {
	position: relative; height: clamp(380px, 34vw, 470px); overflow: hidden; touch-action: none;
	border: 1px solid var(--wp--preset--color--line); border-radius: 18px;
	background-color: var(--wp--preset--color--surface);
	background-image: radial-gradient(var(--wp--custom--dot) 1.1px, transparent 1.5px); background-size: 16px 16px;
}
.js .ae-board > p.ae-seed { display: none; }
html:not(.js) .ae-board { height: auto; padding: 12px; }
.ae-bhead { position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.ae-bhead span { font-size: 0.78rem; font-weight: 500; color: var(--wp--preset--color--muted); display: flex; gap: 6px; align-items: center; }
.ae-add { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); border-radius: 999px; padding: 6px 12px 6px 10px; font: 600 0.78rem var(--wp--preset--font-family--inter); cursor: pointer; box-shadow: 0 4px 10px -8px rgba(0,0,0,.4); }
.ae-add:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.ae-privacy { position: absolute; left: 14px; bottom: 10px; z-index: 30; font-size: 0.72rem; font-weight: 500; color: var(--wp--preset--color--muted); display: flex; gap: 6px; align-items: center; margin: 0; }
.ae-note {
	position: absolute; width: clamp(140px, 13vw, 178px); min-height: 130px; padding: 14px 14px 30px; border-radius: 10px;
	font: 600 0.9rem/1.35 var(--wp--preset--font-family--manrope); letter-spacing: -0.01em; user-select: none; touch-action: none;
	box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 22px -16px rgba(0,0,0,.4); cursor: var(--ae-cur-note, grab);
}
.ae-note[data-c="lavender"] { background: var(--wp--preset--color--lavender); color: var(--wp--custom--ink--lavender); }
.ae-note[data-c="lime"] { background: var(--wp--preset--color--lime); color: var(--wp--custom--ink--lime); }
.ae-note[data-c="coral"] { background: var(--wp--preset--color--coral); color: var(--wp--custom--ink--coral); }
.ae-note[data-c="card"] { background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); }
.ae-note .ae-body { outline: none; min-height: 3.9em; word-break: break-word; white-space: pre-wrap; }
.ae-note .ae-body[contenteditable="true"], .ae-note .ae-body[contenteditable="plaintext-only"] { cursor: text; user-select: text; }
.ae-note .ae-body:empty::before { content: attr(data-ph); opacity: 0.55; }
.ae-note .ae-by { position: absolute; left: 14px; bottom: 9px; font: 500 11px var(--wp--preset--font-family--inter); opacity: 0.7; }
.ae-note.is-mine .ae-by::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.ae-note.is-drag { z-index: 25; cursor: var(--ae-cur-note-drag, grabbing); box-shadow: 0 26px 36px -18px rgba(0,0,0,.45); }
.ae-note.is-active::after, .ae-note.is-drag::after { content: ""; position: absolute; inset: -5px; border: 1.5px solid var(--wp--preset--color--accent); border-radius: 13px; pointer-events: none; }
.ae-ntools { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); display: flex; align-items: center; gap: 4px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 4px; box-shadow: var(--wp--custom--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; cursor: default; }
.ae-note.is-active .ae-ntools { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.ae-note.is-top .ae-ntools { bottom: auto; top: calc(100% + 10px); }
.ae-ntools .ae-c { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--wp--preset--color--card); box-shadow: 0 0 0 1px var(--wp--preset--color--line); cursor: pointer; padding: 0; }
.ae-ntools .ae-c[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wp--preset--color--accent); }
.ae-ntools .ae-sep { width: 1px; height: 18px; background: var(--wp--preset--color--line); margin: 0 3px; }
.ae-ntools .ae-t { border: 0; background: none; border-radius: 7px; padding: 4px 8px; font: 500 12px var(--wp--preset--font-family--inter); cursor: pointer; color: var(--wp--preset--color--contrast); }
.ae-ntools .ae-t:hover { background: var(--wp--preset--color--surface); }
.ae-you { position: absolute; z-index: 28; pointer-events: none; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.ae-you span { background: var(--wp--preset--color--accent); color: var(--wp--custom--ink--on-accent); font: 500 11.5px var(--wp--preset--font-family--inter); padding: 2px 8px; border-radius: 0 8px 8px 8px; margin-top: 14px; }
.ae-board:hover .ae-you { opacity: 1; }
.ae-board.has-cursor .ae-you svg { display: none; }
.ae-board.has-cursor .ae-you span { margin: 22px 0 0 12px; }

/* ---------- Work tiles ---------- */
.ae-work .wp-block-post-template { row-gap: clamp(28px, 3vw, 40px) !important; }
.ae-tile { position: relative; }
.ae-flab { font-size: 0.75rem; font-weight: 500; color: var(--wp--preset--color--muted); margin: 0 0 6px; transition: color .2s; }
.ae-tile:hover .ae-flab, .ae-tile:focus-within .ae-flab { color: var(--wp--preset--color--accent); }
.ae-frame { position: relative; overflow: hidden; border-radius: var(--wp--custom--radius); border: 1px solid var(--wp--preset--color--line); background: var(--wp--custom--tint--lavender); height: clamp(240px, 26vw, 360px); }
.wp-block-post:nth-child(3n+2) .ae-frame { background: var(--wp--custom--tint--lime); }
.wp-block-post:nth-child(3n+3) .ae-frame { background: var(--wp--custom--tint--coral); }
.ae-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .6s cubic-bezier(.2,.75,.25,1), opacity .5s; }
.ae-frame .ae-shot2 { transform: translateX(105%); opacity: 0; }
.ae-tile.is-playing .ae-shot1 { transform: translateX(-105%); opacity: 0; }
.ae-tile.is-playing .ae-shot2 { transform: none; opacity: 1; }
.ae-frame .ae-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.75rem; color: var(--wp--preset--color--muted); }
.ae-frame .ae-ph::before { content: ""; position: absolute; left: 12%; top: 14%; width: 52%; height: 72%; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; box-shadow: var(--wp--custom--shadow); }
.ae-frame .ae-ph::after { content: ""; position: absolute; left: 58%; top: 26%; width: 30%; height: 56%; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; box-shadow: var(--wp--custom--shadow); }
.ae-frame .ae-ph span { position: absolute; left: 14px; bottom: 12px; z-index: 1; }
.ae-sel { position: absolute; inset: 0; border: 1.5px solid var(--wp--preset--color--accent); border-radius: var(--wp--custom--radius); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 2; }
.ae-tile:hover .ae-sel, .ae-tile:focus-within .ae-sel { opacity: 1; }
.ae-play { position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 6px 12px 6px 10px; font: 600 12.5px var(--wp--preset--font-family--inter); cursor: pointer; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.ae-reveal { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s; }
.ae-tile:hover .ae-play, .ae-tile:focus-within .ae-play, .ae-tile:hover .ae-reveal, .ae-tile:focus-within .ae-reveal { opacity: 1; transform: none; }
.ae-frame a.ae-cover { position: absolute; inset: 0; z-index: 1; }
.ae-tile .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }

/* ---------- About variants ---------- */
.ae-about { overflow: hidden; }
.ae-about .ae-photo { min-height: 340px; background: var(--wp--preset--color--surface); transition: background .5s; position: relative; }
.ae-about .ae-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ae-segs { display: inline-flex; flex-wrap: wrap; background: var(--wp--preset--color--surface); border-radius: 11px; padding: 4px; margin-bottom: 8px; }
.ae-segs button { border: 0; background: none; border-radius: 8px; padding: 7px 14px; font: 500 0.84rem var(--wp--preset--font-family--inter); cursor: pointer; color: var(--wp--preset--color--muted); }
.ae-segs button[aria-pressed="true"] { background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.js .ae-variant:not(.is-current) { display: none; }
.ae-variant > .ae-variant-label { display: none; }
html:not(.js) .ae-variant > .ae-variant-label { display: block; }

/* ---------- Playground ---------- */
.ae-filters .wp-block-button__link { background: var(--wp--preset--color--card) !important; color: var(--wp--preset--color--contrast) !important; border: 1px solid var(--wp--preset--color--line) !important; border-radius: 999px !important; padding: 6px 14px !important; font-weight: 500 !important; font-size: 0.8rem !important; }
.ae-filters .wp-block-button__link[aria-pressed="true"] { background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; border-color: var(--wp--preset--color--contrast) !important; }
.ae-pgrid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px) !important; }
.ae-pg { position: relative; margin: 0 !important; }
.ae-pg.is-big { grid-column: span 2; grid-row: span 2; }
.ae-pg.is-hidden { display: none; }
.ae-pg .ae-pgimg { aspect-ratio: 1; border-radius: var(--wp--custom--radius); overflow: hidden; background: var(--wp--custom--tint--lavender); display: grid; place-items: end start; padding: 12px; font-size: 0.75rem; color: var(--wp--preset--color--muted); margin: 0; }
.ae-pg.is-big .ae-pgimg { aspect-ratio: auto; height: 100%; }
.ae-pg:nth-child(5n+2) .ae-pgimg { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); }
.ae-pg:nth-child(5n+3) .ae-pgimg { background: var(--wp--custom--tint--coral); }
.ae-pg:nth-child(5n+4) .ae-pgimg { background: var(--wp--custom--tint--lime); }
.ae-pg:nth-child(5n+5) .ae-pgimg { background: var(--wp--custom--tint--accent); }
.ae-pg img { width: 100%; height: 100%; object-fit: cover; }
.ae-pg .ae-over { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); border-radius: 10px; padding: 8px 10px; font-size: 0.8rem; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s; }
.ae-pg:hover .ae-over, .ae-pg:focus-within .ae-over { opacity: 1; transform: none; }
.ae-pg .ae-over p { margin: 0; }
.ae-pg .ae-over p + p { color: var(--wp--preset--color--muted); font-size: 0.75rem; }

/* ---------- Let's work together ---------- */
.ae-together { position: relative; overflow: hidden; text-align: center; }
.ae-together .wp-block-heading { font-size: clamp(2.4rem, 6.2vw, 5.25rem); letter-spacing: -0.05em; line-height: 1; }
.ae-field { display: flex; max-width: 460px; margin: 0 auto !important; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--base); }
.ae-field .ae-email { flex: 1; min-width: 0; text-align: left; padding: 13px 16px; margin: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-field .ae-email a { text-decoration: none; }
.ae-field button { border: 0; background: var(--wp--preset--color--accent); color: var(--wp--custom--ink--on-accent); padding: 0 20px; font-weight: 600; cursor: pointer; min-width: 96px; }
.ae-tcursor { position: absolute; display: flex; gap: 2px; pointer-events: none; }
.ae-tcursor span { font: 500 11.5px var(--wp--preset--font-family--inter); padding: 2px 8px; border-radius: 0 8px 8px 8px; margin-top: 14px; }
.ae-tcursor.is-you { left: 12%; top: 24%; } .ae-tcursor.is-you span { background: var(--wp--preset--color--accent); color: var(--wp--custom--ink--on-accent); }
.ae-tcursor.is-me { right: 14%; bottom: 22%; } .ae-tcursor.is-me span { background: var(--wp--preset--color--coral); color: var(--wp--custom--ink--coral); }

/* ---------- Toast ---------- */
.ae-toast { position: fixed; left: 50%; top: 84px; z-index: 100; transform: translate(-50%, -8px); background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); font-size: 0.82rem; font-weight: 500; padding: 9px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.ae-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.ae-cursors, .ae-resume .wp-block-button__link .ae-lbl { display: none; }
	.ae-resume .wp-block-button__link { font-size: 0 !important; gap: 0; }
	.ae-sayhi { display: none; }
	.ae-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ae-play, .ae-reveal, .ae-pg .ae-over { opacity: 1; transform: none; }
	.ae-note { width: 140px; min-height: 118px; font-size: 0.84rem; }
	.ae-you { display: none; }
	.ae-inspect { width: min(290px, calc(100vw - 40px)); }
	.ae-about .ae-photo { min-height: 220px; }
}
@media (hover: none) { .ae-cursors, .ae-you { display: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* small additions for block-built pieces */
.ae-tags .ae-tag, .ae-together .ae-tag { margin: 0; }
.ae-together .ae-tag { display: flex; width: max-content; margin-inline: auto !important; }
.ae-tag.is-lime::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ae-name mark { font-weight: 600; }
.ae-hint::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 2l10 5.5-4.4 1.2L7 13z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 2l10 5.5-4.4 1.2L7 13z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
html:not(.js) .ae-hint { display: none; }
.ae-tile .ae-cats a { display: inline-flex; font-size: 0.75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--wp--preset--color--lavender); color: var(--wp--custom--ink--lavender); white-space: nowrap; }
.ae-tile .ae-cats .wp-block-post-terms__separator { display: none; }
.ae-tile .ae-cats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 45%; }
.ae-tile .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); }
.ae-tile .wp-block-post-excerpt__excerpt { margin: 0; }
.ae-variants .ae-variant h3 { margin-top: 18px; max-width: 18ch; }
.ae-pgimg p { margin: 0; }

/* header + small-screen refinements */
.ae-badge { white-space: nowrap; }
@media (max-width: 781px) {
	.wp-block-buttons > .wp-block-button.ae-sayhi { display: none; }
	.ae-resume .wp-block-button__link { width: 36px; height: 36px; padding: 0 !important; justify-content: center; border: 1px solid var(--wp--preset--color--line) !important; border-radius: 10px !important; }
	.ae-resume .wp-block-button__link .ae-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ae-header__bar { gap: 8px; }
	.ae-board { height: 460px; }
	.ae-note { width: 132px; min-height: 112px; padding: 12px 12px 28px; }
}
.ae-frame .ae-ph span { top: 14px; bottom: auto; }
@media (max-width: 781px) {
	.ae-pg.is-big { grid-row: auto; }
	.ae-pg.is-big .ae-pgimg { aspect-ratio: 16 / 10; height: auto; }
}

/* ---------- Case study page (templates/single.html) ---------- */
.ae-crumbs { gap: 8px; font-size: 0.82rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.ae-crumbs > * { margin: 0 !important; }
.ae-back a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ae-back a::before { content: "←"; }
.ae-back a:hover { color: var(--wp--preset--color--accent); }
.ae-crumb-cat::before { content: "/"; margin-right: 8px; color: var(--wp--preset--color--line); }
.ae-crumb-cat a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ae-crumb-cat a:hover { color: var(--wp--preset--color--accent); }
.ae-cs-title { font-size: clamp(2.4rem, 5.4vw, 4.5rem) !important; letter-spacing: -0.045em; line-height: 1.02; margin: 0; max-width: 16ch; }
.ae-cs-lede { margin-top: 18px !important; max-width: 46ch; }
.ae-cs-lede p { margin: 0; }

/* Project details: an inspector-style panel fed by post meta */
.ae-props { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); font-size: 0.875rem; }
.ae-props > * { margin: 0 !important; }
.ae-props-title { padding: 10px 14px; border-bottom: 1px solid var(--wp--preset--color--line); font-weight: 600; font-size: 0.82rem; }
.ae-props .ae-rows { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; padding: 12px 14px 14px; }
.ae-props .ae-rows > * { margin: 0 !important; }
.ae-props .ae-rows > p:nth-child(odd) { color: var(--wp--preset--color--muted); font-size: 0.78rem; padding-top: 2px; }
.ae-props .ae-rows > p:nth-child(even):empty,
.ae-props .ae-rows > p:nth-child(odd):has(+ p:empty) { display: none; }
.ae-props:not(:has(.ae-rows > p:nth-child(even):not(:empty))) { display: none; }

/* Cover frame */
.ae-cs-cover .ae-frame { height: clamp(260px, 46vw, 620px); }
.ae-cs-cover .ae-play { opacity: 1; transform: none; }

/* Layers panel + body */
.ae-cs-main { display: grid; grid-template-columns: 200px minmax(0, 720px) 200px; justify-content: space-between; gap: 40px; align-items: start; }
.ae-cs-main > * { margin: 0 !important; }
.ae-layers { position: sticky; top: 96px; font-size: 0.82rem; }
.admin-bar .ae-layers { top: 128px; }
.ae-layers-title { margin: 0 0 8px !important; padding-left: 10px; font-size: 0.75rem; font-weight: 600; color: var(--wp--preset--color--muted); }
html:not(.js) .ae-layers { display: none; }
.js .ae-layers:not(.is-ready) { visibility: hidden; }
.ae-layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ae-layer-list a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--wp--preset--color--muted); line-height: 1.3; }
.ae-layer-list a svg { flex-shrink: 0; opacity: 0.7; }
.ae-layer-list a:hover { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); }
.ae-layer-list a[aria-current="true"] { background: var(--wp--custom--tint--accent); color: var(--wp--preset--color--accent); font-weight: 600; }
.ae-layer-list a[aria-current="true"] svg { opacity: 1; }

.ae-cs-body { counter-reset: ae-sec; }
.ae-cs-body > * { max-width: 720px; }
.ae-cs-body > :first-child { margin-top: 0; }
.ae-cs-body p, .ae-cs-body li { font-size: 1.0625rem; line-height: 1.7; }
.ae-cs-body h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: var(--wp--preset--spacing--60); margin-bottom: 14px; scroll-margin-top: 96px; }
.ae-cs-body h2::before { counter-increment: ae-sec; content: counter(ae-sec, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 0.75rem var(--wp--preset--font-family--inter); letter-spacing: 0; color: var(--wp--preset--color--muted); }
.ae-cs-body h2:first-child { margin-top: 0; }
.ae-cs-body h3 { margin-top: var(--wp--preset--spacing--50); }
.ae-cs-body .wp-block-image img { border: 1px solid var(--wp--preset--color--line); }
.ae-cs-body figcaption, .ae-cs-body .wp-element-caption { text-align: left; font-size: 0.8rem; color: var(--wp--preset--color--muted); margin-top: 10px; }

/* Block style: Sticky note (paragraph) */
p.is-style-ae-note {
	max-width: 440px; margin-block: var(--wp--preset--spacing--40); padding: 18px 20px 20px; border-radius: 10px;
	background: var(--wp--preset--color--lavender); color: var(--wp--custom--ink--lavender);
	font: 600 1.125rem/1.4 var(--wp--preset--font-family--manrope); letter-spacing: -0.01em;
	box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 22px -16px rgba(0,0,0,.4);
}
.ae-cs-body p.is-style-ae-note { font-size: 1.125rem; line-height: 1.4; }
p.is-style-ae-note.has-lime-background-color { color: var(--wp--custom--ink--lime); }
p.is-style-ae-note.has-coral-background-color { color: var(--wp--custom--ink--coral); }
p.is-style-ae-note.has-card-background-color { color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); }

/* Block style: Image placeholder (group) */
.wp-block-group.is-style-ae-placeholder {
	position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-block: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius);
	background: var(--wp--custom--tint--lavender); padding: 14px;
}
.wp-block-group.is-style-ae-placeholder.has-background { background-image: none; }
.wp-block-group.is-style-ae-placeholder::before { content: ""; position: absolute; left: 14%; top: 18%; width: 72%; height: 64%; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; box-shadow: var(--wp--custom--shadow); }
.wp-block-group.is-style-ae-placeholder > * { position: relative; z-index: 1; margin: 0 !important; font-size: 0.78rem !important; color: var(--wp--preset--color--muted); line-height: 1.4 !important; }

/* Previous / next */
.ae-next { gap: clamp(12px, 1.6vw, 20px) !important; }
.ae-next .wp-block-post-navigation-link { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 24px; margin: 0; transition: border-color .2s; }
.ae-next .post-navigation-link-next { grid-column: 2; justify-content: flex-end; }
.ae-next .wp-block-post-navigation-link:hover { border-color: var(--wp--preset--color--accent); }
.ae-next a { text-decoration: none; display: grid; gap: 4px; }
.ae-next a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ae-next .post-navigation-link__label { font-size: 0.78rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.ae-next .post-navigation-link__title { font: 700 1.2rem/1.25 var(--wp--preset--font-family--manrope); letter-spacing: -0.02em; }
.ae-next [class*="__arrow"] { color: var(--wp--preset--color--muted); font-size: 1.1rem; }
.ae-next .wp-block-post-navigation-link:hover [class*="__arrow"] { color: var(--wp--preset--color--accent); }
.ae-cs .ae-together { margin-top: var(--wp--preset--spacing--60) !important; }

@media (max-width: 1180px) {
	.ae-cs-main { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.ae-cs-main { display: block; }
	.ae-layers { display: none; }
}
@media (max-width: 781px) {
	.ae-cs-head { gap: 24px !important; }
	.ae-next { grid-template-columns: 1fr !important; }
	.ae-next .post-navigation-link-next { grid-column: auto; }
	.ae-cs-body p, .ae-cs-body li { font-size: 1rem; }
}

/* The header bar sits inside the <header> template part, which is only as tall
   as itself. Let the bar stick to the whole page; the presence strip scrolls away. */
header.wp-block-template-part:has(> .ae-header) { display: contents; }
.ae-field { align-items: stretch !important; }
/* On phones the admin bar scrolls away, so the sticky header goes to the top. */
@media (max-width: 600px) { .admin-bar .ae-header { top: 0; } }

/* ---------- Project grid: every card the same size ---------- */
.ae-work .ae-frame { height: auto; aspect-ratio: 16 / 10; }
.ae-tile .ae-frame .ae-shot1 { transition: transform .6s cubic-bezier(.2,.75,.25,1), opacity .5s; }
.ae-tile:not(.is-playing):hover .ae-frame .ae-shot1,
.ae-tile:not(.is-playing):focus-within .ae-frame .ae-shot1 { transform: scale(1.04); }
.ae-tile .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Until a project has a featured image: a typographic cover */
.ae-titlecover { position: absolute; inset: 0; display: grid; align-content: end; gap: 8px; padding: clamp(18px, 2.4vw, 28px); }
.ae-titlecover span { font: 600 0.75rem var(--wp--preset--font-family--inter); color: var(--wp--preset--color--muted); }
.ae-titlecover b { font: 800 clamp(1.75rem, 3.4vw, 2.75rem)/1 var(--wp--preset--font-family--manrope); letter-spacing: -0.045em; color: var(--wp--preset--color--contrast); max-width: 12ch; }
.ae-titlecover::before { content: ""; position: absolute; right: 8%; top: 14%; width: 38%; height: 46%; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; background-color: var(--wp--preset--color--card); background-image: radial-gradient(var(--wp--custom--dot) 1.1px, transparent 1.5px); background-size: 12px 12px; box-shadow: var(--wp--custom--shadow); }
@media (max-width: 781px) { .ae-titlecover::before { width: 34%; height: 36%; } }
@media (max-width: 781px) { .ae-tile .ae-reveal { display: none; } }

/* ---------- Homepage only: horizontal project row (.ae-hscroll) ----------
   Used by patterns/selected-work.php. The Work page (project-grid.php) and
   case studies keep the normal vertical layout. */
.ae-hscroll { position: relative; --ae-hs-gap: clamp(24px, 3vw, 44px); }
.ae-hscroll .wp-block-post-template {
	display: flex !important; grid-template-columns: none !important; gap: var(--ae-hs-gap) !important;
	overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; scrollbar-width: none; margin: 0; padding: 4px 2px 10px; list-style: none;
}
.ae-hscroll .wp-block-post-template::-webkit-scrollbar { display: none; }
/* About 2.3 cards fit, so part of the next project always peeks in at the right edge. */
.ae-hscroll .wp-block-post { flex: 0 0 clamp(260px, calc((100% - 2 * var(--ae-hs-gap)) / 2.3), 560px); scroll-snap-align: start; margin: 0 !important; min-width: 0; }
.ae-hscroll.is-dragging .wp-block-post-template { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.ae-hscroll.is-dragging a { pointer-events: none; }
/* Small, quiet arrows beside "All work" (added by workspace.js; hidden when everything fits). */
.ae-hs-end { display: flex; align-items: center; gap: 18px; }
.ae-hs-end > p { margin: 0; }
.ae-hs-nav { display: flex; gap: 4px; }
.ae-hs-nav[hidden] { display: none; }
.ae-hs-nav button {
	width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
	border-radius: 50%; border: 1px solid var(--wp--preset--color--line); background: transparent;
	color: var(--wp--preset--color--muted); transition: color .2s, border-color .2s, opacity .2s;
}
.ae-hs-nav button:not(:disabled):hover { color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }
.ae-hs-nav button:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.ae-hs-nav button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 781px) {
	.ae-hscroll .wp-block-post { flex-basis: 82vw; }
	.ae-hs-nav { display: none; }
}
@media (hover: none) { .ae-hs-nav { display: none; } }
@media (max-width: 781px) {
	.ae-tile > .wp-block-group.is-layout-flex { flex-wrap: wrap !important; row-gap: 10px; }
	.ae-tile .ae-cats { max-width: 100%; justify-content: flex-start; }
}

/* ---------- Homepage About preview (patterns/about.php, .ae-abp) ----------
   A teaser of /about/: same "logic and drama" idea, frames and route motif. */
.ae-abp { overflow: hidden; }
.ae-abp .ae-abp-top { align-items: center !important; margin: 0 !important; }
.ae-abp .ae-abp-title { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.02; margin: 8px 0 16px !important; max-width: 15ch; }
.ae-abp .ae-abp-title span { white-space: nowrap; transition: color .3s; }
.ae-abp .ae-abp-title .is-logic { color: var(--wp--preset--color--accent); }
.ae-abp:has(.ae-abp-face.is-drama:hover) .ae-abp-title .is-logic { color: inherit; }
.ae-abp:has(.ae-abp-face.is-drama:hover) .ae-abp-title .is-drama { color: var(--wp--preset--color--coral); }
.ae-abp .ae-abp-lede { font: 600 clamp(1.05rem, 1.6vw, 1.25rem)/1.45 var(--wp--preset--font-family--manrope); letter-spacing: -0.015em; margin: 0 0 18px !important; max-width: 32ch; }
.ae-abp .ae-abp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ae-abp .ae-abp-facts li { margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); font-size: 0.82rem; font-weight: 500; }

/* Two frames: logic in front; hovering the drama frame brings it forward */
.ae-abp .ae-abp-duo { position: relative; height: clamp(260px, 26vw, 340px); max-width: 460px; margin: 0 auto !important; }
.ae-abp .ae-abp-face { position: absolute !important; margin: 0 !important; width: 56%; height: 86%; padding: 8px 8px 34px; border-radius: 14px; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); box-shadow: var(--wp--custom--shadow); transition: transform .45s cubic-bezier(.2,.75,.25,1), z-index 0s .15s; }
.ae-abp .ae-abp-face > * { margin: 0 !important; }
.ae-abp .ae-abp-face.is-logic { left: 0; top: 0; z-index: 2; transform: rotate(-3deg); }
.ae-abp .ae-abp-face.is-drama { right: 0; bottom: 0; z-index: 1; transform: rotate(4deg); }
.ae-abp .ae-abp-face:hover { z-index: 3; transform: rotate(0deg) scale(1.03); }
.ae-abp .ae-abp-shot { position: absolute !important; inset: 8px 8px 34px; overflow: hidden; border-radius: 8px; background: var(--wp--custom--tint--accent); }
.ae-abp .ae-abp-face.is-drama .ae-abp-shot { background: var(--wp--custom--tint--coral); }
.ae-abp .ae-abp-shot > p { position: absolute; left: 10px; top: 8px; margin: 0 !important; font: 600 0.68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--wp--preset--color--muted); }
.ae-abp .ae-abp-shot > p::before { content: "+ "; }
.ae-abp .ae-abp-shot:has(img) > p { display: none; }
.ae-abp .ae-abp-shot .wp-block-image, .ae-abp .ae-abp-shot img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0 !important; }
.ae-abp .ae-abp-label { position: absolute !important; left: 12px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; gap: 6px; font: 600 0.78rem var(--wp--preset--font-family--inter); }
.ae-abp .ae-abp-label span { font-weight: 500; color: var(--wp--preset--color--muted); }

/* Mini city-by-city route */
.ae-abp .ae-abp-journey { margin-top: var(--wp--preset--spacing--50) !important; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--line); }
.ae-abp .ae-abp-journey > * { margin: 0 !important; }
.ae-abp .ae-abp-journey-title { font-size: 0.8rem; font-weight: 600; color: var(--wp--preset--color--muted); margin-bottom: 18px !important; }
.ae-abp .ae-abp-route { position: relative; list-style: none; padding: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ae-abp .ae-abp-route::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; border-top: 2px dashed var(--wp--preset--color--line); }
.ae-abp .ae-abp-route li { position: relative; margin: 0; display: grid; gap: 4px; transition: transform .3s cubic-bezier(.2,.75,.25,1); }
.ae-abp .ae-abp-route li::before { content: ""; position: absolute; left: 0; top: -26px; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px var(--wp--preset--color--card); transition: transform .3s; }
.ae-abp .ae-abp-route li:nth-child(3)::before { background: var(--wp--preset--color--coral); }
.ae-abp .ae-abp-route li:hover { transform: translateY(-3px); }
.ae-abp .ae-abp-route li:hover::before { transform: rotate(-45deg) scale(1.2); }
.ae-abp .ae-abp-route b { font: 800 1.15rem/1.2 var(--wp--preset--font-family--manrope); letter-spacing: -0.025em; }
.ae-abp .ae-abp-route span { font-size: 0.86rem; line-height: 1.45; color: var(--wp--preset--color--muted); }
.ae-abp .ae-abp-route li.is-next::before { background: transparent; border: 2px dashed var(--wp--preset--color--muted); box-shadow: 0 0 0 4px var(--wp--preset--color--card); }
.ae-abp .ae-abp-route li.is-next b { color: var(--wp--preset--color--muted); }
.ae-abp .ae-abp-route li.is-next span { font-weight: 700; color: var(--wp--preset--color--contrast); }
.ae-abp .ae-abp-route li.is-next i { font-style: normal; animation: ae-abp-blink 1.4s infinite both; }
.ae-abp .ae-abp-route li.is-next i:nth-child(2) { animation-delay: .2s; }
.ae-abp .ae-abp-route li.is-next i:nth-child(3) { animation-delay: .4s; }
@keyframes ae-abp-blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.ae-abp .ae-abp-more { margin-top: var(--wp--preset--spacing--40) !important; }

@media (max-width: 781px) {
	.ae-abp .ae-abp-duo { height: 280px; margin-top: 12px !important; }
	.ae-abp .ae-abp-route { grid-template-columns: 1fr; padding: 0 0 0 28px; gap: 16px; }
	.ae-abp .ae-abp-route::before { left: 6px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 2px dashed var(--wp--preset--color--line); }
	.ae-abp .ae-abp-route li::before { left: -28px; top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
	.ae-abp .ae-abp-route li.is-next i { animation: none; }
}
@media (max-width: 480px) { .ae-abp .ae-abp-label span { display: none; } }

/* ---------- Homepage project cards (.ae-hcard, inside .ae-hscroll only) ----------
   Editorial and image-led: one quiet category label, the image, title, two-line description. */
.ae-hcard .ae-flab { margin: 0 0 10px !important; font: 500 0.78rem/1.3 var(--wp--preset--font-family--inter); letter-spacing: 0.01em; color: var(--wp--preset--color--muted); }
.ae-hcard .ae-frame { border-radius: 16px; }
.ae-hcard .ae-frame img, .ae-hcard .ae-frame .ae-titlecover { transition: transform .7s cubic-bezier(.2,.75,.25,1); }
.ae-hcard-text { margin: 18px 0 0 !important; display: grid; gap: 6px; }
.ae-hcard-text > * { margin: 0 !important; }
.ae-hcard .wp-block-post-title { font-size: clamp(1.2rem, 1.6vw, 1.45rem) !important; line-height: 1.25; letter-spacing: -0.025em; }
.ae-hcard .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ae-hcard .wp-block-post-title a::after { content: "→"; display: inline-block; margin-left: 10px; color: var(--wp--preset--color--accent); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s cubic-bezier(.2,.75,.25,1); }
.ae-hcard:hover .wp-block-post-title a::after, .ae-hcard:focus-within .wp-block-post-title a::after { opacity: 1; transform: none; }
.ae-hcard .wp-block-post-title a:hover { color: var(--wp--preset--color--contrast); }
.ae-hcard .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.ae-hcard .wp-block-post-excerpt__excerpt { font-size: 0.95rem; line-height: 1.55; max-width: 46ch; }
.ae-hcard .wp-block-post-excerpt__more-text { display: none; }
@media (hover: none) { .ae-hcard .wp-block-post-title a::after { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ae-hcard .wp-block-post-title a::after { transition: none; } }
@media (max-width: 781px) { .ae-hscroll .wp-block-post:has(.ae-hcard) { flex-basis: 76vw; } .ae-hscroll .wp-block-post-template { gap: 20px !important; } }

/* =====================================================================
   Visual identity refresh (2026-11-30): expanded palette in small doses
   ===================================================================== */

/* Small coloured tags */
.ae-tag.is-sky { background: var(--wp--preset--color--sky); border-color: transparent; color: var(--wp--custom--ink--sky); }
.ae-tag.is-yellow { background: var(--wp--preset--color--yellow); border-color: transparent; color: var(--wp--custom--ink--yellow); }
.ae-tag.is-mint { background: var(--wp--preset--color--mint); border-color: transparent; color: var(--wp--custom--ink--mint); }
.ae-tag.is-orange { background: var(--wp--preset--color--orange); border-color: transparent; color: var(--wp--custom--ink--orange); }

/* Hero positioning statement */
.ae-statement-hero { font: 700 clamp(1.45rem, 2.5vw, 2.05rem)/1.22 var(--wp--preset--font-family--manrope) !important; letter-spacing: -0.03em; color: var(--wp--preset--color--contrast); max-width: 22ch; }
.ae-statement-hero .ae-hl { background: none; color: inherit; padding: 0 0.04em; box-shadow: inset 0 -0.34em 0 var(--wp--preset--color--yellow); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-mode="dark"] .ae-statement-hero .ae-hl { box-shadow: inset 0 -0.34em 0 var(--wp--custom--tint--yellow); }

/* Navigation: hover and selected states */
.ae-header .wp-block-navigation-item__content:hover { background: var(--wp--custom--tint--yellow); }
.ae-header .current-menu-item > .wp-block-navigation-item__content { position: relative; background: transparent; }
.ae-header .current-menu-item > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--wp--preset--color--orange); }

/* Homepage project cards: a small colour dot on each category label */
.ae-hcard .ae-flab { display: inline-flex; align-items: center; gap: 7px; }
.ae-hcard .ae-flab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ae-dot, var(--wp--preset--color--orange)); transition: transform .3s; }
.ae-hscroll .wp-block-post:nth-child(4n+2) .ae-hcard { --ae-dot: var(--wp--preset--color--sky); }
.ae-hscroll .wp-block-post:nth-child(4n+3) .ae-hcard { --ae-dot: var(--wp--preset--color--mint); }
.ae-hscroll .wp-block-post:nth-child(4n+4) .ae-hcard { --ae-dot: var(--wp--preset--color--yellow); }
.ae-hcard:hover .ae-flab, .ae-hcard:focus-within .ae-flab { color: var(--wp--preset--color--contrast); }
.ae-hcard:hover .ae-flab::before { transform: scale(1.5); }

/* About preview: logic + curiosity */
.ae-abp .ae-abp-title .is-curious { padding: 0 0.04em; box-shadow: inset 0 0 0 var(--wp--preset--color--orange); transition: box-shadow .35s cubic-bezier(.2,.75,.25,1); }
.ae-abp:has(.ae-abp-face.is-curious:hover) .ae-abp-title .is-logic { color: inherit; }
.ae-abp:has(.ae-abp-face.is-curious:hover) .ae-abp-title .is-curious { box-shadow: inset 0 -0.3em 0 var(--wp--preset--color--orange); }
.ae-abp .ae-abp-face.is-curious { right: 0; bottom: 0; z-index: 1; transform: rotate(4deg); }
.ae-abp .ae-abp-face.is-curious .ae-abp-shot { background: var(--wp--custom--tint--orange); }
.ae-abp .ae-abp-lede { font: 500 clamp(1rem, 1.4vw, 1.12rem)/1.6 var(--wp--preset--font-family--inter) !important; letter-spacing: 0 !important; color: var(--wp--preset--color--muted); max-width: 46ch !important; margin-bottom: 26px !important; }
.ae-abp .ae-abp-details { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--wp--preset--color--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px clamp(20px, 3vw, 36px); }
/* Editorial, not a dashboard: quiet small label, regular-weight value. */
.ae-abp .ae-abp-details li { margin: 0; display: grid; gap: 6px; font: 400 0.9rem/1.45 var(--wp--preset--font-family--inter); letter-spacing: 0; color: var(--wp--preset--color--contrast); }
.ae-abp .ae-abp-details li span { display: inline-flex; align-items: center; gap: 6px; font: 500 0.7rem/1.2 var(--wp--preset--font-family--inter); letter-spacing: 0.02em; color: color-mix(in srgb, var(--wp--preset--color--muted) 78%, var(--wp--preset--color--base)); }
.ae-abp .ae-abp-details li span::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ae-dot); opacity: 0.85; }
.ae-abp .ae-abp-details .is-role { --ae-dot: var(--wp--preset--color--accent); }
.ae-abp .ae-abp-details .is-exp { --ae-dot: var(--wp--preset--color--mint); }
.ae-abp .ae-abp-details .is-route { --ae-dot: var(--wp--preset--color--orange); }
.ae-abp .ae-abp-more { margin-top: 24px !important; }
.ae-abp .ae-abp-more a { font: 500 0.88rem var(--wp--preset--font-family--inter); color: var(--wp--preset--color--muted); border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.ae-abp .ae-abp-more a:hover, .ae-abp .ae-abp-more a:focus-visible { color: var(--wp--preset--color--contrast); border-bottom-color: currentColor; }
@media (max-width: 781px) {
	.ae-abp .ae-abp-details { grid-template-columns: 1fr; }
}

/* ---------- Visitor notepad (.ae-board), rebuilt 2026-11-30 ---------- */
.ae-board { height: clamp(400px, 36vw, 490px); }
.ae-bhead { padding: 12px 12px 10px 16px; }
.ae-btitle { font: 600 0.85rem var(--wp--preset--font-family--inter) !important; color: var(--wp--preset--color--contrast) !important; gap: 8px !important; }
.ae-bcount:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wp--preset--color--yellow); color: var(--wp--custom--ink--yellow); font: 700 0.72rem var(--wp--preset--font-family--inter); }
.ae-bactions { display: inline-flex !important; align-items: center; gap: 6px !important; }
.ae-bicon { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.ae-bicon:hover:not(:disabled) { border-color: var(--wp--preset--color--contrast); }
.ae-bicon:disabled, .ae-add:disabled { opacity: .35; cursor: default; }
.ae-clear.is-armed { background: var(--wp--preset--color--coral); color: var(--wp--custom--ink--coral); border-color: transparent; }
.ae-barea { position: absolute; left: 14px; right: 14px; top: 58px; bottom: 40px; }
.ae-board.is-empty .ae-barea { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; }

/* Notes: colours, tilt and lift */
.ae-note { transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s; }
.ae-note:hover { transform: rotate(var(--r, 0deg)) translateY(-2px); }
.ae-note.is-drag { transform: rotate(0deg) scale(1.05); transition: box-shadow .2s; }
.ae-note.is-active, .ae-note.is-editing { z-index: 20; }
.ae-note.is-editing { transform: rotate(0deg); }
.ae-note[data-c="yellow"] { background: var(--wp--preset--color--yellow); color: var(--wp--custom--ink--yellow); }
.ae-note[data-c="sky"] { background: var(--wp--preset--color--sky); color: var(--wp--custom--ink--sky); }
.ae-note[data-c="mint"] { background: var(--wp--preset--color--mint); color: var(--wp--custom--ink--mint); }
.ae-note[data-c="orange"] { background: var(--wp--preset--color--orange); color: var(--wp--custom--ink--orange); }
.ae-note.is-mine { padding-bottom: 18px; min-height: 120px; }
.ae-note .ae-body { min-height: 4.2em; }

/* Starter prompts (shown while the board is empty) */
.ae-prompt { position: relative !important; left: auto !important; top: auto !important; text-align: left; border: 1.5px dashed currentColor !important; box-shadow: none !important; opacity: .92; cursor: pointer; font: 600 0.9rem/1.35 var(--wp--preset--font-family--manrope); width: clamp(140px, 13vw, 168px); }
.ae-prompt[hidden] { display: none !important; }
.ae-prompt[data-c="lavender"] { background: var(--wp--custom--tint--lavender); color: var(--wp--custom--ink--lavender); }
.ae-prompt[data-c="yellow"] { background: var(--wp--custom--tint--yellow); color: var(--wp--custom--ink--yellow); }
.ae-prompt[data-c="sky"] { background: var(--wp--custom--tint--sky); color: var(--wp--custom--ink--sky); }
.ae-prompt:hover, .ae-prompt:focus-visible { opacity: 1; transform: rotate(0deg) translateY(-3px); }
.ae-prompt .ae-by { display: inline-flex; align-items: center; gap: 5px; }
html[data-mode="dark"] .ae-prompt { color: var(--wp--preset--color--contrast); }

/* Phones and touch: a simple, scrollable grid instead of free dragging */
.ae-board.is-list { height: auto; min-height: 300px; padding-bottom: 46px; overflow: visible; }
.ae-board.is-list .ae-bhead { position: relative; }
.ae-board.is-list .ae-barea { position: relative; inset: auto; padding: 4px 14px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.ae-board.is-list.is-empty .ae-barea { display: flex; }
.ae-board.is-list .ae-note.is-mine { position: relative; left: auto !important; top: auto !important; width: auto; }
.ae-board.is-list .ae-note.is-active .ae-ntools { position: static; transform: none; margin-top: 12px; flex-wrap: wrap; white-space: normal; box-shadow: none; }
.ae-board.is-list .ae-privacy { left: 14px; right: 14px; }
@media (prefers-reduced-motion: reduce) { .ae-note, .ae-prompt { transition: none; } }

/* ---------- Context-aware cursor (html.ae-cur: mouse/trackpad only) ---------- */
html.ae-cur body { cursor: var(--ae-cur, auto); }
html.ae-cur :is(a[href], button, [role="button"], [role="tab"], summary, label) { cursor: pointer; }
html.ae-cur :is(input, textarea, [contenteditable="true"], [contenteditable="plaintext-only"]) { cursor: text; }
html.ae-cur .ae-hscroll .wp-block-post-template { cursor: grab; }
html.ae-cur-hide, html.ae-cur-hide * { cursor: none !important; }
.ae-cursor { position: fixed; left: 0; top: 0; z-index: 100000; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.ae-cursor.is-on { opacity: 1; }
.ae-cursor-ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--orange); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.2,.75,.25,1); }
.ae-cursor[data-state="link"] .ae-cursor-ring { opacity: .9; transform: scale(1); }
.ae-cursor[data-state="link"].is-down .ae-cursor-ring { transform: scale(.75); }
.ae-cursor-label { position: absolute; left: 0; top: 0; padding: 9px 13px; border-radius: 10px; font: 700 0.66rem/1 var(--wp--preset--font-family--inter); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; background: var(--wp--preset--color--orange); color: var(--wp--custom--ink--orange); box-shadow: 0 10px 20px -12px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, -50%) scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.2,.75,.25,1), background .2s, color .2s; }
.ae-cursor:is([data-state="view"], [data-state="explore"]) .ae-cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ae-cursor[data-state="explore"] .ae-cursor-label { background: var(--wp--preset--color--yellow); color: var(--wp--custom--ink--yellow); }
.ae-cursor[data-state="drag"] .ae-cursor-label { opacity: 1; transform: translate(16px, 14px) scale(.9); background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.ae-cursor.is-down:is([data-state="view"], [data-state="explore"]) .ae-cursor-label { transform: translate(-50%, -50%) scale(.9); }
@media (prefers-reduced-motion: reduce) { .ae-cursor, .ae-cursor * { transition: none !important; } }
@media (hover: none), (pointer: coarse) { .ae-cursor { display: none !important; } }

/* ---------- Category colours (one consistent dot per category, site-wide) ---------- */
.ae-flab.is-cat-ux-research { --ae-dot: var(--wp--preset--color--sky); }
.ae-flab.is-cat-ux-design { --ae-dot: var(--wp--preset--color--mint); }
.ae-flab.is-cat-product-design { --ae-dot: var(--wp--preset--color--orange); }
.ae-flab.is-cat-interaction-design { --ae-dot: var(--wp--preset--color--yellow); }
.ae-flab.is-cat-concept-project { --ae-dot: var(--wp--preset--color--lavender); }
.ae-flab.is-cat-ai-project { --ae-dot: var(--wp--preset--color--lavender); }
.ae-hcard .ae-flab[class*="is-cat-"]::before { background: var(--ae-dot); }

/* ---------- Work page (templates/home.html + patterns/project-grid.php) ---------- */
.ae-wp-head { margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
.ae-wp-head > * { margin: 0 !important; }
.ae-wp-title { margin-top: 8px !important; font-size: clamp(2.4rem, 4.6vw, 3.75rem) !important; letter-spacing: -0.045em; line-height: 1.02; max-width: 22ch; }
.ae-wp-intro { margin-top: 18px !important; font-size: 1.08rem; line-height: 1.6; color: var(--wp--preset--color--muted); max-width: 52ch; }
.ae-wfilter { margin-top: 28px !important; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--line); }
.ae-wfilter:empty { display: none; }
.ae-wfilter button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; font: 500 0.88rem var(--wp--preset--font-family--inter); color: var(--wp--preset--color--muted); cursor: pointer; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.ae-wfilter button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ae-dot, var(--wp--preset--color--contrast)); }
.ae-wfilter button small { font-size: 0.75rem; color: var(--wp--preset--color--muted); }
.ae-wfilter button:hover { color: var(--wp--preset--color--contrast); }
.ae-wfilter button[aria-pressed="true"] { color: var(--wp--preset--color--contrast); border-bottom-color: var(--wp--preset--color--contrast); }
.ae-wgrid .wp-block-post-template { column-gap: clamp(24px, 3vw, 44px) !important; row-gap: clamp(48px, 6vw, 80px) !important; }
.ae-wgrid .wp-block-post.is-hidden { display: none; }
.ae-wcard .ae-frame { aspect-ratio: 16 / 10; }
.ae-wcard .ae-hcard-text { margin-top: 20px !important; gap: 8px; }
.ae-wcard .wp-block-post-title { font-size: clamp(1.45rem, 2.2vw, 1.9rem) !important; letter-spacing: -0.035em; }
.ae-wcard .wp-block-post-excerpt__excerpt { font-size: 1rem; max-width: 50ch; }
@media (max-width: 781px) {
	.ae-wgrid .wp-block-post-template { grid-template-columns: 1fr !important; }
}
.ae-wfilter button.ae-flab { margin: 0 !important; }

/* ---------- Homepage Playground gallery (.ae-pgallery) ----------
   Masonry columns so every image keeps its own aspect ratio (nothing cropped).
   Filters and hover captions reuse the existing .ae-filters / .ae-pg / .ae-over behaviour. */
.ae-pgrid.ae-pgallery { display: block !important; columns: 3 260px; column-gap: clamp(12px, 1.6vw, 20px); }
.ae-pgallery .ae-pg { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 20px) !important; border-radius: var(--wp--custom--radius); overflow: hidden; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--card); }
.ae-pgallery .ae-pg .wp-block-image { margin: 0; }
.ae-pgallery .ae-pg img { display: block; width: 100%; height: auto; object-fit: initial; transition: transform .6s cubic-bezier(.2,.75,.25,1); }
.ae-pgallery .ae-pg:hover img { transform: scale(1.02); }
.ae-pgallery .ae-pg .ae-over { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ae-pgallery .ae-pg img { transition: none; } }
@media (max-width: 600px) { .ae-pgrid.ae-pgallery { columns: 1; } }


/* ---------- Homepage Playground carousel (.ae-pmarquee) ----------
   A slow, looping row (workspace.js clones the tiles once and drives scrollLeft).
   Tiles share one height and keep their own aspect ratio; manual scroll, swipe and drag all work. */
.ae-pmarquee { display: flex !important; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0 6px; margin: 0; }
.ae-pmarquee::-webkit-scrollbar { display: none; }
.ae-pmarquee > * { margin: 0 !important; }
.ae-pmarquee .ae-pg { flex: 0 0 auto; height: clamp(200px, 24vw, 300px); border-radius: var(--wp--custom--radius); overflow: hidden; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--card); }
.ae-pmarquee .ae-pg .wp-block-image { margin: 0; height: 100%; }
.ae-pmarquee .ae-pg img { display: block; height: 100%; width: auto; max-width: none; object-fit: initial; transition: transform .6s cubic-bezier(.2,.75,.25,1); }
.ae-pmarquee .ae-pg:hover img { transform: scale(1.02); }
.ae-pmarquee .ae-pg .ae-over { z-index: 2; white-space: nowrap; }
.ae-pmarquee.is-dragging { cursor: grabbing; user-select: none; }
.ae-pmarquee.is-dragging .ae-pg { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ae-pmarquee .ae-pg img { transition: none; } }

/* Playground tiles are buttons that open the "coming soon" pop-up. */
.ae-pg[role="button"] { cursor: pointer; }
.ae-pg[role="button"]:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.ae-pgpage { margin-top: var(--wp--preset--spacing--40) !important; }

/* ---------- "More on this coming soon" pop-up (shared by homepage + Playground page) ---------- */
.ae-soonpop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent); opacity: 0; transition: opacity .2s ease; }
.ae-soonpop[hidden] { display: none; }
.ae-soonpop.is-open { opacity: 1; }
.ae-soon-card { position: relative; display: flex; align-items: center; gap: 12px; max-width: min(360px, 100%); padding: 18px 48px 18px 18px; border-radius: 16px; background: var(--wp--preset--color--card); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); box-shadow: var(--wp--custom--shadow); transform: translateY(8px) scale(.96) rotate(-1deg); transition: transform .3s cubic-bezier(.2,.75,.25,1); }
.ae-soonpop.is-open .ae-soon-card { transform: none; }
.ae-soon-card::before { content: "AS"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; background: var(--wp--preset--color--coral); color: var(--wp--custom--ink--coral); font: 700 11px var(--wp--preset--font-family--manrope); }
.ae-soon-card p { margin: 0; font: 700 1.02rem/1.35 var(--wp--preset--font-family--manrope); letter-spacing: -0.01em; }
.ae-soon-card .ae-close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; }
.ae-soon-card .ae-close:hover { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); }
.ae-soon-card .ae-close:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ae-soonpop, .ae-soon-card { transition: none; } }
