/**
 * Heroes (owner brief: striking, clearly about artisans du bâtiment, construction et rénovation).
 * 1 home cover (full-width site photo, H1 panel overlapping the photo edge, devis coupon, trust strip) ·
 * 2 trade split hero · 3 post opener · 4 editorial headers (blog, search, 404, page, archive).
 * Loaded on every view after site.css (and home.css on the front page). Mobile first: the photo always comes first.
 */

/* ── 1. Home cover ─────────────────────────────────────── */
.ae-cover { padding-block: clamp(1rem, 0.5rem + 1.5vw, 2rem) 0; background: var(--ae-linen); }
.ae-cover__stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.ae-cover__media { position: relative; margin: 0; grid-column: 1 / -1; grid-row: 1; }
.ae-frame--cover { padding: 10px; background: var(--ae-base); border-color: var(--ae-brass); box-shadow: 0 30px 60px -40px rgb(32 27 30 / 0.6); }
.ae-frame--cover .ae-frame__ph { inset: 10px; }
.ae-frame--cover img, .ae-frame--cover.is-empty .ae-frame__ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 80%; }
.ae-cover__caption { position: absolute; right: 22px; top: 22px; z-index: 2; max-width: 60%; padding: 0.3rem 0.65rem; background: rgb(245 239 230 / 0.92); font-family: var(--ae-serif); font-style: italic; font-size: 0.8125rem; line-height: 1.3; color: var(--ae-ink); }
.ae-cover__panel {
	position: relative; z-index: 3;
	margin: -2.25rem 0.6rem 0; padding: 1.4rem 1.2rem 1.5rem;
	background: var(--ae-linen);
	border-top: 1px solid var(--ae-ink);
	box-shadow: inset 0 3px 0 var(--ae-linen), inset 0 4px 0 var(--ae-brass), 0 30px 50px -36px rgb(32 27 30 / 0.6);
}
.ae-cover .ae-cover__no { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.9rem; font-weight: 600; font-size: 0.875rem; line-height: 1.35; }
.ae-cover .ae-cover__no::after { display: none; }
.ae-cover__no-n { font-family: var(--ae-serif); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--ae-brass-text); white-space: nowrap; }
.ae-cover .ae-cover__title { margin: 0; font-size: clamp(2.5rem, 1.3rem + 4.8vw, 5.4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.028em; }
.ae-cover .ae-cover__title em { font-style: italic; font-weight: 500; color: var(--ae-oxblood); }
.ae-cover .ae-cover__lead { margin: 1.1rem 0 0; max-width: 38rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; }
.ae-cover .ae-search--cover { margin-top: 1.4rem; }
.ae-cover__coupon { position: relative; z-index: 3; margin: 1.25rem 0.6rem 0; }
.ae-slip--coupon { max-width: none; margin: 0; border-top: 3px solid var(--ae-oxblood); }

/* Trust strip: three points, no figures. */
.ae-trust { display: grid; gap: 0; margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ae-ink); box-shadow: inset 0 3px 0 var(--ae-linen), inset 0 4px 0 var(--ae-brass); }
.ae-trust li { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--ae-line); font-size: 0.9rem; line-height: 1.45; color: var(--ae-taupe); }
.ae-trust li:first-child { padding-top: 1.25rem; }
.ae-trust strong { display: block; margin-bottom: 0.15rem; font-family: var(--ae-serif); font-weight: 600; font-size: 1.15rem; color: var(--ae-ink); }
.ae-trust__icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ae-oxblood); color: var(--ae-linen); box-shadow: inset 0 0 0 3px var(--ae-oxblood), inset 0 0 0 4px var(--ae-brass); }

