/* ========================================================================== 
   Aethel Cortex global design system
   Shared by the homepage, Gutenberg shell pages and future PHP templates.
   ========================================================================== */

:root {
  --ac-brand: #51c85e;
  --ac-brand-dark: #3baa47;
  --ac-brand-rgb: 81, 200, 94;
  --ac-rich: #0a0f1e;
  --ac-muted: #687083;
  --ac-border: #e7e9ef;
  --ac-surface: #f7f8fb;
  --ac-surface-strong: #eef1f6;
  --ac-white: #ffffff;
  --ac-danger: #dc2626;

  /* Canonical site typography. Tailwind utilities only override this when
     an explicit font-* utility is intentionally used in markup. */
  --ac-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ac-font-display: "Sora", "Inter", sans-serif;
  --font-sans: var(--ac-font-body);
  --font-display: var(--ac-font-display);
  --default-font-family: var(--ac-font-body);

  /* Canonical redesigned-site width: matches the new header shell. */
  --ac-container: 1440px;
  --ac-content: 820px;

  /* Shared process-slider visual token. */
  --ac-process-ghost-opacity: 0.045;

  --ac-section-space: clamp(4.5rem, 8vw, 8rem);
  --ac-radius-sm: 12px;
  --ac-radius: 20px;
  --ac-radius-lg: 32px;
  --ac-shadow-sm: 0 12px 32px rgba(10, 15, 30, 0.06);
  --ac-shadow: 0 24px 70px rgba(10, 15, 30, 0.11);

  /* Compatibility aliases used by the completed homepage. */
  --brand: var(--ac-brand);
  --brand-dark: var(--ac-brand-dark);
  --rich: var(--ac-rich);
  --muted: var(--ac-muted);
  --border: rgba(15, 23, 42, 0.08);
  --surface: #fafafa;
}

html[data-ac-theme="dark"],
html[data-bs-theme="dark"] {
  --ac-rich: #f7f8fc;
  --ac-muted: #b8bfd0;
  --ac-border: rgba(255, 255, 255, 0.12);
  --ac-surface: #151b2c;
  --ac-surface-strong: #1b2337;
  --ac-white: #0e1422;
  --ac-shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.22);
  --ac-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html,
html.scroll-smooth {
  scroll-behavior: auto !important;
}

body.aethel-new-design {
  margin: 0;
  background: var(--ac-white);
  color: var(--ac-rich);
  font-family: var(--ac-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.aethel-new-design.ac-modal-open {
  overflow: hidden;
}

@layer base {
  body.aethel-new-design *,
  body.aethel-new-design *::before,
  body.aethel-new-design *::after {
    box-sizing: border-box;
  }

  body.aethel-new-design :where(img, svg, video, canvas, iframe) {
    max-width: 100%;
  }

  body.aethel-new-design :where(button, input, textarea, select) {
    font: inherit;
  }
}

/*
 * Global dotted canvas.
 *
 * The dots live on the element background rather than a negative-z-index
 * pseudo-element. This prevents the body, theme.json, or a stacking context
 * from hiding the pattern while preserving the original fixed-grid effect.
 */
.grid-bg,
body.aethel-new-design.grid-bg {
  position: relative;
  background-color: var(--ac-surface);
  background-image: radial-gradient(
    circle,
    rgba(15, 23, 42, 0.12) 1.2px,
    transparent 1.35px
  );
  background-position: 0 0;
  background-size: 32px 32px;
  background-attachment: scroll;
}

.grid-bg::before,
body.aethel-new-design.grid-bg::before {
  display: none;
  content: none;
}

@layer base {
  /* Headings default to Sora, but Tailwind font-* utilities can override it. */
  body.aethel-new-design :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--ac-font-display);
  }

  /* Shell wrapper defaults must never outrank Tailwind utilities. */
  .ac-editor-page,
  .ac-editor-content {
    width: 100%;
  }

  .ac-editor-page {
    margin: 0;
  }
}

.ac-site-main {
  display: block;
  min-height: 60vh;
  background: var(--ac-white);
  color: var(--ac-rich);
}

/* Gutenberg alignment support.
 *
 * Keep generic editor/shell defaults inside Tailwind's base cascade layer so
 * normal utilities — including arbitrary values — always remain free to
 * override them.
 */
@layer base {
  .ac-editor-content > :where(*) {
    margin-top: 0;
  }

  .ac-editor-content > :where(*):last-child {
    margin-bottom: 0;
  }

  .ac-editor-content > :where(:not(.alignwide):not(.alignfull):not(.ac-page-section):not(.ac-page-hero)) {
    width: min(calc(100% - 3rem), var(--ac-content));
    margin-right: auto;
    margin-left: auto;
  }

  .ac-editor-content > .alignwide {
    width: min(calc(100% - 3rem), var(--ac-container));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .ac-editor-content > .alignfull {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .ac-editor-content > .wp-block-group.alignfull > .wp-block-group__inner-container,
  .ac-editor-content > .wp-block-cover.alignfull > .wp-block-cover__inner-container {
    width: min(calc(100% - 3rem), var(--ac-container));
    margin-right: auto;
    margin-left: auto;
  }

  /*
   * Flexible Gutenberg shell.
   *
   * The shell is full-width by default, but these are only base defaults.
   * Utilities like max-w-[1100px], mx-auto, m-[22px], etc. can override them.
   */
  .ac-editor-content.ac-editor-content--shell > :where(*) {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .ac-editor-content.ac-editor-content--shell > :where(.alignwide, .alignfull) {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .ac-editor-content.ac-editor-content--shell
    > :where(.wp-block-group.alignfull, .wp-block-cover.alignfull)
    > :where(.wp-block-group__inner-container, .wp-block-cover__inner-container) {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}

/* Layout primitives. */
.ac-container {
  width: min(calc(100% - 3rem), var(--ac-container));
  margin-inline: auto;
}

.ac-container--content {
  width: min(calc(100% - 3rem), var(--ac-content));
  margin-inline: auto;
}

.ac-page-section {
  position: relative;
  padding-block: var(--ac-section-space);
  overflow: clip;
}

.ac-page-section--compact {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.ac-page-section--white {
  background: var(--ac-white);
}

.ac-page-section--light {
  background: var(--ac-surface);
}

.ac-page-section--dark {
  background: #0a0f1e;
  color: #ffffff;
}

.ac-stack > * + * {
  margin-top: var(--ac-stack-space, 1.5rem);
}

.ac-grid {
  display: grid;
  gap: var(--ac-grid-gap, 1.5rem);
}

.ac-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ac-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Typography and section headings. */
.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--ac-brand);
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ac-eyebrow::before {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.ac-section-title,
.ac-page-title {
  margin: 0;
  color: inherit;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.ac-section-title {
  font-size: clamp(2rem, 5vw, 4rem);
}

.ac-page-title {
  font-size: clamp(2.65rem, 7vw, 6rem);
}

.ac-section-copy,
.ac-page-lead {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: var(--ac-muted);
  font-size: clamp(1rem, 1.5vw, 1.175rem);
  font-weight: 500;
  line-height: 1.75;
}

.ac-text-center {
  text-align: center;
}

.ac-text-center :where(.ac-section-copy, .ac-page-lead) {
  margin-right: auto;
  margin-left: auto;
}

/* Page hero and breadcrumbs. */
.ac-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 62vh, 680px);
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ac-border);
  background:
    radial-gradient(circle at 85% 12%, rgba(var(--ac-brand-rgb), 0.16), transparent 33%),
    linear-gradient(180deg, var(--ac-surface), var(--ac-white));
}

.ac-page-hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(10, 15, 30, 0.025);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(7rem, 19vw, 18rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}

.ac-page-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
}

.ac-page-hero--center .ac-page-hero__content {
  margin-inline: auto;
  text-align: center;
}

.ac-page-hero--center .ac-page-lead {
  margin-inline: auto;
}

.ac-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0;
  color: var(--ac-muted);
  font-size: 0.75rem;
  font-weight: 700;
  list-style: none;
}

.ac-breadcrumbs a {
  color: var(--ac-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.ac-breadcrumbs a:hover,
.ac-breadcrumbs a:focus-visible {
  color: var(--ac-brand);
  outline: none;
}

.ac-breadcrumbs__separator {
  color: rgba(104, 112, 131, 0.55);
}

/* Cards. */
.ac-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background: var(--ac-white);
  box-shadow: var(--ac-shadow-sm);
}

.ac-card--interactive {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.ac-card--interactive:hover,
.ac-card--interactive:focus-within {
  border-color: rgba(var(--ac-brand-rgb), 0.55);
  box-shadow: 0 24px 56px rgba(var(--ac-brand-rgb), 0.12);
  transform: translateY(-5px);
}

/* Buttons. */
.ac-button,
.ac-editor-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ac-button--primary,
.ac-editor-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--ac-brand);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(var(--ac-brand-rgb), 0.2);
}

.ac-button--dark {
  background: #0a0f1e;
  color: #ffffff;
}

.ac-button--outline,
.ac-editor-content .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--ac-border);
  background: transparent;
  color: var(--ac-rich);
}

.ac-button:hover,
.ac-button:focus-visible,
.ac-editor-content .wp-block-button__link:hover,
.ac-editor-content .wp-block-button__link:focus-visible {
  border-color: var(--ac-brand);
  background: var(--ac-brand-dark);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(var(--ac-brand-rgb), 0.22);
  transform: translateY(-2px);
  outline: none;
}

/* Gutenberg content defaults.
 *
 * IMPORTANT:
 * Tailwind v4 utilities live in the native `utilities` cascade layer.
 * These generic Gutenberg defaults therefore also belong to a named lower
 * layer. Keeping them unlayered would make them outrank Tailwind utilities
 * even when their selector has zero specificity.
 */
@layer base {
  :where(.ac-editor-content h1,
         .ac-editor-content h2,
         .ac-editor-content h3,
         .ac-editor-content h4,
         .ac-editor-content h5,
         .ac-editor-content h6) {
    color: var(--ac-rich);
    font-family: Sora, Inter, sans-serif;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  :where(.ac-editor-content h1) { font-size: clamp(2.4rem, 6vw, 5rem); }
  :where(.ac-editor-content h2) { font-size: clamp(2rem, 4.5vw, 3.75rem); }
  :where(.ac-editor-content h3) { font-size: clamp(1.5rem, 3vw, 2.25rem); }
  :where(.ac-editor-content h4) { font-size: clamp(1.25rem, 2vw, 1.6rem); }

  :where(.ac-editor-content p,
         .ac-editor-content li,
         .ac-editor-content figcaption) {
    color: var(--ac-muted);
    font-size: 1rem;
    line-height: 1.78;
  }

  :where(.ac-editor-content a:not(.wp-block-button__link):not(.ac-button)) {
    color: var(--ac-brand-dark);
    text-decoration-color: rgba(var(--ac-brand-rgb), 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  :where(.ac-editor-content a:not(.wp-block-button__link):not(.ac-button):hover) {
    color: var(--ac-brand);
  }

  .ac-editor-content :where(ul, ol) {
    padding-left: 1.35rem;
  }

  .ac-editor-content blockquote {
    margin-block: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--ac-brand);
    border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
    background: var(--ac-surface);
  }

  .ac-editor-content blockquote p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
  }

  .ac-editor-content :where(.wp-block-image, .wp-block-video, .wp-block-embed) {
    margin-block: 2rem;
  }

  .ac-editor-content img {
    height: auto;
    border-radius: var(--ac-radius);
  }

  .ac-editor-content .wp-block-separator {
    border-color: var(--ac-border);
  }
}

/* Forms. */
.ac-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ac-field--full {
  grid-column: 1 / -1;
}

.ac-field label {
  color: var(--ac-rich);
  font-size: 0.8rem;
  font-weight: 800;
}

.ac-input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.9rem;
  background: var(--ac-white);
  color: var(--ac-rich);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea.ac-input {
  min-height: 9rem;
  resize: vertical;
}

.ac-input:focus {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.12);
  outline: none;
}

@layer base {
  .ac-editor-content :where(input:not([type="submit"]), textarea, select) {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ac-border);
    border-radius: 0.9rem;
    background: var(--ac-white);
    color: var(--ac-rich);
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  .ac-editor-content textarea {
    min-height: 9rem;
    resize: vertical;
  }

  .ac-editor-content :where(input:not([type="submit"]), textarea, select):focus {
    border-color: var(--ac-brand);
    box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.12);
    outline: none;
  }
}

/* Shared accordion. Supports existing homepage classes and new ac-* classes. */
.accordion-group,
.ac-accordion {
  width: 100%;
}

.accordion-item,
.ac-accordion__item {
  border-bottom: 1px solid var(--ac-border);
}

.accordion-header,
.ac-accordion__trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ac-rich);
  cursor: pointer;
}

/*
 * CSS-grid rows animate without JavaScript measuring scrollHeight on every
 * frame. The global script only toggles .is-open/.active and ARIA state.
 */
.accordion-body,
.ac-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    grid-template-rows 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 150ms ease,
    visibility 0s linear 180ms;
}

.accordion-body > *,
.ac-accordion__panel > * {
  min-height: 0;
  overflow: hidden;
}

