/*
Theme Name: Aryal & Aryal Chartered Accountants
Theme URI: https://baryal.com.np
Author: Aryal & Aryal Chartered Accountants
Author URI: https://baryal.com.np
Description: An audit-led block theme for Aryal & Aryal Chartered Accountants. Deep crimson #8A1A2A on a cream ground, deep ink text, soft sand for borders and quiet surfaces, Montserrat throughout.
Version: 4.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aryal-associates
Tags: block-theme, full-site-editing, professional, business, accounting
*/

/* =============================================================================
   1. Foundations

   The palette is the client's four-colour profile. Deep crimson carries the
   brand: headings, the hero and the closing band. The ground is a cream rather
   than white, which takes the glare off white set against red; body text is a
   deep blue-black ink; soft sand does the quiet work of borders, secondary
   buttons and card surfaces. Measured on the cream: crimson 8.8:1, ink 16.9:1,
   and cream on crimson 8.8:1.
   ========================================================================== */

:root {
  /* The client's profile, verbatim. */
  --maroon:      #8a1a2a;   /* Deep Crimson: headers, hero, branding */
  --paper:       #faf9f5;   /* Creamy Off-White: page ground */
  --ink:         #111827;   /* Deep Ink: body text */
  --sand:        #e2dcd0;   /* Soft Sand: borders, secondary buttons, quiet surfaces */

  /* Derived from those four, nothing new introduced. */
  --maroon-deep: #5e101d;   /* crimson, darkened: hover and pressed */
  --maroon-tint: #a82234;
  --maroon-wash: #f3ece9;   /* crimson laid thinly over the cream */
  --ink-2:       #1f2937;   /* the ink, one step lighter: navigation */
  --slate:       #4b5563;   /* supporting text; 7.2:1 on the cream */
  --slate-2:     #6b7280;   /* meta and legal lines; 4.6:1 on the cream */
  --sand-deep:   #cbc2b1;   /* sand, darkened: hover borders */

  /* Legacy names kept so existing rules resolve onto the new palette. There is
     deliberately no pure white: the brief asks for cream wherever white would
     have sat against the red. */
  --white:       var(--paper);
  --mist:        #f2efe8;   /* sand thinned into the cream: alternate sections */
  --rule:        var(--sand);
  --rule-strong: var(--sand-deep);
  --rule-invert: rgba(250, 249, 245, 0.24);

  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shell:  1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --edge:   max(var(--gutter), calc((100vw - var(--shell)) / 2));
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.aa-stat__value {
  font-variant-numeric: tabular-nums lining-nums;
}

.aa-hero :focus-visible,
.aa-on-dark :focus-visible,
.aa-pagehead__panel :focus-visible { outline-color: var(--paper) !important; }

:where(a, button, .wp-block-button__link, input, select, textarea):focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks > *      { margin-block-start: 0; }

/* Core emits `:root :where(.is-layout-flow) > * { margin-block-start: 1.35rem }`
   from an inline style block that loads AFTER this stylesheet. Its specificity
   is (0,1,0), so any plain single-class rule here ties and loses on source
   order, which silently pushes every child after the first down by a blockGap
   and knocks grid rows out of alignment.

   These containers therefore take their spacing from `gap` and zero the child
   margins outright, which is both more robust and the correct model for a grid. */
.aa-hero > *,
.aa-hero__type > *,
.aa-strip > *,
.aa-stat > *,
.aa-values > *,
.aa-value > *,
.aa-index > *,
.aa-index__row > *,
.aa-roadmap > *,
.aa-step > *,
.aa-wordmark > *,
.aa-contact-item > *,
.aa-laws > *,
.aa-law > *,
.aa-caps > *,
.aa-cap > *,
.aa-rels > *,
.aa-pagehead > *,
.aa-pagehead__panel > *,
.aa-posts > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Spacing inside those components, now that margins no longer provide it. */
.aa-stat         { display: flex; flex-direction: column; gap: 0.45rem; }
.aa-step         { display: flex; flex-direction: column; gap: 0.55rem; }
.aa-value        { display: flex; flex-direction: column; gap: 0.6rem; }
.aa-contact-item { display: flex; flex-direction: column; gap: 0.55rem; }

/* =============================================================================
   2. Header
   ========================================================================== */

.aa-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(250, 249, 245, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.aa-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 20px -18px rgba(17, 24, 39, 0.5);
}

.aa-wordmark { line-height: 1.05; }

.aa-wordmark__name {
  margin: 0 !important;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.aa-wordmark__name a { color: var(--maroon); text-decoration: none; }
.aa-wordmark__name a:hover { color: var(--maroon-deep); }

/* A single maroon rule under the wordmark, the only mark in the header. */
.aa-wordmark__sub {
  margin: 7px 0 0 !important;
  padding-top: 6px;
  border-top: 2px solid var(--maroon);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1;
}

/* =============================================================================
   3. Hero

   Type on the left holding the site's measure, a photographic plate running off
   the right edge. White ground, so the plate's light end dissolves into the page.
   ========================================================================== */

.aa-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  background: var(--maroon);
  color: var(--paper);
  overflow: hidden;
}

.aa-hero__type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(2rem, 4vw, 3.75rem)
           clamp(2.75rem, 5vw, 4.25rem) var(--edge);
}

