/*
 * Custom CSS overrides for DC Performance Coaching
 *
 * This file contains targeted overrides to ensure images and
 * videos behave as requested without altering the existing
 * design or breaking other styles. It should be included
 * after the main stylesheet so that these rules take
 * precedence. Do not modify the original minified CSS;
 * instead, place any new overrides here.
 */

/*
 * Members page hero copy spacing
 * Provide generous breathing room between the explanatory text and the
 * interest form so the section feels intentional and premium. The text is
 * centred and constrained for readability across breakpoints while the form
 * receives a refined top margin.
 */
.members-intro {
  text-align: center;
  margin: 0 auto clamp(3rem, 6vw, 4.75rem);
  max-width: min(90%, 820px);
  line-height: 1.7;
}

.members-intro .section-subtitle {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.members-intro + .contact-form {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

/*
 * Mobile navigation overlay enhancements
 *
 * Add a dedicated back/exit control to the mobile overlay so users can
 * instantly dismiss the menu and return to their previous scroll
 * position. The button adopts the site's gold palette and subtle glass
 * effect for a premium feel while remaining hidden on desktop layouts.
 */
.nav-overlay-back-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
}

@media (max-width: 768px) {
  nav {
    position: static;
  }

  .nav-toggle {
    position: relative;
    z-index: 1300;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(100vw, 220px);
    height: 100vh;
    max-height: 100vh;
    padding: calc(env(safe-area-inset-top, 0) + 0.25rem) 1rem
      calc(env(safe-area-inset-bottom, 0) + 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0) + 3rem);
    z-index: 1200;
  }

  nav ul li:last-child {
    margin-bottom: calc(env(safe-area-inset-bottom, 0) + 3rem);
  }

  .nav-overlay-back {
    width: 100%;
    padding-top: 0.1rem;
  }

  .nav-overlay-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    padding: 0.65rem 0.95rem;
    margin: 0 auto 0.6rem;
    border: 1px solid rgba(245, 192, 0, 0.4);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 192, 0, 0.18), rgba(245, 192, 0, 0.08));
    backdrop-filter: blur(6px);
    color: var(--color-light);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .nav-overlay-back-btn::before {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    line-height: 1;
  }

  .nav-overlay-back-btn:hover,
  .nav-overlay-back-btn:active {
    background: linear-gradient(135deg, rgba(245, 192, 0, 0.35), rgba(245, 192, 0, 0.15));
    border-color: rgba(245, 192, 0, 0.75);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
  }

  .nav-overlay-back-btn:focus-visible {
    outline: 2px solid rgba(245, 192, 0, 0.9);
    outline-offset: 3px;
  }

  /*
   * Home hero positioning
   *
   * Ensure the hero copy on the home page sits directly beneath the fixed
   * header on mobile devices so that the "Elevate Your Performance" message
   * remains immediately visible whether the navigation drawer is collapsed or
   * expanded. We achieve this by aligning the hero container to the top and
   * slightly increasing the top padding to clear the banner height.
   */
  .page-home .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 0.25rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  .page-home .hero .content {
    padding-top: clamp(0.35rem, 2vw, 0.6rem);
  }
}

/*
 * Premium about-page introduction video
 *
 * The hero video is framed inside a responsive, gold-bordered box that glows
 * and gently pulses to attract attention. The play control sits over the
 * centre of the video and transitions to a pause control when the user hovers
 * while the video is playing. The entire module scales with the viewport so
 * that the video is always fully visible without cropping.
 */
.dc-intro-video-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.dc-intro-video-section .container {
  display: flex;
  justify-content: center;
}

.dc-intro-box {
  position: relative;
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.92), rgba(18, 18, 18, 0.82));
  border: 3px solid var(--color-gold, #f5c000);
  border-radius: 1.5rem;
  padding: clamp(0.45rem, 1.4vw, 0.85rem) clamp(1.2rem, 3vw, 2.1rem) clamp(0.55rem, 1.8vw, 1rem);
  box-shadow: 0 0 22px rgba(245, 192, 0, 0.45), inset 0 0 0 rgba(245, 192, 0, 0.35);
  animation: dc-glow 4s ease-in-out infinite;
  text-align: center;
  overflow: hidden;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.dc-intro-box .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(0.1rem, 0.6vw, 0.35rem);
  margin-bottom: clamp(0.3rem, 1.4vw, 0.55rem);
}

.dc-intro-box .section-subtitle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(0.55rem, 1.8vw, 0.9rem);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
}

.dc-intro-video-wrapper {
  position: relative;
  width: min(100%, 960px);
  margin: clamp(0.35rem, 1.2vw, 0.6rem) auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dc-intro-video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #000;
}

.dc-video-control {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4.5rem, 10vw, 6.5rem);
  height: clamp(4.5rem, 10vw, 6.5rem);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 58%),
    linear-gradient(140deg, #fff5d0, #f5c000 55%, #b78200 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), inset 0 0 14px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1c1400;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.dc-video-control:hover,
.dc-video-control:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(255, 255, 255, 0.5);
  outline: none;
}

.dc-video-control:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.dc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dc-icon-play::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: clamp(0.85rem, 2vw, 1.25rem) 0 clamp(0.85rem, 2vw, 1.25rem)
    clamp(1.5rem, 3.2vw, 2.05rem);
  border-color: transparent transparent transparent currentColor;
  margin-left: clamp(0.15rem, 0.6vw, 0.35rem);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dc-icon-pause {
  gap: clamp(0.3rem, 0.9vw, 0.6rem);
}

