/* ==========================================================================
   CYC site.css

   Bricks global classes and variables are the primary editable style surface.
   This file carries only what Bricks cannot express cleanly: @font-face, the
   :root token mirror that scripts/check-design-tokens.php enforces against
   config/design-tokens.json, and the documented selector fixes below.

   Every value here is authored on the reference site and traceable to
   docs/research/reference-css/. Nothing is invented.
   ========================================================================== */

/* Inter ships as a variable font, so one file serves 400, 500 and 700. */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-variable.woff2") format("woff2");
}

/* The display face is used at exactly one weight and style on the reference:
   600 italic. Shipping only that keeps the payload to 21 KB. */
@font-face {
  font-display: swap;
  font-family: "Source Serif Pro";
  font-style: italic;
  font-weight: 600;
  src: url("../fonts/source-serif-pro/source-serif-pro-latin-600-italic.woff2") format("woff2");
}

:root {
  /* The canonical brand colour. Same value as --cyc-color-primary, which is
     what the Elementor kit called it and what every rule below uses; this alias
     is the stable name scripts/verify-public-runtime.mjs reads from
     config/design-tokens.json to prove the CSS a visitor receives is the CSS
     that was built, rather than a stale cached bundle. */
  --cyc-color-brand: #232d63;
  --cyc-color-primary: #232d63;
  --cyc-color-secondary: #eff4ff;
  --cyc-color-text: #202020;
  --cyc-color-accent: #df6d52;
  --cyc-color-white: #ffffff;
  --cyc-color-muted: #7b86a0;
  --cyc-color-muted-soft: #81899a;
  --cyc-color-tint: rgb(35 45 99 / 2%);
  /* Font Awesome 5 solid angle-down / angle-up, the glyphs the reference uses
     on the Leadership reveal control. Masks, not images, so they inherit
     colour from the element. */
  --cyc-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
  --cyc-chevron-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z'/%3E%3C/svg%3E");
  /* Elementor's own chevrons, the glyphs on the reference's carousel arrows. */
  --cyc-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M646 125C629 125 613 133 604 142L308 442C296 454 292 471 292 487 292 504 296 521 308 533L604 854C617 867 629 875 646 875 663 875 679 871 692 858 704 846 713 829 713 812 713 796 708 779 692 767L438 487 692 233C704 221 713 204 713 187 713 171 708 154 692 142 679 129 663 125 646 125Z'/%3E%3C/svg%3E");
  --cyc-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M696 533C708 521 713 504 713 487 713 471 708 454 696 446L400 146C388 133 375 125 354 125 338 125 325 129 313 142 300 154 292 171 292 187 292 204 296 221 308 233L563 487 308 767C296 779 292 796 292 812 292 829 300 846 313 858 325 871 338 875 354 875 371 875 388 867 400 854L696 533Z'/%3E%3C/svg%3E");
  /* Font Awesome 5 solid `play` — the reference's carousel play button, a
     filled triangle where Themify's ti-control-play is an outline. */
  --cyc-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z'/%3E%3C/svg%3E");
  /* Font Awesome 5 REGULAR `play-circle` — the outlined circle the reference
     puts over the homepage video, distinct from the solid `play` above. */
  --cyc-play-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z'/%3E%3C/svg%3E");
  --cyc-color-primary-transparent: rgb(35 45 99 / 0%);
  --cyc-color-focus: #df6d52;
  --cyc-font-display: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --cyc-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cyc-display-line-height: 1.2em;
  --cyc-display-weight: 600;
  --cyc-display-style: italic;
  --cyc-text-hero: 80px;
  --cyc-text-display: 72px;
  --cyc-text-h1: 52px;
  --cyc-text-h2: 46px;
  --cyc-text-h3: 44px;
  --cyc-text-h4: 38px;
  --cyc-text-h5: 34px;
  --cyc-text-h6: 32px;
  --cyc-text-xl: 26px;
  --cyc-text-lg: 24px;
  --cyc-text-md: 22px;
  --cyc-text-base: 20px;
  --cyc-text-sm: 18px;
  --cyc-text-xs: 16px;
  --cyc-text-2xs: 14px;
  --cyc-space-1: 5px;
  --cyc-space-2: 10px;
  --cyc-space-3: 15px;
  --cyc-space-4: 20px;
  --cyc-space-5: 30px;
  --cyc-space-6: 40px;
  --cyc-space-7: 60px;
  --cyc-space-8: 80px;
  --cyc-space-9: 100px;
  --cyc-space-10: 140px;
  --cyc-container: 1140px;
  --cyc-container-tablet: 1024px;
  --cyc-container-mobile: 767px;
  --cyc-gutter: 15px;
  --cyc-gutter-mobile: 10px;
  --cyc-header-overlap: -102px;
  --cyc-header-overlap-mobile: -120px;
  --cyc-header-pad-block: 40px;
  --cyc-header-pad-block-mobile: 30px;
  --cyc-logo-width: 400px;
  --cyc-logo-width-mobile: 270px;
  --cyc-nav-pad-block: 29px;
  --cyc-nav-pad-block-dropdown: 27px;
  --cyc-nav-tracking: 0.6px;
  --cyc-radius-card: 20px;
  --cyc-radius-pill: 2000px;
  --cyc-carousel-gap: 100px;
  --cyc-carousel-gap-tablet: 50px;
  --cyc-duration-fast: 160ms;
  --cyc-duration-standard: 280ms;
  --cyc-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html:root {
  font-size: 100%;
  overflow-x: clip;
}

body {
  background: var(--cyc-color-white);
  color: var(--cyc-color-text);
  font-family: var(--cyc-font-body);
  /*
   * 16px, matching the reference's computed body size. --cyc-text-base is 20px,
   * which is an authored value used on specific elements, not the document base;
   * using it here inflated every element that inherits its size.
   */
  font-size: var(--cyc-text-xs);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body,
button,
input,
select,
textarea {
  font-family: var(--cyc-font-body);
}

body.bricks-is-frontend :where(h1, h2, h3, h4, h5, h6, p) {
  margin-block-start: 0;
}

:where(img) {
  height: auto;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Overlay header

   The reference header is NOT sticky and NOT fixed — post-5579.css contains no
   position: fixed, no position: sticky and no elementor-sticky. It sits in
   normal flow and pulls the page up underneath itself with a negative bottom
   margin, so the hero image runs behind a transparent bar.

   This lives here rather than in Bricks because Bricks keeps #brx-header in
   normal flow whatever the section inside it does (docs/BRICKS_API_TRAPS.md),
   so the wrapper is what has to carry the margin.
   -------------------------------------------------------------------------- */

#brx-header {
  background: transparent;
  margin-block-end: var(--cyc-header-overlap);
  position: relative;
  z-index: 100;
}

@media (max-width: 767px) {
  #brx-header {
    margin-block-end: var(--cyc-header-overlap-mobile);
  }
}

/* --------------------------------------------------------------------------
   Header nav font stack — a deliberate match of a reference quirk

   The kit sets the accent typography to Inter and the PowerPack menu widget asks
   for it, but on the live reference that rule never wins: the nav computes to the
   browser's default system stack, while headings correctly get Source Serif Pro
   and body copy correctly gets Inter. The nav is the only element that misses.

   Matching it is a deliberate choice, because the brief is that the rebuild look
   identical to the reference and a Mac reviewer comparing the two side by side
   would otherwise see SF Pro against Inter. It is reproducing a defect, so it is
   isolated here and reversible: delete this block and the nav returns to Inter,
   the font the design system actually intends. Costs ~1.8px of nav width.
   -------------------------------------------------------------------------- */

#brx-header .bricks-nav-menu > li > a,
#brx-header .bricks-mobile-menu > li > a,
#brx-footer .bricks-nav-menu > li > a {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   Current-page underline

   The reference marks the current page with a 3px bar pinned to the bottom of
   the menu item, spanning its full width including the 20px side padding:
   white in the header, accent in the footer. PowerPack paints it on the anchor
   and animates opacity 0 -> 1, so inactive items carry the same bar at zero
   opacity. Bricks applies `current-menu-item` but ships no styling for it,
   which is why the rebuild had no indicator at all.

   Measured: 3px tall, bottom 0, item width (131.625 on a 132-wide header item).
   -------------------------------------------------------------------------- */

#brx-header .bricks-nav-menu > li > a,
#brx-footer .bricks-nav-menu > li > a {
  position: relative;
}