/* ── 2. Trade split hero ───────────────────────────────── */
.ae-hero--category { padding: 0; }
.ae-hero__split { display: grid; grid-template-columns: minmax(0, 1fr); }
.ae-hero--category .ae-hero__photo { margin: 0; padding: var(--ae-gutter) var(--ae-gutter) 0; }
.ae-hero--category .ae-hero__photo .ae-frame { background: var(--ae-linen); border-color: var(--ae-brass-light); padding: 8px; }
.ae-hero--category .ae-hero__photo .ae-frame__ph { inset: 8px; }
.ae-hero--category .ae-hero__photo img, .ae-hero--category .ae-hero__photo .is-empty .ae-frame__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ae-hero--category .ae-hero__main { padding: 1.75rem var(--ae-gutter) 2rem; }
.ae-hero--category .ae-hero__title { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5rem); line-height: 0.98; }
.ae-hero__does { margin: 1.1rem 0 0; max-width: 36rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--ae-linen); }
.ae-hero__does-label { display: block; margin-bottom: 0.25rem; font-weight: 700; font-size: 0.875rem; color: var(--ae-brass-light); }
.ae-hero__asks { margin-top: 1.5rem; padding: 1.1rem 1.15rem 0.6rem; border: 1px solid rgb(245 239 230 / 0.35); background: rgb(32 27 30 / 0.18); }
.ae-hero__asks-title { margin: 0 0 0.4rem; font-family: var(--ae-serif); font-style: italic; font-weight: 600; font-size: 1.3rem; color: var(--ae-base); }
.ae-hero__asks ol { margin: 0; padding: 0; list-style: none; counter-reset: ae-ask; }
.ae-hero__asks li { counter-increment: ae-ask; position: relative; padding: 0.55rem 0 0.55rem 2.6rem; border-top: 1px solid rgb(245 239 230 / 0.2); font-size: 0.975rem; line-height: 1.45; color: var(--ae-linen); }
.ae-hero__asks li::before { content: "Nº " counter(ae-ask, decimal-leading-zero); content: "Nº " counter(ae-ask, decimal-leading-zero) / ""; position: absolute; left: 0; top: 0.6rem; font-family: var(--ae-serif); font-style: italic; font-size: 0.9rem; color: var(--ae-brass-light); }
.ae-hero__under { display: grid; gap: 1.25rem; padding-block: 1.25rem 1.75rem; border-top: 1px solid rgb(245 239 230 / 0.25); }
.ae-hero__under .ae-hero__facts { margin: 0; padding: 0; border: 0; }
.ae-hero__under-title { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.9375rem; color: var(--ae-brass-light); }
.ae-hero__under .ae-starters a { color: var(--ae-base); }
.ae-hero__under .ae-starters a:hover span:last-child { color: var(--ae-brass-light); }
.ae-hero__under .ae-starters li + li { border-top-color: rgb(245 239 230 / 0.2); }
.ae-hero__under .ae-starters__no { color: var(--ae-brass-light); }
.ae-hero__under .ae-hero__dossiers { padding: 0; border: 0; }