.dc-icon-pause::before,
.dc-icon-pause::after {
  content: '';
  display: block;
  width: clamp(0.4rem, 1vw, 0.65rem);
  height: clamp(1.75rem, 4vw, 2.35rem);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 20, 0, 0.85), rgba(28, 20, 0, 0.55));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dc-video-pause {
  opacity: 0;
  pointer-events: none;
}

.dc-intro-box.is-playing .dc-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

.dc-intro-box.is-playing .dc-intro-video-wrapper:hover .dc-video-pause,
.dc-intro-box.is-playing .dc-video-pause:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.dc-intro-box.is-playing {
  animation: none;
  box-shadow: 0 0 26px rgba(245, 192, 0, 0.35), inset 0 0 0 rgba(245, 192, 0, 0.25);
}

@keyframes dc-glow {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(245, 192, 0, 0.45), inset 0 0 0 rgba(245, 192, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 38px rgba(245, 192, 0, 0.75), inset 0 0 12px rgba(245, 192, 0, 0.35);
  }
}

@media (max-width: 680px) {
  .dc-video-control {
    border-width: 1px;
  }
  .dc-icon-pause::before,
  .dc-icon-pause::after {
    height: clamp(1.5rem, 5vw, 1.9rem);
  }
}

@media (hover: none) {
  .dc-intro-box.is-playing .dc-video-pause {
    opacity: 1;
    pointer-events: auto;
  }
}

/*
 * Inline paired media
 *
 * When an image sits beside text inside a two-column grid we
 * stretch the grid tracks to the same height and allow the
 * media to scale fluidly with its neighbouring copy. The
 * image never crops (object-fit: contain) yet will happily
 * grow slightly wider than the text column if required.
 */
.grid.grid-2.paired-grid {
  align-items: stretch;
}

.paired-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.paired-media img {
  display: block;
  height: 100% !important;
  width: auto !important;
  max-width: none;
  max-height: none !important;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .grid.grid-2.paired-grid {
    align-items: start;
  }

  .paired-media {
    min-height: 0;
  }

  .paired-media img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
}

/*
 * Education videos on the blog page
 *
 * Mirror the store "More Programme Previews" layout by using the
 * shared grid system and default video wrapper styling. The extra
 * rules below simply keep spacing consistent inside the blog section.
 */
.blog-education-videos .grid.grid-2 {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.blog-education-videos .grid.grid-2 .video-wrapper {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.blog-education-videos .grid.grid-2 .video-wrapper video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/*
 * Distinguish the home page call‑to‑action (CTA) and follow‑us sections.
 * By using unique classes rather than inline styles, we achieve better
 * separation of concerns and can apply consistent theming.  The CTA
 * retains a dark background while the follow‑us area adopts a slightly
 * lighter shade and a subtle gold border to visually separate it.
 */
.cta-section {
  background-color: #111;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.follow-us-section {
  background-color: #181818;
  border-top: 1px solid rgba(245, 192, 0, 0.3);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Make the follow‑us call to action stand out from the Ready to Get Started section */
.follow-us-section .follow-highlight {
  display: inline-block;
  background-color: rgba(245, 192, 0, 0.05);
  border: 2px solid var(--color-gold);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(245, 192, 0, 0.25);
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Style social links within the follow highlight */
.follow-us-section .social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.follow-us-section .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.follow-us-section .social-links a i {
  font-size: 1.25rem;
}

/*
 * Performance Gallery cues
 * Indicate that gallery images are interactive.  A zoom‑in cursor and
 * gentle scale/box‑shadow on hover encourage the user to click while
 * maintaining a premium aesthetic.
 */
.gallery-grid img {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/*
 * Gallery call‑to‑action card
 *
 * The last item in the performance gallery on the testimonials page is a
 * dedicated call‑to‑action encouraging users to contribute their own
 * transformation images.  It adopts the same dimensions as other
 * gallery items but uses a dashed border and subtle gold tint to
 * differentiate itself.  The text and button are centre‑aligned.
 */
.gallery-call-to-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background-color: rgba(245, 192, 0, 0.08);
  border: 2px dashed var(--color-gold);
  border-radius: 0.5rem;
  text-align: center;
  color: var(--color-gold);
  font-family: var(--font-heading);
  padding: 1rem;
}

.gallery-call-to-action span {
  display: block;
}

.gallery-call-to-action a.btn {
  margin-top: 0.5rem;
}

/*
 * CTA highlight box on the home page
 *
 * To make the main call‑to‑action stand out, wrap its contents in a
 * lightly tinted box with a gold border and soft glow.  The CTA box
 * scales with the container and centres its contents.  All child
 * elements preserve their existing typography but benefit from the
 * additional contrast.
 */
.cta-section .cta-highlight {
  /* Enhanced styling for the home page call‑to‑action.  The lightly
     tinted background is now a subtle gradient and the surrounding glow
     pulses gently to catch the eye without being gaudy.  The CTA box
     remains centred and responsive, growing no wider than 720px. */
  display: inline-block;
  background: linear-gradient(135deg, rgba(245, 192, 0, 0.12), rgba(245, 192, 0, 0.04));
  border: 2px solid var(--color-gold);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 0 24px rgba(245, 192, 0, 0.45);
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  animation: cta-pulse 10s ease-in-out infinite;
}

/* Pulse animation for the CTA highlight.  This cyclical glow increases
   and decreases the intensity of the outer shadow over a long period,
   creating a refined breathing effect that draws attention without
   overwhelming the rest of the page. */
@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 24px rgba(245, 192, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 36px rgba(245, 192, 0, 0.65);
  }
}

/*
 * DC introduction video highlight box on the about page
 *
 * The new introduction component uses the .dc-intro-video-section and
 * .dc-intro-box classes so it is isolated from any legacy styling.  The
 * box frames the video, title and description within a softly glowing
 * gold border.  The entire component scales responsively within the
 * viewport.  A play overlay invites interaction and hides once the
 * video starts playing.  While the video plays, hovering triggers a
 * pause icon.  When the element leaves the viewport, the script
 * pauses the video and restores the play icon.
 */


.dc-intro-video-section .dc-intro-box h2 {
  margin-bottom: 0.75rem;
}

.dc-intro-video-section .dc-intro-box p {
  margin-bottom: 1.25rem;
  color: var(--color-gray);
  font-size: 1rem;
}

/* Pulse animation for the DC intro video box */
@keyframes dc-intro-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 192, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 192, 0, 0.55);
  }
}