/* The photograph runs the full height of the band and meets the crimson on a
   straight edge, the way the reference site sets its pictures, rather than
   fading into it. */
.aa-hero__plate {
  position: relative;
  min-height: clamp(420px, 60vh, 600px);
}

.aa-hero__plate img,
.aa-hero__plate .wp-block-image,
.aa-hero__plate figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}

.aa-hero__plate img {
  object-fit: cover;
  object-position: 50% 32%;
}

/* =============================================================================
   3b. Light in the hero

   Two soft pools of light drift across the crimson over most of a minute, the
   way afternoon light moves across a wall. This replaced the turning rosettes
   the hero used to carry, which the client found too busy: it is about as quiet
   as motion gets while still reading as a live surface rather than a flat fill.

   Transform only, on promoted layers, and it sits beneath both the words and
   the photograph, so it only ever shows on the crimson. Reduced motion stops it
   where it stands, via the blanket rule in section 17.
   ========================================================================== */

.aa-hero::before,
.aa-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.aa-hero::before {
  width: min(78vw, 1040px);
  aspect-ratio: 1;
  left: -22%;
  top: -52%;
  background: radial-gradient(closest-side, rgba(250, 249, 245, 0.11), rgba(250, 249, 245, 0) 72%);
  animation: aaDriftA 42s ease-in-out infinite alternate;
}

.aa-hero::after {
  width: min(58vw, 780px);
  aspect-ratio: 1;
  left: 14%;
  bottom: -58%;
  background: radial-gradient(closest-side, rgba(226, 220, 208, 0.09), rgba(226, 220, 208, 0) 72%);
  animation: aaDriftB 53s ease-in-out infinite alternate;
}

.aa-hero > * { position: relative; z-index: 1; }

@keyframes aaDriftA { to { transform: translate3d(14%, 12%, 0) scale(1.1); } }
@keyframes aaDriftB { to { transform: translate3d(-16%, -10%, 0) scale(0.92); } }

.aa-hero .aa-eyebrow { color: var(--sand); }

.aa-hero__title { color: var(--paper); }

/* The one emphasised word takes the sand, which reads on the crimson at 6.8:1. */
.aa-hero__title em { font-style: normal; color: var(--sand); }

.aa-hero__lead { color: rgba(250, 249, 245, 0.88); }

/* On the crimson the primary action inverts to cream, and the secondary takes
   the sand the profile reserves for secondary buttons. */
.aa-hero .wp-block-button:not(.aa-btn-quiet) > .wp-block-button__link {
  background-color: var(--paper) !important;
  color: var(--maroon) !important;
}

.aa-hero .wp-block-button:not(.aa-btn-quiet) > .wp-block-button__link:hover {
  background-color: var(--sand) !important;
  color: var(--maroon-deep) !important;
}

.aa-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1.3rem !important;
}

.aa-hero__title {
  max-width: 16ch;
  margin-bottom: 1.4rem !important;
  text-wrap: balance;
}

.aa-hero__lead {
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2rem !important;
}