/* ── 3. Post opener ────────────────────────────────────── */
.ae-opener { padding-top: clamp(2rem, 1.2rem + 3vw, 4rem); }
.ae-opener__head { max-width: calc(58rem + 2 * var(--ae-gutter)); text-align: center; }
.ae-opener__eyebrow { margin: 0; }
.ae-opener__eyebrow a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0 1rem 0 0.35rem; border: 1px solid var(--ae-line); border-radius: 999px; background: var(--ae-base); color: var(--ae-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.ae-opener__eyebrow a:hover { border-color: var(--ae-oxblood); color: var(--ae-oxblood); }
.ae-roundel--xs { width: 32px; height: 32px; box-shadow: inset 0 0 0 2px var(--ae-oxblood), inset 0 0 0 3px var(--ae-brass); }
.ae-opener__rub { font-family: var(--ae-serif); font-style: italic; font-weight: 500; color: var(--ae-brass-text); }
.ae-opener__title { margin: 1.1rem auto 0; max-width: 24ch; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.25rem); font-weight: 600; line-height: 1.03; letter-spacing: -0.024em; }
.ae-opener__deck { margin: 1.2rem auto 0; max-width: 42rem; font-family: var(--ae-serif); font-style: italic; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.4; }
.ae-opener__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin: 1.6rem auto 0; padding: 0.85rem 0; border-block: 1px solid var(--ae-line); list-style: none; font-weight: 600; font-size: 0.875rem; color: var(--ae-taupe); }
.ae-opener__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ae-opener__meta .ae-glyph { color: var(--ae-oxblood); }
.ae-opener__media { margin: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) auto 0; }
.ae-frame--opener { padding: 10px; background: var(--ae-base); }
.ae-frame--opener .ae-frame__ph { inset: 10px; }
.ae-frame--opener img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ── 4. Editorial headers ──────────────────────────────── */
.ae-hero--plain .ae-hero__rule { width: 72px; height: 4px; margin-bottom: 1.1rem; border-top: 1px solid var(--ae-ink); border-bottom: 1px solid var(--ae-brass); }
.ae-hero--plain .ae-hero__lead { font-family: var(--ae-serif); font-style: italic; font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.45; }
/* Blog: a ruler along the bottom edge. */
.ae-hero--blog { background-color: var(--ae-linen); background-image: repeating-linear-gradient(90deg, rgb(122 90 30 / 0.55) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgb(122 90 30 / 0.8) 0 1px, transparent 1px 60px); background-size: 100% 9px, 100% 18px; background-repeat: no-repeat; background-position: 0 100%, 0 100%; padding-bottom: 1.5rem; }
.ae-hero--blog > .ae-rule { display: none; }
.ae-hero--blog .ae-hero__title { font-size: clamp(3rem, 1.8rem + 5vw, 6rem); }
/* Search: bleu clair band, the search field large. */
.ae-hero--search { background: var(--ae-blue-tint); }
.ae-hero--search .ae-hero__rule { border-bottom-color: var(--ae-blue); }
.ae-hero--search .ae-hero__kicker { color: var(--ae-blue); }
.ae-hero--search .ae-search__input, .ae-hero--search .ae-search__submit { min-height: 58px; }
.ae-hero--search .ae-search__row { max-width: 44rem; box-shadow: 0 18px 30px -26px rgb(44 63 122 / 0.9); }
/* 404: an outlined oxblood numeral. */
.ae-hero--404 { overflow: hidden; }
.ae-hero__numeral { position: absolute; right: var(--ae-gutter); top: 0; margin: 0; font-family: var(--ae-serif); font-weight: 600; font-size: clamp(6rem, 3rem + 14vw, 17rem); line-height: 0.85; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px var(--ae-oxblood); opacity: 0.85; pointer-events: none; }
.ae-hero--404 .ae-hero__rule { border-bottom-color: var(--ae-oxblood); }
.ae-hero--404 .ae-hero__kicker { color: var(--ae-oxblood); }
.ae-hero--404 .ae-hero__kicker, .ae-hero--404 .ae-hero__title, .ae-hero--404 .ae-hero__lead { position: relative; }
.ae-hero--404 .ae-hero__seal { display: none !important; }

/* ── Phones only ── */
@media (max-width: 599px) {
	.ae-hero--404 .ae-hero__numeral { top: -0.5rem; font-size: 6.5rem; -webkit-text-stroke-width: 1.5px; opacity: 0.35; }
	.ae-cover__caption { display: none; }
}

/* ── Tablet ≥ 600 ── */
@media (min-width: 600px) {
	.ae-frame--cover img, .ae-frame--cover.is-empty .ae-frame__ph { aspect-ratio: 16 / 9; }
	.ae-cover__panel { margin: -4.5rem 1.5rem 0; padding: 1.75rem 1.75rem 1.9rem; }
	.ae-cover__coupon { margin: 1.25rem 1.5rem 0; }
	.ae-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
	.ae-trust li, .ae-trust li:first-child { padding: 1.25rem 0; border-bottom: 0; }
	.ae-frame--opener img { aspect-ratio: 16 / 9; }
	.ae-hero__under { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 2.5rem; }
	.ae-hero__under .ae-hero__facts { flex-direction: column; }
	.ae-hero__under > :nth-child(n + 2) { grid-column: 2; }
}