#brx-header .bricks-nav-menu > li > a::after,
#brx-footer .bricks-nav-menu > li > a::after {
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transition: opacity 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}

/*
 * The bar is a different colour depending on WHY it is showing, which is how
 * the reference distinguishes "you are here" from "you are pointing at this":
 * the current page's bar is white, a hovered one is the pale secondary. Both
 * measured on the reference at rest and under a real pointer — the colours are
 * already set on the ::after at opacity 0, and only the opacity animates.
 */
#brx-header .bricks-nav-menu > li > a::after {
  background-color: var(--cyc-color-secondary);
}

#brx-header .bricks-nav-menu > li.current-menu-item > a::after,
#brx-header .bricks-nav-menu > li.current_page_item > a::after {
  background-color: var(--cyc-color-white);
}

/* The footer uses the accent for both states. */
#brx-footer .bricks-nav-menu > li > a::after {
  background-color: var(--cyc-color-accent);
}

/*
 * Shown for the current page, and on hover or keyboard focus. :focus-visible is
 * ours, not the reference's — the reference gives a keyboard user no indication
 * at all, and inheriting that would carry an accessibility defect forward.
 */
#brx-header .bricks-nav-menu > li.current-menu-item > a::after,
#brx-header .bricks-nav-menu > li.current_page_item > a::after,
#brx-header .bricks-nav-menu > li > a:hover::after,
#brx-header .bricks-nav-menu > li > a:focus-visible::after,
#brx-footer .bricks-nav-menu > li.current-menu-item > a::after,
#brx-footer .bricks-nav-menu > li.current_page_item > a::after,
#brx-footer .bricks-nav-menu > li > a:hover::after,
#brx-footer .bricks-nav-menu > li > a:focus-visible::after {
  opacity: 1;
}