/* =============================================================================
   4. Credential strip
   ========================================================================== */

.aa-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.aa-stat {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem 0;
}

.aa-stat + .aa-stat { padding-left: 1.75rem; }

.aa-stat + .aa-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.7rem;
  bottom: 1.7rem;
  width: 1px;
  background: var(--rule);
}

.aa-stat__value {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--maroon);
  margin: 0 0 0.5rem !important;
}

.aa-stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  margin: 0 !important;
}

/* =============================================================================
   4b. Navigation and the dropdown panels

   Written as markup rather than assembled from the navigation block, because
   the panels carry a featured column as well as links and core will not nest
   arbitrary blocks inside a submenu. The trade is that the menu is edited here
   rather than in the Site Editor, which is noted in the README.

   The panel opens on hover and on focus for pointer users, and on click for
   everyone, so it is reachable from the keyboard and on a touch screen where
   hover does not exist.
   ========================================================================== */

.aa-nav { position: static; }

.aa-nav__list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aa-nav__item { position: static; margin: 0; }

.aa-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.aa-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--maroon);
  transition: right 0.35s var(--ease-out);
}

.aa-nav__link:hover,
.aa-nav__item--has-panel[data-open="true"] .aa-nav__link {
  color: var(--maroon);
  text-decoration: none;
}

.aa-nav__link:hover::after,
.aa-nav__item--has-panel[data-open="true"] .aa-nav__link::after { right: 0; }

.aa-nav__chev {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.aa-nav__item--has-panel[data-open="true"] .aa-nav__chev { transform: translateY(1px) rotate(-135deg); }

/* The panel spans the window and aligns its contents to the page measure. */
.aa-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--rule);
  box-shadow: 0 24px 48px -28px rgba(17, 24, 39, 0.45);
}

.aa-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  max-width: var(--wp--style--global--wide-size, 1240px);
  margin-inline: auto;
  padding: clamp(1.8rem, 3vw, 2.6rem) var(--gutter) clamp(2rem, 3.4vw, 3rem);
}

.aa-panel__label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.aa-panel__all {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--maroon);
}

.aa-panel__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aa-panel__links li { margin: 0; }

.aa-panel__links a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.aa-panel__links a:hover {
  color: var(--maroon);
  border-bottom-color: var(--rule);
  text-decoration: none;
}

.aa-feature {
  display: block;
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
  background: var(--mist);
  border-left: 3px solid var(--maroon);
  transition: background-color 0.25s var(--ease);
}

.aa-feature:hover { background: #efefef; text-decoration: none; }

.aa-feature__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.aa-feature__body {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate);
}

/* The hamburger, shown only once the bar runs out of room. */
.aa-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  cursor: pointer;
}

.aa-nav__bars,
.aa-nav__bars::before,
.aa-nav__bars::after {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.aa-nav__bars { position: relative; }
.aa-nav__bars::before,
.aa-nav__bars::after { content: ""; position: absolute; left: 0; }
.aa-nav__bars::before { top: -6px; }
.aa-nav__bars::after  { top: 6px; }

.aa-nav__toggle[aria-expanded="true"] .aa-nav__bars { background: transparent; }
.aa-nav__toggle[aria-expanded="true"] .aa-nav__bars::before { transform: translateY(6px) rotate(45deg); }
.aa-nav__toggle[aria-expanded="true"] .aa-nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .aa-nav__toggle { display: inline-flex; }

  .aa-nav__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--rule);
    box-shadow: 0 24px 48px -28px rgba(17, 24, 39, 0.45);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .aa-nav__list[hidden] { display: none; }

  .aa-nav__item { border-bottom: 1px solid var(--rule); }

  .aa-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0;
    font-size: 1rem;
  }

  .aa-nav__link::after { content: none; }

  /* Stacked, the panel is a disclosure in the flow rather than an overlay. */
  .aa-panel {
    position: static;
    border-top: 0;
    box-shadow: none;
  }

  .aa-panel__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0 1.2rem;
  }

  .aa-panel__links { grid-template-columns: 1fr; }
  .aa-panel__label { margin-bottom: 0.6rem; }
}