.accordion-item.is-open > .accordion-body,
.accordion-item.active > .accordion-body,
.ac-accordion__item.is-open > .ac-accordion__panel,
.ac-accordion__item.active > .ac-accordion__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    grid-template-rows 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 170ms ease,
    visibility 0s linear 0s;
}

/* Initial no-JS state. aethel-global.js removes hidden after preparation. */
.accordion-body[hidden],
.ac-accordion__panel[hidden] {
  display: none !important;
}

.accordion-item.active .accordion-icon,
.accordion-item.is-open .accordion-icon,
.ac-accordion__item.active .ac-accordion__icon,
.ac-accordion__item.is-open .ac-accordion__icon {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
}

.accordion-item.active .accordion-icon i,
.accordion-item.is-open .accordion-icon i,
.ac-accordion__item.active .ac-accordion__icon i,
.ac-accordion__item.is-open .ac-accordion__icon i {
  transform: rotate(180deg);
}

/* Dedicated FAQ component for Gutenberg and PHP template parts. */
.ac-faq {
  background: var(--ac-white);
}

.ac-faq__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.ac-faq__aside {
  position: sticky;
  top: calc(var(--ac-header-height, 80px) + 2rem);
}

.ac-faq__category + .ac-faq__category {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.ac-faq__category-head {
  margin-bottom: 1.5rem;
}

.ac-faq__category-title {
  margin: 0;
  color: var(--ac-rich);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ac-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.55rem 0;
  text-align: left;
}

.ac-faq__question {
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 750;
  line-height: 1.4;
  transition: color 160ms ease;
}

.ac-faq__trigger:hover .ac-faq__question,
.ac-faq__trigger:focus-visible .ac-faq__question,
.ac-accordion__item.is-open .ac-faq__question {
  color: var(--ac-brand);
}

.ac-faq__trigger:focus-visible {
  outline: 2px solid rgba(var(--ac-brand-rgb), 0.45);
  outline-offset: 7px;
}

.ac-faq__icon,
.ac-accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border: 1px solid var(--ac-border);
  border-radius: 999px;
  color: var(--ac-muted);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ac-faq__icon i,
.ac-accordion__icon i {
  font-size: 0.65rem;
  transition: transform 240ms ease;
}

.ac-faq__answer {
  max-width: 760px;
  padding: 0 3.8rem 1.8rem 0;
  color: var(--ac-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.78;
}

/* Accessible tabs for future Gutenberg components. */
.ac-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.ac-tabs__tab {
  padding: 0.8rem 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.8rem;
  background: var(--ac-white);
  color: var(--ac-muted);
  font-weight: 800;
  cursor: pointer;
}

.ac-tabs__tab[aria-selected="true"] {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
}

.ac-tabs__panel[hidden] {
  display: none;
}

/* Post cards, grids and pagination. */
.ac-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ac-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background: var(--ac-white);
  box-shadow: var(--ac-shadow-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ac-post-card:hover,
.ac-post-card:focus-within {
  border-color: rgba(var(--ac-brand-rgb), 0.48);
  box-shadow: 0 24px 56px rgba(var(--ac-brand-rgb), 0.11);
  transform: translateY(-5px);
}

.ac-post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ac-surface);
}

.ac-post-card__media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-post-card:hover .ac-post-card__media img {
  transform: scale(1.055);
}

.ac-post-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ac-brand);
  font-size: 2.6rem;
  background: linear-gradient(135deg, rgba(var(--ac-brand-rgb), 0.14), var(--ac-surface));
}

.ac-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.65rem;
}

.ac-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--ac-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-post-card__title {
  margin: 0;
  color: var(--ac-rich);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.ac-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.ac-post-card__excerpt {
  margin: 1rem 0 1.5rem;
  color: var(--ac-muted);
  line-height: 1.7;
}

.ac-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--ac-brand-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.ac-post-card__link i {
  transition: transform 160ms ease;
}

.ac-post-card__link:hover i {
  transform: translateX(3px);
}

/* the_posts_pagination() prints .navigation.pagination; .ac-pagination is the
   wrapper class used by custom pagination parts. Style both. */
.ac-pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ac-pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.8rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.8rem;
  background: var(--ac-white);
  color: var(--ac-rich);
  font-weight: 800;
  text-decoration: none;
}

.ac-pagination .page-numbers.current,
.ac-pagination a.page-numbers:hover,
.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
}

.ac-empty-state {
  padding: clamp(2.5rem, 7vw, 5rem);
  border: 1px dashed var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background: var(--ac-surface);
  text-align: center;
}

/* Native testimonial carousel for new shell pages. */
.ac-testimonials {
  position: relative;
}

.ac-carousel {
  position: relative;
}

.ac-carousel__track {
  display: grid;
  grid-auto-columns: minmax(290px, 0.72fr);
  grid-auto-flow: column;
  gap: 1rem;
  padding: 0.3rem 0.3rem 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ac-brand-rgb), 0.4) transparent;
}

.ac-carousel__track > * {
  scroll-snap-align: start;
}

.ac-testimonial-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  background: var(--ac-white);
  box-shadow: var(--ac-shadow-sm);
}

.ac-testimonial-card__quote {
  margin: 0 0 2rem;
  color: var(--ac-rich);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
}

.ac-testimonial-card__author {
  margin-top: auto;
  color: var(--ac-brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ac-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ac-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--ac-border);
  border-radius: 999px;
  background: var(--ac-white);
  color: var(--ac-rich);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ac-carousel__button:hover,
.ac-carousel__button:focus-visible {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
  outline: none;
}

.ac-carousel__button:disabled {
  cursor: default;
  opacity: 0.35;
}

/* Contact CTA. */
.ac-contact-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  border-radius: clamp(2rem, 5vw, 4rem);
  background: #0a0f1e;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10, 15, 30, 0.2);
}

.ac-contact-cta::before {
  position: absolute;
  top: -35%;
  right: -10%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--ac-brand-rgb), 0.16) 0%,
    rgba(var(--ac-brand-rgb), 0.06) 38%,
    transparent 72%
  );
  filter: none;
  content: "";
}

.ac-contact-cta__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin-inline: auto;
}

.ac-contact-cta__title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.ac-contact-cta__copy {
  max-width: 650px;
  margin: 1.5rem auto 2rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* Universal modal. */
.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  contain: layout style paint;
  transition:
    opacity 130ms ease,
    visibility 0s linear 150ms;
}

.ac-modal[hidden] {
  display: none !important;
}

.ac-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ac-modal.is-visible {
  opacity: 1;
}

.ac-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 15, 30, 0.58);
  opacity: 0;
  cursor: default;
  transition: opacity 130ms ease;
}

.ac-modal.is-visible .ac-modal__backdrop {
  opacity: 1;
}

.ac-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--ac-white);
  color: var(--ac-rich);
  box-shadow: 0 28px 80px rgba(10, 15, 30, 0.28);
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.985);
  transform-origin: 50% 55%;
  transition:
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 120ms ease;
}

.ac-modal.is-visible .ac-modal__dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.ac-modal.is-open .ac-modal__dialog {
  will-change: transform, opacity;
}

.ac-modal__dialog--sm { width: min(100%, 480px); }
.ac-modal__dialog--md { width: min(100%, 900px); }
.ac-modal__dialog--lg { width: min(100%, 1152px); }
.ac-modal__dialog--max { width: min(100%, 1440px); }

.ac-modal__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--ac-border);
  background: var(--ac-white);
}

.ac-modal__title {
  margin: 0;
  color: var(--ac-rich);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid var(--ac-border);
  border-radius: 999px;
  background: var(--ac-white);
  color: var(--ac-rich);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.ac-modal__close:hover,
.ac-modal__close:focus-visible {
  border-color: var(--ac-danger);
  background: var(--ac-danger);
  color: #ffffff;
  transform: scale(1.04);
  outline: none;
}

.ac-modal__stage {
  position: relative;
  max-height: calc(100dvh - 7rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Pause decorative work that is completely covered by an open modal. */
body.aethel-new-design.ac-modal-open :is(
  .marquee-content,
  .marquee-tech-track,
  .marquee-partners-track
) {
  animation-play-state: paused !important;
}

body.aethel-new-design.ac-modal-open #globeCanvas {
  visibility: hidden;
}

/* Back to top. */
.ac-back-to-top {
  position: fixed;
  right: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  z-index: 15000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 1rem;
  background: #0a0f1e;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(10, 15, 30, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease, background-color 180ms ease;
}

.ac-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ac-back-to-top:hover,
.ac-back-to-top:focus-visible {
  background: var(--ac-brand);
  transform: translateY(-3px);
  outline: none;
}

/* Aethel AI chat. */
.ac-ai-chat {
  display: flex;
  flex-direction: column;
  height: min(680px, 72vh);
  min-height: 520px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--ac-brand-rgb), 0.13), transparent 32%),
    var(--ac-white);
  color: var(--ac-rich);
}

.ac-ai-chat__welcome {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(var(--ac-brand-rgb), 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--ac-brand-rgb), 0.1), rgba(var(--ac-brand-rgb), 0.025));
}

.ac-ai-chat__welcome[hidden] { display: none; }

.ac-ai-chat__welcome-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  background: var(--ac-brand);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(var(--ac-brand-rgb), 0.24);
}

.ac-ai-chat__welcome-title {
  margin: 0 0 5px;
  color: var(--ac-rich);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.ac-ai-chat__welcome-copy {
  margin: 0;
  color: var(--ac-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.ac-ai-chat__response-time {
  margin: 7px 0 0;
  color: var(--ac-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-ai-chat__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ac-ai-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ac-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-ai-chat__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac-brand);
  box-shadow: 0 0 0 5px rgba(var(--ac-brand-rgb), 0.12);
}

.ac-ai-chat__reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ac-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease;
}

.ac-ai-chat__reset:hover,
.ac-ai-chat__reset:focus-visible {
  color: var(--ac-danger);
  outline: none;
}

.ac-ai-chat__messages {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--ac-border);
  border-radius: 22px;
  background: var(--ac-surface);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ac-brand-rgb), 0.45) transparent;
}

.ac-ai-chat__messages::-webkit-scrollbar { width: 7px; }
.ac-ai-chat__messages::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(var(--ac-brand-rgb), 0.45); }

.ac-ai-chat__message {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: min(82%, 620px);
  padding: 12px 15px 8px;
  border-radius: 18px;
  animation: acAiMessageEnter 220ms ease both;
}

.ac-ai-chat__message--restored {
  animation: none;
}

.ac-ai-chat__message--user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--ac-brand), var(--ac-brand-dark));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(var(--ac-brand-rgb), 0.18);
}

.ac-ai-chat__message--assistant {
  align-self: flex-start;
  border: 1px solid var(--ac-border);
  border-bottom-left-radius: 5px;
  background: var(--ac-white);
  color: var(--ac-rich);
  box-shadow: 0 10px 28px rgba(10, 15, 30, 0.05);
}

.ac-ai-chat__message-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ac-ai-chat__time {
  align-self: flex-end;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.58;
}

.ac-ai-chat__typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 58px;
  padding: 13px 15px;
  border: 1px solid var(--ac-border);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  background: var(--ac-white);
}

.ac-ai-chat__typing[hidden] { display: none; }

.ac-ai-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac-brand);
  animation: acAiTyping 1.25s infinite ease-in-out;
}

.ac-ai-chat__typing span:nth-child(2) { animation-delay: 140ms; }
.ac-ai-chat__typing span:nth-child(3) { animation-delay: 280ms; }

.ac-ai-chat__composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.ac-ai-chat__input {
  display: block;
  width: 100%;
  min-height: 54px;
  max-height: 140px;
  padding: 15px 17px;
  resize: none;
  border: 1px solid var(--ac-border);
  border-radius: 16px;
  background: var(--ac-white);
  color: var(--ac-rich);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ac-ai-chat__input::placeholder { color: var(--ac-muted); opacity: 0.72; }

.ac-ai-chat__input:focus {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.12);
  outline: none;
}

.ac-ai-chat__input:disabled { cursor: wait; opacity: 0.65; }

.ac-ai-chat__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #0a0f1e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.ac-ai-chat__send:hover,
.ac-ai-chat__send:focus-visible {
  background: var(--ac-brand);
  transform: translateY(-1px);
  outline: none;
}

.ac-ai-chat__send:disabled { cursor: wait; opacity: 0.6; transform: none; }