/* Motion is decorative here; the bar itself is the state. */
@media (prefers-reduced-motion: reduce) {
  #brx-header .bricks-nav-menu > li > a::after,
  #brx-footer .bricks-nav-menu > li > a::after {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Footer nav separators

   The reference puts a 2px vertical rule between footer menu items — and only
   between them, never after the last. Measured: 2px wide, 18px tall (13.11 at
   390), #81899a, occupying exactly 2px of layout (li 118.156 against an anchor
   of 116.156). A zero-width box with a 2px left border reproduces both the line
   and the footprint.
   -------------------------------------------------------------------------- */

/* The reference's footer nav is a wrapping, centred flex row: at 390 it breaks
   after "Podcast" and centres the orphaned "Donate" on its own row (measured
   left 146 in a 360px nav). Bricks ships nowrap, which crushed the item widths
   instead of wrapping. Above 767 the four items fill the row exactly, so the
   centring is invisible there. */
#brx-footer .bricks-nav-menu {
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Podcast carousel chrome

   Arrows: 25x25 Elementor chevrons in rgba(237,237,237,0.9), sitting flush
   against the left and right edges of the 1140 measure and centred on the
   slide less 6.7px — measured 186 from the slide top at 1280, 768 and 390 and
   202 at 1024, where the slide is 442 rather than 410.8. Splide draws its own
   arrow glyph and a chunky default button, so both are replaced.

   Dots: 6x6 circles on an 18px pitch (6 wide + 6 either side), centred, 10.2px
   below the slides, black at 20% with the active one at full — the reference's
   Swiper defaults. Splide paginates by PAGE where Swiper paginates by SLIDE, so
   the reference shows six dots and this shows two. Styling matches; the count
   does not, and closing it means replacing Splide's pagination with a custom
   one bound to the instance. Recorded rather than done.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Homepage video play button

   Bricks' video element renders a preview image and no play control at all,
   so the homepage video read as a still photograph with a caption — nothing
   said it could be played. The reference overlays Font Awesome's regular
   `play-circle` at 80x80, centred (measured at 215 / 103.4 in a 510 x 286.9
   box, which is dead centre both ways) in the secondary colour, over a 2%
   navy tint.

   It hangs off the preview image rather than the video wrapper so that Bricks
   removing the preview to swap in the YouTube iframe takes the button with it,
   and `pointer-events: none` keeps the click reaching the preview underneath —
   which is what actually starts playback.
   -------------------------------------------------------------------------- */