/* =============================================================================
   5. Section furniture

   An eyebrow, a heading and a standfirst. No numbering.
   ========================================================================== */

.aa-section { position: relative; }

.aa-section__head {
  max-width: 62ch;
  margin-bottom: 2.25rem;
}

.aa-section__title { margin: 0 0 1.1rem !important; text-wrap: balance; }

.aa-deck {
  max-width: 60ch;
  color: var(--slate);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 !important;
}

.aa-on-dark .aa-deck    { color: rgba(250, 249, 245, 0.8); }
.aa-on-dark .aa-eyebrow { color: var(--sand); }

.aa-lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 !important;
}

/* =============================================================================
   6. Photographic plates
   ========================================================================== */

.aa-plate { position: relative; margin: 0; }

.aa-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.aa-plate--wide img { aspect-ratio: 3 / 2; object-fit: cover; }


/* =============================================================================
   6b. Image hover

   Applied to any plate that is not purely decorative: a slow scale under a
   clipping frame, with a maroon veil that lifts. Transform and opacity only,
   so nothing relayouts.
   ========================================================================== */

.aa-plate {
  overflow: hidden;
}

.aa-plate img {
  transition: transform 0.85s var(--ease-out), filter 0.55s var(--ease);
  will-change: transform;
}

.aa-plate:hover img {
  transform: scale(1.045);
}

/* The veil sits over the plate and fades out on hover, so the photograph
   resolves as the pointer arrives. */
.aa-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--maroon);
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.aa-plate:hover::after {
  opacity: 0;
}

/* =============================================================================
   7b. Service register (compact list, used on interior pages)
   ========================================================================== */

.aa-index { border-top: 1px solid var(--rule); }

.aa-index__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 2rem;
  align-items: start;
  gap: 2rem;
  padding: 2.1rem 0.5rem 2.1rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.3s var(--ease);
}

.aa-index__row:hover { background-color: var(--maroon-wash); }

.aa-index__row > * { transition: transform 0.3s var(--ease); }
.aa-index__row:hover > * { transform: translateX(0.6rem); }

.aa-index__title {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
}

.aa-index__desc {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.68;
  color: var(--slate);
}

/* A chevron drawn from two borders, rotated. No icon font, no SVG request. */
.aa-index__row::after {
  content: "";
  align-self: center;
  justify-self: end;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--rule-strong);
  border-right: 2px solid var(--rule-strong);
  transform: rotate(45deg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.aa-index__row:hover::after {
  border-color: var(--maroon);
  transform: rotate(45deg) translate(2px, -2px);
}

@media (max-width: 860px) {
  .aa-index__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    padding-block: 1.7rem;
  }
  .aa-index__row::after { display: none; }
}

/* =============================================================================
   8. Regulatory roadmap
   ========================================================================== */

.aa-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.5rem;
}

.aa-step { position: relative; padding: 2.5rem 1.5rem 0 0; }

.aa-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.aa-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--maroon);
}

.aa-step:last-child::before {
  background: linear-gradient(90deg, var(--rule) 40%, rgba(228, 228, 228, 0));
}

.aa-step__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 0.55rem;
}

.aa-step__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--slate);
}

@media (max-width: 900px) { .aa-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; } }
@media (max-width: 560px) {
  .aa-roadmap { grid-template-columns: 1fr; }
  .aa-step:last-child::before { background: var(--rule); }
}

/* =============================================================================
   9. Cards

   Flat, hairline bordered, no coloured tab. The lift on hover is the only
   depth cue.
   ========================================================================== */

.equal-cards > .wp-block-column { display: flex; flex-direction: column; flex-grow: 0; }
.equal-cards > .wp-block-column > .wp-block-group { display: flex; flex-direction: column; flex-grow: 1; }
.equal-cards .cta-bottom { margin-top: auto; justify-content: center; }

.aa-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2rem 1.85rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.aa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(17, 24, 39, 0.04), 0 20px 40px -24px rgba(17, 24, 39, 0.3);
  border-color: var(--rule-strong);
}

.aa-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 0.85rem;
}