/* Video wrapper maintaining 16:9 aspect ratio and positioning overlay */
/*
 * Video wrapper for the DC introduction
 *
 * Using aspect-ratio alone can lead to inconsistent behaviour in some browsers,
 * especially when the height of the parent is not explicitly set. To ensure
 * the video remains fully contained within the gold box at all viewport sizes,
 * the wrapper is positioned relatively and uses a padding-top technique as a
 * fallback for browsers that do not support aspect-ratio. The video is then
 * absolutely positioned to fill the wrapper.  This combination guarantees
 * that the video scales proportionally and never spills outside its box.
 */
.dc-intro-video-section .dc-intro-video-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  /* Maintain a 16:9 aspect ratio when supported */
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

/* Fallback for browsers lacking aspect-ratio support: create space via padding */
@supports not (aspect-ratio: 16 / 9) {
  .dc-intro-video-section .dc-intro-video-wrapper {
    height: 0;
    padding-top: 56.25%; /* 9 / 16 = 0.5625 */
  }
  .dc-intro-video-section .dc-intro-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.dc-intro-video-section .dc-intro-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  display: block;
  object-fit: contain;
  /* Remove any inherited max-height constraints */
  max-height: none;
}

/*
 * When the video is playing we will toggle a class on the wrapper (.playing).
 * By default the overlay is visible so users can initiate playback.  Once
 * playing, the overlay is hidden except on hover.  These styles rely on the
 * .playing class being added/removed via JavaScript.
 */
.dc-intro-video-section .dc-intro-video-wrapper .dc-video-overlay {
  /* Ensure overlay is visible by default (paused state) */
  display: flex;
}

.dc-intro-video-section .dc-intro-video-wrapper.playing .dc-video-overlay {
  display: none;
}

.dc-intro-video-section .dc-intro-video-wrapper.playing:hover .dc-video-overlay {
  display: flex;
}

/* Play/pause overlay styling */
.dc-intro-video-section .dc-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

.dc-intro-video-section .dc-video-overlay:hover {
  background-color: rgba(245, 192, 0, 0.8);
  color: var(--color-black);
  transform: translate(-50%, -50%) scale(1.1);
}

/*
 * Success stories grid and cards on testimonials page
 *
 * The .success-stories container is a responsive grid that adapts to
 * available width, automatically fitting as many columns as will
 * comfortably fit.  Each .success-story-card stacks its content
 * vertically.  Videos retain their full aspect ratio with no
 * cropping, while images fill their container with subtle rounding.
 */
.success-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.success-story-card {
  display: flex;
  flex-direction: column;
  background-color: #121212;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(245, 192, 0, 0.15);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  height: 100%;
}

.success-story-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.success-story-card p {
  color: var(--color-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.success-story-card .success-images {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.success-story-card .success-images img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

.success-story-card .video-wrapper {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: auto;
}

.success-story-card .video-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: contain;
}

/* === Hero video unmute button (premium overlay) ===
   Inserted via JS as #unmute-btn within .hero.
   Highly visible yet sleek; pulses gently three times to invite interaction. */
.hero { position: relative; }
#unmute-btn, .hero .unmute-btn {
  position: absolute; bottom: 1rem; right: clamp(1.35rem, 4vw, 1.85rem);
  width: 2.25rem; height: 2.25rem;
  background: rgba(0,0,0,0.55);
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
  animation: dc-pulse 1.5s ease-in-out 3;
}
#unmute-btn:hover, .hero .unmute-btn:hover {
  background: var(--color-gold);
  color: var(--color-black);
}
#unmute-btn:focus-visible, .hero .unmute-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 192, 0, 0.35);
}
@keyframes dc-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.page-home .hero .hero-eyebrow,
.page-home .hero .hero-lede--mobile {
  display: none;
}