main#brx-content .cyc-video .bricks-video-preview-image {
  cursor: pointer;
}

main#brx-content .cyc-video .bricks-video-preview-image::before {
  background-color: rgb(35 45 99 / 2%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

main#brx-content .cyc-video .bricks-video-preview-image::after {
  background-color: var(--cyc-color-secondary);
  block-size: 80px;
  content: "";
  inline-size: 80px;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  -webkit-mask: var(--cyc-play-circle) center / contain no-repeat;
  mask: var(--cyc-play-circle) center / contain no-repeat;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   Podcast card play button

   Bricks' icon element offers Themify and Ionicons; the reference uses Font
   Awesome's solid `play`. Themify's ti-control-play is an OUTLINED triangle
   against the reference's filled one, and the font glyph carried a 58px line
   box where the reference's SVG is 44x44. The themify <i> stays in the tree so
   the builder still shows an editable icon, and is replaced here by the real
   glyph as a mask — the same approach as the Read More chevron and the
   carousel arrows.
   -------------------------------------------------------------------------- */

.cyc-podcast-card__play i {
  display: none;
}

/* The glyph is 44x44 inside the reference's 58px-tall icon box, centred. */
.cyc-podcast-card__play {
  align-items: center;
  display: flex;
  justify-content: center;
}

.cyc-podcast-card__play::before {
  background-color: var(--cyc-color-secondary);
  block-size: 44px;
  content: "";
  display: block;
  inline-size: 44px;
  -webkit-mask: var(--cyc-play) center / contain no-repeat;
  mask: var(--cyc-play) center / contain no-repeat;
}

#brx-footer .cyc-podcast-carousel .splide__arrow {
  background: none;
  block-size: 25px;
  border: 0;
  border-radius: 0;
  inline-size: 25px;
  opacity: 1;
  /* Splide keeps its own translateY(-50%); this shifts the centre up so the
     arrow lands 186 from the slide top at 1280/768/390 and 202 at 1024, as
     measured on the reference. */
  top: calc(50% - 14.8px);
  z-index: 2;
}

#brx-footer .cyc-podcast-carousel .splide__arrow svg {
  display: none;
}

#brx-footer .cyc-podcast-carousel .splide__arrow::before {
  background-color: rgb(237 237 237 / 90%);
  block-size: 25px;
  content: "";
  display: block;
  inline-size: 25px;
  -webkit-mask: var(--cyc-chevron-left) center / contain no-repeat;
  mask: var(--cyc-chevron-left) center / contain no-repeat;
}

#brx-footer .cyc-podcast-carousel .splide__arrow--next::before {
  -webkit-mask-image: var(--cyc-chevron-right);
  mask-image: var(--cyc-chevron-right);
}

#brx-footer .cyc-podcast-carousel .splide__arrow--prev {
  inset-inline-start: 0;
}

#brx-footer .cyc-podcast-carousel .splide__arrow--next {
  inset-inline-end: 0;
}

/* Splide floats its pagination over the slides (absolute, bottom: 0.5em); the
   reference's sits below them, 10.2px under the slide edge. Taking it back into
   flow puts it there — and the 16px the carousel block already reserved for it
   becomes real content rather than padding, so the height is unchanged. */
#brx-footer .cyc-podcast-carousel .splide__pagination {
  gap: 0;
  /* Splide centred the dots with inset:0 on the absolute box; taking it out of
     flow-less positioning means saying so directly. */
  inline-size: 100%;
  justify-content: center;
  padding-block-start: 10.2px;
  position: static;
  /* The absolute centring was left:50% + translateX(-50%). `left` goes inert
     when the box returns to flow but the transform does not, and it dragged the
     dots 570px off the left edge. */
  transform: none;
}

