/*
Theme Name: AionWell
Theme URI: https://aionwell.com/
Author: AionWell Inc.
Author URI: https://aionwell.com/
Description: Custom block theme for AionWell Inc. — Translational Life Sciences. Gutenberg only, no builder stack. Silver and ocean blue, light and futuristic: silver-white base, ocean-blue brand colour, Newsreader serif headlines with Instrument Sans body.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.2
License: Proprietary
Text Domain: aionwell
Tags: translation-ready, custom-colors, custom-menu, editor-style, featured-images
*/
:root {
  --base: #F2F5F8;
  --surface: #E9EEF3;
  --ocean: #0B62B8;
  --ocean-2: #0A529E;
  --ocean-deep: #083A6E;
  --link: #0A4E8A;
  --ink: #0A2A4A;
  --body: #1E324B;
  --secondary: #43566B;
  --accent: #2F88D8;
  --accent-lt: #A9CFF0;
  --silver-hi: #FBFCFD;
  --silver-1: #E7ECF1;
  --silver-2: #C8D2DC;
  --silver-3: #A9B7C4;
  --plat: #B7BDC6;
  --tint-1: #E2EDF7;
  --tint-2: #D5E6F4;
  --tint-3: #EDF1F5;
  --tint-4: #E8EDF2;
  --line: #BFCBD6;
  --line-soft: #D9E1E8;
  --pad-x: clamp(20px, 4.5vw, 64px);
}
body { background: var(--base); color: var(--body); font-size: 17px; line-height: 1.7; }
/* v1.1.2, audit B2 — the 100vw full-bleed bands can exceed the layout width by
 * the vertical-scrollbar width and open a page-level horizontal scrollbar.
 * Clip horizontal overflow at the root as a safety net (clip, not hidden, so
 * no scroll container is created); the bands themselves keep their bleed. */
html, body { overflow-x: clip; }
a { color: var(--link); }
a:hover, a:focus { color: var(--ocean-deep); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
/* Headings: Newsreader serif, hierarchy by size and weight. */
h1, h2, h3, h4 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; color: var(--ink); }
h2 { font-size: clamp(2rem, 3.8vw, 3.05rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); max-width: 62ch; color: var(--secondary); }
/* Eyebrow: borderless bold uppercase label (Calico-style). */
.eyebrow { display: inline-block; padding: 0; border: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); }

/* ---------- Header: fixed, frosted silver-white from the start ----------
 * v1.2.0 — the hero is light now, so there is no dark-hero state and no
 * transparent-over-hero rules: the header is frosted silver-white on every
 * page. Fixed positioning is kept (v1.1.1, defect 2): WordPress wraps every
 * template part in its own 72px container and a sticky element cannot travel
 * beyond its containing block, so fixed is the only reliable option.
 * .wp-site-blocks reserves the 72px (frontend only). */
