/* =========================================================================
   AlexDesigns — supplemental styles
   Only what theme.json can't express. Tokens come from the generated
   --wp--preset--* custom properties (color / font-family / spacing).
   Brand rule: blue = primary/motion, teal = AI only, navy/paper = surfaces.
   ========================================================================= */

:root {
	--ad-line: 1px solid var(--wp--preset--color--line);
	--ad-line-soft: 1px solid var(--wp--preset--color--line-soft);
	--ad-navy-border: 1px solid var(--wp--preset--color--navy-border);
	--ad-ease: 180ms ease;
	--ad-section-y: clamp(3.5rem, 8vw, 6rem); /* 56 -> 96px vertical rhythm */
}

/* ----- Base niceties --------------------------------------------------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a) { transition: color var(--ad-ease), border-color var(--ad-ease); }
/* Headings break only at word boundaries — never mid-word, never hyphenated. */
:where(h1, h2, h3), .wp-block-heading { overflow-wrap: break-word; word-break: normal; hyphens: none; }

/* Visible focus everywhere (a11y). */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ----- Eyebrow (mono, uppercase, letter-spaced) ------------------------ */
.ad-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	line-height: 1.4;
}
.ad-eyebrow--warm { color: var(--wp--preset--color--accent-warm); }
.ad-eyebrow--teal { color: var(--wp--preset--color--accent-teal); }
.ad-eyebrow--on-navy { color: var(--wp--preset--color--mono-on-navy); }

/* Eyebrow with a leading 26x1px rule. */
.ad-eyebrow--ruled { display: inline-flex; align-items: center; gap: 0.75rem; }
.ad-eyebrow--ruled::before {
	content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; flex: none;
}

/* ----- Section rhythm + hairline dividers ------------------------------ */
.ad-section { padding-block: var(--ad-section-y); }
.ad-divide-top { border-top: var(--ad-line); }
.ad-divide-bottom { border-bottom: var(--ad-line); }

/* ----- Text link with underline that warms on hover ------------------- */
.ad-textlink {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-weight: 600; text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: 2px;
}
.ad-textlink:hover { border-bottom-color: var(--wp--preset--color--primary); }

/* ----- Cards ----------------------------------------------------------- */
.ad-card {
	background: var(--wp--preset--color--card);
	border: var(--ad-line);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--preset--shadow--whisper);
}
.ad-card--pad { padding: clamp(1.25rem, 3vw, 2rem); }

/* ----- Pill chips (check + label) -------------------------------------- */
.ad-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.ad-chip {
	display: inline-flex; align-items: center; gap: 0.45rem;
	background: var(--wp--preset--color--card);
	border: var(--ad-line); border-radius: 2px;
	padding: 0.5rem 0.8rem;
	font-size: 0.95rem; font-weight: 500; color: var(--wp--preset--color--ink);
}
.ad-chip svg { width: 16px; height: 16px; color: var(--wp--preset--color--primary); flex: none; }

/* Trust row (icon + label, dot dividers) */
.ad-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; color: var(--wp--preset--color--slate); font-size: 0.95rem; }
.ad-trust__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.ad-trust__item svg { width: 18px; height: 18px; color: var(--wp--preset--color--muted); }