#brx-footer .cyc-podcast-carousel .splide__pagination__page {
  background: #000;
  block-size: 6px;
  inline-size: 6px;
  margin: 0 6px;
  opacity: 0.2;
  transform: none;
}

#brx-footer .cyc-podcast-carousel .splide__pagination__page.is-active {
  opacity: 1;
}

#brx-footer .bricks-nav-menu > li {
  align-items: center;
  display: flex;
}

#brx-footer .bricks-nav-menu > li:not(:last-child)::after {
  border-left: 2px solid var(--cyc-color-muted-soft);
  content: "";
  display: block;
  height: 18px;
  width: 0;
}

@media (max-width: 767px) {
  #brx-footer .bricks-nav-menu > li:not(:last-child)::after {
    height: 13.11px;
  }
}

/* --------------------------------------------------------------------------
   Social icon labels

   Bricks renders the repeater's `label` as visible text next to the glyph, so
   the footer read "f Facebook  Twitter  Instagram  in Linkedin" with the words
   wrapping into narrow columns. The reference keeps the same text for screen
   readers and hides it visually (.elementor-screen-only). Same treatment here:
   the label stays in the accessibility tree, it just stops being drawn.
   -------------------------------------------------------------------------- */

.cyc-footer__socials a > span {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Copyright line inside the reserved wordmark space

   The reference has no copyright line; the LLOBE footer contract requires one
   (dynamic year + the llobe.com link, `footer_contract` in the project
   contract). In normal flow it made the bottom band 463px against the
   reference's 412 — a 51px page-height difference on every page.

   The reference already reserves 300px (200 / 140) of empty navy for the
   wordmark, and the artwork is 1508x280, so at 67% width it only fills the
   bottom 159px of that space. Taking the line out of flow with `position:
   absolute` and no `top` leaves it at its static position — directly under the
   meta row, in the clear navy at the top of the reserved area — while
   contributing nothing to the band height. Clearance to the artwork measures
   90px at 1280, 21px at 1024, 53px at 768 and 16px at 390.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Hero artwork on small screens

   The hero background is the Largest Contentful Paint element on the homepage.
   A phone at 2x needs roughly 824px of image; the full-size file is 139 KB and
   the 1024-wide crop WordPress already generated is 87 KB, identical once
   background-size: cover has scaled it. Pairing this with the media-scoped
   preload in CYC\Core\Frontend\AssetPolicy means a phone fetches 87 KB and a
   desktop fetches 139 KB, and neither fetches both.
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  main#brx-content .cyc-home-hero.brxe-section {
    background-image: url("/app/uploads/2023/11/section-home-hero-1024x547.jpg");
  }
}

#brx-footer .cyc-footer__bottom-inner {
  position: relative;
}

#brx-footer .cyc-footer__copyright {
  left: 0;
  position: absolute;
  right: 0;
}

/* --------------------------------------------------------------------------
   Links inside styled headings

   Bricks styles the heading element but gives the <a> inside it the body font,
   so every podcast card title rendered as italic INTER where the reference has
   italic Source Serif Pro — on every page of the site, in the footer carousel.
   It also changed where the titles wrapped: "Deep Clean: One Company's Idea to
   Revitalize the American Dream" took four lines instead of three, which made
   the whole carousel 31px taller.

   `font: inherit` takes family, size, weight, style and line-height from the
   heading in one declaration. The wrapping properties are matched to the
   reference too: it computes overflow-wrap: normal / word-break: break-word,
   where Bricks ships overflow-wrap: anywhere, and `anywhere` changes min-content
   sizing as well as break opportunities.
   -------------------------------------------------------------------------- */

main#brx-content :is(h1, h2, h3, h4, h5, h6) a,
main#brx-content .cyc-podcast-card__title a,
#brx-footer :is(h1, h2, h3, h4, h5, h6) a,
#brx-footer .cyc-podcast-card__title a {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  overflow-wrap: normal;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Logo link line box

   Bricks renders the image element as a block <a> with a 30px line-height. The
   image is vertical-align: middle inside that line box, which drops it 2.42px
   below the reference's y=33 at mobile. Zeroing the line-height removes the
   phantom leading; the image keeps its own intrinsic height.
   -------------------------------------------------------------------------- */