.wp-site-blocks { padding-top: 72px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px; background: rgba(242, 245, 248, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-header--scrolled { background: rgba(251, 252, 253, 0.97); border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(10, 42, 74, 0.08); }
/* Logged-in admin bar (32px desktop, 46px below 782px): keep the header below it. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; padding-left: var(--pad-x); padding-right: var(--pad-x); max-width: 1520px; margin: 0 auto; }
.site-header .wp-block-site-logo { flex: none; }
.site-header .wp-block-site-logo img { width: 180px; height: auto; }
/* Persistent header CTA: ocean pill, silver-white label.
 * v1.1.1, defect 3 — on pearl-header pages the label was invisible: `.site-header a`
 * (0,1,1) beat plain `.header-cta` (0,1,0). Every CTA rule uses `a.header-cta`,
 * so the label colour wins. */
.site-header a.header-cta { flex: none; margin-left: auto; background: var(--ocean); color: var(--silver-hi); border: 1px solid transparent; border-radius: 999px; padding: 0.55rem 1.15rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.site-header a.header-cta:hover, .site-header a.header-cta:focus { background: var(--ocean-deep); color: var(--silver-hi); }
/* Circular hamburger: always visible at every width; opens the overlay menu. */
.menu-btn { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--silver-hi); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.menu-btn:hover, .menu-btn:focus { border-color: var(--ocean); color: var(--ocean); }

/* ---------- Classic-menu navigation (aionwell/navigation-* patterns) ---------- */
.aionwell-primary-nav, .aionwell-footer-nav { display: flex; align-items: center; }
.aionwell-primary-nav { flex: 1; justify-content: center; }
.aionwell-nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.aionwell-nav-list a { text-decoration: none; white-space: nowrap; color: var(--ink); }
.aionwell-nav-list a:hover, .aionwell-nav-list a:focus { text-decoration: underline; }
.aionwell-nav-list li { position: relative; }
.aionwell-nav-list > li > a { display: inline-block; padding: 0.35rem 0.7rem; border-radius: 999px; }
/* Current-page pill: solid ocean pill + white label, in the header and the
 * footer alike. Parent/ancestor items get the pill too, so the section reads
 * as current on detail pages. (v1.1.1, defect 4, adapted to the light system.) */
.site-header .aionwell-nav-list > li.current-menu-item > a,
.site-header .aionwell-nav-list > li.current-menu-parent > a,
.site-header .aionwell-nav-list > li.current-menu-ancestor > a,
.site-header .aionwell-nav-list > li > a[aria-current="page"] { background: var(--ocean); }
.site-header .aionwell-nav-list > li.current-menu-item > a .menu-item-label,
.site-header .aionwell-nav-list > li.current-menu-parent > a .menu-item-label,
.site-header .aionwell-nav-list > li.current-menu-ancestor > a .menu-item-label,
.site-header .aionwell-nav-list > li > a[aria-current="page"] .menu-item-label { color: var(--silver-hi); }
.aionwell-nav-list > li.current-menu-item > a,
.aionwell-nav-list > li > a[aria-current="page"] { background: rgba(11, 98, 184, 0.1); }
/* Hover second-tier subnav strip: full-width silver-white strip under the header,
 * each child a column with a strong title and a one-line descriptor. */
.aionwell-nav-list .sub-menu { display: none; position: fixed; left: 0; right: 0; top: 72px; background: var(--silver-hi); border-bottom: 1px solid var(--line); list-style: none; margin: 0; padding: 20px var(--pad-x) 24px; z-index: 60; box-shadow: 0 12px 24px rgba(10, 42, 74, 0.08); }
/* v1.1.1: the fixed header sits below the logged-in admin bar; the strip follows it. */
body.admin-bar .aionwell-nav-list .sub-menu { top: 104px; }
@media (max-width: 782px) { body.admin-bar .aionwell-nav-list .sub-menu { top: 118px; } }
.aionwell-nav-list li:hover > .sub-menu, .aionwell-nav-list li:focus-within > .sub-menu { display: flex; gap: 2rem; }
.aionwell-nav-list .sub-menu li { flex: 1; border-left: 1px solid var(--line-soft); padding-left: 1.25rem; }
.aionwell-nav-list .sub-menu li:first-child { border-left: none; padding-left: 0; }
.aionwell-nav-list .sub-menu a { display: block; padding: 0.25rem 0; white-space: normal; text-decoration: none; color: var(--ink); }
.aionwell-nav-list .sub-menu a:hover { text-decoration: underline; }
.menu-item-label { display: block; font-weight: 600; color: var(--ink); }
.menu-item-desc { display: block; font-size: 0.9rem; line-height: 1.5; color: var(--secondary); margin-top: 0.25rem; white-space: normal; }

/* ---------- Overlay menu (full-screen, light) ---------- */
.aionwell-overlay { position: fixed; inset: 0; z-index: 100; display: none; overflow-y: auto; background: rgba(242, 245, 248, 0.98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.aionwell-overlay.is-open { display: block; }
.aionwell-overlay-inner { max-width: 1240px; margin: 0 auto; padding: 2rem var(--pad-x) 4rem; }
.aionwell-overlay-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.aionwell-overlay-top-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); }
.aionwell-overlay-close { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--silver-hi); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.aionwell-overlay-close:hover, .aionwell-overlay-close:focus { border-color: var(--ocean); color: var(--ocean); }
.aionwell-overlay-search { margin: 2.5rem 0 0.5rem; }
.aionwell-overlay-search label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); margin-bottom: 0.75rem; }
.aionwell-overlay-search input { width: 100%; max-width: 640px; border: none; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; padding: 0.5rem 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--ink); }
.aionwell-overlay-search input:focus { outline: none; border-bottom-color: var(--ocean); }
.aionwell-overlay-noresult { color: var(--secondary); margin: 1rem 0 0; }
.aionwell-overlay-noresult[hidden] { display: none; }
.aionwell-overlay-sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 3rem; }
.aionwell-overlay-group h2 { font-family: "Instrument Sans", Inter, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); margin: 0 0 1rem; }
.aionwell-overlay-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.aionwell-overlay-group a { color: var(--ink); font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; text-decoration: none; }
.aionwell-overlay-group a:hover, .aionwell-overlay-group a:focus { color: var(--ocean); text-decoration: underline; }
.aionwell-overlay-group li.is-hidden { display: none; }
.aionwell-overlay-group.is-empty { display: none; }
.aionwell-overlay-cta { margin-top: 3rem; }
.aionwell-overlay-cta a { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ocean); color: var(--silver-hi); border-radius: 999px; padding: 0.8em 1.5em; font-weight: 600; text-decoration: none; }
.aionwell-overlay-cta a:hover, .aionwell-overlay-cta a:focus { background: var(--ocean-deep); color: var(--silver-hi); }
body.overlay-open { overflow: hidden; }

