/* Castrius Capital Partners — primary theme styles. */
:root {
  --cas-red: #c01327;
  --cas-deep: #1e1e1e;
  --cas-white: #ffffff;
  --nav-offset: clamp(15px, 2.5vw, 44px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}
body.castrius-site {
  width: 100%;
  overflow-x: clip;
}

.logged-in .castrius-header { top: 32px; }

#main {
  position: relative;
  width: 100%;
  min-width: 0;
}
body.castrius-site {
  margin: 0;
  background: var(--cas-red);
  color: var(--cas-white);
}
body.castrius-site :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}
body.castrius-site a {
  color: inherit;
}
body.castrius-site img {
  max-width: 100%;
  height: auto;
}
/* GLOBAL TYPOGRAPHY — edit all site-wide text styles here. */
body.castrius-site {
  font-family: mundial, Arial, sans-serif;
  font-weight: 100;
  font-size: 18px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: mundial, Arial, sans-serif;
  font-weight: 100;
  line-height: 1.1;
  margin: 0 0 40px;
}
h1 {
  font-size: 70px;
}
h2 {
  font-size: 60px;
}
h3 {
  font-size: 48px;
}
h4 {
  font-size: 36px;
}
h5 {
  font-size: 24px;
}
h6 {
  font-size: 18px;
}
h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  font-weight: 500;
}
p {
  margin: 0 0 1em;
  line-height: 1.5;
}

.castrius-header-right {
  text-align: right;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--cas-red);
}
.castrius-header-right a {
  color:var(--cas-deep) !important;
  position:relative;
}
.castrius-header-right:after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../imagery/shape_white.svg) no-repeat bottom right;
    opacity: 0.9;
    right: -300px;
    background-size: 1000px;
    z-index: -1;
}

.email_icon {
    position: absolute;
    text-indent: -10000px;
    font-size: 0;
    background: url(../imagery/email_icon.svg);
    height: 20px;
    width: 28px;
    top: 5px;
    left: 0px;

}

.cas-eyebrow {
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 4px solid var(--cas-red);
    padding-bottom: 10px;
    width: fit-content;
}

.cas-fullscreen-body {
  font-size: clamp(18px, 1.5vw, 22px);
}

#cas-panel-1 .cas-fullscreen:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../imagery/shape_dark.svg) no-repeat center;
    opacity: 0.9;
    background-size: 1150px;
    height: 1200px;
    width: 1200px;
    z-index: 1;
    mix-blend-mode: multiply;
    transform-origin: center;
    top: -32%;
    left: -8%;
    animation: cas-slow-rotate 360s linear infinite;
    transform-origin: center center;

}

@keyframes cas-slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #cas-panel-1 .cas-fullscreen::before { animation: none; }
}

/* Targeting Valuations */

#cas-panel-4 .cas-fullscreen .cas-fullscreen-copy {
  width: 100%;
  max-width: 950px;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  column-gap: 3rem;
  align-items: center;
}

#cas-panel-4 .cas-fullscreen .cas-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-heading {
  grid-column: 1;
  margin: 0;
  text-align: left;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-body {
  grid-column: 2;
  border-left: 2px solid #FFFFFF;
  padding-left: 3rem;
  text-align: left;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-body p {
  margin: 0;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-heading {
  line-height: 1.1;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-heading strong,
#cas-panel-4 .cas-fullscreen .cas-fullscreen-heading em {
  display: block;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-heading strong {
  font-size: 2em;
  font-weight: 600;
  line-height: 1;
}

#cas-panel-4 .cas-fullscreen .cas-fullscreen-heading em {
  font-size: 0.65em;
  font-weight: 300;
}

/* Mobile */

@media (max-width: 1033px) {
  #cas-panel-5 .cas-fullscreen-body span { width:75% !important; }
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-copy {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #cas-panel-4 .cas-fullscreen .cas-eyebrow,
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-heading,
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-body {
    grid-column: 1;
  }

  #cas-panel-4 .cas-fullscreen .cas-fullscreen-body {
    border-left: 0;
    border-top: 2px solid #FFFFFF;
    padding: 1.5rem 0 0;
  }
}

#cas-panel-5,
#cas-panel-5 .cas-fullscreen { min-height:90svh; }

#cas-panel-5 .cas-fullscreen-body span {
    background: var(--cas-deep);
    padding: 10px 20px;
    border-radius: 10px;
    width: 90%;
    display: block;
    float: left;
    margin-right: 10px;
}

#cas-panel-5 .linkedin {
    background: #1e1e1e url(../imagery/linkedin_icon.svg) no-repeat center;
    width: 47px;
    height: 47px;
    border-radius: 10px;
    text-indent: -10000px;
    background-size: 25px;
    min-width: 0;
    position: relative;
    font-size: 1px;
    padding: 0;
    float: left;
    margin: 1px 0 0 0;
}