#brx-header .cyc-header__logo {
  /*
   * Reserve the logo's box before the file arrives.
   *
   * The logo is an SVG loaded through a lazy-load placeholder, so until the
   * real file lands the <img> has no intrinsic ratio and the header renders
   * ~63px taller than its settled height. When the swap happens the header
   * shrinks and every page pulls upward — measured as a single 0.141 layout
   * shift at 243ms, the site's entire CLS. 430x45 is the SVG's own viewBox, so
   * the reserved box is exactly the box the image ends up occupying: 400x41.86
   * at 1280 and 270x28.25 at 390, both matching the reference to the pixel.
   */
  line-height: 0;
}

/*
 * The ratio has to go on the IMG, not on the link that carries the class:
 * Bricks renders the logo as `a.cyc-header__logo > img`, so an aspect-ratio on
 * the anchor leaves the image free to collapse. Measured before this rule: the
 * header rendered 183px tall until the SVG arrived at ~480ms and then snapped
 * to 67, moving the whole page up 116px.
 */
#brx-header .cyc-header__logo img {
  aspect-ratio: 430 / 45;
  block-size: auto;
  inline-size: 100%;
}

/* --------------------------------------------------------------------------
   Archive typeface — the same deliberate parity quirk as the nav

   /press/ is the one page the reference never applied the design system to: it
   renders in Hello Elementor's defaults, which resolve to the browser's system
   stack rather than Inter. Matching it keeps a side-by-side review honest.
   Delete this block and the archive returns to Inter, the font the design
   system intends. See scripts/bricks-build-archive.php for the colour half of
   the same decision.
   -------------------------------------------------------------------------- */

main#brx-content .cyc-archive,
main#brx-content .cyc-archive :is(h1, h2, h3, p, a, span, div) {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   Mobile menu toggle

   The reference hamburger is 37x37. Bricks exposes mobileMenuToggleWidth but no
   height control — the button's height is whatever its three bars add up to,
   which lands at 16px. Setting the height here keeps the mobile header row at
   the reference's 67px, because that row height is driven by the toggle rather
   than by the 28.25px logo.

   Scoped to the tablet breakpoint on purpose. An unscoped `display: flex` beats
   Bricks' own `display: none` at desktop, which puts a hamburger next to the
   desktop nav and grows the header from 99px to 136px.
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  #brx-header .bricks-mobile-menu-toggle {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 37px;
    justify-content: center;
    row-gap: 7px;
  }

  #brx-header .bricks-mobile-menu-toggle span {
    height: 3px;
  }
}

/* --------------------------------------------------------------------------
   Posts archive measure

   Hello Elementor steps the archive container 1140 → 800 → 600 → 500 at
   1024 / 1023 / 767 (measured on the reference at each width). Bricks has two
   breakpoints, so the 800 lives on tablet_portrait in the class and the two
   lower steps are stated here. Fluid at 390 with the reference's 10px gutter.
   -------------------------------------------------------------------------- */

/* Bricks emits its class rules as `.cyc-archive.brxe-block` in an inline
   <style> AFTER site.css, so equal specificity loses on source order. Three
   selectors here so these three steps win deterministically. */
@media (max-width: 1023px) {
  main#brx-content .cyc-archive.brxe-block {
    max-width: 600px;
  }
}

@media (max-width: 767px) {
  main#brx-content .cyc-archive.brxe-block {
    max-width: 500px;
  }
}

@media (max-width: 520px) {
  main#brx-content .cyc-archive.brxe-block {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Posts archive teaser image

   Hello Elementor caps .wp-post-image at 500px tall with object-fit: cover.
   Bricks' image element applies _height to its wrapper, not the <img>, so the
   cap has to be stated on the image itself.
   -------------------------------------------------------------------------- */

main#brx-content .cyc-post-teaser__image img,
main#brx-content img.cyc-post-teaser__image {
  /* Measured: a fixed height of 500 at >=1024, 400 down to 768, 300 on mobile
     (the image is 800x800 natural, so the box is width:100% cropped to that
     height with object-fit: cover). Specificity beats Bricks' inline rule. */
  height: 500px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 1023px) {
  main#brx-content .cyc-post-teaser__image img,
main#brx-content img.cyc-post-teaser__image {
    height: 400px;
  }
}