/* ── Laptop ≥ 1024 ── */
@media (min-width: 1024px) {
	.ae-cover__stage { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.ae-frame--cover img, .ae-frame--cover.is-empty .ae-frame__ph { aspect-ratio: auto; height: clamp(440px, 38vw, 580px); object-position: 50% 92%; }
	.ae-cover__caption { top: 26px; right: 26px; }
	.ae-cover__panel { grid-column: 1 / span 7; grid-row: 2; align-self: start; margin: -15rem 0 0 2rem; padding: 2rem 2.25rem 2.25rem; }
	.ae-cover__coupon { grid-column: 8 / -1; grid-row: 2; align-self: start; margin: -8.5rem 2rem 0 2.25rem; transform: rotate(1.2deg); }
	.ae-cover .ae-cover__title { font-size: clamp(3.4rem, 1.8rem + 3.4vw, 5.4rem); }

	.ae-hero__split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 560px; }
	.ae-hero--category .ae-hero__photo { padding: 2.5rem 0; }
	.ae-hero--category .ae-hero__photo .ae-frame { height: 100%; border-left: 0; padding-left: 0; }
	.ae-hero--category .ae-hero__photo .ae-frame__ph { left: 0; }
	.ae-hero--category .ae-hero__photo img, .ae-hero--category .ae-hero__photo .is-empty .ae-frame__ph { aspect-ratio: auto; height: 100%; min-height: 480px; }
	.ae-hero--category .ae-hero__main { align-self: center; padding: 3rem max(var(--ae-gutter), calc((100vw - var(--ae-wide)) / 2)) 3rem 3.5rem; }
	.ae-hero__under { grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1fr); }
	.ae-hero__under > :nth-child(n + 2) { grid-column: auto; }

	.ae-frame--opener img { aspect-ratio: 21 / 9; max-height: 620px; }
	.ae-hero--search .ae-hero__inner, .ae-hero--blog .ae-hero__inner { padding-bottom: 2.5rem; }
}

/* ── Desktop ≥ 1440 ── */
@media (min-width: 1440px) {
	.ae-cover__panel { margin-left: 3rem; }
	.ae-cover__coupon { margin-right: 3rem; }
}
/* The coupon is narrow beside the panel: its fields stack. */
.ae-slip--coupon .ae-slip__row { grid-template-columns: minmax(0, 1fr); }
.ae-slip--coupon .ae-slip__head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.ae-hero--404 .ae-hero__title { max-width: 12ch; }
.ae-hero--404 .ae-hero__lead { max-width: 30rem; }
@media (min-width: 1024px) {
	.ae-hero--404 .ae-hero__numeral { top: 1rem; }
}

/* ── 1b. Live cover (rotating trade) ─────────────────────── */
.ae-live { padding-block: clamp(1.25rem, 0.75rem + 2vw, 3rem) 0; background: var(--ae-linen) radial-gradient(1000px 520px at 80% 0%, rgb(201 162 91 / 0.16), transparent 70%); }
.ae-live__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "tabs" "text" "coupon"; gap: 1.1rem; }
.ae-live__text { grid-area: text; }
.ae-live__visual { display: contents; }
.ae-live__media { grid-area: media; position: relative; margin: 0; }
.ae-live__tabs { grid-area: tabs; }
.ae-live__coupon { grid-area: coupon; }
.ae-frame--live { position: relative; padding: 8px; background: var(--ae-base); border-color: var(--ae-brass); box-shadow: 0 30px 60px -40px rgb(32 27 30 / 0.6); }
.ae-live__stack { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: repeating-linear-gradient(135deg, transparent 0 9px, rgb(201 162 91 / 0.22) 9px 10px), var(--ae-linen); }
.ae-live__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.9s ease, transform 6s ease-out; }
.ae-live__slide.is-active { opacity: 1; transform: scale(1); }
.ae-live__slide > .ae-frame { height: 100%; }
.ae-live__caption { position: absolute; left: 18px; bottom: 18px; z-index: 2; max-width: calc(100% - 140px); }
.ae-live__caption a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; min-height: 44px; padding: 0.55rem 0.85rem; box-sizing: border-box; background: rgb(245 239 230 / 0.95); border-left: 3px solid var(--ae-oxblood); color: var(--ae-ink); text-decoration: none; box-shadow: 0 10px 24px -14px rgb(32 27 30 / 0.6); }
.ae-live__caption a:hover .ae-live__cap-name { color: var(--ae-oxblood); text-decoration: underline; }
.ae-live__cap-no { font-family: var(--ae-serif); font-style: italic; font-weight: 500; color: var(--ae-brass-text); }
.ae-live__cap-name { font-family: var(--ae-serif); font-weight: 600; font-size: 1.05rem; }
.ae-live__cap-who { font-size: 0.85rem; color: var(--ae-taupe); }
.ae-live__seal { position: absolute; z-index: 3; top: -22px; right: -12px; width: 92px; height: 92px; color: var(--ae-ink); background: var(--ae-linen); border-radius: 50%; box-shadow: 0 12px 24px -14px rgb(32 27 30 / 0.7); }
.ae-live.is-live .ae-live__seal { animation: ae-turn 60s linear infinite; }
@keyframes ae-turn { to { transform: rotate(360deg); } }