.castrius-dot-label {
  font-family: mundial, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 1033px) {
  h1 {
    font-size: clamp(38px, 9vw, 66px);
  }
  h2 {
    font-size: clamp(34px, 8vw, 58px);
  }
  .castrius-brand {
    font-size: 16px;
  }
  .brand-symbol {
    font-size: 30px;
  }
  .castrius-header-right {
    font-size: 8px;
  }
  .castrius-dot-label {
    font-size: 9px;
  }
}
/* COMPONENT LAYOUT AND PRESENTATION */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 200;
  background: white;
  color: #1e1e1e;
  padding: 10px;
}
.castrius-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 150px;
  pointer-events: none;
  z-index: 10000;
}

.hidden-header {
    width: 100%;
    background: #FFF;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    padding: 20px 150px;
    justify-content: space-between;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.45s ease,
      opacity 0.45s ease,
      visibility 0.45s ease;
}

.hidden-header.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .hidden-header {
    transition: none;
  }
}

.hidden-header span,
.hidden-header a {
  align-content:center;
  font-weight:500;
  position:relative;
}
.hidden-header span {
  color:var(--cas-red);
}
.hidden-header a {
  color:var(--cas-deep) !important;
}

.hidden-header .email_icon {
    left: -40px;
    top: 20px;
    width: 28px;
    height: 20px;
    position: absolute;
}