@media (max-width: 768px) {
  .page-home .hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
  }

  .page-home .hero .content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(1.35rem, 5.5vw, 2.5rem);
    height: 100%;
    min-height: 100%;
    padding-top: var(
      --hero-mobile-top-offset,
      calc(env(safe-area-inset-top, 0) + var(--header-height) + 0.35rem)
    );
    padding-right: clamp(1.2rem, 5vw, 2.2rem);
    padding-bottom: var(
      --hero-mobile-bottom-offset,
      calc(env(safe-area-inset-bottom, 0) + 4.5rem)
    );
    padding-left: clamp(1.2rem, 5vw, 2.2rem);
    pointer-events: none;
  }

  .page-home .hero .hero-copy,
  .page-home .hero .hero-cta {
    pointer-events: auto;
  }

  .page-home .hero .hero-copy {
    align-self: flex-start;
    max-width: min(94%, 20rem);
    padding: clamp(0.5rem, 2.6vw, 0.9rem) clamp(0.75rem, 3.5vw, 1.25rem);
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.12));
    border: 1px solid rgba(245, 192, 0, 0.25);
    border-radius: 0.85rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.28);
    text-align: left;
    margin-right: clamp(3.8rem, 32vw, 5.75rem);
  }

  .page-home .hero #unmute-btn,
  .page-home .hero .unmute-btn {
    top: calc(env(safe-area-inset-top, 0) + 3.1rem);
    bottom: auto;
    right: clamp(0.75rem, 4.5vw, 1.6rem);
    width: clamp(2.35rem, 8vw, 2.85rem);
    height: clamp(2.35rem, 8vw, 2.85rem);
    font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  }

  .page-home .hero .hero-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 2.8vw, 0.85rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.4rem;
  }

  .page-home .hero h1 {
    font-size: clamp(1.6rem, 6.25vw, 2rem);
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 0.55rem;
  }

  .page-home .hero .hero-lede {
    margin-bottom: 0;
  }

  .page-home .hero .hero-lede--desktop {
    display: none;
  }

  .page-home .hero .hero-lede--mobile {
    display: inline;
    font-size: clamp(0.8rem, 3.1vw, 0.96rem);
    line-height: 1.3;
    text-wrap: balance;
    color: var(--color-light);
  }

  .page-home .hero .hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 4vw, 1.25rem);
    align-self: center;
    width: 100%;
    max-width: min(24rem, 100%);
    margin-top: auto;
    margin-bottom: clamp(1.35rem, 6vw, 2.25rem);
  }

  .page-home .hero .hero-cta .btn {
    flex: 1 1 0;
    max-width: 11rem;
    display: inline-flex;
    justify-content: center;
    white-space: nowrap;
    padding: clamp(0.45rem, 2.4vw, 0.65rem) clamp(0.9rem, 4.2vw, 1.35rem);
    font-size: clamp(0.78rem, 3vw, 0.95rem);
  }
}

/*
 * Footer social icon styling
 *
 * The default styles from the main stylesheet render the social icons in a
 * muted grey tone, which can appear understated at the bottom of each page.
 * To create a more premium and noticeable footer, override those defaults
 * here.  Icons adopt the brand gold colour by default and darken on hover,
 * matching the button hover behaviour elsewhere on the site.  Increasing
 * the font‑size slightly ensures the icons remain legible without
 * overpowering surrounding text.  These rules apply only within the
 * footer so they do not inadvertently affect other social links (e.g.
 * the follow‑us call to action on the home page).
 */
footer .socials a {
  color: var(--color-gold);
  font-size: 1.35rem;
  transition: color 0.2s ease;
}
footer .socials a:hover {
  color: var(--color-gold-dark);
}

/*
 * === Premium intro video responsiveness & attention pulse ===
 *
 * Ensure the about-page introduction module scales with smaller viewports.
 * The wrapper width now responds to the available viewport height so the
 * embedded video never crops inside the gold frame.  An intense glow animation
 * runs while attention is required and halts as soon as the visitor plays the
 * video or scrolls it out of view.  This keeps the call-to-action noticeable
 * without being distracting once it has served its purpose.
 */
.dc-intro-video-section .dc-intro-box {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: min(92vw, calc(60rem + clamp(2.5rem, 4.5vw, 3.5rem)));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(0.55rem, 1.6vw, 1rem) clamp(1.25rem, 3.5vw, 2.5rem) clamp(0.65rem, 1.8vw, 1.15rem);
  border: 3px solid var(--color-gold);
  border-radius: 1.5rem;
  box-shadow: 0 0 32px rgba(245, 192, 0, 0.55), 0 0 0 3px rgba(245, 192, 0, 0.18);
  animation: none;
  overflow: hidden;
}

.dc-intro-video-section .dc-intro-box::before,
.dc-intro-video-section .dc-intro-box::after {
  content: "";
  position: absolute;
  inset: clamp(-1.8rem, -3vw, -1.2rem);
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(245, 192, 0, 0.18) 0%, rgba(245, 192, 0, 0.05) 55%, transparent 70%);
  filter: blur(0.25rem);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.dc-intro-video-section .dc-intro-box::after {
  inset: clamp(-3rem, -5vw, -2rem);
  background: radial-gradient(circle at center, rgba(245, 192, 0, 0.25) 0%, rgba(245, 192, 0, 0.08) 60%, transparent 80%);
  filter: blur(0.6rem);
}

.dc-intro-video-section .dc-intro-box.is-attention {
  animation: dc-intro-flare 1.8s ease-in-out infinite;
}

.dc-intro-video-section .dc-intro-box.is-attention::before {
  opacity: 1;
  animation: dc-intro-haze 2.4s ease-in-out infinite;
}