/* ---------- Hero: full-viewport light particle intro ----------
 * Text is visible by default. Word-by-word reveal is enhancement only. */
.hero-word { opacity: 1; }
.js-hero-anim .hero-word { opacity: 0; transition: opacity 400ms ease; }
.js-hero-anim .hero-word.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js-hero-anim .hero-word { opacity: 1; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-hero-pause] { display: none; }
}
.particle-hero { position: relative; background: linear-gradient(180deg, var(--silver-hi) 0%, #E9EEF3 55%, var(--base) 100%); color: var(--ink); overflow: hidden; min-height: calc(100svh - 72px); min-height: 640px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 4rem var(--pad-x) 2rem; }
.particle-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The visual column is the full-hero canvas layer: it sits behind the copy
 * (z-index 1 under the z-index 2 content) and receives pointer/drag input
 * across the whole hero. */
.particle-hero .hero-visual { position: absolute; inset: 0; z-index: 1; }
.particle-hero .hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.particle-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--ink); margin: 1rem 0 1.25rem; }
.particle-hero .lede { color: var(--secondary); margin: 0 auto; }
.particle-hero .wp-block-buttons { margin-top: 1.75rem; justify-content: center; }
.hero-text-link { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.hero-text-link:hover, .hero-text-link:focus { color: var(--ocean-deep); }
.hero-progress { position: relative; z-index: 2; height: 4px; background: var(--silver-2); max-width: 900px; margin: 2.5rem auto 0; width: 100%; }
.hero-progress-fill { height: 4px; background: var(--silver-2); width: 0%; }
.hero-progress [data-hero-progress-accent] { position: absolute; top: 0; width: 72px; height: 4px; background: var(--ocean); }
.hero-controls { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 0 0.5rem; }
.hero-controls button { background: rgba(251, 252, 253, 0.85); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.4rem 0.85rem; font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.hero-controls button:hover, .hero-controls button:focus { border-color: var(--ocean); color: var(--ocean); }
.hero-controls button[aria-current="true"] { background: var(--ocean); border-color: var(--ocean); color: var(--silver-hi); }
.hero-controls .hero-controls-divider { width: 1px; height: 24px; background: var(--line); margin: 0 0.5rem; }
.hero-phase-label, .hero-caption { position: relative; z-index: 2; font-size: 0.85rem; color: var(--secondary); margin: 0.5rem 0 0; }
.hero-scroll-cue { position: relative; z-index: 2; margin-top: 1.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); }
.hero-scroll-cue[hidden] { display: none; }
.hero-scroll-cue .hero-scroll-arrow { display: block; font-size: 1.25rem; line-height: 1; margin-top: 0.25rem; }

/* ---------- Inner-page hero (light) ---------- */
.page-hero { background: linear-gradient(180deg, var(--silver-hi), var(--base)); padding: 4rem var(--pad-x) 3.5rem; }
.page-hero h1 { color: var(--ink); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero .lede { margin-top: 1rem; }

/* ---------- Sections ---------- */
.home-section { padding: clamp(3.5rem, 7vw, 6rem) var(--pad-x); }
.home-section-inner { max-width: 1240px; margin: 0 auto; }
.home-section-centred { text-align: center; }
.home-section-centred .lede { margin-left: auto; margin-right: auto; }
.home-section h2 { margin: 0.75rem 0 1rem; }
.home-section .lede { margin-bottom: 1.25rem; }

/* ---------- Featured carousel (manual-only) ---------- */
.featured-carousel { position: relative; }
.featured-carousel .carousel-dots { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.featured-carousel .carousel-dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ocean); background: transparent; padding: 0; cursor: pointer; }
.featured-carousel .carousel-dots button[aria-current="true"] { background: var(--ocean); }
.featured-carousel .carousel-viewport { position: relative; }
.featured-slide { display: none; }
.featured-slide.is-active { display: block; }
.featured-slide-card { background: linear-gradient(135deg, rgba(251, 252, 253, 0.92), rgba(231, 236, 241, 0.85)); border: 1px solid transparent; border-image: linear-gradient(135deg, var(--silver-2), var(--accent-lt)) 1; border-radius: 24px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: 0 18px 40px rgba(10, 42, 74, 0.08); }
.featured-slide-card h3 { margin: 0.75rem 0 0.75rem; }
.featured-slide-card .slide-deck { color: var(--secondary); max-width: 62ch; }
.featured-slide-visual { margin: 0 0 1rem; }
.featured-slide-visual svg { display: block; width: 100%; height: auto; max-height: 220px; }
.carousel-nav { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.carousel-nav button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--silver-hi); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.carousel-nav button:hover, .carousel-nav button:focus { border-color: var(--ocean); color: var(--ocean); }
.carousel-caption { font-size: 0.85rem; color: var(--secondary); margin-top: 1rem; }

/* ---------- Wayfinding cards ---------- */
.wayfinding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.wayfinding-card { background: var(--silver-hi); border: 1px solid var(--line-soft); border-radius: 20px; padding: 1.5rem; box-shadow: 0 10px 28px rgba(10, 42, 74, 0.05); }
.wayfinding-card h3 { margin: 0.75rem 0 0.5rem; }
.wayfinding-card h3 a { color: var(--ink); text-decoration: none; }
.wayfinding-card h3 a:hover, .wayfinding-card h3 a:focus { color: var(--ocean); text-decoration: underline; }
.wayfinding-card p { color: var(--secondary); margin: 0; }
.wayfinding-visual { margin: 0; }
.wayfinding-visual svg { display: block; width: 100%; height: auto; max-height: 150px; }
.wayfinding-visual figcaption, .band-visual figcaption { font-size: 0.85rem; color: var(--secondary); margin-top: 0.5rem; }

/* ---------- Large serif statement ---------- */
.large-statement { font-family: "Newsreader", Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.2; color: var(--ocean); max-width: 22em; margin: 0 auto; text-align: center; }

/* ---------- Evidence card + evidence path ---------- */
.evidence-card { background: linear-gradient(135deg, rgba(251, 252, 253, 0.92), rgba(231, 236, 241, 0.85)); border: 1px solid transparent; border-image: linear-gradient(135deg, var(--silver-2), var(--accent-lt)) 1; border-radius: 24px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: 0 18px 40px rgba(10, 42, 74, 0.08); }
.evidence-card h3 { margin: 0.75rem 0 0.75rem; }
.evidence-card .lede { margin-bottom: 1rem; }
.evidence-card-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.evidence-path { margin: 1.5rem 0 0; }
.evidence-path svg { display: block; width: 100%; height: auto; max-height: 300px; }
.evidence-path .evidence-path-label { display: inline-block; margin-top: 0.75rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); }
.evidence-path .evidence-path-flow { stroke-dasharray: 6 8; animation: evidence-dash 2.4s linear infinite; }
@keyframes evidence-dash { to { stroke-dashoffset: -28; } }
.evidence-path .evidence-path-pulse { animation: evidence-pulse 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes evidence-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.evidence-path .evidence-path-ring { animation: evidence-spin 14s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes evidence-spin { to { transform: rotate(360deg); } }

/* ---------- Compact Approach path (Home) ---------- */
.approach-path { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.approach-path li { display: grid; grid-template-columns: 72px 200px 1fr; gap: 1.5rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--line-soft); }
.approach-path .approach-num { font-family: "Newsreader", Georgia, serif; font-size: 1.5rem; color: var(--ocean); }
.approach-path .approach-name { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.approach-path p { margin: 0; color: var(--secondary); }

/* ---------- Tint-coded bands ---------- */
.band { padding: clamp(3rem, 6vw, 5.5rem) var(--pad-x); }
.band-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.band-tint-1 { background: var(--tint-1); }
.band-tint-2 { background: var(--tint-2); }
.band-tint-3 { background: var(--tint-3); }
.band-tint-4 { background: var(--tint-4); }
/* Legacy class names from v1.1.2 content: all render light now. */
.band-tint-ice { background: var(--tint-1); }
.band-tint-mist { background: var(--tint-2); }
.band-tint-pearl { background: var(--tint-3); }
.band-tint-plat { background: var(--tint-4); }
.band-inner { max-width: 1220px; margin: 0 auto; }
.band-grid { display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 2.5rem; align-items: center; }
.band-visual { min-width: 0; }
.band-visual svg { display: block; width: 100%; height: auto; max-height: 470px; }
.band-tag { display: inline-block; padding: 4px 12px; border: 1px solid rgba(11, 98, 184, 0.42); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); }
.boundary-note { max-width: 62ch; }

/* ---------- Buttons: explicit colours at higher specificity than global styles, so the
 * label is always silver-white on ocean. Outline buttons inherit the surrounding
 * text colour. Circled arrow is the repeated signature detail on section CTAs. */
.wp-block-buttons .wp-block-button__link { background-color: var(--ocean); color: var(--silver-hi); display: inline-flex; align-items: center; gap: 0.6rem; border-radius: 999px; padding: 0.8em 1.5em; }
.wp-block-buttons .wp-block-button__link::after { content: "\2192"; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.85rem; flex: none; }
.wp-block-buttons .wp-block-button__link:hover, .wp-block-buttons .wp-block-button__link:focus { background-color: var(--ocean-deep); color: var(--silver-hi); }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent; color: var(--ink); border: 1px solid currentColor; }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:focus { color: var(--ocean); border-color: var(--ocean); }

/* ---------- Capability code badges (silver badges, not a tab strip) ---------- */
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.capability-card { background: var(--silver-hi); border: 1px solid var(--line-soft); border-radius: 20px; padding: 1.75rem; box-shadow: 0 10px 28px rgba(10, 42, 74, 0.05); }
.capability-card h3 { margin: 0.75rem 0 0.5rem; }
.capability-card h3 a { color: var(--ink); text-decoration: none; }
.capability-card h3 a:hover, .capability-card h3 a:focus { color: var(--ocean); text-decoration: underline; }
.capability-card p { color: var(--secondary); }
.code-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.6rem; border-radius: 10px; background: linear-gradient(135deg, var(--silver-1), var(--silver-2)); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ocean); }
.capability-num { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); margin-top: 0.75rem; }
.maturity-block { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.maturity-block h3 { margin: 0.5rem 0; }

/* ---------- Approach stepper (Our Approach only) + static steps ---------- */
.stepper-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 0; }
.step-tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 1rem 0.5rem; font: inherit; font-weight: 600; color: var(--secondary); cursor: pointer; text-align: left; }
.step-tab[aria-selected="true"] { border-bottom-color: var(--ocean); color: var(--ink); }
.step-panel { position: relative; padding: 2rem 0 0.5rem; }
.step-ghost { position: absolute; right: 0; top: -0.5rem; font-family: "Newsreader", Georgia, serif; font-size: clamp(10rem, 18vw, 16.5rem); font-weight: 700; line-height: 1; color: rgba(11, 98, 184, 0.07); pointer-events: none; }
.step-panel dl { display: grid; gap: 0.75rem; max-width: 62ch; }
.step-panel dt { font-weight: 700; color: var(--ink); }
.step-panel dd { margin: 0; }
.stepper-auto { margin-top: 1.5rem; }
.stepper-auto button { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.55rem 1.15rem; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.stepper-auto button:hover, .stepper-auto button:focus { border-color: var(--ocean); color: var(--ocean); }
.stepper-note { font-size: 0.9rem; color: var(--secondary); margin-top: 0.75rem; }
.approach-step { position: relative; padding: 2rem 0; border-top: 1px solid var(--line); }
.approach-step .step-ghost { top: 0; }
.approach-step dl { display: grid; gap: 0.5rem; max-width: 62ch; }
.approach-step dt { font-weight: 700; color: var(--ink); }
.approach-step dd { margin: 0; }

/* ---------- Frosted-glass card (light) ----------
 * v1.2.0 — the old dark Evidence band is gone. `.band-dark` is kept only as a
 * compatibility alias for any v1.1.2 content that still carries the class: it
 * renders the same light silver treatment, never a dark field. */
.glass { background: linear-gradient(135deg, rgba(251, 252, 253, 0.92), rgba(231, 236, 241, 0.85)); border: 1px solid transparent; border-image: linear-gradient(135deg, var(--silver-2), var(--accent-lt)) 1; border-radius: 24px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 2rem; box-shadow: 0 18px 40px rgba(10, 42, 74, 0.08); }
.band-dark { background: linear-gradient(180deg, var(--tint-3), var(--tint-4)); color: var(--body); }
.band-dark h2, .band-dark h3, .band-dark .wp-block-heading { color: var(--ink); }
.band-dark .lede { color: var(--secondary); }
.band-dark a { color: var(--link); }
.band-dark .wp-block-button__link { background-color: var(--ocean); color: var(--silver-hi); }
.band-dark .wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent; color: var(--ink); border: 1px solid currentColor; }