/* ----- Hero experiment card (illustrative) ----------------------------- */
.ad-exp { padding: 1.25rem 1.4rem; }
.ad-exp__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ad-exp__label { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
/* AI teal for small text-on-light is darkened to clear WCAG AA 4.5:1 (decorative teal stays bright). */
.ad-tag-illustrative { white-space: nowrap; font-family: var(--wp--preset--font-family--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #0A7060; background: color-mix(in srgb, var(--wp--preset--color--accent-teal) 12%, transparent); padding: 0.2rem 0.5rem; border-radius: 2px; }
.ad-exp__row { font-size: 0.95rem; color: var(--wp--preset--color--muted); margin-bottom: 1rem; }
.ad-meter { margin-bottom: 0.85rem; }
.ad-meter__top { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 0.4rem; }
.ad-meter__name { font-weight: 600; color: var(--wp--preset--color--ink); }
.ad-meter__val { font-family: var(--wp--preset--font-family--mono); color: var(--wp--preset--color--slate); }
.ad-meter__track { height: 8px; border-radius: 999px; background: var(--wp--preset--color--surface); overflow: hidden; }
.ad-meter__fill { height: 100%; border-radius: 999px; background: var(--wp--preset--color--muted); }
.ad-meter__fill--primary { background: var(--wp--preset--color--primary); }
.ad-exp__foot { display: flex; align-items: baseline; gap: 0.6rem; border-top: var(--ad-line-soft); padding-top: 1rem; margin-top: 0.25rem; }
.ad-exp__stat { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 2rem; color: var(--wp--preset--color--accent-warm); white-space: nowrap; flex: none; }
.ad-exp__statnote { font-size: 0.85rem; color: var(--wp--preset--color--muted); }

/* ----- Stat band (track record) ---------------------------------------- */
.ad-statband { display: grid; grid-template-columns: repeat(4, 1fr); border-block: var(--ad-line); }
.ad-statband__cell { padding: 1.5rem 1rem; }
.ad-statband__cell + .ad-statband__cell { border-left: var(--ad-line); }
.ad-statband__num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.875rem); color: var(--wp--preset--color--ink); line-height: 1; }
.ad-statband__num .ad-plus { color: var(--wp--preset--color--accent-warm); }
.ad-statband__label { font-size: 0.9rem; color: var(--wp--preset--color--muted); margin-top: 0.5rem; }
@media (max-width: 781px) {
	.ad-statband { grid-template-columns: repeat(2, 1fr); }
	.ad-statband__cell:nth-child(3) { border-left: 0; }
	.ad-statband__cell:nth-child(n+3) { border-top: var(--ad-line); }
}

/* ----- Capability rows (link list with trailing arrow, hover) ---------- */
.ad-cap { display: block; text-decoration: none; padding: 1.25rem 0; border-top: var(--ad-line-soft); }
.ad-cap:first-child { border-top: 0; }
.ad-cap__head { display: flex; align-items: center; gap: 0.7rem; }
.ad-cap__icon { width: 24px; height: 24px; color: var(--wp--preset--color--primary); flex: none; }
.ad-cap__icon--ai { color: var(--wp--preset--color--accent-teal); }
.ad-cap__title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.19rem; color: var(--wp--preset--color--ink); margin: 0; }
.ad-cap__arrow { margin-left: auto; width: 18px; height: 18px; color: var(--wp--preset--color--muted); transition: transform var(--ad-ease), color var(--ad-ease); }
.ad-cap__desc { color: var(--wp--preset--color--muted); font-size: 0.97rem; margin: 0.4rem 0 0; padding-left: calc(24px + 0.7rem); }
.ad-cap:hover .ad-cap__title { color: var(--wp--preset--color--primary); }
.ad-cap:hover .ad-cap__arrow { transform: translate(2px, -2px); color: var(--wp--preset--color--primary); }

/* ----- Contrast card (one-off vs ongoing) ------------------------------ */
.ad-contrast { display: grid; grid-template-columns: 1fr 1fr; }
.ad-contrast__col { padding: clamp(1.1rem, 3vw, 1.75rem); }
.ad-contrast__col:first-child { border-right: var(--ad-line); }
.ad-contrast__head { display: flex; align-items: center; gap: 0.55rem; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.05rem; color: var(--wp--preset--color--ink); }
.ad-contrast__head svg { width: 20px; height: 20px; flex: none; }
.ad-contrast__head--no svg { color: var(--wp--preset--color--muted); }
.ad-contrast__head--yes svg { color: var(--wp--preset--color--accent-teal); }
.ad-contrast__body { color: var(--wp--preset--color--muted); margin-top: 0.6rem; font-size: 0.97rem; }
@media (max-width: 600px) {
	.ad-contrast { grid-template-columns: 1fr; }
	.ad-contrast__col:first-child { border-right: 0; border-bottom: var(--ad-line); }
}