.dc-intro-video-section .dc-intro-box.is-attention::after {
  opacity: 0.9;
  animation: dc-intro-haze 3.2s ease-in-out infinite reverse;
}

.dc-intro-video-section .dc-intro-box.is-playing {
  animation: none;
  box-shadow: 0 0 26px rgba(245, 192, 0, 0.35), inset 0 0 0 rgba(245, 192, 0, 0.25);
}

@keyframes dc-intro-flare {
  0%,
  100% {
    box-shadow: 0 0 34px rgba(245, 192, 0, 0.65), 0 0 0 0 rgba(245, 192, 0, 0.48), inset 0 0 6px rgba(245, 192, 0, 0.35);
  }
  40% {
    box-shadow: 0 0 68px rgba(245, 192, 0, 0.95), 0 0 32px 10px rgba(245, 192, 0, 0.4), inset 0 0 16px rgba(245, 192, 0, 0.5);
  }
  68% {
    box-shadow: 0 0 42px rgba(245, 192, 0, 0.75), 0 0 18px 4px rgba(245, 192, 0, 0.42), inset 0 0 8px rgba(245, 192, 0, 0.4);
  }
}

@keyframes dc-intro-haze {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.65;
  }
  45% {
    transform: scale(1.08);
    opacity: 1;
  }
  70% {
    transform: scale(1.02);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-intro-video-section .dc-intro-box.is-attention {
    animation: none;
  }
}

.dc-intro-video-section .dc-intro-box .section-title {
  margin-top: clamp(0.1rem, 0.6vw, 0.35rem);
  margin-bottom: clamp(0.3rem, 1.2vw, 0.5rem);
}

.dc-intro-video-section .dc-intro-box .section-subtitle {
  margin-bottom: clamp(0.5rem, 1.5vw, 0.85rem);
}

.dc-intro-video-section .dc-intro-video-wrapper {
  position: relative;
  width: min(100%, clamp(18rem, calc((100vh - 15rem) * 16 / 9), 60rem));
  max-height: calc(100vh - 15rem);
  aspect-ratio: 16 / 9;
  margin: clamp(0.35rem, 1vw, 0.6rem) auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  animation: none;
}

.dc-intro-video-section .dc-intro-video-wrapper::before {
  content: none;
}

.dc-intro-video-section .dc-intro-box.is-playing .dc-intro-video-wrapper {
  box-shadow: none;
}

@keyframes dc-intro-halo {
  0%,
  100% {
    box-shadow: 0 0 36px rgba(245, 192, 0, 0.48), 0 0 0 2px rgba(245, 192, 0, 0.32), inset 0 0 30px rgba(0, 0, 0, 0.65);
  }
  45% {
    box-shadow: 0 0 60px rgba(245, 192, 0, 0.78), 0 0 0 6px rgba(245, 192, 0, 0.38), inset 0 0 36px rgba(0, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 42px rgba(245, 192, 0, 0.58), 0 0 0 3px rgba(245, 192, 0, 0.34), inset 0 0 32px rgba(0, 0, 0, 0.63);
  }
}

@keyframes dc-intro-ring {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  45% {
    transform: scale(1.12);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.02);
    opacity: 0.65;
  }
}

.dc-intro-video-section .dc-intro-video-wrapper video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  border-radius: 1.25rem;
}

@supports not (aspect-ratio: 16 / 9) {
  .dc-intro-video-section .dc-intro-video-wrapper {
    height: 0;
    padding-top: 56.25%;
  }

  .dc-intro-video-section .dc-intro-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }
}

/*
 * Mobile introduction video resizing
 *
 * On small screens the about page introduction video now breathes
 * within the viewport so the animated gold glow is visible on all
 * sides.  The intro box gains gentle inset padding and rounded
 * corners while the wrapper keeps its wide-screen aspect ratio to
 * reduce the overall height.  These rules only apply on devices
 * with a maximum width of 768px.
 */
@media (max-width: 768px) {
  .dc-intro-video-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .dc-intro-video-section .container {
    padding-left: clamp(0.75rem, 4vw, 1.5rem);
    padding-right: clamp(0.75rem, 4vw, 1.5rem);
  }

  .dc-intro-video-section .dc-intro-box {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    border-radius: 1.25rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(0.65rem, 3vw, 1.25rem) clamp(0.85rem, 5vw, 1.75rem)
      clamp(0.85rem, 5vw, 1.5rem);
  }

  .dc-intro-video-section .dc-intro-box .section-title,
  .dc-intro-video-section .dc-intro-box .section-subtitle {
    padding-left: clamp(0.25rem, 3vw, 1rem);
    padding-right: clamp(0.25rem, 3vw, 1rem);
  }

  .dc-intro-video-section .dc-intro-box .section-title {
    margin-bottom: clamp(0.35rem, 2.5vw, 0.6rem);
  }

  .dc-intro-video-section .dc-intro-box .section-subtitle {
    margin-bottom: clamp(0.5rem, 2.8vw, 0.85rem);
  }

  .dc-intro-video-section .dc-intro-video-wrapper {
    width: 100%;
    max-width: 100%;
    margin: clamp(0.5rem, 3vw, 1.1rem) auto 0;
  }

  .dc-intro-video-section .dc-intro-video-wrapper video {
    border-radius: 1rem;
  }
}

