/* Shared navigation and restrained brand effects. */
.nav-shell { gap: 20px; }
.nav-link, .dropdown-toggle { font-size: .76rem; padding-inline: 10px; letter-spacing: .07em; }
.nav-cta, #contact-form button[type="submit"], .button-shimmer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(187,192,255,.3), inset 0 0 10px rgba(187,192,255,.1);
  animation: ca-button-glow 4s ease-in-out infinite;
}
.nav-cta::before, #contact-form button[type="submit"]::before, .button-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-150%);
  animation: ca-button-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-aside strong, #contact .eyebrow, #contact-title {
  color: #fff;
  text-shadow: 0 0 12px rgba(187,192,255,.5);
  background: linear-gradient(110deg, #fff 35%, #bbc0ff 46%, #fff 55%, #fff 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ca-text-shimmer 7s ease-in-out infinite;
}
.footer-brand > p { text-shadow: 0 0 12px rgba(187,192,255,.5), 0 0 24px rgba(187,192,255,.2); }
@keyframes ca-button-glow { 50% { box-shadow: 0 0 22px rgba(187,192,255,.5), inset 0 0 12px rgba(187,192,255,.16); } }
@keyframes ca-button-shimmer { 0%, 65% { transform: translateX(-150%); } 90%, 100% { transform: translateX(150%); } }
@keyframes ca-text-shimmer { 0%, 55% { background-position: 100% 0; } 90%, 100% { background-position: 0 0; } }