@media (max-width: 520px) {
  main#brx-content .cyc-post-teaser__image img,
main#brx-content img.cyc-post-teaser__image {
    height: 300px;
  }
}

/* The class sits on the <a> that wraps the image, and Bricks put a fixed 500px
   height on it. The <img> inside steps down to 400 and 300 at the narrower
   measures above, but the wrapper did not — so every article stayed 100px too
   tall at 768 and 200px too tall at 390, ten times over. The wrapper follows
   the image. */
main#brx-content .cyc-post-teaser__image {
  block-size: auto;
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Footer social icons

   Reference: four 50x50 navy squares at 10% radius. Bricks' social-icons
   element sizes the box from the glyph plus padding, with no width/height
   control, so the square is set here.
   -------------------------------------------------------------------------- */

#brx-footer .brxe-social-icons li,
#brx-footer .brxe-social-icons a {
  align-items: center;
  border-radius: 10%;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

/* --------------------------------------------------------------------------
   Rich-text paragraph margin

   Elementor's text-editor widget keeps its <p>'s 14.4px bottom margin (0.9em at
   16px) inside the widget box, so every rich-text block on the reference
   measures text height + 14.4px. Bricks' text element zeroes it. Restoring the
   margin on the last paragraph reproduces the reference box exactly, and the
   spacing that follows each block is then authored on the block as it is on
   the reference.
   -------------------------------------------------------------------------- */

.cyc-statement p:last-child,
.cyc-display:not(.cyc-display--white):not(.cyc-display--centered) p:last-child {
  margin-block-end: 14.4px;
}

/* The pipeline columns are the one place with several stacked paragraphs. The
   reference spaces them 14.4px apart (0.9em); the rebuild inherited 19.2px,
   which added 4.8px per gap — 9.6px on the two gaps in every column, and the
   tallest column sets the band height. The last paragraph carries no margin on
   either site, so only the inter-paragraph gaps move. */
main#brx-content .cyc-pipeline__col p {
  margin-block-end: 14.4px;
}

main#brx-content .cyc-pipeline__col p:last-child {
  margin-block-end: 0;
}

/* --------------------------------------------------------------------------
   Impact counter rows

   Above 767 the reference gives every counter row the height of the TALLEST
   counter, not of its own contents: at 1280 all three rows measure 126 (the
   tallest cell) and at 768 all three measure 164, even though the first row's
   contents are only 116.5. `grid-auto-rows: 1fr` is the grid equivalent.

   At 767 and below the counters are one per row and the reference stops
   equalising — measured rows of 126 / 126 / 126 / 154.5 / 126 against cell
   contents of 97.5 / 97.5 / 126 / 154.5 / 116.5. That is the 126px floor that
   cyc-counter carries as a min-height, with no stretching on top, so the rows
   go back to auto here.
   -------------------------------------------------------------------------- */

main#brx-content .cyc-counters {
  grid-auto-rows: 1fr;
}

@media (max-width: 767px) {
  main#brx-content .cyc-counters {
    grid-auto-rows: auto;
  }

  /* The 126px floor applies to every counter except the last: the reference's
     final row measures its own 116.5 rather than the floor, because the slack
     its Elementor wrapper reserves falls outside the band. Without this the
     impact band is 9.5px tall at 390. */
  main#brx-content .cyc-counters > :last-child {
    min-height: 0;
  }
}

/* The leadership grid equalises the same way: at 1024 the reference's second
   row of cards is 413.4 tall like the first, even though its own contents are
   only 392.4 — row one is taller because "Chief Executive Officer, Co-Founder"
   wraps to two lines in a 298px column. Without this the grid came out 21px
   short. At 390 the grid is one column and every card is 392.4 anyway. */