/* ---------- Centred mission band ---------- */
.mission-band { text-align: center; padding: clamp(92px, 10vw, 152px) var(--pad-x); }
.mission-text { font-family: "Newsreader", Georgia, serif; font-size: clamp(2.05rem, 4vw, 3.55rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; max-width: 23em; margin: 0 auto; color: var(--ink); }
.mission-sub { max-width: 62ch; margin: 1.5rem auto 0; color: var(--secondary); }

/* ---------- Question banner, two-column do / do-not lists, factbox, brand ---------- */
.q-banner { border-left: 3px solid var(--ocean); padding-left: 1.25rem; margin: 1.5rem 0; }
.q-banner .q-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); }
.q-banner .q-text { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); margin-top: 0.5rem; }
.two-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-list ul { list-style: none; padding: 0; margin: 0; }
.two-list .do-list li::before { content: "\2022  "; color: var(--ocean); }
.two-list .do-not-list li::before { content: "\2013  "; color: #8A97A5; }
.factbox { border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 2rem; background: var(--silver-hi); }
.factbox dl { display: grid; grid-template-columns: 180px 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.factbox dt { font-weight: 700; color: var(--ink); }
.factbox dd { margin: 0; }
.brand-card { text-align: center; padding: 2.5rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--silver-hi); }
.brand-card img { max-width: 320px; width: 100%; height: auto; }

/* ---------- Footer (light silver) ---------- */
.site-footer { background: var(--silver-1); color: var(--body); padding: 4rem var(--pad-x) 2rem; border-top: 1px solid var(--line); }
.site-footer-inner { max-width: 1240px; margin: 0 auto; }
.site-footer a { color: var(--ink); }
.site-footer a:hover, .site-footer a:focus { color: var(--ocean); }
/* v1.0.2: the footer logo was clipped at the left viewport edge live (A/V left
 * leg cut at x=0). The footer keeps real horizontal inset and the logo is
 * capped at 180px so it can never sit flush at, or overflow past, the edge. */
.aionwell-footer-brand { display: block; width: fit-content; }
.aionwell-footer-logo { display: block; max-width: 180px; width: 100%; height: auto; margin-bottom: 1.5rem; }
.site-footer .footer-note { font-size: 0.95rem; color: var(--secondary); max-width: 62ch; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 2.5rem 0; }
.footer-column h2 { font-family: "Instrument Sans", Inter, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary); margin: 0 0 1rem; }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-column a { text-decoration: none; }
.footer-column a:hover, .footer-column a:focus { text-decoration: underline; }
/* Footer current-page pill: ocean pill + white text. */
.site-footer .footer-column a[aria-current="page"] { background: var(--ocean); color: var(--silver-hi); font-weight: 700; border-radius: 999px; padding: 3px 11px; margin-left: -11px; text-decoration: none; }
.site-footer .footer-column a[aria-current="page"]:hover, .site-footer .footer-column a[aria-current="page"]:focus { color: var(--silver-hi); text-decoration: none; }
/* v1.1.2, audit M8 — footer copyright line. */
.site-footer .footer-copy { font-size: 0.9rem; color: var(--secondary); }
.site-footer .footer-base { border-top: 1px solid var(--line-soft); padding-top: 1.5rem; display: grid; gap: 0.25rem; }