/* Content stays in normal flow so viewport changes cannot push buttons out of the hero. */
.home-page .hero {
  height: auto;
  min-height: calc(100svh - var(--header-flow-height, 109px));
  padding: clamp(24px, 4svh, 48px) 0 !important;
  overflow: clip;
}
.home-page .hero-grid {
  top: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
}
.home-page .hero-grid > div:first-child { min-width: 0; }
.home-page .hero-brand-logo {
  width: auto;
  height: clamp(150px, 24svh, 240px);
  max-width: min(100%, 500px);
  object-fit: contain;
  object-position: left center;
  margin: 0 0 clamp(18px, 3svh, 28px);
}
.home-page .hero h1 {
  max-width: 100%;
  font-size: clamp(2.25rem, 3.25vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: clamp(18px, 3svh, 28px);
}
.home-page .hero h1 span { display: block; }
.home-page .hero-copy {
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: clamp(20px, 3svh, 30px);
}
.home-page .hero-actions { margin: 0; gap: 14px; }
.home-page .hero-aside { max-width: 100%; }
.home-page .hero-aside p:last-child { margin-bottom: 0; }
@media (min-width: 821px) and (max-height: 750px) {
  .home-page .hero-brand-logo { height: 170px; }
  .home-page .hero h1 { font-size: clamp(2rem, 3vw, 3rem); }
  .home-page .hero-copy { font-size: 1rem; line-height: 1.55; }
}
@media (min-width: 821px) and (max-width: 1440px) and (min-height: 751px) and (max-height: 900px) {
  .home-page .hero-brand-logo { height: clamp(190px, 27svh, 225px); }
}
@media (max-width: 820px) {
  .home-page .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-page .hero::after { display: none; }
  .home-page .hero-brand-logo { height: 180px; max-width: min(100%, 384px); }
  .home-page .hero h1 { font-size: clamp(2rem, 6.4vw, 3.2rem) !important; line-height: 1.1 !important; }
  .home-page .hero-aside { padding-top: 24px; }
  .home-page .container { width: calc(100% - 40px) !important; }
}
@media (max-width: 760px) {
  .home-page .hero-brand-logo { width: calc(100% + 16px); max-width: 384px; height: auto; margin-left: -8px; }
  .home-page .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta, #contact-form button[type="submit"], .button-shimmer, .nav-cta::before,
  #contact-form button[type="submit"]::before, .button-shimmer::before, .hero-aside strong,
  #contact .eyebrow, #contact-title { animation: none !important; }
  .nav-cta::before, #contact-form button[type="submit"]::before, .button-shimmer::before { display: none; }
  .hero-aside strong, #contact .eyebrow, #contact-title { -webkit-text-fill-color: currentColor; background: none; }
}
/* Give the shimmer a button-sized clipping box. */
.nav-cta { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 1060px) { .nav-cta { display: flex; } }
/* Contain decorative hero lettering and the closed mobile drawer. */
body { overflow-x: clip; }
.hero { overflow: clip; }
@media (max-width: 1060px) {
  .main-nav { visibility: hidden; }
  .main-nav.open { visibility: visible; }
}
/* Slightly smaller logo while the homepage header is at the top. */
.home-page .site-header:not(.is-sticky) .nav-shell > a > img { height: 68px !important; }
@media (max-width: 1060px) {
  .home-page .site-header:not(.is-sticky) .nav-shell > a > img { height: 64px !important; }
}

/* A soft glow and slow shimmer follow the small CA mark's silhouette. */
.header-logo-effect { position: relative; display: block; flex-shrink: 0; }
.header-logo-effect img {
  filter: drop-shadow(0 0 4px rgba(187,192,255,.3));
  animation: ca-logo-glow 5s ease-in-out infinite;
}
.header-logo-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(187,192,255,.6) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask: url("images/ca-logo-hero5.png") center / contain no-repeat;
  mask: url("images/ca-logo-hero5.png") center / contain no-repeat;
  animation: ca-logo-shimmer 8s ease-in-out infinite;
}
@keyframes ca-logo-glow {
  50% { filter: drop-shadow(0 0 7px rgba(187,192,255,.5)); }
}
@keyframes ca-logo-shimmer {
  0%, 65% { background-position: 100% 0; }
  90%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .header-logo-effect img, .header-logo-effect::after { animation: none !important; }
  .header-logo-effect::after { display: none; }
}
/* Add breathing room above the headline without shifting the copy or buttons. */
@media (min-width: 821px) {
  .home-page .hero-brand-logo { position: relative; top: -18px; }
}
/* Keep expanded community links readable as each section grows with its content. */
.community-updated .community-grid { align-items: start; }
.community-updated .community-panel { padding: clamp(24px, 3vw, 40px); }
.community-updated .community-list { margin-top: 0; column-gap: 24px; }
.community-updated .community-list a { line-height: 1.55; overflow-wrap: anywhere; }
.profile-story h3 { margin-top: 32px; }
/* Clip the shared shimmer to contact text links as well as filled buttons. */
.text-link.button-shimmer { display: inline-flex; }
/* Supplied Michael Corcoran portrait and community performance photograph. */
img.michael-photo { object-position: 28% 20%; }
.michael-profile-photo { width: 100%; max-width: 360px; min-height: 0; margin: 0 0 0 auto; padding: 0; gap: 0; align-self: center; justify-self: end; overflow: hidden; }
.michael-profile-photo img { width: 100%; height: auto; display: block; }
.michael-profile-photo .profile-monogram-caption { width: 100%; padding: 14px 12px; background: rgba(17,21,47,.22); }
.community-music-feature { background: var(--cream); padding: clamp(48px, 6vw, 88px) 0; }
.community-music-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.community-music-photo { margin: 0; }
.community-music-photo img { width: 100%; height: auto; box-shadow: var(--shadow); }
.community-music-photo figcaption { margin-top: 14px; color: #555865; font-size: .86rem; line-height: 1.6; }
.community-music-copy p:not(.eyebrow) { color: #555865; }
@media (max-width: 760px) {
  .michael-profile-photo { max-width: 340px; margin: 0 auto; justify-self: center; }
  .community-music-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
/* Michael’s profile heading uses one spacing value above the opening paragraph. */
#michael-profile .section-head { margin-bottom: 24px; }
#michael-profile-title { margin-bottom: 0; }
@media (max-width: 760px) {
  #michael-profile .section-head { margin-bottom: 20px; }
}