.aa-card h3, .aa-card h4 { margin-top: 0; margin-bottom: 0.8rem; }
.aa-card p  { color: var(--slate); font-size: 0.9688rem; line-height: 1.7; }
.aa-card ul { margin: 0; padding-left: 0; list-style: none; }

.aa-card li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate);
}

.aa-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--maroon);
}

.aa-card--dark {
  background: rgba(250, 249, 245, 0.07);
  border-color: var(--rule-invert);
}

.aa-card--dark h3, .aa-card--dark h4 { color: var(--white); }
.aa-card--dark p, .aa-card--dark li  { color: rgba(250, 249, 245, 0.8); }
.aa-card--dark .aa-card__label       { color: var(--sand); }
.aa-card--dark li::before            { background: var(--sand); }

.aa-card--dark:hover {
  background: rgba(250, 249, 245, 0.11);
  border-color: rgba(250, 249, 245, 0.4);
  box-shadow: none;
}

/* A card that is a link to a service. */
/* =============================================================================
   10. Photographic bands

   A photograph under a crimson tint, with the words over it.
   ========================================================================== */

.aa-band {
  position: relative;
  isolation: isolate;
  background: var(--maroon);
  overflow: hidden;
}

.aa-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: auto;
  max-width: none !important;
  margin: 0 !important;
}

.aa-band__media .wp-block-image,
.aa-band__media figure {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

.aa-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.aa-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(94, 16, 29, 0.92) 0%, rgba(94, 16, 29, 0.8) 48%, rgba(94, 16, 29, 0.55) 100%);
}

/* The closing call to action: flat crimson, one step deeper than the hero so
   the page ends on a different note from the one it opened on. It carries no
   photograph, so the tint overlay the other bands use is switched off. */
.aa-band--maroon { background: var(--maroon-deep); }
.aa-band--maroon::after { content: none; }

/* =============================================================================
   11. Pull quote
   ========================================================================== */

.aa-quote {
  position: relative;
  padding-left: 2.2rem;
  border-left: 3px solid var(--maroon);
  margin: 0;
}

.aa-quote p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 1.3rem;
}

.aa-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--maroon);
}

.aa-on-dark .aa-quote      { border-left-color: var(--sand); }
.aa-on-dark .aa-quote p    { color: var(--white); }
.aa-on-dark .aa-quote cite { color: var(--sand); }

/* =============================================================================
   11b. Laws and regulation

   A reference shelf. Each entry is a link card carrying the instrument's name,
   a one line note and the year, so the list scans like a index of statutes.
   ========================================================================== */

/* Pages that mix running prose with wide grids: the whole column runs at the wide
   measure so headings share a left edge with the grids they label, and the prose
   is capped back to a readable line length rather than being centred separately. */
.aa-widepage > p,
.aa-widepage > .aa-lede { max-width: 46rem; }

.aa-widepage > h2 { max-width: none; }

.aa-widepage > .wp-block-separator.is-style-wide {
  width: 100%;
  max-width: none;
  border: 0;
  height: 1px;
  opacity: 1;
}

.aa-laws {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.aa-law {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.aa-law:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(17, 24, 39, 0.04), 0 18px 36px -22px rgba(17, 24, 39, 0.3);
  border-color: var(--rule-strong);
  text-decoration: none;
}

.aa-law__kind {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0;
}

.aa-law__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.aa-law__note {
  font-size: 0.9063rem;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
}

/* Pinned to the bottom so the rule lines up across a row of cards whose notes
   run to different lengths. */
.aa-law__meta {
  margin: 0.35rem 0 0 !important;
  margin-top: auto !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--maroon);
}

/* A text not yet posted: a status in the supporting ink, so it does not read
   as a link. */
.aa-law__meta--soon {
  font-weight: 500;
  color: var(--slate);
}

@media (max-width: 900px) { .aa-laws { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aa-laws { grid-template-columns: 1fr; } }

/* =============================================================================
   11c. Blog
   ========================================================================== */

.aa-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

.aa-post {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--maroon);
  padding-top: 1.25rem;
}

.aa-post__meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 0.7rem;
}

.aa-post__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.018em;
  margin: 0 0 0.7rem;
}