/* The rotating word */
.ae-live__rotor { margin: 0.5rem 0 0; font-family: var(--ae-serif); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; color: var(--ae-ink); }
.ae-live__words { display: inline-grid; justify-items: start; vertical-align: bottom; overflow: hidden; padding-bottom: 0.08em; }
.ae-live__word { grid-area: 1 / 1; font-style: italic; color: var(--ae-oxblood); white-space: nowrap; opacity: 0; transform: translateY(0.6em); transition: opacity 0.45s ease, transform 0.45s ease; }
.ae-live__word.is-active { opacity: 1; transform: none; }
.ae-live__word.is-past { transform: translateY(-0.6em); }
.ae-live__word::after { content: ""; display: block; height: 2px; margin-top: 0.05em; background: var(--ae-brass); transform-origin: left; transform: scaleX(0); transition: transform 0.6s ease 0.2s; }
.ae-live__word.is-active::after { transform: scaleX(1); }
.ae-live .ae-cover__title { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.9rem); }

/* Tabs */
.ae-live__tabs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.ae-live__tabs::-webkit-scrollbar { display: none; }
.ae-live__tab { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.85rem; border: 1px solid var(--ae-line); border-radius: 999px; background: var(--ae-base); color: var(--ae-ink); font: 600 0.875rem/1 var(--ae-sans); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.ae-live__tab .ae-glyph { color: var(--ae-blue); }
.ae-live__tab:hover { border-color: var(--ae-ink); }
.ae-live__tab.is-active { background: var(--ae-ink); border-color: var(--ae-ink); color: var(--ae-base); }
.ae-live__tab.is-active .ae-glyph { color: var(--ae-brass-light); }

/* Coupon: perforated top edge */
.ae-live__coupon .ae-slip--coupon { border-top: 0; }
.ae-live__coupon .ae-slip--coupon::before { top: auto; bottom: auto; left: 10px; right: 10px; width: auto; height: 0; border-left: 0; border-top: 1px dashed rgb(32 27 30 / 0.45); top: 10px; }
.ae-live__coupon .ae-slip--coupon::after { top: -7px; bottom: auto; left: -1px; right: -1px; width: auto; height: 13px; background: radial-gradient(circle at 50% 0, var(--ae-linen) 5px, transparent 5.5px) 0 0 / 22px 13px repeat-x; }
.ae-live__coupon .ae-slip__head { padding-top: 0.35rem; }

/* Trust strip with brass dividers */
.ae-trust--live { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.ae-trust--live li { position: relative; }

@media (min-width: 600px) {
	.ae-live__seal { width: 116px; height: 116px; top: -28px; right: -18px; }
	.ae-trust--live { gap: 0; }
	.ae-trust--live li { padding: 1.25rem 1.5rem; }
	.ae-trust--live li:first-child { padding-left: 0; }
	.ae-trust--live li + li::before { content: ""; position: absolute; left: 0; top: 1.25rem; bottom: 1.25rem; width: 1px; background: linear-gradient(var(--ae-brass), var(--ae-brass)) center / 1px 100% no-repeat; }
	.ae-trust--live li + li::after { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--ae-brass); transform: rotate(45deg); }
}
@media (min-width: 1024px) {
	.ae-live__grid { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); grid-template-areas: "text media" "text tabs" "text coupon"; grid-template-rows: auto auto 1fr; column-gap: clamp(2rem, 1rem + 3vw, 4rem); row-gap: 0.9rem; align-items: start; }
	.ae-live__text { align-self: center; padding-right: 0.5rem; }
	.ae-live__stack { aspect-ratio: 4 / 3; }
	.ae-live__coupon { margin-top: 0.25rem; }
}
@media (min-width: 1440px) {
	.ae-live__stack { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
	.ae-live.is-live .ae-live__seal { animation: none; }
}
.ae-live__seal { right: 6px; top: -16px; }
@media (min-width: 768px) {
	.ae-live__tabs { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 600px) {
	.ae-live__seal { right: -14px; top: -26px; }
}
@media (min-width: 600px) and (max-width: 767px) {
	.ae-live__seal { right: 6px; }
}
@media (max-width: 1023px) {
	.ae-live__stack { aspect-ratio: 16 / 9; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.ae-live__stack { aspect-ratio: 2 / 1; }
}

/* ── 2b. Trade « fiche métier » cover ─────────────────────── */
.ae-hero--trade {
	position: relative; overflow: hidden; color: var(--ae-base);
	background-color: var(--tr-band, var(--ae-blue));
	background-image: linear-gradient(rgb(245 239 230 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(245 239 230 / 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
	padding-top: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
}
.ae-trade-hero { display: grid; gap: 1.5rem; }
.ae-trade-hero__visual { position: relative; margin-right: 1.5rem; }
.ae-trade-hero__photo { position: relative; margin: 0; }
.ae-frame--trade { padding: 8px; background: var(--ae-linen); border-color: var(--tr-accent); box-shadow: 0 30px 50px -34px rgb(0 0 0 / 0.7); }
.ae-frame--trade .ae-frame__ph { inset: 8px; }
.ae-frame--trade img, .ae-frame--trade.is-empty .ae-frame__ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ae-trade-hero__tag { position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0.75rem; background: rgb(245 239 230 / 0.95); border-left: 3px solid var(--tr-band); font-family: var(--ae-serif); font-weight: 600; font-size: 0.95rem; color: var(--ae-ink); }
.ae-trade-hero__tag-no { font-style: italic; font-weight: 500; color: var(--ae-brass-text); }
.ae-trade-hero__detail { position: absolute; right: -1.5rem; bottom: -1.25rem; z-index: 3; width: 34%; max-width: 170px; padding: 5px; background: var(--ae-linen); border: 1px solid var(--tr-accent); transform: rotate(4deg); box-shadow: 0 16px 30px -16px rgb(0 0 0 / 0.75); }
.ae-trade-hero__detail img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ae-trade-hero__text { position: relative; padding-bottom: 0.5rem; }
.ae-trade-hero__watermark { position: absolute; z-index: 0; right: -0.5rem; top: -1.5rem; margin: 0; font-family: var(--ae-serif); font-weight: 600; font-size: clamp(8rem, 5rem + 12vw, 17rem); line-height: 0.8; letter-spacing: -0.05em; color: var(--tr-accent); opacity: 0.12; pointer-events: none; user-select: none; }
.ae-trade-hero__text > *:not(.ae-trade-hero__watermark) { position: relative; z-index: 1; }
.ae-trade-hero__disc { flex: none; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ae-linen); color: var(--tr-band); box-shadow: inset 0 0 0 3px var(--ae-linen), inset 0 0 0 4px var(--tr-accent), 0 0 0 1px rgb(245 239 230 / 0.4); }
.ae-hero--trade .ae-hero__badge { margin-bottom: 0.9rem; }
.ae-hero--trade .ae-hero__kicker { margin: 0; color: var(--tr-accent); font-size: 1rem; }
.ae-hero--trade .ae-hero__kicker .ae-no__o { color: inherit; }
.ae-hero--trade .ae-hero__title { margin: 0; color: var(--ae-base); font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); line-height: 0.98; max-width: 14ch; }
.ae-hero--trade .ae-hero__does { margin-top: 0.9rem; max-width: 38rem; color: var(--ae-linen); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.12rem); }
.ae-hero--trade .ae-hero__does-label { color: var(--tr-accent); }
.ae-trade-hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 1.1rem 0 0; padding: 0.75rem 0 0; border-top: 1px solid color-mix(in srgb, var(--tr-accent) 55%, transparent); list-style: none; font-size: 0.95rem; color: var(--ae-linen); }
.ae-trade-hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; }
.ae-trade-hero__facts .ae-glyph { color: var(--tr-accent); }
.ae-trade-hero__facts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ae-base); text-decoration: underline; text-underline-offset: 0.2em; }
.ae-trade-hero__facts a:hover { color: var(--tr-accent); }
.ae-trade-hero__facts strong { font-weight: 700; }
.ae-trade-hero__tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.ae-trade-hero__tools a, .ae-trade-hero__tool { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0 0.75rem; border: 1px solid rgb(245 239 230 / 0.35); border-radius: 999px; color: var(--ae-linen); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.ae-trade-hero__tools a { min-height: 44px; border-color: var(--tr-accent); }
.ae-trade-hero__tools a:hover { background: var(--ae-linen); color: var(--ae-ink); }
.ae-trade-hero__tools .ae-glyph { color: var(--tr-accent); }
.ae-trade-hero__tools a:hover .ae-glyph { color: var(--tr-band); }
.ae-hero--trade :focus-visible { outline-color: var(--tr-accent); }

/* Under: notebook page, starters, dossiers */
.ae-trade-hero__under { display: grid; gap: 1.5rem; margin-top: 2rem; padding-block: 1.75rem 2rem; border-top: 1px solid rgb(245 239 230 / 0.2); }
.ae-notebook { position: relative; padding: 1.6rem 1.25rem 1rem; background: repeating-linear-gradient(180deg, transparent 0 29px, rgb(44 63 122 / 0.12) 29px 30px) 0 3.2rem / 100% calc(100% - 3.2rem) no-repeat, var(--ae-linen); color: var(--ae-ink); box-shadow: 0 20px 36px -24px rgb(0 0 0 / 0.75); transform: rotate(-0.6deg); }
.ae-notebook::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: linear-gradient(135deg, transparent 50%, var(--ae-linen) 50%) 0 0 / 12px 7px repeat-x, linear-gradient(225deg, transparent 50%, var(--ae-linen) 50%) 0 0 / 12px 7px repeat-x; }
.ae-notebook__clip { position: absolute; top: -14px; left: 50%; width: 64px; height: 22px; margin-left: -32px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #E3C17E, #C9A25B 60%, #7A5A1E); box-shadow: 0 4px 8px -4px rgb(0 0 0 / 0.6), inset 0 -3px 0 rgb(0 0 0 / 0.12); }
.ae-notebook__title { margin: 0 0 0.6rem; font-family: var(--ae-serif); font-style: italic; font-weight: 600; font-size: 1.35rem; }
.ae-notebook ul { margin: 0; padding: 0; list-style: none; }
.ae-notebook li { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 30px; padding: 0.25rem 0; font-size: 0.95rem; line-height: 1.45; }
.ae-notebook__box { flex: none; width: 18px; height: 18px; margin-top: 0.15rem; border: 1.5px solid var(--ae-ink); border-radius: 2px; background: var(--ae-base); }
.ae-trade-hero__side { display: grid; gap: 1.25rem; }
.ae-trade-hero__under .ae-starters a { color: var(--ae-base); }
.ae-trade-hero__under .ae-starters a:hover span:last-child { color: var(--tr-accent); }
.ae-trade-hero__under .ae-starters li + li { border-top-color: rgb(245 239 230 / 0.2); }
.ae-trade-hero__under .ae-starters__no, .ae-trade-hero__under .ae-hero__under-title, .ae-trade-hero__under .ae-hero__dcount { color: var(--tr-accent); }
.ae-trade-hero__under .ae-hero__dossiers { padding: 0; border: 0; }

/* Entrance: a fade and slight rise (none with prefers-reduced-motion). */
@keyframes ae-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ae-trade-hero__visual, .ae-trade-hero__text > *:not(.ae-trade-hero__watermark) { animation: ae-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ae-trade-hero__text > :nth-child(3) { animation-delay: 0.06s; }
.ae-trade-hero__text > :nth-child(4) { animation-delay: 0.12s; }
.ae-trade-hero__text > :nth-child(5) { animation-delay: 0.18s; }
.ae-trade-hero__text > :nth-child(6) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
	.ae-trade-hero__visual, .ae-trade-hero__text > * { animation: none; }
}

@media (max-width: 599px) {
	.ae-trade-hero__visual { margin-right: 0.75rem; }
	.ae-frame--trade img, .ae-frame--trade.is-empty .ae-frame__ph { aspect-ratio: 2 / 1; }
	.ae-trade-hero__detail { right: -0.75rem; bottom: -0.9rem; width: 28%; }
	.ae-trade-hero__watermark { top: -0.5rem; font-size: 8rem; }
	.ae-trade-hero__tools { display: none; }
}
@media (min-width: 768px) {
	.ae-trade-hero__under { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 2.5rem; }
}
@media (min-width: 1024px) {
	.ae-trade-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 4rem; align-items: center; }
	.ae-frame--trade img, .ae-frame--trade.is-empty .ae-frame__ph { aspect-ratio: 4 / 3; max-height: 420px; }
	.ae-trade-hero__text { padding-block: 1rem; }
	.ae-trade-hero__watermark { top: -2.5rem; right: -1rem; }
}