/* ----- Fit check checklists -------------------------------------------- */
.ad-fit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.ad-fit li { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; color: var(--wp--preset--color--slate); font-size: 0.97rem; }
.ad-fit svg { width: 18px; height: 18px; margin-top: 2px; }
.ad-fit--good svg { color: var(--wp--preset--color--accent-teal); }
.ad-fit--not svg { color: var(--wp--preset--color--muted); }

/* ----- Dark sections (framework, footer) ------------------------------- */
.ad-dark { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--light-text); }
.ad-dark--deep { background: var(--wp--preset--color--navy-deep); }
.ad-dark :where(h1, h2, h3) { color: #fff; }
.ad-dark a { color: var(--wp--preset--color--light-text); }
.ad-dark a:hover { color: #fff; }
.ad-dark .ad-eyebrow { color: var(--wp--preset--color--mono-on-navy); }

/* ----- Pulse dot (Currently) ------------------------------------------- */
.ad-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--wp--preset--color--accent-teal); display: inline-block; }
.ad-dot--pulse { animation: ad-pulse 2s ease-in-out infinite; }
@keyframes ad-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* ----- Diagrams (flywheel + curve) ------------------------------------- */
.ad-figure { margin: 0; }
.ad-figure svg { display: block; width: 100%; height: auto; }
.ad-figcaption { font-size: 0.9rem; color: var(--wp--preset--color--muted); margin-top: 0.75rem; }
/* Flywheel: circular on desktop, vertical-loop fallback under 640px. */
.ad-flywheel__circle { display: block; }
.ad-flywheel__stack { display: none; }
@media (max-width: 640px) {
	.ad-flywheel__circle { display: none; }
	.ad-flywheel__stack { display: block; }
}

/* ----- Contact form ----------------------------------------------------- */
.ad-form { display: grid; gap: 1.1rem; }
.ad-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .ad-form__grid { grid-template-columns: 1fr; } }
.ad-field { display: grid; gap: 0.4rem; }
.ad-field > label { font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.ad-field input, .ad-field textarea {
	font: inherit; color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--card);
	border: 1px solid #9AA7B6;
	border-radius: 3px; padding: 0.75rem 0.9rem; width: 100%; min-height: 46px;
}
.ad-field textarea { min-height: 120px; }
.ad-field input::placeholder, .ad-field textarea::placeholder { color: var(--wp--preset--color--muted); }
.ad-field input:focus, .ad-field textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent); }
.ad-field--error input, .ad-field--error textarea { border-color: var(--wp--preset--color--accent-warm); }
.ad-field__error { font-size: 0.82rem; color: var(--wp--preset--color--accent-warm); }
.ad-form__note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--wp--preset--color--muted); }
.ad-form__note svg { width: 15px; height: 15px; }
/* Honeypot — visually hidden but present in DOM (no display:none so bots fill it). */
.ad-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ad-form__success { background: color-mix(in srgb, var(--wp--preset--color--accent-teal) 10%, var(--wp--preset--color--paper)); border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-teal) 35%, transparent); border-radius: 4px; padding: 1rem 1.15rem; color: var(--wp--preset--color--ink); }

/* "What happens next" numbered steps */
.ad-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ad-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; }
.ad-steps__n { width: 24px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent); color: var(--wp--preset--color--primary); font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; }
.ad-steps__t { font-weight: 600; color: var(--wp--preset--color--ink); }
.ad-steps__d { color: var(--wp--preset--color--slate); font-size: 0.95rem; margin-top: 0.15rem; }