/* ---------- Insights hub ---------- */
.insights-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.5rem 0; }
.insights-chip { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.95rem; cursor: pointer; }
.insights-chip[aria-pressed="true"] { background: var(--ocean); color: var(--silver-hi); border-color: var(--ocean); }
.insights-search { border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1rem; font: inherit; width: 210px; background: var(--silver-hi); color: var(--body); }
.insights-view { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: auto; }
.insights-view button { background: transparent; border: none; padding: 0.5rem 1rem; font: inherit; cursor: pointer; color: var(--ink); }
.insights-view button[aria-pressed="true"] { background: var(--ocean); color: var(--silver-hi); }
.insights-empty { border: 1px solid var(--line-soft); border-radius: 12px; padding: 1rem; background: var(--silver-hi); }
.insights-empty svg { display: block; width: 100%; height: auto; max-height: 320px; }
.insights-visual { margin: 0; }
.insights-visual svg { display: block; width: 100%; height: auto; max-height: 320px; }
.insights-nomatch { font-size: 0.9rem; color: var(--secondary); }
[data-insights-hub] .wp-block-post-template { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; list-style: none; margin: 0; padding: 0; }
[data-insights-hub].insights-list .wp-block-post-template { grid-template-columns: 1fr; }
[data-insights-hub] .wp-block-post { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.insights-more { margin-top: 0; }
/* v1.1.2, audit M2 — the Load More button sat at the extreme left edge,
 * outside the content column. It now sits in a centred wrap under the
 * articles, inside the content column. */
.insights-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }
button.insights-more { background: var(--ocean); color: var(--silver-hi); border: none; border-radius: 999px; padding: 0.8em 1.5em; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem; }
button.insights-more::after { content: "\2193"; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.85rem; flex: none; }
button.insights-more:disabled { opacity: 0.45; cursor: default; }