.aa-post__title a { color: var(--ink); }
.aa-post__title a:hover { color: var(--maroon); text-decoration: none; }

.aa-post__excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate);
  margin: 0 0 1rem;
}

.aa-post__more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--maroon);
}

/* Core's post template list needs the same grid treatment. */
.aa-posts.wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.aa-posts.wp-block-post-template > li { margin: 0; }

@media (max-width: 900px) { .aa-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aa-posts { grid-template-columns: 1fr; } }

/* Single post body */
.aa-article { max-width: 44rem; }
.aa-article h2 { margin-top: 2.6rem; }
.aa-article h3 { margin-top: 2rem; }
.aa-article p, .aa-article li { color: var(--ink-2); }


/* =============================================================================
   12. Values row
   ========================================================================== */

.aa-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}

.aa-value__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.aa-value__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--slate);
}

@media (max-width: 900px) { .aa-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
@media (max-width: 520px) { .aa-values { grid-template-columns: 1fr; } }

/* =============================================================================
   13. Contact and footer
   ========================================================================== */

.aa-contact-item { border-top: 1px solid var(--rule-invert); padding-top: 1.15rem; }

.aa-contact-item__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.66);
  margin: 0 0 0.6rem !important;
}

.aa-contact-item__value {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  margin: 0 !important;
}

.aa-contact-item__value a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 249, 245, 0.45);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.aa-contact-item__value a:hover {
  color: var(--paper);
  border-color: var(--paper);
  text-decoration: none;
}

.aa-footer { border-top: 1px solid var(--rule); }
.aa-footer a { color: var(--slate); text-decoration: none; transition: color 0.25s var(--ease); }
.aa-footer a:hover { color: var(--maroon); text-decoration: none; }
.aa-footer__col p { font-size: 0.9375rem; line-height: 1.8; color: var(--slate); }

/* Footer link lists read as navigation, not as prose, so the markers go.
   The class sits on the list element itself, so this cannot be a descendant
   selector. */
.aa-footer ul { list-style: none; padding-left: 0; margin: 0; }
.aa-footer li { margin-bottom: 0.4rem; }

.aa-footer__heading {
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink) !important;
  margin-bottom: 1.1rem;
}

.aa-footer__legal {
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--slate-2);
}