.castrius-header a {
  pointer-events: auto;
}
.castrius-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.castrius-brand small {
  display: block;
  margin-top: 6px;
}
.castrius-header-right a {
  display: block;
  text-decoration: none;
  margin-top: 8px;
}
.castrius-footer {
  background: var(--cas-deep);
  padding: 25px 7vw;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bryan_topham {
    background: url(../imagery/BT_Logo.svg) no-repeat;
    width: 145px;
    display: block;
    height: 20px;
    float: right;
    margin: 6px 0px 0px 10px;
}
.castrius-page-content {
  min-height: 60vh;
  padding: 130px clamp(24px, 8vw, 140px) 70px;
}
/* ACF presentation panels */
.castrius-panel {
  position: relative;
  min-height: 728px;
  scroll-margin-top: 0;
}

#cas-panel-1 > .cas-fullscreen,
#cas-panel-1 { min-height:928px; }

.castrius-panel > .cas-fullscreen {
  position: relative;
  isolation: isolate;
  min-height: 768px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--cas-red);
  background-image: var(--cas-poster, none);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 140px 240px;
}
.castrius-panel > .cas-fullscreen.cas-bg-red {
  background-color: var(--cas-red);
}
.castrius-panel > .cas-fullscreen.cas-bg-dark {
  background-color: var(--cas-deep);
}
.castrius-panel > .cas-fullscreen.cas-bg-white {
  background-color: var(--cas-white);
}
.cas-fullscreen.cas-text-dark {
  color: var(--cas-deep);
}
.cas-fullscreen.cas-text-white {
  color: var(--cas-white);
}
.cas-fullscreen-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.cas-fullscreen-video iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.cas-fullscreen-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(30, 30, 30, var(--cas-overlay, 0));
  pointer-events: none;
}
.cas-overlay-red .cas-fullscreen-shade {
  background: rgba(192, 19, 39, var(--cas-overlay, 0));
  mix-blend-mode: multiply;
}
.cas-overlay-white .cas-fullscreen-shade {
  background: rgba(255, 255, 255, var(--cas-overlay, 0));
}
.cas-overlay-none .cas-fullscreen-shade {
  display: none;
}
.cas-fullscreen-edge-gradient {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(120px, 27vh, 380px);
  z-index: 0;
  pointer-events: none;
  --cas-gradient-colour: #c01327;
}
.cas-fullscreen-gradient-black {
  --cas-gradient-colour: #1e1e1e;
  mix-blend-mode: multiply;
}
.cas-fullscreen-edge-top {
  top: 0;
  background: linear-gradient(
    to bottom,
    var(--cas-gradient-colour),
    transparent
  );
}
.cas-fullscreen-edge-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--cas-gradient-colour), transparent);
}
.cas-fullscreen-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1400px);
  display: flex;
}
.cas-fullscreen-copy {
  width: 100%;
  max-width: 650px;
}
.cas-width-narrow .cas-fullscreen-copy {
  max-width: 440px;
}
.cas-width-wide .cas-fullscreen-copy {
  max-width: 900px;
}
.cas-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--cas-red) url(../imagery/chevron_single.svg) no-repeat 90% center;
  padding: 15px 65px 15px 25px;
  color: #fff !important;
  text-decoration: none;
  margin-top: 20px;
  border-radius: 5px;
  font-weight: 600;
  background-size: 10px;
}
.cas-pos-top-left,
.cas-pos-top-center,
.cas-pos-top-right {
  align-items: flex-start !important;
}
.cas-pos-bottom-left,
.cas-pos-bottom-center,
.cas-pos-bottom-right {
  align-items: flex-end !important;
}
.cas-pos-top-center .cas-fullscreen-inner,
.cas-pos-middle-center .cas-fullscreen-inner,
.cas-pos-bottom-center .cas-fullscreen-inner {
  justify-content: center;
  text-align: center;
}
.cas-pos-top-right .cas-fullscreen-inner,
.cas-pos-middle-right .cas-fullscreen-inner,
.cas-pos-bottom-right .cas-fullscreen-inner {
  justify-content: flex-end;
  text-align: right;
}
/* Dot navigation */
.castrius-dots {
  position: fixed;
  z-index: 100;
  left: var(--nav-offset);
  top: 50%;
  transform: translateY(-50%);
  color: white;
}
.castrius-dots ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.castrius-dots li {
  margin: 0;
  padding: 0;
}
.castrius-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  min-height: 24px;
  max-width: 260px;
  outline-offset: 5px;
}
.castrius-dot-marker {
  display: block;
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, transform 0.2s;
}
.castrius-dot-label {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.castrius-dot:hover .castrius-dot-label,
.castrius-dot:focus-visible .castrius-dot-label,
.castrius-dot.is-active .castrius-dot-label {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.castrius-dot.is-active .castrius-dot-marker {
  background: white;
  transform: scale(1.45);
}
.castrius-dots.on-light {
  color: var(--cas-deep);
}
.castrius-dots.on-light .castrius-dot.is-active .castrius-dot-marker {
  background: var(--cas-red);
  border-color: var(--cas-red);
}
.castrius-dots.on-light .castrius-dot.is-active .castrius-dot-label {
  color: var(--cas-red);
}
@media (max-width: 1033px) {
  .castrius-header {
    padding: 18px 22px;
  }
  .castrius-dots {
    left: 12px;
  }
  .castrius-dot-label {
    max-width: 135px;
    white-space: normal;
  }
  .castrius-dot:not(.is-active):not(:hover):not(:focus-visible)
    .castrius-dot-label {
    display: none;
  }
  .castrius-panel > .cas-fullscreen {
    padding: 110px 45px 70px 48px;
  }
  .castrius-footer {
    flex-wrap: wrap;
  }
}
@media (max-height: 550px) {
  .castrius-panel,
  .castrius-panel > .cas-fullscreen {
    min-height: 550px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .castrius-dot * {
    transition: none;
  }
  .cas-fullscreen-video {
    display: none;
  }
}

/* Floating SVG shapes: zero-height boundary between fullscreen panels */

.castrius-shape-boundary {
  position: relative;
  height: 0;
  z-index: 10;
  overflow: visible;
  pointer-events: none;
  max-width: 100%;
}
.castrius-floating-shape {
  position: absolute;
  left: var(--shape-x);
  top: var(--shape-y);
  width: min(var(--shape-width), 85vw);
  opacity: var(--shape-opacity);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}
.castrius-shape-behind {
  z-index: 0;
}
.castrius-shape-front {
  z-index: 3;
}
.castrius-shape-transform {
  transform: translate3d(0, var(--shape-scroll, 0px), 0)
    rotate(var(--shape-rotate));
  transform-origin: center;
}
.castrius-floating-shape img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes castrius-shape-float {
  0%,
  100% {
    translate: 0 45px;
  }
  50% {
    translate: 0 -45px;
  }
}
.castrius-motion-float .castrius-shape-transform {
  animation: castrius-shape-float 12s ease-in-out infinite;
}
@media (max-width: 1033px) {
  .castrius-shape-hide-mobile {
    display: none;
  }
  .castrius-floating-shape {
    width: min(var(--shape-width), 70vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .castrius-motion-float .castrius-shape-transform {
    animation: none;
  }
  .castrius-shape-transform {
    transform: rotate(var(--shape-rotate));
  }
}

/* Optional Fullscreen Content logo carousel */
.cas-logo-carousel {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 12px 0;
  color: inherit;
}
.cas-logo-carousel-bottom {
  bottom: clamp(20px, 6vh, 75px);
}
.cas-logo-carousel-top {
  top: clamp(75px, 12vh, 145px);
}
.cas-logo-carousel-track {
  display: flex;
  width: max-content;
  max-width: none;
}
.cas-logo-carousel-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 160px;
  padding-right: clamp(32px, 5vw, 90px);
}
.cas-logo-carousel-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cas-logo-carousel-item a {
  display: inline-flex;
  align-items: center;
}
/* More specific than the global body.castrius-site img rule. */
body.castrius-site .cas-logo-carousel-image {
  display: block;
  width: auto;
  height: var(--cas-logo-height, 250px);
  max-height: var(--cas-logo-height, 250px);
  max-width: min(28vw, 250px);
  object-fit: contain;
  min-width: 250px;
}
.cas-logo-carousel.is-animated.is-ready .cas-logo-carousel-track {
  animation: cas-logo-marquee var(--cas-logo-duration, 35s) linear infinite;
}
.cas-logo-carousel.pause-on-hover:hover .cas-logo-carousel-track,
.cas-logo-carousel.pause-on-hover:focus-within .cas-logo-carousel-track {
  animation-play-state: paused;
}
@keyframes cas-logo-marquee { to { transform: translateX(-50%); } }
@media (max-width: 1033px) {
  .cas-logo-carousel-bottom {
    bottom: 20px;
  }
  .cas-logo-carousel-top {
    top: 75px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cas-logo-carousel.is-animated.is-ready .cas-logo-carousel-track {
    animation: none;
  }
}

/* Carousel sections use normal document flow rather than absolute positioning.
   This keeps logos inside the viewport and out of the content's stacking area. */
.castrius-panel > .cas-fullscreen.has-logo-carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(20px, 3vh, 42px);
  padding-bottom: 0;
}

/* Main copy retains its natural height in carousel sections. */
.cas-fullscreen.has-logo-carousel:is(.cas-pos-top-left,.cas-pos-top-center,.cas-pos-top-right) .cas-fullscreen-inner {
  align-items: flex-start;
}
.cas-fullscreen.has-logo-carousel:is(.cas-pos-bottom-left,.cas-pos-bottom-center,.cas-pos-bottom-right) .cas-fullscreen-inner {
  align-items: flex-end;
}
.cas-fullscreen.has-logo-carousel .cas-logo-carousel {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width:100vw;
  margin-left:-240px;
  z-index: 5;
  pointer-events: auto;
}
/* Lift the bottom logo strip into the section without moving the main copy. */
.cas-fullscreen.has-logo-carousel .cas-logo-carousel-bottom {
  margin-bottom: clamp(65px, 11vh, 115px);
}
.cas-fullscreen.has-logo-carousel .cas-logo-carousel-top {
  order: -1;
}
.cas-fullscreen.has-logo-carousel .cas-fullscreen-inner {
  order: 0;
}
.cas-fullscreen.has-logo-carousel .cas-logo-carousel-bottom {
  order: 1;
}
@media (max-width: 1033px) {
  .castrius-panel > .cas-fullscreen.has-logo-carousel {
    padding: 90px 45px 30px 48px;
    gap: 20px;
  }
  .cas-fullscreen.has-logo-carousel .cas-logo-carousel-bottom {
    margin-bottom: clamp(22px, 5vh, 48px);
  }
  .cas-fullscreen.has-logo-carousel .cas-logo-carousel {
    width: calc(100% + 93px);
    margin-left: -48px;
  }
}

/* Mobile layout refinements */
@media (max-width: 1033px) {
  html, #main {
    width: 100%;
  }
  body.castrius-site {
    font-size: 16px;
  }
  body.castrius-site :is(h1,h2,h3,h4,h5,h6) {
    overflow-wrap: normal;
  }
  h1 {
    font-size: clamp(34px, 9vw, 46px);
  }
  h2 {
    font-size: clamp(30px, 8vw, 42px);
  }
  h3 {
    font-size: clamp(26px, 7vw, 36px);
  }
  .cas-fullscreen-body {
    font-size: 16px;
    line-height: 1.5;
  }
  .cas-eyebrow {
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom-width: 3px;
  }

  /* Keep both header logo variants within the screen. */
  .castrius-header {
    padding: 12px 18px;
    gap: 12px;
  }
  .castrius-header > .castrius-brand {
    min-width: 0;
    max-width: 100%;
  }
  .castrius-header > .castrius-brand svg {
    display: block;
    width: min(64vw, 250px);
    height: auto;
  }
  .castrius-header > .castrius-header-right {
    display: none;
  }
  .castrius-header .hidden-header {
    padding: 12px 18px;
    align-items: center;
    gap: 12px;
  }
  .hidden-header .castrius-brand {
    min-width: 0;
    flex: 0 1 auto;
  }
  .hidden-header .castrius-brand svg {
    width: min(52vw, 205px);
    height: auto;
    display: block;
  }
  .hidden-header > span, .hidden-header > a:not(.castrius-brand) {
    display: none;
  }

  /* Give text a consistent readable gutter and allow long sections to grow. */
  .castrius-panel > .cas-fullscreen,
  .castrius-panel > .cas-fullscreen.has-logo-carousel {
    min-height: 100svh;
    height: auto;
    padding: 112px 25px 80px 39px;
  }

  .cas-fullscreen-inner {
    width: 100%;
    min-width: 0;
  }
  .cas-fullscreen-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .cas-pos-top-right .cas-fullscreen-inner,
  .cas-pos-middle-right .cas-fullscreen-inner,
  .cas-pos-bottom-right .cas-fullscreen-inner {
    justify-content: flex-start;
    text-align: left;
  }
  .cas-button {
    max-width: 100%;
    padding: 14px 42px 14px 18px;
    gap: 10px;
    background-position: calc(100% - 16px) center;
  }

  /* Dot markers remain accessible but no longer cover content with labels. */
  .castrius-dots {
    left: 8px;
  }
  .castrius-dots ol {
    gap: 11px;
  }
  .castrius-dot-marker {
    width: 7px;
    height: 7px;
  }
  /* Logos follow copy without claiming the remainder of the viewport. */
  .castrius-panel > .cas-fullscreen.has-logo-carousel {
    justify-content: center;
    gap: clamp(28px, 5vh, 54px);
    padding-bottom: 65px;
  }
  .cas-fullscreen.has-logo-carousel .cas-fullscreen-inner {
    flex: 0 0 auto;
    min-height: 0;
    align-self: auto;
    align-items: initial;
  }
  .cas-fullscreen.has-logo-carousel .cas-logo-carousel {
    width: calc(100% + 64px);
    margin-left: -39px;
  }
  .cas-fullscreen.has-logo-carousel .cas-logo-carousel-bottom {
    margin-bottom: 0;
  }

  /* Decorative shapes are quieter on small screens and stay behind text. */
  .castrius-floating-shape {
    width: min(var(--shape-width), 48vw);
    opacity: min(var(--shape-opacity), .32);
  }
  .castrius-shape-front {
    z-index: 0;
  }
  .castrius-motion-float .castrius-shape-transform {
    animation-duration: 17s;
  }
  #cas-panel-1 .cas-fullscreen:before {
      background-size: max(900px, 100vw);
      background-position: center;
      opacity: .45;
      left: -35%;
      top: -30%;
  }
  /* Valuations section: one column, restrained display type, no overlap. */
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-copy {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
    max-width: 100%;
  }
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-heading strong {
    font-size: clamp(54px, 17vw, 84px);
  }
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-heading em {
    font-size: .65em;
  }
  #cas-panel-4 .cas-fullscreen .cas-fullscreen-body {
    padding-top: 20px;
  }
  #cas-panel-4 .cas-fullscreen {
    padding-bottom: 200px;
  }
  .castrius-footer {
    padding: 24px;
  }
}
@media (max-width: 440px) {

  #cas-panel-1 > .cas-fullscreen, #cas-panel-1 {
    min-height: 667px;
  }
  
  body.castrius-site .cas-logo-carousel-image {
    max-width: min(150px, 25vw);
    height: min(var(--cas-logo-height, 150px), 150px);
    max-height: min(var(--cas-logo-height, 150px), 150px);
    min-width: 150px;
  }

  .cas-logo-carousel-group { gap: 80px; }

  #cas-panel-1 .cas-fullscreen:before {
      background-size: max(750px, 100vw);
      background-position: center;
      opacity: .45;
      left: -125%;
      top: -40%;
  }

  .castrius-panel > .cas-fullscreen,
  .castrius-panel > .cas-fullscreen.has-logo-carousel {
    padding-left: 30px;
    padding-right: 30px;
  }
  .cas-fullscreen.has-logo-carousel .cas-logo-carousel {
    width: calc(100% + 50px);
    margin-left: -32px;
  }
  .castrius-header > .castrius-brand svg {
    width: min(70vw, 225px);
  }
}