/* ---------- Contact form ---------- */
.contact-form label { display: block; font-weight: 600; color: var(--ink); margin: 1rem 0 0.35rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; max-width: 560px; border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.8rem; font: inherit; background: var(--silver-hi); color: var(--body); }
.contact-form textarea { min-height: 140px; }
.contact-form input[aria-invalid="true"], .contact-form select[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #8B1E1E; }
.field-error { display: block; min-height: 1.2em; font-size: 0.9rem; color: #8B1E1E; }
.contact-success { border: 1px solid var(--ocean); border-radius: 12px; padding: 1.25rem 1.5rem; margin-top: 1.5rem; background: var(--tint-1); }
.contact-warning { border-left: 3px solid var(--ocean); padding-left: 1.25rem; }

/* ---------- 404: fill the viewport more gracefully ----------
 * v1.1.2, audit minor (f) — the 404 page was short with a large area below
 * the footer. The content column now takes at least the viewport height
 * (minus the fixed header) and centres vertically. */
.error-404 { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding-top: 2rem; padding-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .aionwell-primary-nav, .header-cta { display: none; }
  /* v1.2.0 — the old below-1020px mobile menu panel is gone: the circular
   * hamburger opens the full-screen overlay menu at every width instead. */
  .aionwell-overlay-sitemap { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .wayfinding-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .band-grid { grid-template-columns: 1fr; }
  .two-list { grid-template-columns: 1fr; }
  .stepper-tabs { display: flex; overflow-x: auto; }
  .step-tab { flex: 1 0 auto; }
  .factbox dl { grid-template-columns: 1fr; }
  .approach-path li { grid-template-columns: 56px 1fr; }
  .approach-path li p { grid-column: 2; }
}
@media (max-width: 560px) {
  /* v1.1.2 mobile fix, kept: the closing CTA button row overflowed 103px at
   * 390px — buttons shrink and stack at small widths. */
  .wp-block-buttons { flex-wrap: wrap; }
  .wp-block-buttons .wp-block-button__link { padding: 0.7em 1.1em; }
  .site-header-inner { gap: 0.75rem; }
  .site-header .wp-block-site-logo img { width: 140px; }
}