/*
 * Blog card layout adjustments
 * Keep every blog promo card the same height by stretching the
 * cards and clamping description copy to three lines. This keeps
 * the sprinting and updates callouts visually aligned with the row
 * above on the blog listing.
 */
.blog-posts {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.blog-posts .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-posts .post-card .post-content {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
  flex: 1 1 auto;
}

.blog-posts .post-card .post-content p {
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-posts .post-card .btn {
  margin-top: auto;
}

/*
 * Blog updates callout card
 *
 * A premium announcement panel styled in line with the existing blog cards.
 * Utilises a gradient backdrop, icon badges and feature list to highlight
 * the ongoing publishing cadence and core content pillars.
 */
.post-card.post-card--updates {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.98), rgba(18, 18, 18, 0.92));
  border: 2px solid rgba(245, 192, 0, 0.4);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.post-card--updates::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245, 192, 0, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(245, 192, 0, 0.2), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

.post-card--updates .post-thumb {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(0.85rem, 2.2vw, 1.4rem);
  background: transparent;
  min-height: clamp(9.5rem, 16vw, 12rem);
}

.post-card--updates .icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.6vw, 0.85rem);
  width: min(100%, 320px);
  z-index: 1;
}

.post-card--updates .icon-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: clamp(0.55rem, 1.5vw, 0.8rem);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(245, 192, 0, 0.22), rgba(245, 192, 0, 0.08));
  box-shadow: inset 0 0 0 1px rgba(245, 192, 0, 0.3);
  color: var(--color-white);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
}

.post-card--updates .icon-badge i {
  font-size: 1.45rem;
  color: var(--color-gold);
}

.post-card--updates .post-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.4vw, 1.4rem) clamp(1.1rem, 2.6vw, 1.6rem);
}

.post-card--updates .post-content .post-title {
  color: var(--color-white);
  margin-bottom: 0.15rem;
}

.post-card--updates .post-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.post-card--updates .post-highlights {
  list-style: none;
  padding: 0;
  margin: clamp(0.45rem, 1.2vw, 0.75rem) 0 clamp(0.65rem, 1.6vw, 1rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: clamp(0.35rem, 1vw, 0.6rem);
}

.post-card--updates .post-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
}

.post-card--updates .post-highlights i {
  font-size: 1rem;
  color: var(--color-gold);
}

.post-card--updates .btn.secondary {
  align-self: flex-start;
  margin-top: auto;
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(245, 192, 0, 0.08);
}

.post-card--updates .btn.secondary:hover,
.post-card--updates .btn.secondary:focus-visible {
  color: var(--color-black);
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.post-card--updates .post-tag {
  background: rgba(245, 192, 0, 0.2);
  color: var(--color-gold);
}

/*
 * Blog hero overlay
 *
 * The default hero overlay defined in the main stylesheet uses a
 * 50% opaque black on all hero sections. For individual blog pages
 * (identified via the .blog-post-hero class) this is too dark and
 * hides the underlying hero image. Override just the blog hero
 * sections by lightening the overlay to 20% opacity, allowing the
 * background image to remain visible while preserving text
 * legibility.
 */
.blog-post-hero::before {
  /* Recreate the pseudo-element with a lighter overlay.  Defining
     content ensures the before element is generated. */
  content: '';
  /* Lighten the overlay further so blog hero images remain visible while
     still providing sufficient contrast for the text.  A 15% opacity
     achieves this balance. */
  background: rgba(0, 0, 0, 0.15);
}

/*
 * Embedded podcasts on the blog page
 * Display Spotify embeds in a responsive grid so listeners can press
 * play without leaving the site.
 */
.blog-podcasts .spotify-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  align-items: start;
}

.blog-podcasts iframe {
  width: 100%;
  min-width: min(20rem, 100%);
  height: 232px;
  border: 0;
  border-radius: 0.75rem;
  background-color: #121212;
}

@media (max-width: 768px) {
  .dc-intro-video-section {
    min-height: 100vh;
    padding-top: clamp(2.5rem, 8vh, 4rem);
    padding-bottom: clamp(2rem, 7vh, 3.5rem);
    display: flex;
    align-items: center;
  }

  .dc-intro-video-section .container {
    width: 100%;
  }

  .dc-intro-video-section .dc-intro-box {
    width: 100%;
    max-width: calc(100vw - clamp(1.75rem, 6vw, 3rem));
    padding: clamp(0.7rem, 2.4vw, 1.2rem) clamp(1.1rem, 4vw, 2.75rem)
      clamp(0.85rem, 2.8vw, 1.45rem);
  }

  .dc-intro-video-section .dc-intro-video-wrapper {
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .dc-intro-video-section .dc-intro-video-wrapper video {
    height: 100%;
    aspect-ratio: 1 / 1;
  }
}

/*
 * Mobile body background parallax
 * iOS Safari ignores background-attachment: fixed on the body element,
 * which previously caused the gradient image to repeat on long pages.
 * Layer a fixed pseudo-element behind the content so that the text
 * scrolls independently while the background remains static.
 */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../images/new/AI_All_Pages_Background_Image.jpeg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -999;
    pointer-events: none;
    transform: translateZ(0);
  }
}