/* v1.0.4: Centre the copy/carousel group in Ambitious Businesses only. */
#cas-panel-2 > .cas-fullscreen.has-logo-carousel {
  justify-content: center;
  align-items: center;
}
#cas-panel-2 .cas-fullscreen-inner {
  flex: 0 0 auto;
  justify-content: center;
  text-align: center;
}
#cas-panel-2 .cas-logo-carousel {
  align-self: stretch;
  margin-bottom: 0;
}

@media (min-width: 1681px) {
    .cas-fullscreen.has-logo-carousel .cas-fullscreen-inner {
        width: 100%;
        max-width: none;
        margin-inline: auto;
        justify-content: center;
    }

    .cas-fullscreen.has-logo-carousel .cas-fullscreen-copy {
        margin-inline: auto;
        text-align: center;
    }
}

/* Keep wide artwork from creating sideways scrolling without changing
   the desktop-to-mobile positioning or hiding the navigation. */
@supports not (overflow: clip) {
  html,
  body.castrius-site {
    overflow-x: hidden;
  }
}


/* Tablet and mobile: anchor section navigation below the viewport content. */
@media (max-width: 1033px) {
  .castrius-dots {
    position: fixed;
    inset: auto 0 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transform: none;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.96);
    color: #fff;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12);
  }

  .castrius-dots.on-light {
    color: #fff;
  }

  .castrius-dots ol {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .castrius-dots li {
    min-width: 0;
  }

  .castrius-dot {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* v1.0.5: Compact mobile presentation navigation. Desktop dots unchanged. */
.castrius-mobile-current {
  display: none;
}

@media (max-width: 1033px) {
  .castrius-dots {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .castrius-mobile-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
  }

  .castrius-mobile-current-name {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .castrius-mobile-current-name::before {
    content: '';
    flex: 0 0 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cas-red);
  }

  .castrius-mobile-count {
    flex: none;
    font-size: 11px;
    font-weight: 400;
    color: #bfbfbf;
    font-variant-numeric: tabular-nums;
  }

  .castrius-dots ol {
    gap: 7px;
    overflow-x: visible;
  }

  .castrius-dots li {
    flex: 1 1 0;
  }

  .castrius-dot {
    min-height: 28px;
    padding: 9px 0;
    gap: 0;
  }

  .castrius-dot-marker {
    width: 100%;
    height: 4px;
    border: 0;
    border-radius: 4px;
    background: #656565;
    transition: background 0.2s ease;
  }

  .castrius-dot.is-active .castrius-dot-marker,
  .castrius-dots.on-light .castrius-dot.is-active .castrius-dot-marker {
    background: var(--cas-red);
    transform: none;
  }

  .castrius-dot-label,
  .castrius-dot.is-active .castrius-dot-label {
    display: none;
  }

  .castrius-panel > .cas-fullscreen,
  .castrius-panel > .cas-fullscreen.has-logo-carousel {
    padding-bottom: max(112px, calc(95px + env(safe-area-inset-bottom, 0px)));
  }

  .castrius-footer {
    padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px));
  }
}

/* Scroll reveal animation */
.cas-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 800ms ease,
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--cas-reveal-delay, 0ms);
}

.cas-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .cas-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablet refinements: retain the compact presentation layout through 1033px. */
@media (min-width: 768px) and (max-width: 1033px) {
  .castrius-panel > .cas-fullscreen,
  .castrius-panel > .cas-fullscreen.has-logo-carousel {
    padding-inline: clamp(40px, 6vw, 72px);
    padding-top: clamp(100px, 12vh, 140px);
  }

  .cas-fullscreen-copy {
    max-width: 680px;
  }

  .castrius-floating-shape {
    width: min(var(--shape-width), 55vw);
  }

  .castrius-header > .castrius-brand svg {
    width: min(42vw, 270px);
  }

  .cas-fullscreen.has-logo-carousel .cas-logo-carousel {
    width: calc(100% + 2 * clamp(40px, 6vw, 72px));
    margin-left: calc(-1 * clamp(40px, 6vw, 72px));
  }
}