/* ----- CTA panel (solid blue) ------------------------------------------ */
.ad-cta { background: var(--wp--preset--color--primary); border-radius: 4px; color: #fff; }
.ad-cta :where(h2) { color: #fff; }
.ad-cta__sub { color: var(--wp--preset--color--cta-subcopy); }
.ad-cta__note { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--wp--preset--color--cta-subcopy); font-size: 0.9rem; }
.ad-cta__note svg { width: 15px; height: 15px; }
.ad-cta .wp-block-button__link, .ad-cta .ad-btn-invert { background: #fff; color: var(--wp--preset--color--primary); }
.ad-cta .wp-block-button__link:hover, .ad-cta .ad-btn-invert:hover { background: #eef1f4; color: var(--wp--preset--color--primary-hover); }

/* ----- Article category eyebrow color coding --------------------------- */
.ad-cat { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ad-cat--experimentation { color: var(--wp--preset--color--primary); }
.ad-cat--data { color: var(--wp--preset--color--accent-warm); }
.ad-cat--ai { color: var(--wp--preset--color--accent-teal); }

/* ----- Header / brand / nav -------------------------------------------- */
/* Sticky header: the template-part WRAPPER is the sticky element, because its parent is
   the full-height .wp-site-blocks. The inner .ad-header can't stick on its own — its
   containing block (the wrapper) is only header-height, so it unsticks the instant you
   scroll past it. Pinning the wrapper keeps the nav fixed for the whole page scroll. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.ad-header { backdrop-filter: saturate(140%) blur(10px); background: rgba(248,250,251,0.82) !important; z-index: 50; }
.ad-brand { text-decoration: none; }
.ad-brand__mark { line-height: 0; }
/* Header right cluster: desktop nav + search + CTA(s) + hamburger */
.ad-header__right { display: flex; align-items: center; gap: 1.5rem; }
.ad-nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
.ad-nav-desktop a { color: var(--wp--preset--color--slate); font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 6px 2px; }
.ad-nav-desktop a:hover { color: var(--wp--preset--color--ink); }
/* CTA buttons in the header (shared look) */
.ad-cta-desktop, .ad-cta-mobile, .ad-nav-drawer__cta { background: var(--wp--preset--color--primary); color: #fff !important; border: 0; border-radius: 2px; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.ad-cta-desktop:hover, .ad-cta-mobile:hover, .ad-nav-drawer__cta:hover { background: var(--wp--preset--color--primary-hover); }
.ad-cta-desktop { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.ad-cta-mobile { display: none; }
.ad-nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--wp--preset--color--ink); cursor: pointer; }
.ad-nav-toggle:focus-visible, .ad-nav-drawer__panel :focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

@media (max-width: 781px) {
	/* Compact mobile bar (~56px); logo left, CTA + hamburger far right */
	.ad-header { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; }
	.ad-nav-desktop, .ad-cta-desktop, .ad-search-toggle { display: none !important; }
	.ad-cta-mobile { display: inline-flex; padding: 0.45rem 0.95rem; font-size: 0.9rem; }
	.ad-nav-toggle { display: inline-flex; }
	.ad-header__right { gap: 0.6rem; }
}

/* Mobile slide-in drawer (right side, matching the hamburger) */
.ad-nav-drawer[hidden] { display: none; }
.ad-nav-drawer { position: fixed; inset: 0; z-index: 120; }
.ad-nav-drawer__scrim { position: fixed; inset: 0; background: rgba(11,18,32,0.5); opacity: 0; }
.ad-nav-drawer__panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--wp--preset--color--paper); box-shadow: -8px 0 30px rgba(0,0,0,0.15); padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; transform: translateX(100%); }
.ad-nav-drawer.is-open .ad-nav-drawer__scrim { opacity: 1; }
.ad-nav-drawer.is-open .ad-nav-drawer__panel { transform: translateX(0); }
.ad-nav-drawer__close { align-self: flex-end; background: transparent; border: 0; color: var(--wp--preset--color--muted); cursor: pointer; padding: 0.4rem; line-height: 0; }
.ad-nav-drawer__close:hover { color: var(--wp--preset--color--ink); }
.ad-nav-drawer__links { display: flex; flex-direction: column; gap: 0; margin-top: 0.25rem; }
.ad-nav-drawer__links a { color: var(--wp--preset--color--ink); font-size: 1.15rem; font-weight: 600; text-decoration: none; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--wp--preset--color--line-soft); }
.ad-nav-drawer__cta { margin-top: auto; padding: 0.9rem; font-size: 1rem; }
body.ad-nav-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
	.ad-nav-drawer__scrim { transition: opacity 200ms ease; }
	.ad-nav-drawer__panel { transition: transform 220ms ease; }
}