/* Rotating word, baseline fix: the active word stays in the flow (it gives the window its baseline and width), the
   others are stacked on it and hidden; the window clips with clip-path (overflow:hidden would move the baseline). */
.ae-live__words { display: inline-block; position: relative; vertical-align: baseline; overflow: visible; padding: 0; clip-path: inset(-0.1em -0.3em -0.3em -0.3em); }
.ae-live__word { display: inline-block; position: absolute; left: 0; top: 0; grid-area: auto; padding-bottom: 0.04em; background: linear-gradient(var(--ae-brass), var(--ae-brass)) 0 100% / 0 2px no-repeat; transition: opacity 0.45s ease, transform 0.45s ease, background-size 0.6s ease 0.2s; user-select: none; }
.ae-live__word::after { display: none; }
.ae-live__word.is-active { position: relative; background-size: 100% 2px; user-select: text; }

/* ── 3b. Post opener, split: text + one-column framed photo ── */
.ae-opener--split { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3.5rem) clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.ae-opener__grid { display: grid; gap: 1.5rem; }
.ae-opener--split .ae-opener__head { max-width: none; padding: 0; text-align: left; }
.ae-opener--split .ae-opener__title { margin: 1rem 0 0; max-width: 22ch; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); }
.ae-opener--split .ae-opener__deck { margin: 1rem 0 0; max-width: 40rem; }
.ae-opener--split .ae-opener__meta { justify-content: flex-start; margin: 1.4rem 0 0; }
.ae-opener__media { position: relative; margin: 0; }
.ae-opener--split .ae-frame--opener { padding: 10px; background: var(--ae-base); border-color: var(--ae-brass); box-shadow: 0 26px 44px -30px rgb(32 27 30 / 0.6); }
.ae-opener--split .ae-frame--opener img { aspect-ratio: 16 / 10; max-height: none; }
.ae-opener__seal { position: absolute; z-index: 3; right: -8px; bottom: -22px; width: 76px; height: 76px; color: var(--ae-ink); background: var(--ae-linen); border-radius: 50%; transform: rotate(-14deg); box-shadow: 0 10px 20px -12px rgb(32 27 30 / 0.7); }
@media (min-width: 1024px) {
	.ae-opener__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3.5rem; align-items: center; }
	.ae-opener__media { transform: rotate(1.5deg); }
	.ae-opener--split .ae-frame--opener img { aspect-ratio: auto; height: clamp(280px, 22vw, 330px); }
	.ae-opener__seal { width: 92px; height: 92px; right: -18px; bottom: -26px; }
}