/*
 * Testimonials performance gallery — premium mobile lightbox
 *
 * Mobile visitors are presented with curated thumbnail cards that highlight the
 * tap-to-expand interaction and elevate the perceived quality of the gallery.
 * The immersive lightbox reinforces the premium brand aesthetic using glassy
 * layers, gold accents and smooth transitions, while respecting reduced-motion
 * preferences.
 */
@media (max-width: 768px) {
  .page-testimonials .gallery-grid {
    gap: clamp(0.75rem, 4vw, 1rem);
  }

  .gallery-touch-card {
    position: relative;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    border-radius: 1.15rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(10, 10, 10, 0.92));
    box-shadow: 0 24px 34px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    isolation: isolate;
  }

  .gallery-touch-card:focus-visible {
    outline: 2px solid rgba(245, 192, 0, 0.9);
    outline-offset: 4px;
  }

  .gallery-touch-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(245, 192, 0, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }

  .gallery-touch-card__media {
    display: block;
    overflow: hidden;
    border-radius: inherit;
  }

  .gallery-touch-card__image {
    width: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.005);
    transition: transform 0.45s ease;
    filter: saturate(1.08) contrast(1.05);
  }

  .gallery-touch-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.82) 100%);
    color: var(--color-light, #fff);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
  }

  .gallery-touch-card__overlay::after {
    content: "";
    position: absolute;
    inset: -35% 18% auto 18%;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 192, 0, 0), rgba(245, 192, 0, 0.9), rgba(245, 192, 0, 0));
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .gallery-touch-card__label {
    font-family: var(--font-body);
    opacity: 0.9;
  }

  .gallery-touch-card__icon {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 1px solid rgba(245, 192, 0, 0.55);
    background: radial-gradient(circle at 30% 30%, rgba(245, 192, 0, 0.45), rgba(245, 192, 0, 0.15));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    color: var(--color-light, #fff);
  }

  .gallery-touch-card__icon svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
  }

  .gallery-touch-card:hover,
  .gallery-touch-card:active {
    transform: translateY(-4px);
    box-shadow: 0 26px 42px rgba(0, 0, 0, 0.55);
  }

  .gallery-touch-card:active {
    transform: translateY(-2px) scale(0.995);
  }

  .gallery-touch-card:hover::before,
  .gallery-touch-card:focus-visible::before,
  .gallery-touch-card:active::before {
    opacity: 1;
  }

  .gallery-touch-card:hover .gallery-touch-card__image,
  .gallery-touch-card:focus-visible .gallery-touch-card__image,
  .gallery-touch-card:active .gallery-touch-card__image {
    transform: scale(1.05);
  }

  .gallery-touch-card:hover .gallery-touch-card__overlay::after,
  .gallery-touch-card:focus-visible .gallery-touch-card__overlay::after,
  .gallery-touch-card:active .gallery-touch-card__overlay::after {
    opacity: 1;
  }

  .gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 6vw, 2.5rem);
    background: rgba(4, 4, 4, 0.78);
    backdrop-filter: blur(18px);
    z-index: 2600;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .gallery-lightbox--visible {
    display: flex;
    opacity: 1;
  }

  .gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(245, 192, 0, 0.35), rgba(8, 8, 8, 0.92));
    opacity: 0.85;
  }

  .gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    background: linear-gradient(145deg, rgba(12, 12, 12, 0.95), rgba(18, 18, 18, 0.86));
    border: 1px solid rgba(245, 192, 0, 0.45);
    border-radius: 1.6rem;
    padding: clamp(1rem, 4vw, 1.3rem);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.58);
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 3vw, 1rem);
  }

  .gallery-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(245, 192, 0, 0.55);
    background: linear-gradient(135deg, rgba(245, 192, 0, 0.28), rgba(245, 192, 0, 0.12));
    color: var(--color-light, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .gallery-lightbox__close:focus-visible {
    outline: 2px solid rgba(245, 192, 0, 0.9);
    outline-offset: 3px;
  }

  .gallery-lightbox__media {
    overflow: hidden;
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .gallery-lightbox__image {
    width: 100%;
    height: auto;
    max-height: 65vh;
    display: block;
    object-fit: contain;
  }

  .gallery-lightbox__hint {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
  }

  body.gallery-lightbox-open {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .gallery-lightbox,
  .gallery-lightbox__media,
  .gallery-lightbox__image {
    touch-action: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .gallery-touch-card,
  .gallery-lightbox {
    transition: none !important;
  }

  .gallery-touch-card__image,
  .gallery-touch-card__overlay::after {
    transition: none !important;
  }
}

/*
 * CSCS certification spotlight
 *
 * Premium styling for the new certification banner and certificate section,
 * celebrating Daniel's National Strength & Conditioning Association CSCS
 * achievement. The design mirrors the brand palette with deep charcoal,
 * brushed-metal gradients and gold highlights while remaining responsive.
 */
.global-cert-banner {
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.95), rgba(26, 26, 26, 0.85));
  border-top: 1px solid rgba(245, 192, 0, 0.35);
  border-bottom: 1px solid rgba(245, 192, 0, 0.22);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  position: relative;
  overflow: hidden;
}

.global-cert-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245, 192, 0, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(245, 192, 0, 0.18), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.global-cert-banner__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 16, 16, 0.92), rgba(30, 30, 30, 0.88));
  border: 1px solid rgba(245, 192, 0, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.global-cert-banner__content img {
  width: clamp(90px, 20vw, 120px);
  height: auto;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 14px 35px rgba(245, 192, 0, 0.28);
}

.global-cert-banner__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.6vw, 1.5rem);
}