/* ----- Search: trigger + modal + results ------------------------------- */
/* Trigger is hidden until JS is present, so there's never a dead control. */
.ad-search-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--wp--preset--color--slate); border-radius: 4px; cursor: pointer; }
html.js .ad-search-toggle { display: inline-flex; }
.ad-search-toggle:hover { color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface); }
.ad-search-toggle:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

.ad-search-modal[hidden] { display: none; }
.ad-search-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: clamp(1rem, 8vh, 7rem) 1rem 1rem; }
.ad-search-modal__backdrop { position: fixed; inset: 0; background: rgba(11,18,32,0.55); backdrop-filter: blur(3px); }
.ad-search-modal__dialog { position: relative; width: min(640px, 100%); display: flex; align-items: center; gap: 0.75rem; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; box-shadow: var(--wp--preset--shadow--card); padding: 1rem 1.1rem; }
.ad-search-form { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.ad-search-form__icon { color: var(--wp--preset--color--muted); flex: none; }
.ad-search-form__input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--body); font-size: 1.125rem; padding: 0.5rem 0; }
.ad-search-form__submit { flex: none; background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 2px; font-weight: 600; padding: 0.6rem 1.1rem; cursor: pointer; }
.ad-search-form__submit:hover { background: var(--wp--preset--color--primary-hover); }
.ad-search-modal__close { flex: none; background: transparent; border: 0; color: var(--wp--preset--color--muted); cursor: pointer; padding: 0.35rem; border-radius: 4px; line-height: 0; }
.ad-search-modal__close:hover { color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface); }
.ad-search-modal__dialog :focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
body.ad-search-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
	.ad-search-modal:not([hidden]) .ad-search-modal__dialog { animation: ad-search-pop 160ms ease-out; }
	@keyframes ad-search-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

.ad-search-results .wp-block-post-title { margin-top: 1.9rem; margin-bottom: 0.35rem; }
.ad-search-results .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: 0.9rem; }

/* ----- Footer ---------------------------------------------------------- */
.ad-footer__list { list-style: none; margin: 0; padding: 0; }
.ad-footer__list a { text-decoration: none; }
.ad-footer .ad-eyebrow { margin-bottom: 0.75rem; }

/* ----- Flywheel HTML mirror / mobile vertical-loop fallback ------------ */
.ad-flywheel__stack { display: none; list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: fw; max-width: 30rem; }
.ad-flywheel__stack li { position: relative; padding: 0.9rem 0 0.9rem 0; border-left: 2px solid var(--wp--preset--color--navy-border); margin-left: 14px; padding-left: 1.5rem; color: var(--wp--preset--color--muted-on-navy); }
.ad-flywheel__stack li strong { color: #fff; font-family: var(--wp--preset--font-family--display); font-weight: 600; }
.ad-fw__n { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; color: var(--wp--preset--color--mono-on-navy); margin-right: 0.6rem; }
.ad-fw__ai { display: inline-block; margin-left: 0.4rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.68rem; color: var(--wp--preset--color--teal-on-navy); border: 1px solid color-mix(in srgb, var(--wp--preset--color--teal-on-navy) 50%, transparent); border-radius: 3px; padding: 0.05rem 0.35rem; }
.ad-flywheel__return { border-left: 2px dashed var(--wp--preset--color--navy-border) !important; color: var(--wp--preset--color--teal-on-navy) !important; font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; }
/* On dark sections the stack is the always-present AEO mirror; show it below ~640px. */
@media (max-width: 640px) {
	.ad-flywheel__circle { display: none; }
	.ad-flywheel__stack { display: block; }
}

/* ----- Compounding curve legend ---------------------------------------- */
.ad-curve__legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.92rem; color: var(--wp--preset--color--slate); }
.ad-curve__legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.ad-curve__legend strong { color: var(--wp--preset--color--ink); }
.ad-curve__swatch { width: 18px; height: 3px; border-radius: 2px; flex: none; }
.ad-curve__swatch--system { background: var(--wp--preset--color--primary); height: 4px; }
.ad-curve__swatch--oneoff { background: var(--wp--preset--color--muted); background-image: repeating-linear-gradient(90deg, var(--wp--preset--color--muted) 0 5px, transparent 5px 9px); background-color: transparent; }