.ac-ai-chat__disclaimer {
  margin: 9px 0 0;
  color: var(--ac-muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

@keyframes acAiTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes acAiMessageEnter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer shell protection. Footer component details remain in aethel-header.css. */
.ac-site-footer {
  background: var(--ac-white);
  color: var(--ac-rich);
}

@media (max-width: 1023px) {
  .ac-grid--3,
  .ac-grid--4,
  .ac-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-faq__layout {
    grid-template-columns: 1fr;
  }

  .ac-faq__aside {
    position: static;
  }
}

@media (max-width: 767px) {
  .ac-container,
  .ac-container--content {
    width: min(calc(100% - 2rem), var(--ac-container));
  }

  @layer base {
    .ac-editor-content:not(.ac-editor-content--shell)
      > :where(:not(.alignwide):not(.alignfull):not(.ac-page-section):not(.ac-page-hero)),
    .ac-editor-content:not(.ac-editor-content--shell) > .alignwide,
    .ac-editor-content:not(.ac-editor-content--shell)
      > .wp-block-group.alignfull
      > .wp-block-group__inner-container,
    .ac-editor-content:not(.ac-editor-content--shell)
      > .wp-block-cover.alignfull
      > .wp-block-cover__inner-container {
      width: min(calc(100% - 2rem), var(--ac-container));
    }
  }

  .ac-grid--2,
  .ac-grid--3,
  .ac-grid--4,
  .ac-post-grid,
  .ac-form-grid {
    grid-template-columns: 1fr;
  }

  .ac-page-hero {
    min-height: 390px;
  }

  .ac-page-hero__watermark {
    font-size: 34vw;
  }

  .ac-faq__answer {
    padding-right: 0;
  }

  .ac-carousel__track {
    grid-auto-columns: 88%;
  }

  .ac-modal {
    align-items: flex-end;
    padding: 0.6rem;
  }

  .ac-modal__dialog {
    max-height: calc(100dvh - 1.2rem);
    border-radius: 1.5rem;
  }

  .ac-modal__header {
    min-height: 64px;
    padding: 0.8rem 1rem;
  }

  .ac-ai-chat {
    height: min(700px, 75vh);
    min-height: 460px;
    padding: 14px;
  }

  .ac-ai-chat__welcome { gap: 12px; padding: 14px; border-radius: 16px; }
  .ac-ai-chat__welcome-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .ac-ai-chat__messages { padding: 12px; border-radius: 17px; }
  .ac-ai-chat__message { max-width: 90%; }
  .ac-ai-chat__composer { gap: 8px; }
  .ac-ai-chat__send { width: 54px; min-width: 54px; padding: 0; }
  .ac-ai-chat__send [data-send-label] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================== 
   Article, metadata, sidebar and WordPress comments
   ========================================================================== */

.ac-article {
  padding-bottom: var(--ac-section-space);
}

.ac-article__header {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ac-border);
  background:
    radial-gradient(circle at 82% 8%, rgba(var(--ac-brand-rgb), 0.13), transparent 30%),
    linear-gradient(180deg, var(--ac-surface), var(--ac-white));
}

.ac-article__header .ac-eyebrow {
  margin-top: 1.75rem;
  text-decoration: none;
}

.ac-article__title {
  max-width: 900px;
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ac-article__lead {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--ac-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.7;
}

.ac-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  color: var(--ac-muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ac-post-meta__item i {
  color: var(--ac-brand);
}

.ac-article__featured {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.ac-article__featured img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--ac-shadow);
}

.ac-article__content {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.ac-prose {
  color: var(--ac-muted);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.85;
}

.ac-prose > * + * {
  margin-top: 1.5em;
}

.ac-prose :where(h2, h3, h4, h5, h6) {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ac-prose h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.ac-prose h3 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.ac-prose h4 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.ac-prose :where(a) {
  color: var(--ac-brand-dark);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.ac-prose :where(ul, ol) {
  padding-left: 1.35rem;
}

.ac-prose li + li {
  margin-top: 0.55rem;
}

.ac-prose blockquote {
  margin-inline: 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--ac-brand);
  border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
  background: var(--ac-surface);
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 1.15em;
  font-weight: 650;
}

.ac-prose :where(pre, code) {
  border-radius: 0.5rem;
  background: var(--ac-surface-strong);
}

.ac-prose pre {
  padding: 1.25rem;
  overflow-x: auto;
}

.ac-prose table {
  width: 100%;
  border-collapse: collapse;
}

.ac-prose :where(th, td) {
  padding: 0.85rem 1rem;
  border: 1px solid var(--ac-border);
  text-align: left;
}

.ac-article__footer {
  padding-top: 2.5rem;
}

.ac-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ac-border);
  color: var(--ac-muted);
  font-size: 0.85rem;
}

.ac-article__tags > span {
  color: var(--ac-rich);
  font-weight: 800;
}

.ac-article__tags a {
  color: var(--ac-brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.ac-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.ac-content-sidebar {
  display: grid;
  gap: 1.25rem;
}

.ac-sidebar-card {
  padding: 1.5rem;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
  box-shadow: var(--ac-shadow-sm);
}

.ac-sidebar-card__title {
  margin: 0 0 1rem;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.ac-sidebar-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ac-sidebar-list a {
  color: var(--ac-muted);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease;
}

.ac-sidebar-list a:hover,
.ac-sidebar-list a:focus-visible {
  color: var(--ac-brand);
  outline: none;
}

body.aethel-new-design .search-form {
  display: flex;
  gap: 0.55rem;
}

body.aethel-new-design .search-form label {
  flex: 1 1 auto;
}

body.aethel-new-design .search-field {
  width: 100%;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.75rem;
  background: var(--ac-surface);
  color: var(--ac-rich);
}

body.aethel-new-design .search-field:focus {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.12);
  outline: none;
}

body.aethel-new-design .search-submit {
  min-height: 46px;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--ac-rich);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

body.aethel-new-design .comments-area {
  width: min(calc(100% - 3rem), var(--ac-content));
  margin: clamp(3rem, 6vw, 6rem) auto 0;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--ac-border);
}

body.aethel-new-design .comments-title,
body.aethel-new-design .comment-reply-title {
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
}

body.aethel-new-design .comment-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

body.aethel-new-design .comment-body {
  padding: 1.5rem;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: var(--ac-surface);
}

body.aethel-new-design .comment-form {
  display: grid;
  gap: 1rem;
}

body.aethel-new-design .comment-form :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.85rem;
  background: var(--ac-white);
  color: var(--ac-rich);
}

body.aethel-new-design .comment-form :where(input, textarea):focus {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.12);
  outline: none;
}

body.aethel-new-design .form-submit .submit {
  min-height: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--ac-brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .ac-content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.aethel-new-design .comments-area {
    width: min(calc(100% - 2rem), var(--ac-content));
  }

  .ac-post-meta {
    gap: 0.65rem 1rem;
    letter-spacing: 0.035em;
  }
}

/* Gutenberg block-style controls exposed to editors. */
body.aethel-new-design .wp-block-group.is-style-aethel-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
  box-shadow: var(--ac-shadow-sm);
}

body.aethel-new-design .wp-block-group.is-style-aethel-section-light,
body.aethel-new-design .wp-block-group.is-style-aethel-section-dark {
  padding-block: var(--ac-section-space);
}

body.aethel-new-design .wp-block-group.is-style-aethel-section-light {
  background: var(--ac-surface);
}

body.aethel-new-design .wp-block-group.is-style-aethel-section-dark {
  background: #0a0f1e;
  color: #ffffff;
}

body.aethel-new-design .wp-block-group.is-style-aethel-section-dark :where(h1, h2, h3, h4, h5, h6) {
  color: #ffffff;
}

body.aethel-new-design .wp-block-group.is-style-aethel-section-dark :where(p, li) {
  color: rgba(255, 255, 255, 0.7);
}

body.aethel-new-design .wp-block-button.is-style-aethel-dark .wp-block-button__link {
  background: #0a0f1e;
  color: #ffffff;
}

body.aethel-new-design .wp-block-button.is-style-aethel-outline .wp-block-button__link {
  border: 2px solid var(--ac-rich);
  background: transparent;
  color: var(--ac-rich);
}

body.aethel-new-design .wp-block-button.is-style-aethel-outline .wp-block-button__link:hover {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
}

body.aethel-new-design .wp-block-quote.is-style-aethel-brand-quote {
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--ac-brand);
  border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
  background: var(--ac-surface);
}

/* AETHEL_TAILWIND_WORDPRESS_BRIDGE */
/* ========================================================================== 
   Tailwind utility and WordPress global-style compatibility

   WordPress theme.json prints unlayered heading/link colours. The compiled
   Tailwind file uses cascade layers, so theme.json can otherwise override
   classes such as text-white, text-black/[0.03], bg-surface and border-brand.
   These scoped declarations restore the intended utility contract only on
   pages using the Aethel shell.
   ========================================================================== */

/*
 * The public redesign is intentionally light-only for now. The old theme
 * controller may still leave localStorage/theme attributes behind, so the
 * new shell neutralises the experimental inversion mode without touching
 * legacy Bootstrap pages where this stylesheet is not loaded.
 */
html[data-ac-theme],
html[data-bs-theme] {
  --ac-rich: #0a0f1e;
  --ac-muted: #687083;
  --ac-border: #e7e9ef;
  --ac-surface: #f7f8fb;
  --ac-surface-strong: #eef1f6;
  --ac-white: #ffffff;
  --ac-header-bg: rgba(255, 255, 255, 0.86);
  --ac-panel-bg: rgba(255, 255, 255, 0.99);
  --ac-brand-soft: rgba(81, 200, 94, 0.08);
  --ac-brand-soft-strong: rgba(81, 200, 94, 0.14);
  --ac-brand-border: rgba(81, 200, 94, 0.28);
  --ac-shadow-sm: 0 12px 32px rgba(10, 15, 30, 0.06);
  --ac-shadow: 0 24px 70px rgba(10, 15, 30, 0.11);
  color-scheme: light !important;
  filter: none !important;
  background-color: #ffffff !important;
}

body.aethel-new-design,
body.aethel-new-design.dark-theme {
  background-color: #fafafa !important;
  color: #0a0f1e;
  filter: none !important;
}

/* Stable Tailwind colour tokens outside the generated cascade layer. */
body.aethel-new-design {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-brand: #51c85e;
  --color-brandDark: #3da84a;
  --color-surface: #fafafa;
  --color-rich: #0f172a;
  --color-muted: #64748b;
  --color-border: rgba(15, 23, 42, 0.08);
}