/* Buttons on dark grounds. */
.aa-btn-ghost .wp-block-button__link {
  background-color: transparent !important;
  color: var(--paper) !important;
  border: 1px solid rgba(250, 249, 245, 0.55);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.aa-btn-ghost .wp-block-button__link:hover {
  background-color: var(--paper) !important;
  border-color: var(--paper);
  color: var(--maroon) !important;
}

/* The secondary action, in the sand the profile gives secondary buttons. */
.aa-btn-quiet .wp-block-button__link {
  background-color: var(--sand) !important;
  color: var(--ink) !important;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.aa-btn-quiet .wp-block-button__link:hover {
  background-color: var(--sand-deep) !important;
  color: var(--ink) !important;
}

/* =============================================================================
   14. Long form pages

   Used where post content is running prose (about, contact, a single insight)
   rather than composed sections.
   ========================================================================== */

/* The kicker above a masthead title. Always sits inside the maroon panel now,
   which supplies its colour just below. */
.aa-breadcrumb {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.4rem !important;
}

.aa-prose h2 { margin-top: 3.2rem; }
.aa-prose h3 { margin-top: 2.2rem; }
.aa-prose p,
.aa-prose li { color: var(--ink); }

/* =============================================================================
   14b. Search field (404 and search results)
   ========================================================================== */

.wp-block-search__inside-wrapper {
  max-width: 34rem;
  border: 1px solid var(--rule-strong, var(--rule));
  border-radius: 2px;
  background: var(--white);
  transition: border-color 0.25s var(--ease);
}

.wp-block-search__inside-wrapper:focus-within { border-color: var(--maroon); }

.wp-block-search__input {
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* The wrapper carries the focus ring for the pair, so the input does not draw a
   second one inside it. */
.wp-block-search__input:focus { outline: none; }

.wp-block-search__button {
  border: 0;
  border-radius: 0;
  background: var(--maroon);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.wp-block-search__button:hover { background: var(--maroon-deep); }

/* =============================================================================
   14c. The lathe

   A guilloche rosette is cut by two eccentrics geared against each other, and
   the figure you see is the beat between them rather than either curve alone.
   Two rosettes of different frequency are stacked on a surface here and turned
   in opposite directions over periods that share no small common multiple, so
   the interference drifts for the length of a visit without resolving into a
   loop the eye can catch. It is the ornament on a share certificate, drawn the
   way the lathe draws it, which is the whole reason it is here rather than some
   generic drifting shape.

   It rides on pseudo-elements of sections that already exist, so no template
   carries markup for it, and it is inert to the pointer. Everything animated is
   a transform on a promoted layer, so the compositor turns it without repainting
   the section underneath. Reduced motion freezes the turn and leaves the
   ornament in place, via the blanket rule in section 17.
   ========================================================================== */

.aa-band::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  will-change: transform;
}

/* The ornament sits under the words. The band's photograph is left out of this:
   it is deliberately further back still, at z-index -2 behind its own tint. */
.aa-band > .wp-block-group:not(.aa-band__media) {
  position: relative;
  z-index: 1;
}

/* Over a photograph one figure is enough; a second would read as noise. */
.aa-band::before {
  width: 760px;
  height: 760px;
  right: -170px;
  top: -190px;
  background-image: url("assets/images/lathe-b-light.svg");
  opacity: 0.18;
  animation: aaLathe 224s linear infinite;
}

/* The contact band is flat colour rather than a photograph, so it takes the fine
   figure: with no image under it there is room for the denser engraving, and the
   two dark surfaces then read as different plates rather than a repeat. */
.aa-band--maroon::before {
  background-image: url("assets/images/lathe-a-light.svg");
  opacity: 0.15;
}

/* Scaled down on small screens. At the desktop size only the outermost arcs
   would fall inside a phone viewport, and an arc without its rosette reads as a
   stray scratch rather than as engine turning, so the figure is shrunk until a
   recognisable part of it fits. */
@media (max-width: 880px) {
  .aa-band::before {
    width: 440px;
    height: 440px;
    right: -125px;
    top: -115px;
  }

}

@keyframes aaLathe        { to { transform: rotate(360deg); } }
@keyframes aaLatheCounter { to { transform: rotate(-360deg); } }

/* =============================================================================
   14d. Section and sector pages

   The masthead follows the reference the client gave us: a full bleed image
   with a solid panel sitting over it carrying the title. The panel is solid
   rather than translucent because these images are now in full colour, and
   white type over a colourful photograph is a contrast problem you cannot fix
   once and forget.
   ========================================================================== */

.aa-pagehead {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(280px, 30vw, 420px);
  /* Pads so the panel's left edge lands on the same measure as page content. */
  padding-inline: max(var(--gutter), (100% - var(--wp--style--global--wide-size, 1240px)) / 2);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.aa-pagehead__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0 !important;
  max-width: none !important;
}

.aa-pagehead__media .wp-block-image,
.aa-pagehead__media figure {
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
}

/* Mastheads are wider than the photographs, so cover trims top and bottom.
   Faces sit in the upper part of almost every frame here, so the trim favours
   keeping the top rather than splitting it evenly and cutting through heads. */
.aa-pagehead__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

/* Photographs run to bright sky at the panel edge, where the flat plates do not.
   A slight darkening under the panel side keeps that edge readable. */
.aa-pagehead--photo .aa-pagehead__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 10, 12, 0.4) 0%, rgba(20, 10, 12, 0.12) 46%, rgba(20, 10, 12, 0) 72%);
}

.aa-pagehead__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  background: var(--maroon);
  color: var(--white);
  padding: clamp(1.8rem, 3vw, 2.8rem);
}

.aa-pagehead__panel .aa-breadcrumb,
.aa-pagehead__panel .aa-breadcrumb a { color: rgba(250, 249, 245, 0.82); }
.aa-pagehead__panel .aa-breadcrumb a:hover { color: var(--white); }

.aa-pagehead__title {
  margin: 0.6rem 0 0 !important;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}

.aa-pagehead__lede {
  margin: 0.9rem 0 0 !important;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(250, 249, 245, 0.9);
}