/* ----- How We Work: stage list ----------------------------------------- */
.ad-stage { padding: 1.4rem 0; border-top: var(--ad-line); }
.ad-stage__head { display: flex; align-items: baseline; gap: 0.75rem; }
.ad-stage__n { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--wp--preset--color--primary); }
.ad-stage__name { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.25rem; color: var(--wp--preset--color--ink); margin: 0; }
.ad-stage__ai { font-family: var(--wp--preset--font-family--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #0A7060; border: 1px solid color-mix(in srgb, #0A7060 45%, transparent); border-radius: 3px; padding: 0.1rem 0.4rem; }
.ad-stage__desc { color: var(--wp--preset--color--muted); margin: 0.5rem 0 0; font-size: 0.97rem; }

/* ----- How We Work: the rhythm (week cards) ---------------------------- */
.ad-weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ad-weeks--3 { grid-template-columns: repeat(3, 1fr); }
.ad-week { border-top: 2px solid var(--wp--preset--color--primary); padding-top: 1rem; }
.ad-week__label { font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); display: flex; align-items: center; gap: 0.4rem; }
.ad-week__label svg { width: 16px; height: 16px; color: var(--wp--preset--color--primary); }
.ad-week__title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.1rem; color: var(--wp--preset--color--ink); margin: 0.6rem 0 0.4rem; }
.ad-week__body { color: var(--wp--preset--color--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 781px) { .ad-weeks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ad-weeks { grid-template-columns: 1fr; } }

/* ----- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ----- Testimonials (template-driven page) ----------------------------- */
.ad-tfeatured { background: var(--wp--preset--color--navy); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.75rem); margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.ad-tfeatured__quote { margin: 0; border: 0; padding: 0; font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.25rem, 1rem + 1.4vw, 1.6rem); line-height: 1.42; color: #fff; }
.ad-tfeatured__author { display: flex; align-items: center; gap: 0.85rem; }
.ad-tfeatured__name { display: block; font-weight: 600; color: #fff; }
.ad-tfeatured__role { color: var(--wp--preset--color--muted-on-navy); font-size: 0.9rem; }

.ad-tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .ad-tcards { grid-template-columns: 1fr; } }
.ad-tcard { display: flex; flex-direction: column; gap: 1.1rem; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 5px; box-shadow: var(--wp--preset--shadow--whisper); padding: 1.5rem 1.6rem; }
.ad-tcard__quote { margin: 0; border: 0; padding: 0; color: var(--wp--preset--color--slate); font-size: 1.02rem; line-height: 1.55; }
.ad-tcard__author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.ad-tcard__name { display: block; font-weight: 600; color: var(--wp--preset--color--ink); }
.ad-tcard__role { color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.ad-tcard__avatar { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; display: grid; place-items: center; }
.ad-tfeatured .ad-tcard__avatar { background: var(--wp--preset--color--navy-border); color: var(--wp--preset--color--logo-on-navy); }
.ad-tcta { margin-top: 2.5rem; }

/* ----- About: hero (text + portrait) + photo slots --------------------- */
.ad-about-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 781px) { .ad-about-hero { grid-template-columns: 1fr; gap: 1.5rem; } }
img.ad-about-portrait, img.ad-about-secondary { width: 100%; height: auto; border-radius: 8px; display: block; }
.ad-about-secondary { margin: 2rem 0; }
.ad-photo-slot { display: grid; place-items: center; text-align: center; background: var(--wp--preset--color--surface); border: 1px dashed #9AA7B6; border-radius: 8px; color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.7; padding: 1rem; }
.ad-about-hero__photo .ad-photo-slot.ad-about-portrait { aspect-ratio: 4 / 5; }
.ad-photo-slot.ad-about-secondary { aspect-ratio: 3 / 2; margin: 2rem 0; }