.global-cert-banner__copy {
  max-width: 680px;
  color: var(--color-light);
}

.global-cert-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 192, 0, 0.8);
  margin-bottom: 0.75rem;
}

.global-cert-banner__eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(245, 192, 0, 0.6);
}

.global-cert-banner__text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.global-cert-banner__cta {
  align-self: flex-start;
  padding-inline: clamp(1.45rem, 3vw, 1.9rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 192, 0, 0.5);
  background: linear-gradient(135deg, rgba(245, 192, 0, 0.18), rgba(245, 192, 0, 0.08));
  backdrop-filter: blur(4px);
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.global-cert-banner__cta:hover,
.global-cert-banner__cta:focus-visible {
  border-color: rgba(245, 192, 0, 0.75);
  background: linear-gradient(135deg, rgba(245, 192, 0, 0.32), rgba(245, 192, 0, 0.12));
}

@media (max-width: 768px) {
  .global-cert-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .global-cert-banner__content img {
    width: clamp(88px, 28vw, 110px);
  }

  .global-cert-banner__body {
    max-width: none;
    align-items: center;
  }

  .global-cert-banner__eyebrow::before {
    display: none;
  }

  .global-cert-banner__cta {
    align-self: center;
    width: min(100%, 320px);
  }
}

.certification-showcase {
  position: relative;
  background: radial-gradient(circle at top left, rgba(245, 192, 0, 0.08), transparent 55%),
    linear-gradient(150deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.92));
  border-block: 1px solid rgba(245, 192, 0, 0.22);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.certification-showcase .container {
  position: relative;
  z-index: 1;
}

.certification-showcase .container::before {
  content: "";
  position: absolute;
  inset: -12% -6% auto auto;
  width: clamp(220px, 38vw, 360px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245, 192, 0, 0.18), transparent 70%);
  pointer-events: none;
  transform: translate(5%, -12%);
}

.certification-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "copy image"
    "summary summary";
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(2.25rem, 6vw, 3rem);
  align-items: start;
  padding: clamp(2.25rem, 5vw, 3rem);
  border-radius: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(140deg, rgba(12, 12, 12, 0.95), rgba(26, 26, 26, 0.9));
  border: 1px solid rgba(245, 192, 0, 0.25);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.certification-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -20% auto;
  width: clamp(220px, 36vw, 320px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245, 192, 0, 0.12), transparent 68%);
  pointer-events: none;
  filter: blur(6px);
}

.certification-copy {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 3vw, 1.8rem);
  grid-area: copy;
}

.certification-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.1rem);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 192, 0, 0.35);
  background: linear-gradient(135deg, rgba(245, 192, 0, 0.16), rgba(245, 192, 0, 0.05));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.certification-pill img {
  width: clamp(64px, 12vw, 84px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(245, 192, 0, 0.28);
}

.pill-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pill-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 192, 0, 0.82);
}

.pill-title {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.certification-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3rem);
  line-height: 1.15;
  color: var(--color-light);
  text-align: left;
  letter-spacing: 0.02em;
}

.certification-copy h2 .certification-subtitle {
  display: block;
  margin-top: clamp(0.35rem, 1vw, 0.6rem);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.certification-copy p {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.8;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.certification-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.certification-copy li {
  position: relative;
  padding-left: 2.6rem;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.certification-copy li::before {
  content: "\f091";
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(245, 192, 0, 0.28), rgba(245, 192, 0, 0.08));
  box-shadow: 0 10px 28px rgba(245, 192, 0, 0.25);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
  color: rgba(245, 192, 0, 0.95);
}

.certification-image {
  position: relative;
  z-index: 1;
  margin: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.55), rgba(15, 15, 15, 0.85));
  border-radius: clamp(1.3rem, 3.6vw, 1.85rem);
  padding: clamp(0.85rem, 2.4vw, 1.35rem);
  border: 1px solid rgba(245, 192, 0, 0.22);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  width: min(100%, clamp(18rem, 32vw, 24rem));
  align-self: center;
  justify-self: center;
  grid-area: image;
}

.certification-summary {
  grid-area: summary;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  padding-top: clamp(1.6rem, 5vw, 2.2rem);
  border-top: 1px solid rgba(245, 192, 0, 0.18);
  max-width: clamp(32rem, 70vw, 56rem);
  justify-self: start;
}

.certification-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(245, 192, 0, 0.2);
}

.certification-image figcaption {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 192, 0, 0.75);
}

@media (max-width: 1024px) {
  .certification-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "image"
      "summary";
    column-gap: 0;
    row-gap: clamp(2rem, 8vw, 2.75rem);
  }

  .certification-image {
    max-width: 520px;
    margin-inline: auto;
    align-self: center;
  }
}

@media (max-width: 720px) {
  .certification-pill {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .certification-pill img {
    width: clamp(72px, 20vw, 88px);
  }

  .certification-card {
    padding: clamp(1.75rem, 6vw, 2.25rem);
  }
}

@media (max-width: 640px) {
  .certification-pill {
    align-items: center;
    text-align: center;
  }

  .certification-copy li {
    padding-left: 0;
  }

  .certification-copy li::before {
    position: static;
    display: inline-block;
    margin-right: 0.65rem;
    vertical-align: middle;
  }
}