/* Text colours. */
body.aethel-new-design .text-white { color: #ffffff !important; }
body.aethel-new-design .text-white\/40 { color: rgba(255, 255, 255, 0.40) !important; }
body.aethel-new-design .text-white\/50 { color: rgba(255, 255, 255, 0.50) !important; }
body.aethel-new-design .text-white\/60 { color: rgba(255, 255, 255, 0.60) !important; }
body.aethel-new-design .text-white\/70 { color: rgba(255, 255, 255, 0.70) !important; }
body.aethel-new-design .text-white\/\[0\.02\] { color: rgba(255, 255, 255, 0.02) !important; }

body.aethel-new-design .text-black\/\[0\.02\] { color: rgba(0, 0, 0, 0.02) !important; }
body.aethel-new-design .text-black\/\[0\.03\] { color: rgba(0, 0, 0, 0.03) !important; }

body.aethel-new-design .text-brand { color: #51c85e !important; }
body.aethel-new-design .text-brand\/40 { color: rgba(81, 200, 94, 0.40) !important; }
body.aethel-new-design .text-rich { color: #0f172a !important; }
body.aethel-new-design .text-muted { color: #64748b !important; }
body.aethel-new-design .text-muted\/30 { color: rgba(100, 116, 139, 0.30) !important; }
body.aethel-new-design .text-muted\/60 { color: rgba(100, 116, 139, 0.60) !important; }
body.aethel-new-design .text-\[\#4A154B\] { color: #4a154b !important; }

/* The project currently uses text-md as a semantic middle size. */
body.aethel-new-design .text-md {
  font-size: 1rem;
  line-height: 1.5rem;
}

/*
 * Gutenberg Shell typography bridge.
 *
 * WordPress theme.json outputs unlayered heading typography (weight,
 * line-height and letter-spacing). Tailwind v4 utilities are layered, so
 * those WordPress declarations can otherwise win the cascade.
 *
 * Keep this bridge scoped to the Gutenberg shell only. We intentionally do
 * NOT make the entire Tailwind build `important`, because that could change
 * the completed homepage/header/component CSS.
 */
body.aethel-new-design .ac-editor-content--shell .font-normal {
  font-weight: 400 !important;
}

body.aethel-new-design .ac-editor-content--shell .font-medium {
  font-weight: 500 !important;
}

body.aethel-new-design .ac-editor-content--shell .font-semibold {
  font-weight: 600 !important;
}

body.aethel-new-design .ac-editor-content--shell .font-bold {
  font-weight: 700 !important;
}

body.aethel-new-design .ac-editor-content--shell .font-extrabold {
  font-weight: 800 !important;
}

body.aethel-new-design .ac-editor-content--shell .font-black {
  font-weight: 900 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-none {
  line-height: 1 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-tight {
  line-height: 1.25 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-snug {
  line-height: 1.375 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-normal {
  line-height: 1.5 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-relaxed {
  line-height: 1.625 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-loose {
  line-height: 2 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-\[0\.95\] {
  line-height: 0.95 !important;
}

body.aethel-new-design .ac-editor-content--shell .leading-\[0\.98\] {
  line-height: 0.98 !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-tighter {
  letter-spacing: -0.05em !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-tight {
  letter-spacing: -0.025em !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-normal {
  letter-spacing: 0 !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-wide {
  letter-spacing: 0.025em !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-wider {
  letter-spacing: 0.05em !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-widest {
  letter-spacing: 0.1em !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-\[0\.25em\] {
  letter-spacing: 0.25em !important;
}

body.aethel-new-design .ac-editor-content--shell .tracking-\[0\.3em\] {
  letter-spacing: 0.3em !important;
}

/*
 * theme.json assigns a direct colour to headings and links. When a dark card
 * sets text-white on its parent, children without their own colour utility
 * must inherit that parent colour rather than the global heading/link colour.
 */
body.aethel-new-design .text-white :where(h1, h2, h3, h4, h5, h6):not(.text-brand):not(.text-rich):not(.text-muted),
body.aethel-new-design .text-white :where(a, button):not(.text-brand):not(.text-rich):not(.text-muted) {
  color: inherit !important;
}

/* Background colours and translucent surfaces. */
body.aethel-new-design .bg-white { background-color: #ffffff !important; }
body.aethel-new-design .bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
body.aethel-new-design .bg-white\/20 { background-color: rgba(255, 255, 255, 0.20) !important; }
body.aethel-new-design .bg-white\/60 { background-color: rgba(255, 255, 255, 0.60) !important; }
body.aethel-new-design .bg-black { background-color: #000000 !important; }
body.aethel-new-design .bg-black\/\[0\.03\] { background-color: rgba(0, 0, 0, 0.03) !important; }
body.aethel-new-design .bg-brand { background-color: #51c85e !important; }
body.aethel-new-design .bg-brand\/5 { background-color: rgba(81, 200, 94, 0.05) !important; }
body.aethel-new-design .bg-brand\/10 { background-color: rgba(81, 200, 94, 0.10) !important; }
body.aethel-new-design .bg-brand\/20 { background-color: rgba(81, 200, 94, 0.20) !important; }
body.aethel-new-design .bg-rich { background-color: #0f172a !important; }
body.aethel-new-design .bg-rich\/20 { background-color: rgba(15, 23, 42, 0.20) !important; }
body.aethel-new-design .bg-rich\/40 { background-color: rgba(15, 23, 42, 0.40) !important; }
body.aethel-new-design .bg-surface { background-color: #fafafa !important; }
body.aethel-new-design .bg-slate-50 { background-color: #f8fafc !important; }
body.aethel-new-design .bg-slate-50\/50 { background-color: rgba(248, 250, 252, 0.50) !important; }
body.aethel-new-design .bg-slate-100 { background-color: #f1f5f9 !important; }
body.aethel-new-design .bg-slate-800 { background-color: #1e293b !important; }
body.aethel-new-design .bg-\[\#F9F9F9\] { background-color: #f9f9f9 !important; }
body.aethel-new-design .bg-\[\#FAFAFA\] { background-color: #fafafa !important; }

/* Borders. */
body.aethel-new-design .border-border { border-color: rgba(15, 23, 42, 0.08) !important; }
body.aethel-new-design .border-brand { border-color: #51c85e !important; }
body.aethel-new-design .border-brand\/10 { border-color: rgba(81, 200, 94, 0.10) !important; }
body.aethel-new-design .border-brand\/20 { border-color: rgba(81, 200, 94, 0.20) !important; }
body.aethel-new-design .border-brand\/30 { border-color: rgba(81, 200, 94, 0.30) !important; }
body.aethel-new-design .border-rich { border-color: #0f172a !important; }
body.aethel-new-design .border-black\/5 { border-color: rgba(0, 0, 0, 0.05) !important; }
body.aethel-new-design .border-white\/5 { border-color: rgba(255, 255, 255, 0.05) !important; }
body.aethel-new-design .border-white\/10 { border-color: rgba(255, 255, 255, 0.10) !important; }
body.aethel-new-design .border-white\/20 { border-color: rgba(255, 255, 255, 0.20) !important; }
body.aethel-new-design .border-white\/30 { border-color: rgba(255, 255, 255, 0.30) !important; }

/* Gradient edge masks. */
body.aethel-new-design .from-white {
  --tw-gradient-from: #ffffff !important;
  --tw-gradient-to: rgba(255, 255, 255, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
body.aethel-new-design .to-transparent { --tw-gradient-to: transparent !important; }
body.aethel-new-design .bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}
body.aethel-new-design .bg-gradient-to-l {
  background-image: linear-gradient(to left, var(--tw-gradient-stops)) !important;
}

/* Shadow colour modifiers. */
body.aethel-new-design .shadow-black\/20 { --tw-shadow-color: rgba(0, 0, 0, 0.20) !important; }
body.aethel-new-design .shadow-black\/\[0\.02\] { --tw-shadow-color: rgba(0, 0, 0, 0.02) !important; }
body.aethel-new-design .shadow-black\/\[0\.03\] { --tw-shadow-color: rgba(0, 0, 0, 0.03) !important; }
body.aethel-new-design .shadow-brand\/20 { --tw-shadow-color: rgba(81, 200, 94, 0.20) !important; }
body.aethel-new-design .shadow-brand\/30 { --tw-shadow-color: rgba(81, 200, 94, 0.30) !important; }
body.aethel-new-design .decoration-brand\/30 { text-decoration-color: rgba(81, 200, 94, 0.30) !important; }

/* Hover and group-hover utility colours. */
body.aethel-new-design .hover\:bg-brand:hover { background-color: #51c85e !important; }
body.aethel-new-design .hover\:bg-brandDark:hover { background-color: #3da84a !important; }
body.aethel-new-design .hover\:bg-rich:hover { background-color: #0f172a !important; }
body.aethel-new-design .hover\:bg-white:hover { background-color: #ffffff !important; }
body.aethel-new-design .hover\:bg-slate-50\/30:hover { background-color: rgba(248, 250, 252, 0.30) !important; }
body.aethel-new-design .hover\:border-brand:hover { border-color: #51c85e !important; }
body.aethel-new-design .hover\:text-rich:hover { color: #0f172a !important; }
body.aethel-new-design .hover\:text-white:hover { color: #ffffff !important; }

body.aethel-new-design .group:hover .group-hover\:bg-brand { background-color: #51c85e !important; }
body.aethel-new-design .group:hover .group-hover\:bg-rich\/0 { background-color: rgba(15, 23, 42, 0) !important; }
body.aethel-new-design .group:hover .group-hover\:border-brand { border-color: #51c85e !important; }
body.aethel-new-design .group:hover .group-hover\:text-brand { color: #51c85e !important; }
body.aethel-new-design .group:hover .group-hover\:text-white { color: #ffffff !important; }

@media (min-width: 1024px) {
  body.aethel-new-design .lg\:bg-black\/\[0\.00\] { background-color: rgba(0, 0, 0, 0) !important; }
  body.aethel-new-design .lg\:hover\:bg-black\/\[0\.03\]:hover { background-color: rgba(0, 0, 0, 0.03) !important; }
}

/* ========================================================================== 
   FAQ page — homepage accordion visual language
   ========================================================================== */

body.aethel-new-design #faq-page.ac-faq-page {
  width: 100%;
  overflow: clip;
  background: #ffffff;
  color: var(--ac-rich);
}

.ac-faq-page__hero {
  position: relative;
  display: grid;
  min-height: clamp(430px, 52vw, 600px);
  place-items: center;
  padding: clamp(6.5rem, 11vw, 10rem) 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--ac-border);
  background-color: #fafafa;
  background-image: radial-gradient(
    circle,
    rgba(15, 23, 42, 0.12) 1.2px,
    transparent 1.35px
  );
  background-position: 0 0;
  background-size: 32px 32px;
}

.ac-faq-page__hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.04) 0,
      rgba(250, 250, 250, 0.32) 52%,
      rgba(250, 250, 250, 0.84) 100%
    );
  content: "";
  pointer-events: none;
}

.ac-faq-page__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: rgba(15, 23, 42, 0.025);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(12rem, 28vw, 34rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.08em;
  white-space: nowrap;
  user-select: none;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

.ac-faq-page__hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin-inline: auto;
  text-align: center;
}

.ac-faq-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ac-rich);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ac-faq-page__badge-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  border-radius: 999px;
  background: var(--ac-brand);
  box-shadow: 0 0 0 5px rgba(var(--ac-brand-rgb), 0.12);
}

.ac-faq-page__title {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(3rem, 7.6vw, 7rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.ac-faq-page__title-accent {
  color: var(--ac-brand);
}

.ac-faq-page__lead {
  max-width: 700px;
  margin: 1.75rem auto 0;
  color: var(--ac-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.75;
  text-wrap: balance;
}

.ac-faq-page__main {
  padding-block: clamp(5.5rem, 9vw, 9rem);
  background: #ffffff;
}

.ac-faq-page__layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3.5rem, 8vw, 7.5rem);
  align-items: start;
  width: min(calc(100% - 3rem), 1280px);
  margin-inline: auto;
}

.ac-faq-page__aside {
  position: sticky;
  top: calc(var(--ac-header-height, 80px) + 2.5rem);
}

.ac-faq-page__aside-eyebrow,
.ac-faq-category__eyebrow {
  display: block;
  margin: 0 0 1rem;
  color: var(--ac-brand);
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ac-faq-page__aside-title {
  max-width: 470px;
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ac-faq-page__aside-copy {
  max-width: 480px;
  margin: 1.5rem 0 0;
  color: var(--ac-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.ac-faq-page__support {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(var(--ac-brand-rgb), 0.14);
  border-radius: 1.5rem;
  background: rgba(var(--ac-brand-rgb), 0.05);
}

.ac-faq-page__support-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.ac-faq-page__support-copy {
  margin: 0 0 1.15rem;
  color: var(--ac-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.65;
}

.ac-faq-page__support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ac-brand-dark);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.ac-faq-page__support-link:hover,
.ac-faq-page__support-link:focus-visible {
  color: var(--ac-rich);
  transform: translateX(2px);
  outline: none;
}

.ac-faq-page__groups {
  min-width: 0;
}

.ac-faq-category + .ac-faq-category {
  margin-top: clamp(4rem, 7vw, 6.5rem);
}

.ac-faq-category__header {
  margin-bottom: 0.75rem;
}

.ac-faq-category__title {
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.ac-faq-page .accordion-item,
.ac-faq-page .ac-accordion__item,
.ac-faq-row {
  position: relative;
  border-bottom: 1px solid var(--ac-border);
  background: transparent;
}

.ac-faq-page .accordion-item > h3,
.ac-faq-page .ac-accordion__item > h3,
.ac-faq-row > h3 {
  margin: 0;
}

.ac-faq-page .accordion-header,
.ac-faq-page .ac-accordion__trigger,
.ac-faq-row__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.55rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ac-rich);
  text-align: left;
  cursor: pointer;
}

.ac-faq-row__question,
.ac-faq-page .ac-faq__question {
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.022em;
  transition: color 180ms ease;
}

.ac-faq-page .accordion-header:hover .ac-faq-row__question,
.ac-faq-page .accordion-header:focus-visible .ac-faq-row__question,
.ac-faq-page .ac-accordion__trigger:hover .ac-faq-row__question,
.ac-faq-page .ac-accordion__trigger:focus-visible .ac-faq-row__question,
.ac-faq-page .accordion-item.is-open .ac-faq-row__question,
.ac-faq-page .accordion-item.active .ac-faq-row__question,
.ac-faq-page .ac-accordion__item.is-open .ac-faq-row__question,
.ac-faq-page .ac-accordion__item.active .ac-faq-row__question {
  color: var(--ac-brand);
}

.ac-faq-page .accordion-header:focus-visible,
.ac-faq-page .ac-accordion__trigger:focus-visible,
.ac-faq-row__trigger:focus-visible {
  outline: 2px solid rgba(var(--ac-brand-rgb), 0.42);
  outline-offset: 7px;
}

.ac-faq-page .accordion-icon,
.ac-faq-page .ac-accordion__icon,
.ac-faq-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  border: 1px solid var(--ac-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ac-muted);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ac-faq-page .accordion-header:hover .accordion-icon,
.ac-faq-page .accordion-header:focus-visible .accordion-icon,
.ac-faq-page .ac-accordion__trigger:hover .ac-accordion__icon,
.ac-faq-page .ac-accordion__trigger:focus-visible .ac-accordion__icon {
  border-color: var(--ac-brand);
  color: var(--ac-brand);
}

.ac-faq-page .accordion-item.is-open .accordion-icon,
.ac-faq-page .accordion-item.active .accordion-icon,
.ac-faq-page .ac-accordion__item.is-open .ac-accordion__icon,
.ac-faq-page .ac-accordion__item.active .ac-accordion__icon {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
}

.ac-faq-page .accordion-icon i,
.ac-faq-page .ac-accordion__icon i,
.ac-faq-row__icon i {
  font-size: 0.625rem;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-faq-page .accordion-body,
.ac-faq-page .ac-accordion__panel,
.ac-faq-row__panel {
  overflow: hidden;
}

.ac-faq-page .accordion-body[hidden],
.ac-faq-page .ac-accordion__panel[hidden],
.ac-faq-row__panel[hidden] {
  display: grid;
}

.ac-faq-row__answer,
.ac-faq-page .ac-faq__answer {
  max-width: 760px;
  padding: 0 3.8rem 1.85rem 0;
  color: var(--ac-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.78;
}

@media (max-width: 1023px) {
  .ac-faq-page__layout {
    grid-template-columns: 1fr;
    gap: 4rem;
    width: min(calc(100% - 3rem), 900px);
  }

  .ac-faq-page__aside {
    position: static;
    max-width: 700px;
  }

  .ac-faq-page__aside-title {
    max-width: 650px;
  }
}

@media (max-width: 639px) {
  .ac-faq-page__hero {
    min-height: 430px;
    padding: 6rem 1rem 5rem;
    background-size: 26px 26px;
  }

  .ac-faq-page__badge {
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    letter-spacing: 0.18em;
  }

  .ac-faq-page__title {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .ac-faq-page__lead {
    font-size: 0.98rem;
  }

  .ac-faq-page__main {
    padding-block: 4.75rem;
  }

  .ac-faq-page__layout {
    width: min(calc(100% - 2rem), 900px);
    gap: 3.5rem;
  }

  .ac-faq-page__support {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .ac-faq-category + .ac-faq-category {
    margin-top: 3.75rem;
  }

  .ac-faq-category__header {
    margin-bottom: 0.5rem;
  }

  .ac-faq-page .accordion-header,
  .ac-faq-page .ac-accordion__trigger,
  .ac-faq-row__trigger {
    gap: 1rem;
    padding: 1.3rem 0;
  }

  .ac-faq-row__question,
  .ac-faq-page .ac-faq__question {
    font-size: 1rem;
    line-height: 1.45;
  }

  .ac-faq-page .accordion-icon,
  .ac-faq-page .ac-accordion__icon,
  .ac-faq-row__icon {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }

  .ac-faq-row__answer,
  .ac-faq-page .ac-faq__answer {
    padding-right: 0;
    padding-bottom: 1.55rem;
    font-size: 0.95rem;
  }
}



/* ==========================================================================
   Runtime performance safeguards
   ========================================================================== */

/* The global dotted grid remains visible without fixed-background repainting. */
.grid-bg,
body.aethel-new-design.grid-bg {
  background-attachment: scroll !important;
}

/* Modals animate only opacity and transform. Full-screen backdrop blur is
   deliberately disabled because it repaints every pixel behind the dialog. */
.ac-modal__backdrop,
.ac-modal [class*="backdrop-blur"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.ac-modal__dialog {
  transform-origin: center center;
  -webkit-font-smoothing: antialiased;
}

.ac-modal__stage {
  -webkit-overflow-scrolling: touch;
}

/* Pause only known continuous decorative animations while a modal is active.
   Avoid a universal `*` selector here: toggling it across a long homepage can
   itself trigger a large style recalculation just as the modal is opening. */
body.ac-modal-open :is(
  .marquee-content,
  .marquee-tech-track,
  .marquee-partners-track,
  .animate-ping
) {
  animation-play-state: paused !important;
}

/* CSS-grid accordion transitions avoid scrollHeight reads and JS height
   animation. The inner content is clipped by the zero-height grid track. */
.accordion-group[data-ac-accordion-ready="true"] .accordion-body,
.ac-accordion[data-ac-accordion-ready="true"] .ac-accordion__panel {
  display: grid !important;
}

.accordion-group[data-ac-accordion-ready="true"] .accordion-body.hidden,
.ac-accordion[data-ac-accordion-ready="true"] .ac-accordion__panel.hidden {
  display: grid !important;
}

/* Static translucent surfaces are cheaper than live backdrop filters and keep
   the same light glass appearance. */
.ac-faq-page__badge {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 1023px) {
  .ac-modal {
    padding: 0.75rem;
  }

  .ac-modal__dialog {
    contain: layout;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-body,
  .ac-accordion__panel,
  .accordion-icon i,
  .ac-accordion__icon i,
  .ac-faq-row__icon i {
    transition: none !important;
  }
}
/* ========================================================================== 
   Reusable Aethel Cortex page components
   Append this file to the END of assets/css/aethel-global.css.

   These components are intentionally generic. They can be reused for About,
   Services, Industries, Team, Careers and campaign landing pages.
   ========================================================================== */

.ac-text-brand {
  color: var(--ac-brand) !important;
}

.ac-section-intro {
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

/* Split hero ------------------------------------------------------------- */
.ac-split-hero {
  min-height: clamp(660px, 86vh, 900px);
  padding-block: clamp(5.5rem, 10vw, 9rem);
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--ac-brand-rgb), 0.13), transparent 30%),
    linear-gradient(180deg, rgba(247, 248, 251, 0.92), var(--ac-white));
}

.ac-split-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(
    circle,
    rgba(15, 23, 42, 0.105) 1px,
    transparent 1.2px
  );
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

.ac-split-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.4) 48%,
    rgba(255, 255, 255, 0.08) 100%
  );
  content: "";
  pointer-events: none;
}

.ac-split-hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  color: rgba(10, 15, 30, 0.025);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(9rem, 22vw, 24rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.09em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.ac-split-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.ac-split-hero__copy,
.ac-split-hero__visual {
  min-width: 0;
}

.ac-split-hero__title {
  max-width: 820px;
  font-size: clamp(3.25rem, 7vw, 7rem);
  line-height: 0.94;
}

.ac-split-hero .ac-page-lead {
  max-width: 720px;
}

.ac-hero-actions {
  margin-top: 2rem;
}

.ac-hero-actions .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.ac-hero-actions .wp-block-button,
.ac-hero-actions .wp-block-button__link {
  margin: 0;
}

.ac-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ac-border);
}

.ac-hero-proof__item {
  min-width: 0;
  padding-right: 1.25rem;
}

.ac-hero-proof__item + .ac-hero-proof__item {
  padding-left: 1.25rem;
  border-left: 1px solid var(--ac-border);
}

.ac-editor-content .ac-hero-proof__value,
.ac-hero-proof__value {
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.ac-hero-proof__value span {
  color: var(--ac-brand);
}

.ac-editor-content .ac-hero-proof__label,
.ac-hero-proof__label {
  margin: 0.55rem 0 0;
  color: var(--ac-muted);
  font-size: 0.63rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ac-split-hero__visual {
  position: relative;
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 4vw, 3rem);
}

.ac-visual-card {
  position: relative;
  min-height: 560px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--ac-shadow);
}

.ac-visual-card--dark {
  background:
    radial-gradient(circle at 78% 16%, rgba(var(--ac-brand-rgb), 0.16), transparent 32%),
    #0a0f1e;
  color: #ffffff;
}

.ac-visual-card::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.ac-editor-content .ac-visual-card__eyebrow,
.ac-visual-card__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ac-brand);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ac-visual-card__image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  margin: 1.5rem 0 1rem !important;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.045);
}

.ac-visual-card__image img {
  width: min(100%, 360px);
  max-height: 330px;
  border-radius: 0 !important;
  object-fit: contain;
}

.ac-visual-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ac-editor-content .ac-visual-card__footer p,
.ac-visual-card__footer p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.6;
}

.ac-status-orb {
  position: relative;
  display: inline-flex;
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ac-brand);
  box-shadow: 0 0 0 0.5rem rgba(var(--ac-brand-rgb), 0.12);
}

.ac-floating-note {
  position: absolute;
  right: clamp(-1.5rem, -2vw, -0.5rem);
  bottom: 0;
  z-index: 3;
  width: min(270px, 70%);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--ac-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 55px rgba(10, 15, 30, 0.14);
}

.ac-editor-content .ac-floating-note__label,
.ac-floating-note__label {
  margin: 0 0 0.35rem;
  color: var(--ac-brand);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ac-editor-content .ac-floating-note__value,
.ac-floating-note__value {
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

/* Logo cloud ------------------------------------------------------------- */
.ac-trust-cloud {
  border-top: 1px solid var(--ac-border);
  border-bottom: 1px solid var(--ac-border);
}

.ac-editor-content .ac-trust-cloud__label,
.ac-trust-cloud__label {
  margin: 0 0 2rem;
  color: var(--ac-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ac-logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ac-logo-cloud__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin: 0 !important;
  padding: 1.25rem;
  border: 1px solid var(--ac-border);
  border-radius: 1.25rem;
  background: var(--ac-white);
  transition: border-color 180ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.ac-logo-cloud__item img {
  width: auto;
  max-width: 100%;
  max-height: 34px;
  border-radius: 0 !important;
  filter: grayscale(1);
  opacity: 0.48;
  object-fit: contain;
  transition: filter 220ms ease, opacity 220ms ease;
}

.ac-logo-cloud__item:hover,
.ac-logo-cloud__item:focus-within {
  border-color: rgba(var(--ac-brand-rgb), 0.42);
  box-shadow: 0 15px 38px rgba(10, 15, 30, 0.06);
  transform: translateY(-3px);
}

.ac-logo-cloud__item:hover img,
.ac-logo-cloud__item:focus-within img {
  filter: grayscale(0);
  opacity: 1;
}

/* Story and founder ------------------------------------------------------ */
.ac-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.ac-story-copy {
  min-width: 0;
}

.ac-story-copy .ac-section-copy + .ac-section-copy {
  margin-top: 1rem;
}

.ac-story-principles {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ac-border);
}

.ac-story-principle {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--ac-border);
}

.ac-editor-content .ac-story-principle__index,
.ac-story-principle__index {
  margin: 0;
  color: var(--ac-brand);
  font-family: Sora, Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.ac-editor-content .ac-story-principle__title,
.ac-story-principle__title {
  margin: 0 0 0.45rem;
  color: var(--ac-rich);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.ac-editor-content .ac-story-principle p:not(.ac-story-principle__index),
.ac-story-principle p:not(.ac-story-principle__index) {
  margin: 0;
  color: var(--ac-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.ac-founder-card {
  position: sticky;
  top: calc(var(--ac-header-height, 80px) + 2rem);
  overflow: hidden;
  border-radius: clamp(2rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 90% 8%, rgba(var(--ac-brand-rgb), 0.18), transparent 30%),
    #0a0f1e;
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(10, 15, 30, 0.2);
}

.ac-founder-card__media {
  position: relative;
  height: clamp(340px, 40vw, 520px);
  margin: 0 !important;
  overflow: hidden;
  border-radius: 0;
  background: #182033;
}

.ac-founder-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, #0a0f1e);
  content: "";
  pointer-events: none;
}

.ac-founder-card__media img {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-founder-card:hover .ac-founder-card__media img {
  filter: grayscale(0);
  transform: scale(1.025);
}

.ac-founder-card__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.ac-editor-content .ac-founder-card__eyebrow,
.ac-founder-card__eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ac-brand);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ac-editor-content .ac-founder-card__title,
.ac-founder-card__title {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

.ac-editor-content .ac-founder-card__role,
.ac-founder-card__role {
  margin: 0.35rem 0 1.2rem;
  color: var(--ac-brand);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-editor-content .ac-founder-card__copy,
.ac-founder-card__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.93rem;
  line-height: 1.75;
}

.ac-founder-card__badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-editor-content .ac-founder-card__badge-value,
.ac-founder-card__badge-value {
  margin: 0;
  color: #ffffff;
  font-family: Sora, Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.ac-founder-card__badge-value span {
  color: var(--ac-brand);
}

.ac-editor-content .ac-founder-card__badge-label,
.ac-founder-card__badge-label {
  max-width: 190px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Reusable bento capability cards --------------------------------------- */
.ac-capability-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.ac-capability-card {
  position: relative;
  display: flex;
  min-height: 400px;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: clamp(1.75rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--ac-brand-rgb), 0.11), transparent 34%),
    var(--ac-white);
  box-shadow: 0 16px 45px rgba(10, 15, 30, 0.045);
  transition: border-color 200ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-capability-card--wide {
  grid-column: span 7;
}

.ac-capability-card--compact {
  grid-column: span 5;
}

.ac-capability-card--dark {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--ac-brand-rgb), 0.14), transparent 33%),
    #0a0f1e;
  color: #ffffff;
  box-shadow: 0 24px 65px rgba(10, 15, 30, 0.16);
}

.ac-capability-card:hover,
.ac-capability-card:focus-within {
  border-color: rgba(var(--ac-brand-rgb), 0.65);
  box-shadow: 0 28px 65px rgba(var(--ac-brand-rgb), 0.1);
  transform: translateY(-6px);
}

.ac-capability-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: auto;
}

.ac-capability-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 !important;
}

.ac-capability-card__icon img {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: contain;
}

.ac-editor-content .ac-capability-card__number,
.ac-capability-card__number {
  margin: 0;
  color: rgba(10, 15, 30, 0.1);
  font-family: Sora, Inter, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.ac-capability-card--dark .ac-capability-card__number {
  color: rgba(255, 255, 255, 0.1);
}

.ac-editor-content .ac-capability-card__title,
.ac-capability-card__title {
  margin: clamp(3rem, 8vw, 6rem) 0 0.9rem;
  color: var(--ac-rich);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.ac-editor-content .ac-capability-card__copy,
.ac-capability-card__copy {
  max-width: 620px;
  margin: 0;
  color: var(--ac-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ac-capability-card--dark .ac-capability-card__title,
.ac-editor-content .ac-capability-card--dark .ac-capability-card__title {
  color: #ffffff !important;
}

.ac-capability-card--dark .ac-capability-card__copy,
.ac-editor-content .ac-capability-card--dark .ac-capability-card__copy {
  color: rgba(255, 255, 255, 0.58) !important;
}

.ac-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.ac-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.65rem;
  background: var(--ac-surface);
  color: var(--ac-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-capability-card--dark .ac-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
}

.ac-editor-content .ac-capability-card__link,
.ac-capability-card__link {
  margin: 1.75rem 0 0;
}

.ac-capability-card__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ac-brand-dark) !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.ac-capability-card--dark .ac-capability-card__link a {
  color: var(--ac-brand) !important;
}

.ac-capability-card__link span {
  transition: transform 160ms ease;
}

.ac-capability-card__link a:hover span,
.ac-capability-card__link a:focus-visible span {
  transform: translateX(3px);
}

/* Metrics panel ---------------------------------------------------------- */
.ac-metrics-panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 15% 110%, rgba(var(--ac-brand-rgb), 0.2), transparent 32%),
    #0a0f1e;
  box-shadow: 0 30px 80px rgba(10, 15, 30, 0.2);
}

.ac-metrics-panel__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.025);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.09em;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.ac-metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ac-metric {
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.ac-metric + .ac-metric {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-editor-content .ac-metric__value,
.ac-metric__value {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.ac-metric__value span {
  color: var(--ac-brand);
}

.ac-editor-content .ac-metric__label,
.ac-metric__label {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Partnership accordion ------------------------------------------------- */
.ac-partnership-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.ac-partnership-aside {
  position: sticky;
  top: calc(var(--ac-header-height, 80px) + 2rem);
}

.ac-partnership-callout {
  margin-top: 2rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(var(--ac-brand-rgb), 0.22);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--ac-brand-rgb), 0.14), transparent 38%),
    rgba(var(--ac-brand-rgb), 0.055);
}

.ac-editor-content .ac-partnership-callout__label,
.ac-partnership-callout__label {
  margin: 0 0 0.45rem;
  color: var(--ac-brand);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ac-editor-content .ac-partnership-callout__copy,
.ac-partnership-callout__copy {
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.ac-partnership-accordion {
  border-top: 1px solid var(--ac-border);
}

.ac-partnership-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.65rem 0;
  text-align: left;
}

.ac-partnership-accordion__question {
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 780;
  line-height: 1.4;
  transition: color 160ms ease;
}

.ac-partnership-accordion__trigger:hover .ac-partnership-accordion__question,
.ac-partnership-accordion__trigger:focus-visible .ac-partnership-accordion__question,
.ac-partnership-accordion .accordion-item.is-open .ac-partnership-accordion__question {
  color: var(--ac-brand);
}

.ac-partnership-accordion__trigger:focus-visible {
  outline: 2px solid rgba(var(--ac-brand-rgb), 0.45);
  outline-offset: 7px;
}

.ac-partnership-accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--ac-border);
  border-radius: 50%;
  color: var(--ac-muted);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.ac-partnership-accordion__icon i {
  font-size: 0.65rem;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-partnership-accordion__answer {
  max-width: 760px;
  padding: 0 3.8rem 1.85rem 0;
}

.ac-partnership-accordion__answer strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ac-rich);
  font-size: 0.9rem;
  font-weight: 850;
}

.ac-editor-content .ac-partnership-accordion__answer p,
.ac-partnership-accordion__answer p {
  margin: 0;
  color: var(--ac-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Recognition panel ----------------------------------------------------- */
.ac-recognition-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.ac-editor-content .ac-recognition-note,
.ac-recognition-note {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--ac-brand);
  color: var(--ac-rich);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.65;
}

.ac-recognition-frame {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--ac-brand-rgb), 0.1), transparent 34%),
    var(--ac-surface);
}

.ac-recognition-frame::before {
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(var(--ac-brand-rgb), 0.22);
  border-radius: calc(clamp(2rem, 5vw, 3.5rem) - 0.6rem);
  content: "";
  pointer-events: none;
}

.ac-recognition-image {
  position: relative;
  z-index: 1;
  margin: 0 !important;
}

.ac-recognition-image img {
  width: 100%;
  max-height: 520px;
  border-radius: 1.25rem !important;
  object-fit: contain;
}

/* CTA extension --------------------------------------------------------- */
.ac-contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.ac-button--light {
  border-color: rgba(255, 255, 255, 0.14);
  background: #ffffff;
  color: #0a0f1e;
}

.ac-button--light:hover,
.ac-button--light:focus-visible {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #ffffff;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .ac-split-hero__grid,
  .ac-story-grid,
  .ac-partnership-grid,
  .ac-recognition-grid {
    grid-template-columns: 1fr;
  }

  .ac-split-hero__visual {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .ac-founder-card,
  .ac-partnership-aside {
    position: static;
  }

  .ac-founder-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

  .ac-founder-card__media {
    height: 100%;
    min-height: 440px;
  }
}

@media (max-width: 900px) {
  .ac-logo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ac-capability-card--wide,
  .ac-capability-card--compact {
    grid-column: span 6;
  }

  .ac-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-metric:nth-child(3) {
    border-left: 0;
  }

  .ac-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 700px) {
  .ac-split-hero {
    min-height: 0;
    padding-block: 5rem;
  }

  .ac-split-hero__watermark {
    top: 23%;
    font-size: 34vw;
  }

  .ac-split-hero__title {
    font-size: clamp(2.7rem, 13vw, 4.7rem);
  }

  .ac-hero-proof {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ac-hero-proof__item,
  .ac-hero-proof__item + .ac-hero-proof__item {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: center;
    padding: 0;
    border-left: 0;
  }

  .ac-hero-proof__item + .ac-hero-proof__item {
    padding-top: 1rem;
    border-top: 1px solid var(--ac-border);
  }

  .ac-hero-proof__label {
    margin-top: 0;
  }

  .ac-visual-card {
    min-height: 0;
    padding: 1.25rem;
    border-radius: 2rem;
  }

  .ac-visual-card__image {
    min-height: 300px;
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .ac-floating-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 2rem);
    margin: -1.2rem auto 0;
  }

  .ac-logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-founder-card {
    display: block;
  }

  .ac-founder-card__media {
    min-height: 0;
    height: 420px;
  }

  .ac-capability-card--wide,
  .ac-capability-card--compact {
    grid-column: 1 / -1;
  }

  .ac-capability-card {
    min-height: 360px;
  }

  .ac-capability-card__title {
    margin-top: 3.5rem;
  }

  .ac-metrics-panel {
    padding: 1.25rem;
    border-radius: 2rem;
  }

  .ac-metric {
    padding: 1.5rem 0.75rem;
  }

  .ac-partnership-accordion__answer {
    padding-right: 0;
  }

  .ac-contact-cta__actions {
    flex-direction: column;
  }

  .ac-contact-cta__actions .ac-button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .ac-logo-cloud {
    grid-template-columns: 1fr 1fr;
  }

  .ac-logo-cloud__item {
    min-height: 78px;
    padding: 0.9rem;
  }

  .ac-metrics-grid {
    grid-template-columns: 1fr;
  }

  .ac-metric + .ac-metric,
  .ac-metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (hover: none) {
  .ac-logo-cloud__item:hover,
  .ac-capability-card:hover,
  .ac-founder-card:hover .ac-founder-card__media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-logo-cloud__item,
  .ac-logo-cloud__item img,
  .ac-capability-card,
  .ac-founder-card__media img,
  .ac-capability-card__link span {
    transition: none !important;
  }
}
/* ========================================================================== 
   About page HTML-only additions
   Append to assets/css/aethel-global.css after the reusable About components.
   ========================================================================== */

.ac-hero-actions .ac-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.ac-client-proof-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(var(--ac-brand-rgb), 0.09), transparent 28%),
    var(--ac-surface);
}

.ac-client-quote {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--ac-brand-rgb), 0.18), transparent 32%),
    #0a0f1e;
  color: #ffffff;
}

.ac-client-quote::before {
  position: absolute;
  top: -3.2rem;
  right: 1rem;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, serif;
  font-size: clamp(11rem, 20vw, 19rem);
  font-weight: 700;
  line-height: 1;
  content: "“";
  pointer-events: none;
}

.ac-client-quote__label {
  margin: 0 0 2rem;
  color: var(--ac-brand);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.ac-client-quote__text {
  position: relative;
  max-width: 720px;
  margin: 0;
  color: #ffffff !important;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.65rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.ac-client-quote__author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.ac-client-quote__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  border: 1px solid rgba(var(--ac-brand-rgb), 0.35);
  border-radius: 0.9rem;
  background: rgba(var(--ac-brand-rgb), 0.12);
  color: var(--ac-brand);
  font-size: 0.75rem;
  font-weight: 900;
}

.ac-client-quote__author strong,
.ac-client-quote__author small {
  display: block;
}

.ac-client-quote__author strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.ac-client-quote__author small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
}

.ac-client-outcomes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--ac-brand-rgb), 0.11), transparent 34%),
    var(--ac-white);
}

.ac-client-outcomes h3 {
  margin: 0;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.ac-client-outcomes > p:not(.ac-eyebrow) {
  margin: 1.25rem 0 0;
  color: var(--ac-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.ac-client-outcomes .ac-chip-list {
  margin: 1.75rem 0;
}

.ac-client-outcomes .ac-button {
  align-self: flex-start;
}

@media (max-width: 639px) {
  .ac-hero-actions .ac-button-group,
  .ac-hero-actions .ac-button,
  .ac-client-outcomes .ac-button {
    width: 100%;
  }

  .ac-client-quote__text {
    font-size: 1.45rem;
  }
}
/* ========================================================================== 
   Aethel Cortex — reusable feedback / forms / review components
   Append to assets/css/aethel-global.css
   ========================================================================== */

.ac-feedback-hero .ac-split-hero__watermark {
  font-size: clamp(8rem, 20vw, 22rem);
}

.ac-feedback-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 760px;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.ac-feedback-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 1rem;
  background: rgba(255,255,255,0.72);
}

.ac-feedback-trust-icon,
.ac-feedback-promise__icon,
.ac-feedback-process-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: rgba(var(--ac-brand-rgb), 0.12);
  color: var(--ac-brand);
  font-size: 0.82rem;
}

.ac-feedback-trust-item strong,
.ac-feedback-trust-item span {
  display: block;
}

.ac-feedback-trust-item strong {
  color: var(--ac-rich);
  font-size: 0.82rem;
  line-height: 1.3;
}

.ac-feedback-trust-item span:not(.ac-feedback-trust-icon) {
  margin-top: 0.25rem;
  color: var(--ac-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* Review summary --------------------------------------------------------- */
.ac-review-summary {
  position: relative;
  min-height: 540px;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  overflow: hidden;
  border-radius: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--ac-border);
  box-shadow: var(--ac-shadow);
}

.ac-review-summary--dark {
  background:
    radial-gradient(circle at 80% 12%, rgba(var(--ac-brand-rgb), 0.2), transparent 30%),
    #0a0f1e;
  color: #fff;
}

.ac-review-summary--dark::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.ac-review-summary > * {
  position: relative;
  z-index: 1;
}

.ac-review-summary__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ac-review-summary__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.ac-review-summary__brand > img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.ac-review-summary__brand strong {
  display: block;
  color: #fff;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.035em;
}

.ac-review-summary__stars {
  display: block;
  width: 95px;
  height: auto;
  margin-top: 0.45rem;
  object-fit: contain;
}

.ac-review-summary__quote,
.ac-editor-content .ac-review-summary__quote {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 1.5rem 1.75rem;
  border: 0;
  border-radius: var(--ac-radius);
  background: #fff;
}

.ac-review-summary__quote p,
.ac-editor-content .ac-review-summary__quote p {
  margin: 0;
  /*color: #fff !important;*/
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ac-review-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.25rem;
}

.ac-review-summary__meta span {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.045);
  font-size: 0.68rem;
  font-weight: 800;
}

/* Intro ------------------------------------------------------------------ */
.ac-feedback-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.ac-feedback-intro__copy .ac-section-copy + .ac-section-copy {
  margin-top: 1.15rem;
}

/* Form layout ------------------------------------------------------------ */
.ac-feedback-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.ac-feedback-form-aside {
  position: sticky;
  top: 120px;
}

.ac-feedback-promise-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.ac-feedback-promise {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 1rem;
  border-top: 1px solid var(--ac-border);
}

.ac-feedback-promise strong {
  display: block;
  color: var(--ac-rich);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ac-feedback-promise p {
  margin: 0.3rem 0 0 !important;
  color: var(--ac-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* Generic reusable form shell ------------------------------------------- */
.ac-form-shell {
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: clamp(1.6rem, 4vw, 2.5rem);
  background: #fff;
}

.ac-form-shell--elevated {
  box-shadow: 0 28px 75px rgba(10, 15, 30, 0.09);
}

.ac-form-shell__header {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--ac-border);
  background:
    radial-gradient(circle at 90% 0%, rgba(var(--ac-brand-rgb),0.12), transparent 30%),
    #fafafa;
}

.ac-form-shell__eyebrow {
  margin: 0 !important;
  color: var(--ac-brand);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ac-form-shell__title {
  margin: 0.65rem 0 0 !important;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.ac-form-shell__copy {
  max-width: 620px;
  margin: 0.75rem 0 0 !important;
  color: var(--ac-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ac-form-shell__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Contact Form 7 inside global Aethel form shell */
.ac-form-shell .wpcf7,
.ac-form-shell .wpcf7 form {
  margin: 0;
}

.ac-form-shell .wpcf7 p {
  margin: 0 0 1rem;
}

.ac-form-shell .wpcf7 label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ac-rich);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.ac-form-shell .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.ac-form-shell .wpcf7 select,
.ac-form-shell .wpcf7 textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ac-border);
  border-radius: 0.9rem;
  outline: 0;
  background: #fff;
  color: var(--ac-rich);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ac-form-shell .wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.ac-form-shell .wpcf7 input:focus,
.ac-form-shell .wpcf7 select:focus,
.ac-form-shell .wpcf7 textarea:focus {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 4px rgba(var(--ac-brand-rgb), 0.11);
  background: #fff;
}

.ac-form-shell .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 0.95rem;
  background: var(--ac-brand);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(var(--ac-brand-rgb), 0.22);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ac-form-shell .wpcf7 input[type="submit"]:hover {
  background: var(--ac-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(var(--ac-brand-rgb), 0.28);
}

.ac-form-shell .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.ac-form-shell .wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Feedback process ------------------------------------------------------- */
.ac-feedback-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ac-feedback-process-card {
  position: relative;
  min-height: 310px;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: 1.5rem;
  background: #fff;
}

.ac-feedback-process-card--dark {
  border-color: #0a0f1e;
  background:
    radial-gradient(circle at 90% 0%, rgba(var(--ac-brand-rgb),0.18), transparent 32%),
    #0a0f1e;
  color: #fff;
}

.ac-feedback-process-card__number {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  color: rgba(15,23,42,0.13);
  font-family: Sora, Inter, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.ac-feedback-process-card--dark .ac-feedback-process-card__number {
  color: rgba(255,255,255,0.12);
}

.ac-feedback-process-card__icon {
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.ac-feedback-process-card h3 {
  margin: 0 !important;
  color: var(--ac-rich);
  font-family: Sora, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.ac-feedback-process-card p {
  margin: 0.65rem 0 0 !important;
  color: var(--ac-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.ac-feedback-process-card--dark h3,
.ac-feedback-process-card--dark p {
  color: #fff !important;
}

.ac-feedback-process-card--dark p {
  color: rgba(255,255,255,0.63) !important;
}

.ac-feedback-testimonials-section .agn-testimonials,
.ac-feedback-testimonials-section .aethel-testimonials {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .ac-feedback-trust-row,
  .ac-feedback-process-grid {
    grid-template-columns: 1fr;
  }

  .ac-feedback-intro__grid,
  .ac-feedback-form-layout {
    grid-template-columns: 1fr;
  }

  .ac-feedback-form-aside {
    position: static;
  }

  .ac-review-summary {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .ac-feedback-trust-row {
    margin-top: 1.75rem;
  }

  .ac-feedback-trust-item {
    padding: 0.9rem;
  }

  .ac-review-summary {
    min-height: 410px;
    border-radius: 1.6rem;
  }

  .ac-review-summary__quote p {
    font-size: 1.25rem;
  }

  .ac-form-shell__header,
  .ac-form-shell__body {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-form-shell .wpcf7 input[type="submit"] {
    transition: none;
  }
}





















/* ==========================================================================
   AETHEL — GUTENBERG / TAILWIND V4 CASCADE PATCH
   Emergency append-only version.
   Prefer the full corrected aethel-global.css when possible.
   ========================================================================== */

body.aethel-new-design .ac-editor-content--shell .text-xs {
  font-size: var(--text-xs) !important;
  line-height: var(--tw-leading, var(--text-xs--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-sm {
  font-size: var(--text-sm) !important;
  line-height: var(--tw-leading, var(--text-sm--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-base {
  font-size: var(--text-base) !important;
  line-height: var(--tw-leading, var(--text-base--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-lg {
  font-size: var(--text-lg) !important;
  line-height: var(--tw-leading, var(--text-lg--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-xl {
  font-size: var(--text-xl) !important;
  line-height: var(--tw-leading, var(--text-xl--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-2xl {
  font-size: var(--text-2xl) !important;
  line-height: var(--tw-leading, var(--text-2xl--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-3xl {
  font-size: var(--text-3xl) !important;
  line-height: var(--tw-leading, var(--text-3xl--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-4xl {
  font-size: var(--text-4xl) !important;
  line-height: var(--tw-leading, var(--text-4xl--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-5xl {
  font-size: var(--text-5xl) !important;
  line-height: var(--tw-leading, var(--text-5xl--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-6xl {
  font-size: var(--text-6xl) !important;
  line-height: var(--tw-leading, var(--text-6xl--line-height)) !important;
}
body.aethel-new-design .ac-editor-content--shell .text-7xl {
  font-size: var(--text-7xl) !important;
  line-height: var(--tw-leading, var(--text-7xl--line-height)) !important;
}

body.aethel-new-design .ac-editor-content--shell .font-normal { font-weight: 400 !important; }
body.aethel-new-design .ac-editor-content--shell .font-medium { font-weight: 500 !important; }
body.aethel-new-design .ac-editor-content--shell .font-semibold { font-weight: 600 !important; }
body.aethel-new-design .ac-editor-content--shell .font-bold { font-weight: 700 !important; }
body.aethel-new-design .ac-editor-content--shell .font-extrabold { font-weight: 800 !important; }
body.aethel-new-design .ac-editor-content--shell .font-black { font-weight: 900 !important; }

body.aethel-new-design .ac-editor-content--shell .leading-none { line-height: 1 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-tight { line-height: 1.25 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-snug { line-height: 1.375 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-normal { line-height: 1.5 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-relaxed { line-height: 1.625 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-loose { line-height: 2 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-\[0\.95\] { line-height: .95 !important; }
body.aethel-new-design .ac-editor-content--shell .leading-\[0\.98\] { line-height: .98 !important; }

body.aethel-new-design .ac-editor-content--shell .tracking-tighter { letter-spacing: -.05em !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-tight { letter-spacing: -.025em !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-normal { letter-spacing: 0 !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-wide { letter-spacing: .025em !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-wider { letter-spacing: .05em !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-widest { letter-spacing: .1em !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-\[0\.25em\] { letter-spacing: .25em !important; }
body.aethel-new-design .ac-editor-content--shell .tracking-\[0\.3em\] { letter-spacing: .3em !important; }

@media (min-width: 64rem) {
  body.aethel-new-design .ac-editor-content--shell .lg\:text-xl {
    font-size: var(--text-xl) !important;
    line-height: var(--tw-leading, var(--text-xl--line-height)) !important;
  }
  body.aethel-new-design .ac-editor-content--shell .lg\:text-2xl {
    font-size: var(--text-2xl) !important;
    line-height: var(--tw-leading, var(--text-2xl--line-height)) !important;
  }
  body.aethel-new-design .ac-editor-content--shell .lg\:text-3xl {
    font-size: var(--text-3xl) !important;
    line-height: var(--tw-leading, var(--text-3xl--line-height)) !important;
  }
  body.aethel-new-design .ac-editor-content--shell .lg\:text-4xl {
    font-size: var(--text-4xl) !important;
    line-height: var(--tw-leading, var(--text-4xl--line-height)) !important;
  }
  body.aethel-new-design .ac-editor-content--shell .lg\:text-5xl {
    font-size: var(--text-5xl) !important;
    line-height: var(--tw-leading, var(--text-5xl--line-height)) !important;
  }
  body.aethel-new-design .ac-editor-content--shell .lg\:text-6xl {
    font-size: var(--text-6xl) !important;
    line-height: var(--tw-leading, var(--text-6xl--line-height)) !important;
  }
  body.aethel-new-design .ac-editor-content--shell .lg\:text-7xl {
    font-size: var(--text-7xl) !important;
    line-height: var(--tw-leading, var(--text-7xl--line-height)) !important;
  }
}

/* ==========================================================================
   Shared premium components
   Single source of truth for homepage + Gutenberg/service pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Partner / collaboration marquee
   -------------------------------------------------------------------------- */

@keyframes ac-logo-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/*
 * The homepage uses .marquee-partners-track.
 * Gutenberg/service pages use .ac-logo-marquee-track.
 * They intentionally share the same animation mechanism.
 */
:is(.ac-logo-marquee-track, #partners-section .marquee-partners-track) {
  display: flex;
  flex-direction: row;
  width: max-content;
  min-width: max-content;
  flex-wrap: nowrap;
  animation: ac-logo-marquee-scroll 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

:is(.ac-logo-marquee-track, #partners-section .marquee-partners-track) > * {
  flex-shrink: 0;
}

:is(.ac-logo-marquee-track, #partners-section .marquee-partners-track):hover,
:is(.ac-logo-marquee-track, #partners-section .marquee-partners-track).is-performance-paused,
body.aethel-new-design.ac-modal-open
  :is(.ac-logo-marquee-track, #partners-section .marquee-partners-track) {
  animation-play-state: paused !important;
}

/*
 * Homepage logo images do not have the wrapper cards used by the Brand page,
 * so the image itself becomes the card. This gives both pages the same visual
 * language without changing the homepage template.
 */
body.aethel-home #partners-section .marquee-partners-track {
  opacity: 1 !important;
  filter: none !important;
}

body.aethel-home #partners-section .marquee-partners-track img {
  display: block;
  box-sizing: border-box;
  width: 230px !important;
  height: 100px !important;
  max-width: 230px !important;
  max-height: 100px !important;
  padding: 24px 28px;
  border: 1px solid var(--ac-border);
  border-radius: 1rem;
  background: #ffffff;
  object-fit: contain;
  opacity: 0.48;
  filter: grayscale(1);
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

body.aethel-home #partners-section .marquee-partners-track img:hover {
  opacity: 1;
  filter: grayscale(0);
  border-color: rgba(var(--ac-brand-rgb), 0.34);
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   Shared Success Formula / Process slider
   -------------------------------------------------------------------------- */

/*
 * #formula-section exists on the homepage and Brand Development.
 * [data-ac-process-slider] is the reusable service-page contract.
 * The :is() scope guarantees both variants receive the exact same visuals.
 */
:is(#formula-section, [data-ac-process-slider]) {
  position: relative;
  isolation: isolate;
}

:is(#formula-section, [data-ac-process-slider]) .slick-list {
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

:is(#formula-section, [data-ac-process-slider]) .slick-track {
  display: flex !important;
  align-items: center;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

:is(#formula-section, [data-ac-process-slider]) .agn-howitworks-slider {
  width: 100%;
  min-height: 350px;
  position: relative;
  z-index: 2;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

:is(#formula-section, [data-ac-process-slider]) .slick-slide {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

:is(#formula-section, [data-ac-process-slider]) .slick-slide > div {
  position: relative;
  z-index: 2;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

:is(#formula-section, [data-ac-process-slider]) .step-num-main {
  background: linear-gradient(
    180deg,
    var(--ac-brand) 0%,
    var(--ac-brand-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: var(--ac-font-display);
  font-variant-numeric: tabular-nums;
  filter: none !important;
  text-shadow: none !important;
}

:is(#formula-section, [data-ac-process-slider]) #ghost-number,
:is(#formula-section, [data-ac-process-slider]) [data-ac-process-ghost] {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: max-content;
  margin: 0;
  font-family: var(--ac-font-display);
  font-weight: 900;
  font-size: clamp(18rem, 28vw, 25rem) !important;
  line-height: 0.8 !important;
  color: var(--ac-rich) !important;
  opacity: var(--ac-process-ghost-opacity);
  pointer-events: none;
  user-select: none;
  z-index: 1 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  filter: none !important;
  text-shadow: none !important;
}

/* Safe fallback: never stack every process step if Slick has not initialized. */
[data-ac-process-slider] .agn-howitworks-slider:not(.slick-initialized) > * {
  display: none !important;
}

[data-ac-process-slider] .agn-howitworks-slider:not(.slick-initialized) > *:first-child {
  display: block !important;
}

@media (max-width: 767px) {
  body.aethel-home #partners-section .marquee-partners-track img {
    width: 195px !important;
    height: 86px !important;
    max-width: 195px !important;
    max-height: 86px !important;
    padding: 20px 24px;
  }

  :is(#formula-section, [data-ac-process-slider]) #ghost-number,
  :is(#formula-section, [data-ac-process-slider]) [data-ac-process-ghost] {
    font-size: clamp(10rem, 48vw, 13rem) !important;
  }

  :is(#formula-section, [data-ac-process-slider]) .step-num-main {
    font-size: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.ac-logo-marquee-track, #partners-section .marquee-partners-track) {
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Programming & Development — CF7 project intake
   Reusable multi-step form presentation.
   ========================================================================== */

.ac-development-cf7-slot {
  color: #fff;
}

.ac-development-cf7-slot .wpcf7,
.ac-development-cf7-slot .wpcf7-form {
  margin: 0;
}

.ac-dev-ms {
  position: relative;
  color: #fff;
  font-family: var(--ac-font-body);
}

.ac-dev-ms__progress {
  position: relative;
  margin-bottom: 2.25rem;
}

.ac-dev-ms__progress-line {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.ac-dev-ms__progress-line > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ac-brand);
  transition: width 280ms cubic-bezier(.16,1,.3,1);
}

.ac-dev-ms__progress-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-dev-ms__progress-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.38);
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.ac-dev-ms__progress-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: #0a1220;
  color: rgba(255,255,255,.55);
  font-family: var(--ac-font-display);
  font-size: .72rem;
  font-weight: 900;
}

.ac-dev-ms__progress-steps li > b {
  font-weight: 800;
}

.ac-dev-ms__progress-steps li.is-active,
.ac-dev-ms__progress-steps li.is-complete {
  color: #fff;
}

.ac-dev-ms__progress-steps li.is-active > span,
.ac-dev-ms__progress-steps li.is-complete > span {
  border-color: var(--ac-brand);
  background: var(--ac-brand);
  color: #fff;
}

.ac-dev-ms__step {
  min-width: 0;
}

/* Progressive enhancement:
   before JS starts, all fields remain accessible.
   JS adds .is-enhanced and then only the current step is shown. */
.ac-dev-ms.is-enhanced .ac-dev-ms__step {
  display: none;
}

.ac-dev-ms.is-enhanced .ac-dev-ms__step.is-active {
  display: block;
}

.ac-dev-ms__heading {
  margin-bottom: 2rem;
}

.ac-dev-ms__kicker {
  display: inline-block;
  color: var(--ac-brand) !important;
  font-size: .625rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.ac-dev-ms__heading h3 {
  margin: .75rem 0 .7rem !important;
  color: #fff !important;
  font-family: var(--ac-font-display) !important;
  font-size: clamp(1.6rem,3vw,2.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

.ac-dev-ms__heading p {
  margin: 0 !important;
  max-width: 650px;
  color: rgba(255,255,255,.62) !important;
  font-size: .92rem !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

.ac-dev-ms__fields {
  display: grid;
  gap: 1.5rem;
}

.ac-dev-ms__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.25rem;
}

.ac-dev-ms__field label {
  display: block;
  margin-bottom: .65rem !important;
  color: rgba(255,255,255,.88) !important;
  font-family: var(--ac-font-body) !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

.ac-dev-ms__field label em {
  color: var(--ac-brand);
  font-style: normal;
}

.ac-dev-ms__field label > span {
  margin-left: .35rem;
  color: rgba(255,255,255,.38);
  font-size: .68rem;
  font-weight: 600;
}

.ac-dev-ms__field small {
  display: block;
  margin-top: .5rem;
  color: rgba(255,255,255,.42);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.5;
}

.ac-dev-ms .wpcf7-form-control-wrap {
  display: block;
}

.ac-dev-ms input[type="text"],
.ac-dev-ms input[type="email"],
.ac-dev-ms input[type="tel"],
.ac-dev-ms input[type="url"],
.ac-dev-ms input[type="file"],
.ac-dev-ms select,
.ac-dev-ms textarea {
  width: 100% !important;
  box-sizing: border-box;
  min-height: 54px;
  padding: .9rem 1rem !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 14px !important;
  outline: none !important;
  background: rgba(255,255,255,.96) !important;
  color: #0a0f1e !important;
  font-family: var(--ac-font-body) !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.ac-dev-ms textarea {
  min-height: 145px;
  resize: vertical;
}

.ac-dev-ms input::placeholder,
.ac-dev-ms textarea::placeholder {
  color: #87909f !important;
}

.ac-dev-ms input:focus,
.ac-dev-ms select:focus,
.ac-dev-ms textarea:focus {
  border-color: var(--ac-brand) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(var(--ac-brand-rgb),.13) !important;
}

.ac-dev-ms input[type="file"] {
  padding: .72rem .8rem !important;
}

.ac-dev-ms input[type="file"]::file-selector-button {
  margin-right: .8rem;
  padding: .55rem .75rem;
  border: 0;
  border-radius: 10px;
  background: #eef7ef;
  color: #238d32;
  font-family: var(--ac-font-body);
  font-weight: 800;
  cursor: pointer;
}

.ac-dev-ms__consent {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.ac-dev-ms__consent .wpcf7-list-item {
  margin: 0 !important;
}

.ac-dev-ms__consent label {
  display: flex !important;
  align-items: flex-start;
  gap: .75rem;
  margin: 0 !important;
  color: rgba(255,255,255,.68) !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

.ac-dev-ms__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: .08rem;
  flex: 0 0 auto;
  accent-color: var(--ac-brand);
}

.ac-dev-ms__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.ac-dev-ms__actions--end {
  justify-content: flex-end;
}

.ac-dev-ms__next,
.ac-dev-ms__back,
.ac-dev-ms .ac-dev-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 50px;
  padding: .82rem 1.15rem !important;
  border-radius: 14px !important;
  font-family: var(--ac-font-body) !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.ac-dev-ms__next,
.ac-dev-ms .ac-dev-submit {
  border: 1px solid var(--ac-brand) !important;
  background: var(--ac-brand) !important;
  color: #fff !important;
}

.ac-dev-ms__back {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.ac-dev-ms__next:hover,
.ac-dev-ms .ac-dev-submit:hover {
  border-color: var(--ac-brand-dark) !important;
  background: var(--ac-brand-dark) !important;
  transform: translateY(-1px);
}

.ac-dev-ms__back:hover {
  border-color: rgba(var(--ac-brand-rgb),.5);
  color: var(--ac-brand);
}

.ac-dev-ms__submit .wpcf7-spinner {
  margin: 0 0 0 .7rem;
  vertical-align: middle;
}

.ac-dev-ms__error {
  min-height: 1.2rem;
  margin-top: 1rem;
  color: #fecaca;
  font-size: .78rem;
  font-weight: 750;
}

.ac-dev-ms .wpcf7-not-valid {
  border-color: #fb7185 !important;
  box-shadow: 0 0 0 3px rgba(251,113,133,.1) !important;
}

.ac-dev-ms .wpcf7-not-valid-tip {
  margin-top: .45rem !important;
  color: #fecaca !important;
  font-size: .74rem !important;
}

.ac-development-cf7-slot .wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: .9rem 1rem !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
}

#development-project-intake [data-ac-dev-side-step] {
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

#development-project-intake [data-ac-dev-side-step].is-active {
  border-color: rgba(var(--ac-brand-rgb),.42) !important;
  background: rgba(var(--ac-brand-rgb),.06) !important;
  transform: translateX(4px);
}

@media (max-width: 639px) {
  .ac-dev-ms__grid {
    grid-template-columns: 1fr;
  }

  .ac-dev-ms__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ac-dev-ms__actions--end {
    flex-direction: column;
  }

  .ac-dev-ms__next,
  .ac-dev-ms__back,
  .ac-dev-ms .ac-dev-submit,
  .ac-dev-ms__submit {
    width: 100%;
  }
}

/* ==========================================================================
   Long-form content shell — case study, whitepaper and article singles
   Shapes images, figures, tables, charts and embeds so new media added in the
   editor later never breaks the reading layout.
   ========================================================================== */

.ac-case-study-single .case-study-content,
.ac-whitepaper-single .whitepaper-content,
.ac-blog-single .blog-content {
  overflow-wrap: break-word;
}

.ac-case-study-single .case-study-content :is(h2, h3, h4),
.ac-whitepaper-single .whitepaper-content :is(h2, h3, h4),
.ac-blog-single .blog-content :is(h2, h3, h4) {
  scroll-margin-top: 120px;
}

/* Measure: prose keeps a comfortable line length, media keeps full width. */
.ac-case-study-single .case-study-content > :where(p, li, blockquote, pre, code),
.ac-whitepaper-single .whitepaper-content > :where(p, li, blockquote, pre, code),
.ac-blog-single .blog-content > :where(p, li, blockquote, pre, code) {
  max-width: 74ch;
}

/* Images and figures. */
.ac-case-study-single .case-study-content :is(figure, .wp-block-image),
.ac-whitepaper-single .whitepaper-content :is(figure, .wp-block-image),
.ac-blog-single .blog-content :is(figure, .wp-block-image) {
  margin: 2.5rem 0;
}

.ac-case-study-single .case-study-content img,
.ac-whitepaper-single .whitepaper-content img,
.ac-blog-single .blog-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--ac-radius-lg);
  border: 1px solid var(--ac-border);
  background: var(--ac-surface);
}

.ac-case-study-single .case-study-content .alignleft,
.ac-case-study-single .case-study-content .alignright,
.ac-whitepaper-single .whitepaper-content .alignleft,
.ac-whitepaper-single .whitepaper-content .alignright,
.ac-blog-single .blog-content .alignleft,
.ac-blog-single .blog-content .alignright {
  width: auto;
  max-width: 46%;
}

.ac-case-study-single .case-study-content .alignleft {
  margin-right: 2rem;
  float: left;
}

.ac-case-study-single .case-study-content .alignright {
  margin-left: 2rem;
  float: right;
}

.ac-case-study-single .case-study-content figcaption,
.ac-whitepaper-single .whitepaper-content figcaption,
.ac-blog-single .blog-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  color: var(--ac-muted);
}

/* Tables (comparison / metrics). */
.ac-case-study-single .case-study-content .wp-block-table,
.ac-whitepaper-single .whitepaper-content .wp-block-table,
.ac-blog-single .blog-content .wp-block-table {
  margin: 2.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
}

.ac-case-study-single .case-study-content .wp-block-table table,
.ac-whitepaper-single .whitepaper-content .wp-block-table table,
.ac-blog-single .blog-content .wp-block-table table {
  display: table;
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  border: 0;
  border-radius: 0;
  font-size: 0.95rem;
}

.ac-case-study-single .case-study-content .wp-block-table :is(th, td),
.ac-whitepaper-single .whitepaper-content .wp-block-table :is(th, td),
.ac-blog-single .blog-content .wp-block-table :is(th, td) {
  padding: 0.875rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--ac-border);
}

.ac-case-study-single .case-study-content .wp-block-table th,
.ac-whitepaper-single .whitepaper-content .wp-block-table th,
.ac-blog-single .blog-content .wp-block-table th {
  background: var(--ac-surface);
  font-family: var(--ac-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac-rich);
  white-space: nowrap;
}

.ac-case-study-single .case-study-content .wp-block-table tr:last-child :is(th, td),
.ac-whitepaper-single .whitepaper-content .wp-block-table tr:last-child :is(th, td),
.ac-blog-single .blog-content .wp-block-table tr:last-child :is(th, td) {
  border-bottom: 0;
}

.ac-case-study-single .case-study-content .wp-block-table tbody tr:nth-child(even) :is(td, th),
.ac-whitepaper-single .whitepaper-content .wp-block-table tbody tr:nth-child(even) :is(td, th),
.ac-blog-single .blog-content .wp-block-table tbody tr:nth-child(even) :is(td, th) {
  background: rgba(var(--ac-brand-rgb), 0.04);
}

/* Charts, video and dashboard embeds. */
.ac-case-study-single .case-study-content :is(iframe, embed, object),
.ac-whitepaper-single .whitepaper-content :is(iframe, embed, object),
.ac-blog-single .blog-content :is(iframe, embed, object) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  margin: 2.5rem 0;
  border: 0;
  border-radius: var(--ac-radius-lg);
  background: var(--ac-surface);
  box-shadow: var(--ac-shadow-sm);
}

.ac-case-study-single .case-study-content .wp-block-embed,
.ac-whitepaper-single .whitepaper-content .wp-block-embed,
.ac-blog-single .blog-content .wp-block-embed {
  margin: 2.5rem 0;
}

/* Splits, separators, code. */
.ac-case-study-single .case-study-content :is(.wp-block-columns, .wp-block-group, .wp-block-cover, .wp-block-gallery),
.ac-whitepaper-single .whitepaper-content :is(.wp-block-columns, .wp-block-group, .wp-block-cover, .wp-block-gallery),
.ac-blog-single .blog-content :is(.wp-block-columns, .wp-block-group, .wp-block-cover, .wp-block-gallery) {
  max-width: 100%;
  margin: 2.5rem 0;
}

.ac-case-study-single .case-study-content hr,
.ac-whitepaper-single .whitepaper-content hr,
.ac-blog-single .blog-content hr {
  width: 100%;
  max-width: 74ch;
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--ac-border);
}

.ac-case-study-single .case-study-content :is(pre, code),
.ac-whitepaper-single .whitepaper-content :is(pre, code),
.ac-blog-single .blog-content :is(pre, code) {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.ac-case-study-single .case-study-content pre,
.ac-whitepaper-single .whitepaper-content pre,
.ac-blog-single .blog-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.5rem;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  background: var(--ac-surface);
  font-size: 0.875rem;
  line-height: 1.7;
}