/* Capability grid. */
.aa-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.aa-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

/* The accent is a strip clipped by the card rather than a thick top border.
   A 3px border against a 2px radius mitres into the 1px side border and leaves
   a visible wedge at both top corners; a strip inside the rounded box ends
   square, and the card keeps the 2px radius the other cards use. */
.aa-cap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--maroon);
}

.aa-cap__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
  color: var(--ink);
}

.aa-cap__body {
  font-size: 0.9063rem;
  line-height: 1.65;
  color: var(--slate);
}

/* Related and index cards, which carry each topic's own plate. */
.aa-rels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.aa-rel {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.aa-rel:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: 0 2px 4px rgba(17, 24, 39, 0.04), 0 18px 36px -22px rgba(17, 24, 39, 0.3);
}

.aa-rel__media {
  margin: 0 !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.aa-rel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out);
}

.aa-rel:hover .aa-rel__media img { transform: scale(1.05); }

.aa-rel__title {
  margin: 1.15rem 1.25rem 0 !important;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.aa-rel__title a { color: var(--ink); }
.aa-rel:hover .aa-rel__title a { color: var(--maroon); text-decoration: none; }

.aa-rel__body {
  margin: 0.5rem 1.25rem 1.5rem !important;
  font-size: 0.9063rem;
  line-height: 1.6;
  color: var(--slate);
}

/* A deck and a button for use on the dark CTA bands. */
.aa-deck--light { color: rgba(250, 249, 245, 0.9) !important; }


@media (max-width: 900px) {
  .aa-caps,
  .aa-rels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .aa-caps,
  .aa-rels { grid-template-columns: 1fr; }
  .aa-pagehead__panel { max-width: none; }
}

/* =============================================================================
   15. Motion
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible { opacity: 1; transform: none; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.stagger-children.is-visible > * { opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.11s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.39s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.46s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.53s; }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: aaFadeUp 0.85s var(--ease-out) forwards;
}

.fade-up--d1 { animation-delay: 0.09s; }
.fade-up--d2 { animation-delay: 0.18s; }
.fade-up--d3 { animation-delay: 0.27s; }

@keyframes aaFadeUp { to { opacity: 1; transform: none; } }

.aa-hero__plate img { animation: aaPlate 1.4s var(--ease-out) both; }

@keyframes aaPlate {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================================
   16. Editor visibility
   ========================================================================== */

.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > *,
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .aa-hero__plate img {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.editor-styles-wrapper .aa-header { position: static; }

/* =============================================================================
   17. Reduced motion
   ========================================================================== */

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

  .animate-on-scroll,
  .stagger-children > *,
  .fade-up,
  .aa-hero__plate img {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .aa-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}

@media (max-width: 900px) {
  .aa-hero { grid-template-columns: 1fr; }

  .aa-hero__type {
    padding: clamp(2.5rem, 8vw, 4rem) var(--gutter) 2.75rem;
    order: 2;
  }

  /* height with clamp rather than min-height plus max-height: min-height always
     wins over max-height, so the pair silently fails on a tall viewport. */
  .aa-hero__plate {
    order: 1;
    min-height: 0;
    height: clamp(230px, 42vh, 400px);
  }

  /* No ch cap on a narrow screen: at this display size the cap is wider than
     the viewport and the headline runs off the edge. */
  .aa-hero__title { max-width: none; }
  .aa-hero__lead  { max-width: none; }

  .aa-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-stat  { padding: 1.4rem 1rem 1.4rem 0; }
  .aa-stat:nth-child(3) { padding-left: 0; }
  .aa-stat:nth-child(3)::before { display: none; }

  .aa-section__head { margin-bottom: 1.75rem; }
}

@media (max-width: 600px) {
  .aa-strip { grid-template-columns: 1fr; }
  .aa-stat  { padding: 1.2rem 0; }
  .aa-stat + .aa-stat { padding-left: 0; }

  .aa-stat + .aa-stat::before {
    left: 0; right: 0; top: 0; bottom: auto;
    width: auto; height: 1px;
  }

  .aa-quote { padding-left: 1.3rem; }
}