/*
 * Only while every card is closed.
 *
 * Equal rows are right at rest, but they are wrong the moment a biography is
 * expanded: `1fr` makes EVERY row as tall as the tallest, so opening Brad
 * Angevine — the longest bio on the page at 1671 characters — grew the row
 * above it to match and left 642px of white space over three collapsed cards.
 * The reference does this too (both sites go 2485 -> 3769 with every cell at
 * 1034.4), so it is a source defect reproduced faithfully rather than a
 * regression. It is also the kind AGENTS.md says to fix rather than inherit.
 *
 * Dropping to auto rows while a card is open keeps the expanded row's own
 * behaviour intact — its sibling still stretches alongside it, as on the
 * reference — and lets the untouched rows keep their natural height.
 *
 * A browser without :has() ignores the whole rule and gets natural rows at rest
 * too: cards sit at their own heights rather than the tallest in the grid. That
 * is a small cosmetic difference in the resting state, not a broken layout, and
 * it is the right way round — the alternative degradation would be the 642px
 * gap.
 */
main#brx-content .cyc-people:not(:has(.cyc-person.is-open)) {
  grid-auto-rows: 1fr;
}

@media (max-width: 767px) {
  main#brx-content .cyc-people {
    grid-auto-rows: auto;
  }
}

/* Where the block already carries the reference's authored bottom space as
   padding, the paragraph margin would double it. */
main#brx-content .cyc-display--white p:last-child,
main#brx-content .cyc-display--centered p:last-child,
main#brx-content .cyc-story-p p:last-child {
  margin-block-end: 0;
}

/* --------------------------------------------------------------------------
   Homepage university ticker

   The reference is a literal <marquee behavior="alternate">: text bouncing left
   and right along the bottom of the hero. <marquee> is deprecated and cannot be
   styled or slowed, so the same alternate motion is a CSS animation. Reduced
   motion stops it and shows the text statically, which the reference cannot do.
   -------------------------------------------------------------------------- */

.cyc-ticker {
  overflow: hidden;
  white-space: nowrap;
}

@keyframes cyc-ticker-alternate {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw - 100%)); }
}

.cyc-ticker__track {
  animation: cyc-ticker-alternate 24s linear infinite alternate;
  display: inline-block;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Leadership bio reveal

   The reference clips each bio to 93px (four lines at 14px / 1.5) behind a Read
   More control. Bricks' toggle element flips a class; the clip, the fade at the
   clip edge and the label swap are CSS, which is what site.css is for.
   -------------------------------------------------------------------------- */

.cyc-person__bio {
  max-height: 93px;
  overflow: hidden;
  position: relative;
  transition: max-height var(--cyc-duration-standard) var(--cyc-ease-standard);
}

.cyc-person__bio::after {
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%), var(--cyc-color-white));
  bottom: 0;
  content: "";
  height: 2em;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.cyc-person.is-open .cyc-person__bio {
  max-height: 200vh;
}

.cyc-person.is-open .cyc-person__bio::after {
  opacity: 0;
}

.cyc-person__more {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

/* Bricks' toggle element draws an animated hamburger. The reference's control
   is a text label followed by a chevron, so the hamburger is removed rather
   than restyled. */
.cyc-person__more .brxa-wrap {
  display: none;
}

.cyc-person__more::before {
  content: "Read More";
}

.cyc-person.is-open .cyc-person__more::before {
  content: "Read Less";
}

/* The chevron: Font Awesome's angle-down/angle-up, 20x20 with an 8px gap, as
   measured on the reference (text 82 + 8 + 20 = the 110px control). Drawn as a
   mask filled with currentColor so it tracks --cyc-color-accent rather than
   hardcoding the hex twice. */
.cyc-person__more::after {
  background-color: currentColor;
  block-size: 20px;
  content: "";
  display: block;
  inline-size: 20px;
  margin-inline-start: 8px;
  -webkit-mask: var(--cyc-chevron-down) center / contain no-repeat;
  mask: var(--cyc-chevron-down) center / contain no-repeat;
}

.cyc-person.is-open .cyc-person__more::after {
  -webkit-mask-image: var(--cyc-chevron-up);
  mask-image: var(--cyc-chevron-up);
}

/* --------------------------------------------------------------------------
   Focus

   The reference has no visible focus style at all. Reproducing that would carry
   an accessibility defect forward, so this is a documented parity exception:
   a visible focus ring in the brand accent, recorded in STATUS.md.
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--cyc-color-focus);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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