/* Homepage hero — faithful layout to Livio's supplied reference */
.site-nav {
  position:absolute !important;
  inset:0 0 auto 0 !important;
  z-index:100 !important;
  padding:14px 0 !important;
  background:linear-gradient(180deg,rgba(1,15,27,.78),rgba(1,15,27,0)) !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.site-nav .nav-content {
  width:calc(100% - 9.5%) !important;
  max-width:1540px !important;
  min-height:100px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:2rem !important;
}
.site-nav .brand-name {
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  width:auto !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.site-nav .brand-title {
  display:block !important;
  font-family:'Dancing Script',cursive !important;
  font-size:clamp(2.3rem,3.1vw,3.15rem) !important;
  font-weight:600 !important;
  line-height:.95 !important;
  letter-spacing:0 !important;
  color:#fff !important;
  text-transform:none !important;
}
.site-nav .brand-tagline {
  display:block !important;
  margin:.45rem 0 0 1.1rem !important;
  color:#e8f2fa !important;
  font-size:.7rem !important;
  font-weight:500 !important;
  letter-spacing:.18em !important;
  white-space:nowrap !important;
}
.site-nav nav { margin-left:auto !important; }
.site-nav .nav-links {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:clamp(1rem,2.05vw,2.35rem) !important;
}
.site-nav .nav-link {
  position:relative !important;
  padding:.7rem 0 !important;
  color:#f7fbff !important;
  font-size:clamp(.76rem,.92vw,.94rem) !important;
  font-weight:600 !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
}
.site-nav .nav-link::after {
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:100% !important;
  bottom:0 !important;
  height:4px !important;
  border-radius:4px !important;
  background:#079de8 !important;
  transition:right .25s ease !important;
}
.site-nav .nav-link.active::after,
.site-nav .nav-link:hover::after { right:0 !important; }

.hero-section {
  position:relative !important;
  isolation:isolate !important;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-height:100vh !important;
  height:100vh !important;
  padding:155px 6.8% 65px !important;
  overflow:hidden !important;
  background:
    radial-gradient(ellipse at 9% 82%,rgba(0,155,215,.2),transparent 34%),
    radial-gradient(ellipse at 57% 60%,rgba(31,104,139,.26),transparent 42%),
    linear-gradient(105deg,#031522 0%,#061c2a 50%,#102b3b 100%) !important;
}
.hero-section::before {
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  background:linear-gradient(90deg,rgba(2,17,29,.98) 0%,rgba(2,17,29,.94) 39%,rgba(2,17,29,.42) 64%,rgba(2,17,29,.04) 100%) !important;
}
.hero-section > img.hero-bg-img {
  display:block !important;
  position:absolute !important;
  z-index:1 !important;
  top:5% !important;
  right:2.8% !important;
  left:auto !important;
  width:43% !important;
  height:95% !important;
  max-width:680px !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  opacity:1 !important;
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 11%,rgba(0,0,0,.92) 29%,#000 44%) !important;
}
.hero-section > .hero-bg-overlay {
  display:block !important;
  position:absolute !important;
  z-index:2 !important;
  inset:0 !important;
  pointer-events:none !important;
  background:linear-gradient(90deg,#031522 0%,rgba(3,21,34,.96) 39%,rgba(3,21,34,.28) 65%,transparent 100%) !important;
}
.hero-section > .hero-water-detail {
  display:block !important;
  position:absolute !important;
  z-index:3 !important;
  inset:auto 0 0 !important;
  height:29% !important;
  pointer-events:none !important;
  opacity:.95 !important;
  background:
    radial-gradient(ellipse at 7% 100%,rgba(0,190,240,.48),transparent 40%),
    radial-gradient(ellipse at 23% 115%,rgba(17,151,199,.35),transparent 42%),
    radial-gradient(ellipse at 43% 125%,rgba(0,105,153,.22),transparent 40%) !important;
}
#bubblesCanvas {
  display:block !important;
  position:fixed !important;
  z-index:4 !important;
  inset:0 !important;
  pointer-events:none !important;
  opacity:.82 !important;
}
.hero-section > .hero-content {
  position:relative !important;
  z-index:5 !important;
  width:100% !important;
  max-width:1450px !important;
  margin:0 auto !important;
  padding:0 !important;
}
.hero-headline {
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  max-width:1000px !important;
  margin:0 0 1.55rem !important;
  line-height:1.08 !important;
  filter:none !important;
}
.hero-title-main {
  display:block !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
  font-size:clamp(2.2rem,4.05vw,4.15rem) !important;
  font-weight:800 !important;
  letter-spacing:-.025em !important;
  white-space:nowrap !important;
}
.hero-title-accent {
  display:block !important;
  margin-top:.25rem !important;
  color:#129fe8 !important;
  -webkit-text-fill-color:#129fe8 !important;
  font-size:clamp(1.5rem,2.95vw,3rem) !important;
  font-weight:600 !important;
  letter-spacing:-.02em !important;
  white-space:nowrap !important;
}
.hero-rule {
  width:96px !important;
  height:6px !important;
  margin:2.05rem 0 1.7rem !important;
  border-radius:5px !important;
  background:#079de8 !important;
}
.hero-subtext {
  max-width:760px !important;
  margin-bottom:2.7rem !important;
  color:#f1f5f9 !important;
  font-size:clamp(1.05rem,1.55vw,1.5rem) !important;
  line-height:1.5 !important;
  text-shadow:0 2px 10px rgba(0,0,0,.35) !important;
}
.hero-actions {
  position:relative !important;
  z-index:6 !important;
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:2.2rem !important;
}
.hero-actions .btn {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:64px !important;
  padding:1rem 2.35rem !important;
  border-radius:13px !important;
  color:#fff !important;
  font-size:1rem !important;
}
.hero-actions .btn-primary {
  background:linear-gradient(110deg,#08a9ef,#0878e6) !important;
  box-shadow:0 8px 28px rgba(0,145,230,.25) !important;
}
.hero-actions .btn-outline {
  border:2px solid #f1f5f9 !important;
  background:rgba(3,17,31,.32) !important;
}
@media(max-width:1100px) {
  .site-nav .nav-links { gap:.9rem !important; }
  .site-nav .nav-link { font-size:.7rem !important; }
  .hero-title-main { font-size:clamp(2rem,4vw,3.4rem) !important; }
  .hero-title-accent { font-size:clamp(1.4rem,2.8vw,2.5rem) !important; }
}
@media(max-width:900px) {
  .site-nav .nav-content { width:90% !important; }
  .site-nav .nav-links { display:none !important; }
  .hero-section { height:auto !important; min-height:94svh !important; padding:145px 5% 58px !important; }
  .hero-section > img.hero-bg-img {
    top:10% !important; right:0 !important; width:58% !important; height:75% !important;
    object-position:center top !important; opacity:.78 !important;
    mask-image:linear-gradient(180deg,rgba(0,0,0,.2),#000 40%) !important;
  }
  .hero-title-main,.hero-title-accent { white-space:normal !important; }
  .hero-subtext { max-width:90% !important; }
}
@media(max-width:620px) {
  .site-nav { padding:.65rem 0 !important; }
  .site-nav .brand-title { font-size:2rem !important; }
  .site-nav .brand-tagline { margin-left:.35rem !important; font-size:.52rem !important; }
  .hero-section { min-height:94svh !important; padding:130px 6% 52px !important; }
  .hero-section > img.hero-bg-img {
    top:auto !important; bottom:0 !important; right:0 !important; width:78% !important; height:58% !important;
    object-position:center top !important; opacity:.58 !important;
  }
  .hero-title-main { font-size:2.05rem !important; }
  .hero-title-accent { font-size:1.4rem !important; }
  .hero-subtext { font-size:1rem !important; }
  .hero-actions { gap:.85rem !important; }
  .hero-actions .btn { min-height:54px !important; padding:0 1.1rem !important; font-size:.85rem !important; }
}

/* Uploaded full-bleed aquatic hero artwork and transparent logo */
.site-nav .brand-logo {
  display:block !important;
  width:clamp(220px,22vw,325px) !important;
  height:auto !important;
  max-height:112px !important;
  object-fit:contain !important;
  object-position:left center !important;
}
.site-nav .brand-name { flex:0 0 auto !important; }
.hero-section {
  background-image:
    linear-gradient(90deg,rgba(2,17,29,.20) 0%,rgba(2,17,29,.10) 46%,rgba(2,17,29,.02) 100%),
    url("../images/Allenatore%20di%20nuoto%20tra%20onde%20turchesi.webp") !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.hero-section::before {
  background:linear-gradient(90deg,rgba(2,17,29,.78) 0%,rgba(2,17,29,.64) 42%,rgba(2,17,29,.12) 68%,rgba(2,17,29,.02) 100%) !important;
}
.hero-section > img.hero-bg-img { display:none !important; }
.hero-section > .hero-bg-overlay { background:transparent !important; }
@media(max-width:900px) {
  .site-nav .brand-logo { width:clamp(190px,45vw,270px) !important; max-height:82px !important; }
  .hero-section { background-position:62% center !important; }
}
@media(max-width:620px) {
  .site-nav .brand-logo { width:205px !important; max-height:72px !important; }
  .hero-section {
    background-position:65% center !important;
    background-image:linear-gradient(90deg,rgba(2,17,29,.76),rgba(2,17,29,.42)),url("../images/Allenatore%20di%20nuoto%20tra%20onde%20turchesi.webp") !important;
  }
}

/* FINAL FIX: uploaded full-width artwork is the only hero image */
html body main #hero.hero-section {
  background-color:#03111f !important;
  background-image:
    linear-gradient(90deg,rgba(2,17,29,.18) 0%,rgba(2,17,29,.10) 48%,rgba(2,17,29,0) 76%),
    url("/images/Allenatore%20di%20nuoto%20tra%20onde%20turchesi.webp") !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
  background-position:center center !important;
}
html body header.site-nav img.brand-logo {
  display:block !important;width:310px !important;max-width:32vw !important;
  height:auto !important;max-height:112px !important;object-fit:contain !important;
  flex:0 0 auto !important;
}
@media(max-width:700px) {
  html body header.site-nav img.brand-logo { width:220px !important;max-width:58vw !important;max-height:82px !important; }
  html body main #hero.hero-section { background-position:62% center !important; }
}

/* Header brand: graphic mark followed by the owner's name */
.site-nav .brand-name {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:16px !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
.site-nav .brand-name-text {
  display:inline-block !important;
  color:#fff !important;
  font-family:'Dancing Script','Segoe Script',cursive !important;
  font-size:clamp(1.9rem,2.7vw,2.75rem) !important;
  font-weight:600 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-shadow:0 2px 12px rgba(0,0,0,.28) !important;
}
@media(max-width:700px) {
  .site-nav .brand-name { gap:9px !important; }
  .site-nav .brand-name img.brand-logo { width:66px !important; max-width:18vw !important; max-height:58px !important; }
  .site-nav .brand-name-text { font-size:1.65rem !important; }
}

/* Keep the logo mark and the name on one horizontal line */
.site-nav .brand-name {
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:16px !important;
  white-space:nowrap !important;
}
.site-nav .brand-name .brand-logo {
  display:block !important;
  flex:0 0 auto !important;
  width:105px !important;
  max-width:12vw !important;
  height:auto !important;
  max-height:82px !important;
}
.site-nav .brand-name .brand-name-text {
  display:inline-block !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
  margin:0 !important;
}
@media(max-width:700px) {
  .site-nav .brand-name { flex-direction:row !important; gap:9px !important; }
  .site-nav .brand-name .brand-logo { width:66px !important; max-width:18vw !important; max-height:58px !important; }
}

/* Lower the hero artwork slightly so the coach's head clears the navigation */
html body main #hero.hero-section {
  background-position:center 38% !important;
}
@media(max-width:700px) {
  html body main #hero.hero-section {
    background-position:62% 42% !important;
  }
}

/* Refinements from latest screenshot: larger logo and soft transition into next section */
.site-nav .brand-name .brand-logo {
  width:120px !important;
  max-width:14vw !important;
}
#hero.hero-section {
  position:relative !important;
  overflow:hidden !important;
}
#hero.hero-section::after {
  content:"" !important;
  position:absolute !important;
  z-index:3 !important;
  left:0 !important;
  right:0 !important;
  bottom:-1px !important;
  height:190px !important;
  pointer-events:none !important;
  background:linear-gradient(
    to bottom,
    rgba(5,8,20,0) 0%,
    rgba(5,8,20,.16) 28%,
    rgba(5,8,20,.58) 65%,
    #050814 100%
  ) !important;
}
#hero.hero-section .hero-content {
  position:relative !important;
  z-index:5 !important;
}
@media(max-width:700px) {
  .site-nav .brand-name .brand-logo {
    width:76px !important;
    max-width:20vw !important;
  }
  #hero.hero-section::after { height:145px !important; }
}

/* Final visual correction: larger brand mark and seamless hero-to-content fade */
.site-nav .brand-name .brand-logo {
  width:165px !important;
  max-width:18vw !important;
  max-height:112px !important;
}
.site-nav .brand-name-text {
  font-size:clamp(2.15rem,3.1vw,3.05rem) !important;
}
#hero.hero-section {
  background-image:
    linear-gradient(90deg,rgba(2,17,29,.18) 0%,rgba(2,17,29,.10) 48%,rgba(2,17,29,0) 76%),
    linear-gradient(to bottom,rgba(5,8,20,0) 66%,rgba(5,8,20,.45) 84%,#050814 100%),
    url("/images/Allenatore%20di%20nuoto%20tra%20onde%20turchesi.webp") !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center 44% !important;
  margin-bottom:0 !important;
  padding-bottom:150px !important;
}
#hero.hero-section::after {
  height:260px !important;
  bottom:-1px !important;
  background:linear-gradient(to bottom,
    rgba(5,8,20,0) 0%,
    rgba(5,8,20,.12) 25%,
    rgba(5,8,20,.58) 62%,
    #050814 100%) !important;
  z-index:4 !important;
}
#philosophy {
  position:relative !important;
  background:linear-gradient(to bottom,#050814 0%,#050814 100%) !important;
  margin-top:0 !important;
  padding-top:90px !important;
}
#philosophy::before {
  content:"" !important;
  position:absolute !important;
  left:0 !important;right:0 !important;
  top:-110px !important;
  height:111px !important;
  pointer-events:none !important;
  background:linear-gradient(to bottom,rgba(5,8,20,0),#050814) !important;
}
@media(max-width:700px) {
  .site-nav .brand-name .brand-logo {
    width:100px !important;
    max-width:24vw !important;
    max-height:78px !important;
  }
  .site-nav .brand-name-text { font-size:1.8rem !important; }
  #hero.hero-section {
    background-position:62% 46% !important;
    padding-bottom:120px !important;
  }
  #hero.hero-section::after { height:190px !important; }
  #philosophy { padding-top:70px !important; }
  #philosophy::before { top:-80px !important;height:81px !important; }
}

/* Final header spacing: bring the name closer to the logo */
.site-nav .brand-name {
  gap:6px !important;
}
@media(max-width:700px) {
  .site-nav .brand-name { gap:5px !important; }
}

/* About section alignment and tighter brand lockup */
.site-nav .brand-name {
  gap:2px !important;
}
#philosophy .philosophy-grid {
  align-items:start !important;
}
#philosophy .philosophy-image-frame {
  align-self:start !important;
  margin-top:0 !important;
}
#philosophy .about-copy {
  align-self:start !important;
  margin-top:0 !important;
}
@media(max-width:700px) {
  .site-nav .brand-name { gap:2px !important; }
  #philosophy .philosophy-grid { align-items:start !important; }
}


/* Correct the visible gap caused by transparent padding inside the logo image */
.site-nav .brand-name {
  gap:0 !important;
}
.site-nav .brand-name .brand-name-text {
  margin-left:-34px !important;
}
@media(max-width:700px) {
  .site-nav .brand-name { gap:0 !important; }
  .site-nav .brand-name .brand-name-text { margin-left:-20px !important; }
}


/* Center the final two cards in the five-dimension gallery */
#gallery .gallery-grid {
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:1.5rem !important;
}
#gallery .gallery-card {
  grid-column:span 2 !important;
}
#gallery .gallery-card:nth-child(4) {
  grid-column:2 / span 2 !important;
}
#gallery .gallery-card:nth-child(5) {
  grid-column:4 / span 2 !important;
}
@media(max-width:900px) {
  #gallery .gallery-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  #gallery .gallery-card,
  #gallery .gallery-card:nth-child(4),
  #gallery .gallery-card:nth-child(5) {
    grid-column:auto !important;
  }
}
@media(max-width:620px) {
  #gallery .gallery-grid { grid-template-columns:1fr !important; }
}


/* MOBILE-FIRST POLISH — compact navigation, readable sections and touch-friendly cards */
@media (max-width: 620px) {
  html { scroll-padding-top: 112px; }
  body { overflow-x:hidden !important; }
  .container { width: min(100% - 36px, 100%) !important; margin-inline:auto !important; }

  /* Two-level header: brand first, swipeable navigation below */
  header.site-nav {
    position:sticky !important; top:0 !important; z-index:1000 !important;
    padding:7px 0 5px !important; background:rgba(3,13,25,.96) !important;
    backdrop-filter:blur(14px) !important;
  }
  .site-nav .nav-content {
    width:calc(100% - 28px) !important; min-height:0 !important;
    height:auto !important; display:flex !important; flex-direction:column !important;
    align-items:stretch !important; justify-content:center !important; gap:5px !important;
  }
  .site-nav .brand-name {
    align-self:center !important; width:auto !important; max-width:100% !important;
    display:flex !important; flex-direction:row !important; align-items:center !important;
    justify-content:center !important; gap:0 !important; white-space:nowrap !important;
  }
  .site-nav .brand-name .brand-logo {
    width:72px !important; max-width:none !important; max-height:48px !important;
    height:48px !important; object-fit:contain !important; flex:0 0 72px !important;
  }
  .site-nav .brand-name .brand-name-text {
    margin-left:-15px !important; font-size:1.65rem !important;
    line-height:1 !important; white-space:nowrap !important;
  }
  .site-nav nav { width:100% !important; margin:0 !important; overflow:visible !important; }
  .site-nav .nav-links {
    display:flex !important; flex-wrap:nowrap !important; justify-content:flex-start !important;
    gap:20px !important; width:100% !important; overflow-x:auto !important;
    overflow-y:hidden !important; padding:7px 2px 8px !important; margin:0 !important;
    scrollbar-width:none !important; -webkit-overflow-scrolling:touch !important;
  }
  .site-nav .nav-links::-webkit-scrollbar { display:none !important; }
  .site-nav .nav-links li { flex:0 0 auto !important; }
  .site-nav .nav-link { font-size:.68rem !important; letter-spacing:.055em !important; }

  /* Hero: text remains the priority, image stays visible behind it */
  #hero.hero-section {
    min-height: min(790px, calc(100svh - 105px)) !important;
    height:auto !important; padding:62px 0 120px !important;
    display:flex !important; align-items:center !important;
    background-position:62% center !important;
  }
  #hero.hero-section::before {
    background:linear-gradient(180deg,rgba(2,14,27,.55) 0%,rgba(2,14,27,.48) 48%,rgba(2,14,27,.72) 100%) !important;
  }
  #hero.hero-section::after { height:135px !important; }
  #hero .hero-content { width:100% !important; max-width:none !important; }
  .hero-headline { max-width:100% !important; margin-bottom:1rem !important; }
  .hero-title-main {
    font-size:clamp(1.9rem,8.4vw,2.55rem) !important;
    line-height:1.08 !important; white-space:normal !important;
    overflow-wrap:normal !important;
  }
  .hero-title-accent {
    font-size:clamp(1.2rem,5.5vw,1.55rem) !important;
    line-height:1.2 !important; white-space:normal !important;
  }
  .hero-rule { width:62px !important; height:4px !important; margin:1.35rem 0 1.15rem !important; }
  .hero-subtext { max-width:100% !important; font-size:.96rem !important; line-height:1.55 !important; margin-bottom:1.5rem !important; }
  .desktop-break { display:none !important; }
  .hero-actions { display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:10px !important; width:min(100%,310px) !important; }
  .hero-actions .btn { width:100% !important; min-height:49px !important; padding:0 1rem !important; font-size:.88rem !important; }

  /* Consistent mobile spacing and headings */
  section { scroll-margin-top:112px !important; }
  .section-heading { font-size:clamp(1.65rem,7vw,2.1rem) !important; line-height:1.12 !important; }
  .section-subheading { font-size:.95rem !important; line-height:1.6 !important; }
  .section-label { font-size:.68rem !important; letter-spacing:.12em !important; }
  #philosophy, #journey, #gallery, #blog, #services, #contact {
    padding-top:58px !important; padding-bottom:58px !important;
  }

  /* About and experience layouts become single-column */
  #philosophy .philosophy-grid,
  .philosophy-grid,
  .journey-grid,
  .contact-layout { display:grid !important; grid-template-columns:1fr !important; gap:24px !important; }
  #philosophy .philosophy-image-frame,
  .philosophy-image-frame { width:100% !important; max-width:100% !important; }
  #philosophy .philosophy-image-frame img,
  .philosophy-image-frame img { width:100% !important; height:auto !important; }
  #philosophy .about-copy { min-width:0 !important; }
  #philosophy p, #journey p, #services p { font-size:.94rem !important; line-height:1.7 !important; }

  /* Five dimensions: one elegant full-width card per row */
  #gallery .gallery-grid {
    display:grid !important; grid-template-columns:1fr !important;
    gap:15px !important; margin-top:26px !important;
  }
  #gallery .gallery-card,
  #gallery .gallery-card:nth-child(4),
  #gallery .gallery-card:nth-child(5) {
    grid-column:1 / -1 !important; min-height:245px !important;
    height:245px !important; border-radius:16px !important;
  }
  #gallery .gallery-card img { width:100% !important; height:100% !important; object-fit:cover !important; }
  #gallery .gallery-card-overlay { padding:17px !important; }
  #gallery .gallery-pill { font-size:.61rem !important; line-height:1.35 !important; }
  #gallery .gallery-title { font-size:1.2rem !important; line-height:1.15 !important; }
  #gallery .gallery-caption { font-size:.83rem !important; line-height:1.45 !important; }

  /* Services, blog and contact */
  .card-grid, .card-grid--services { display:grid !important; grid-template-columns:1fr !important; gap:14px !important; }
  .info-card { padding:20px !important; }
  #blog .blog-feature {
    display:flex !important; flex-direction:column !important; gap:17px !important;
    padding:12px !important; margin-top:22px !important;
  }
  #blog .blog-feature > img {
    width:100% !important; height:auto !important; aspect-ratio:4/3 !important;
    object-fit:cover !important; border-radius:11px !important;
  }
  #blog .blog-feature > div { min-width:0 !important; }
  #blog .blog-feature h3 { font-size:1.45rem !important; line-height:1.2 !important; }
  #blog .blog-feature p, #blog .blog-feature li { font-size:.91rem !important; line-height:1.65 !important; }
  #contact .contact-layout { gap:24px !important; }
  #contact .form-row { display:grid !important; grid-template-columns:1fr !important; gap:0 !important; }
  #contact input, #contact select, #contact textarea { font-size:16px !important; }
}

/* Tablet refinements */
@media (min-width:621px) and (max-width:900px) {
  .container { width: min(92%, 760px) !important; }
  .site-nav .nav-links { gap:12px !important; }
  .site-nav .nav-link { font-size:.64rem !important; }
  #hero.hero-section { min-height:760px !important; padding:135px 0 90px !important; }
  .hero-title-main { white-space:normal !important; font-size:clamp(2.2rem,5.5vw,3.2rem) !important; }
  .hero-title-accent { white-space:normal !important; font-size:clamp(1.4rem,4vw,2rem) !important; }
  #gallery .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #gallery .gallery-card, #gallery .gallery-card:nth-child(4), #gallery .gallery-card:nth-child(5) { grid-column:auto !important; }
  #philosophy .philosophy-grid { grid-template-columns:1fr 1fr !important; gap:24px !important; }
}


/* MOBILE FIX 2 — compact header and prevent hero text clipping */
@media (max-width: 620px) {
  html, body { width:100% !important; max-width:100% !important; overflow-x:clip !important; }
  header.site-nav { padding:6px 0 4px !important; }
  .site-nav .nav-content {
    width:100% !important; max-width:100% !important;
    padding:0 14px !important; box-sizing:border-box !important;
    gap:4px !important;
  }
  .site-nav .brand-name {
    width:100% !important; min-width:0 !important;
    justify-content:center !important; gap:0 !important;
  }
  .site-nav .brand-name .brand-logo {
    width:64px !important; height:46px !important; max-width:none !important;
    max-height:46px !important; flex:0 0 64px !important;
  }
  .site-nav .brand-name .brand-name-text {
    margin-left:-10px !important; font-size:1.55rem !important;
    letter-spacing:-.02em !important;
  }
  .site-nav nav { width:100% !important; min-width:0 !important; }
  .site-nav .nav-links {
    display:flex !important; width:100% !important; max-width:100% !important;
    box-sizing:border-box !important; justify-content:flex-start !important;
    gap:18px !important; padding:7px 3px 9px !important;
    overflow-x:auto !important; overscroll-behavior-x:contain !important;
  }
  .site-nav .nav-link { font-size:.66rem !important; }

  #hero.hero-section {
    width:100% !important; max-width:100% !important;
    min-height:calc(100svh - 102px) !important;
    padding:62px 0 95px !important;
    box-sizing:border-box !important;
    background-position:70% center !important;
  }
  #hero .container.hero-content {
    width:calc(100% - 40px) !important; max-width:440px !important;
    margin:0 auto !important; padding:0 !important;
    box-sizing:border-box !important;
  }
  #hero .hero-headline { width:100% !important; max-width:100% !important; }
  #hero .hero-title-main {
    display:block !important; width:100% !important; max-width:100% !important;
    font-size:clamp(1.8rem,7.2vw,2.25rem) !important;
    line-height:1.08 !important; letter-spacing:-.035em !important;
    white-space:normal !important; overflow-wrap:normal !important;
  }
  #hero .hero-title-accent {
    display:block !important; width:100% !important; max-width:100% !important;
    margin-top:.35rem !important; font-size:clamp(1.05rem,4.8vw,1.35rem) !important;
    line-height:1.25 !important; letter-spacing:-.015em !important;
    white-space:normal !important;
  }
  #hero .hero-subtext {
    width:100% !important; max-width:100% !important;
    font-size:.94rem !important; line-height:1.55 !important;
  }
  #hero .hero-actions {
    width:100% !important; max-width:330px !important;
    align-items:stretch !important;
  }
  #hero .hero-actions .btn {
    width:100% !important; max-width:100% !important;
    box-sizing:border-box !important; min-height:50px !important;
    font-size:.86rem !important; padding:0 14px !important;
  }
}


/* Mobile header refinement: show every navigation item without horizontal clipping */
@media (max-width:620px) {
  .site-nav .nav-content {
    gap:8px !important;
  }
  .site-nav nav {
    overflow:visible !important;
  }
  .site-nav .nav-links {
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:7px 17px !important;
    overflow:visible !important;
    white-space:normal !important;
    padding:6px 0 8px !important;
  }
  .site-nav .nav-links li {
    flex:0 0 auto !important;
  }
  .site-nav .nav-link {
    display:inline-block !important;
    font-size:.65rem !important;
    line-height:1.35 !important;
    letter-spacing:.035em !important;
  }

  /* Reduce the oversized gap below the navigation */
  #hero.hero-section {
    min-height:calc(100svh - 145px) !important;
    padding-top:28px !important;
    padding-bottom:105px !important;
    align-items:center !important;
  }
}


/* Mobile navigation: a compact two-row grid, never a clipped horizontal strip */
@media (max-width:620px) {
  header.site-nav .nav-content { gap:7px !important; }
  header.site-nav nav { width:100% !important; overflow:visible !important; }
  header.site-nav nav ul.nav-links {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    justify-content:stretch !important;
    align-items:center !important;
    justify-items:center !important;
    gap:8px 3px !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
    padding:5px 0 9px !important;
    margin:0 !important;
    white-space:normal !important;
  }
  header.site-nav nav ul.nav-links li {
    display:block !important;
    min-width:0 !important;
    width:100% !important;
    text-align:center !important;
  }
  header.site-nav nav ul.nav-links .nav-link {
    display:inline-block !important;
    max-width:100% !important;
    font-size:clamp(.53rem,2.55vw,.65rem) !important;
    letter-spacing:.015em !important;
    white-space:nowrap !important;
    line-height:1.3 !important;
  }

  /* Bring the hero headline closer to the navigation */
  #hero.hero-section {
    display:flex !important;
    align-items:flex-start !important;
    min-height:calc(100svh - 160px) !important;
    padding-top:66px !important;
    padding-bottom:90px !important;
  }
}


/* MOBILE HERO: reframe the original background to reveal more of the coach */
@media (max-width:620px) {
  html body main #hero.hero-section {
    background-size:auto 100% !important;
    background-position:88% center !important;
    background-repeat:no-repeat !important;
  }
  html body main #hero.hero-section::before {
    background:linear-gradient(
      90deg,
      rgba(2,14,27,.78) 0%,
      rgba(2,14,27,.58) 43%,
      rgba(2,14,27,.18) 100%
    ) !important;
  }
}


/* ABOUT ME: unify paragraph colour and typography across the full text */
#philosophy .about-copy p {
  color:#CBD5E1 !important;
  font-size:1rem !important;
  line-height:1.75 !important;
  font-weight:400 !important;
  margin-bottom:1rem !important;
}
#philosophy .about-copy p:last-of-type {
  color:#159FE8 !important;
  font-weight:800 !important;
  letter-spacing:.04em !important;
  margin-top:1rem !important;
  margin-bottom:0 !important;
}
@media(max-width:620px) {
  #philosophy .about-copy p {
    color:#CBD5E1 !important;
    font-size:.94rem !important;
    line-height:1.7 !important;
  }
  #philosophy .about-copy p:last-of-type {
    color:#159FE8 !important;
  }
}


/* Final mobile hero crop: allow responsive positioning of the original photo */
@media (max-width:620px) {
  html body main #hero.hero-section {
    background-position:62% center !important;
    background-size:auto 100% !important;
    background-repeat:no-repeat !important;
  }
  html body main #hero.hero-section::before {
    background:linear-gradient(90deg,rgba(2,17,29,.84) 0%,rgba(2,17,29,.68) 48%,rgba(2,17,29,.24) 100%) !important;
  }
}


/* MOBILE HERO READABILITY: subtle dark glass panel behind all copy */
@media (max-width:620px) {
  html body main #hero.hero-section .hero-content {
    position:relative !important;
    z-index:5 !important;
    isolation:isolate !important;
    padding:18px 15px 20px !important;
    border-radius:18px !important;
  }
  html body main #hero.hero-section .hero-content::before {
    content:"" !important;
    position:absolute !important;
    z-index:-1 !important;
    inset:0 -10px !important;
    border-radius:18px !important;
    background:rgba(2,13,27,.78) !important;
    border:1px solid rgba(125,205,240,.12) !important;
    box-shadow:0 12px 34px rgba(0,0,0,.22) !important;
    backdrop-filter:blur(5px) !important;
    -webkit-backdrop-filter:blur(5px) !important;
  }
  html body main #hero.hero-section .hero-title-main,
  html body main #hero.hero-section .hero-title-accent,
  html body main #hero.hero-section .hero-subtext {
    text-shadow:0 2px 8px rgba(0,0,0,.72) !important;
  }
  html body main #hero.hero-section .hero-title-accent { color:#20B8FF !important; }
}


/* Refined hero typography and optional user-controlled background soundtrack */
.hero-headline { max-width:1100px !important; }
.hero-title-main {
  display:block !important;
  font-size:clamp(2.5rem,4.15vw,4.1rem) !important;
  line-height:1.06 !important;
  letter-spacing:-.035em !important;
}
.hero-title-accent {
  display:block !important;
  margin-top:.45rem !important;
  font-size:clamp(1.55rem,2.65vw,2.55rem) !important;
  line-height:1.18 !important;
}
.hero-audio-control { margin-top:18px !important; }
.audio-toggle {
  display:inline-flex !important; align-items:center !important; gap:10px !important;
  padding:10px 15px !important; border:1px solid rgba(94,190,235,.55) !important;
  border-radius:999px !important; color:#d9f3ff !important;
  background:rgba(3,24,40,.58) !important; font:600 .82rem/1.2 Inter,sans-serif !important;
  letter-spacing:.035em !important; cursor:pointer !important;
  transition:background .2s ease,border-color .2s ease,transform .2s ease !important;
}
.audio-toggle:hover { background:rgba(0,145,220,.24) !important; border-color:#22b7f2 !important; }
.audio-toggle:focus-visible { outline:2px solid #22b7f2 !important; outline-offset:3px !important; }
.audio-toggle-icon { color:#20b9f4 !important; font-size:.9rem !important; }
.audio-toggle[aria-pressed="true"] { background:rgba(0,145,220,.2) !important; }
@media(max-width:620px) {
  .hero-title-main { font-size:clamp(1.8rem,7.2vw,2.25rem) !important; }
  .hero-title-accent { font-size:clamp(1.05rem,4.8vw,1.35rem) !important; }
  .hero-audio-control { margin-top:14px !important; }
  .audio-toggle { font-size:.76rem !important; padding:9px 13px !important; }
}


/* Desktop hero typography: keep the headline in its own left-side column */
@media (min-width:901px) {
  #hero .hero-content {
    max-width:1180px !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  #hero .hero-headline {
    width:min(100%,790px) !important;
    max-width:790px !important;
    margin-bottom:1.25rem !important;
  }
  #hero .hero-title-main {
    max-width:780px !important;
    font-size:clamp(2.45rem,3.25vw,3.55rem) !important;
    line-height:1.08 !important;
    letter-spacing:-.04em !important;
    white-space:normal !important;
    text-wrap:balance !important;
  }
  #hero .hero-title-accent {
    max-width:740px !important;
    font-size:clamp(1.35rem,1.85vw,2rem) !important;
    line-height:1.22 !important;
    letter-spacing:-.02em !important;
    white-space:normal !important;
    text-wrap:balance !important;
  }
  #hero .hero-subtext {
    max-width:610px !important;
    font-size:1.12rem !important;
    line-height:1.55 !important;
  }
  #hero .hero-actions { margin-top:1.7rem !important; }
  #hero .hero-audio-control { margin-top:1rem !important; }
}


/* Desktop: lower the hero text block slightly beneath the navigation */
@media (min-width:901px) {
  #hero .hero-content {
    transform:translateY(42px) !important;
  }
}


/* Desktop: move the coach photograph down so the head clears the navigation */
@media (min-width:901px) {
  #hero.hero-section {
    background-position:center calc(44% + 70px) !important;
    background-size:cover !important;
  }
}


/* DEFINITIVE DESKTOP HERO CROP: align the background to its top edge.
   This shifts the coach down relative to the centered crop used previously. */
@media (min-width:901px) {
  html body main #hero.hero-section {
    background-position: center top !important;
    background-size: cover !important;
  }
  html body main #hero.hero-section .hero-content {
    transform: translateY(42px) !important;
  }
}


/* Fine-tune desktop crop: lower the background image a little further */
@media (min-width:901px) {
  html body main #hero.hero-section {
    background-position:center 8% !important;
    background-size:cover !important;
  }
}


/* Desktop composition adjustment: lower portrait and copy, shift soundtrack control right */
@media (min-width:901px) {
  html body main #hero.hero-section {
    /* A positive pixel offset moves the background image down from the top edge. */
    background-position:center 72px !important;
    background-size:cover !important;
  }
  html body main #hero.hero-section .hero-content {
    transform:translateY(72px) !important;
  }
  html body main #hero.hero-section .hero-audio-control {
    margin-left:270px !important;
    margin-top:1rem !important;
  }
}


/* Final desktop alignment: nudge hero copy and soundtrack control to the right */
@media (min-width:901px) {
  html body main #hero.hero-section .hero-content {
    transform:translate(24px,72px) !important;
  }
  html body main #hero.hero-section .hero-audio-control {
    margin-left:330px !important;
  }
}


/* Precise desktop adjustment: shift the complete hero content right by 1 cm.
   Place the soundtrack control directly beneath the first (My Experience) button. */
@media (min-width:901px) {
  html body main #hero.hero-section .hero-content {
    position:relative !important;
    left:38px !important;
    transform:translateY(72px) !important;
  }
  html body main #hero.hero-section .hero-audio-control {
    margin-left:0 !important;
    margin-top:1rem !important;
    width:max-content !important;
    position:relative !important;
  }
}


/* Override all earlier desktop offsets with a measurable 38px content inset */
@media (min-width:901px) {
  #hero > .container.hero-content {
    left:auto !important;
    margin-left:calc((100% - min(1450px, 100%)) / 2 + 38px) !important;
    margin-right:0 !important;
    width:calc(min(1450px, 100%) - 38px) !important;
    max-width:none !important;
    padding-left:0 !important;
    transform:translateY(72px) !important;
  }
  #hero > .container.hero-content .hero-audio-control {
    margin-left:0 !important;
    position:static !important;
    width:max-content !important;
    clear:both !important;
  }
}


/* Smartphone refinement — country flags and Facilities cards */
@media (max-width: 620px) {
  #facilities {
    padding: 3.4rem 0 3.8rem !important;
    scroll-margin-top: 18px !important;
  }
  #facilities > p {
    font-size: .88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.15rem !important;
  }
  #facilities nav[aria-label="Explore facilities by country"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
    width: 100% !important;
  }
  #facilities .country-tile {
    min-width: 0 !important;
    min-height: 68px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .45rem !important;
    padding: .55rem .58rem !important;
    border-radius: 12px !important;
  }
  #facilities .country-flag-img {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 28px !important;
    min-width: 40px !important;
    object-fit: cover !important;
    margin-left: 0 !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,.48) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.4) !important;
  }
  #facilities .country-tile-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: .76rem !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.7) !important;
  }
  #facilities .country-arrow {
    flex: 0 0 auto !important;
    font-size: .82rem !important;
    margin-left: 0 !important;
  }
}
@media (max-width: 370px) {
  #facilities nav[aria-label="Explore facilities by country"] { gap: .5rem !important; }
  #facilities .country-tile { padding: .48rem !important; gap: .35rem !important; }
  #facilities .country-flag-img { flex-basis: 34px !important; width: 34px !important; height: 24px !important; min-width: 34px !important; }
  #facilities .country-tile-name { font-size: .7rem !important; }
}


/* Persistent primary navigation with a soft fade at its lower edge */
html body header.site-nav {
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:1000 !important;
  padding-bottom:38px !important;
  background-color:transparent !important;
  background-image:linear-gradient(
    to bottom,
    rgba(3,14,27,.92) 0%,
    rgba(3,14,27,.82) 42%,
    rgba(3,14,27,.52) 68%,
    rgba(3,14,27,.20) 86%,
    rgba(3,14,27,0) 100%
  ) !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
@media (max-width:900px) {
  html body header.site-nav .nav-content {
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:8px 14px !important;
    padding:4px 0 !important;
  }
  html body header.site-nav nav {
    display:block !important;
    width:100% !important;
    margin:0 !important;
  }
  html body header.site-nav nav ul.nav-links {
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:6px 14px !important;
    width:100% !important;
  }
}


/* RESPONSIVE FINISH — tablet and mobile layouts */
@media (min-width:621px) and (max-width:1024px) {
  html { scroll-padding-top:112px; }
  header.site-nav {
    position:fixed !important; top:0 !important; left:0 !important; right:0 !important;
    z-index:1000 !important; padding:10px 0 22px !important;
    background:linear-gradient(to bottom,rgba(3,14,27,.94),rgba(3,14,27,.72) 70%,transparent) !important;
  }
  header.site-nav .nav-content {
    width:94% !important; min-height:0 !important; flex-wrap:wrap !important;
    justify-content:center !important; gap:8px 18px !important;
  }
  header.site-nav .brand-name { margin:0 auto !important; }
  header.site-nav .brand-logo { width:76px !important; max-width:12vw !important; max-height:64px !important; }
  header.site-nav .brand-name-text { font-size:2rem !important; }
  header.site-nav nav { width:100% !important; margin:0 !important; }
  header.site-nav .nav-links {
    display:flex !important; justify-content:center !important; flex-wrap:wrap !important;
    gap:4px clamp(12px,2vw,22px) !important;
  }
  header.site-nav .nav-link { font-size:.72rem !important; padding:.35rem 0 !important; }
  #hero.hero-section { min-height:780px !important; height:auto !important; padding:190px 5% 90px !important; }
  #hero.hero-section > img.hero-bg-img { width:48% !important; height:78% !important; top:16% !important; right:0 !important; object-position:50% 10% !important; }
  #hero .hero-content { max-width:100% !important; }
  #hero .hero-headline { max-width:62% !important; }
  #hero .hero-title-main { white-space:normal !important; font-size:clamp(2rem,4vw,3.1rem) !important; }
  #hero .hero-title-accent { white-space:normal !important; font-size:clamp(1.4rem,2.8vw,2.2rem) !important; }
  #hero .hero-subtext { max-width:58% !important; font-size:1.05rem !important; }
}
@media (max-width:620px) {
  html { scroll-padding-top:132px; }
  body { overflow-x:hidden !important; }
  header.site-nav {
    position:fixed !important; inset:0 0 auto 0 !important; z-index:1000 !important;
    padding:6px 0 12px !important;
    background:linear-gradient(to bottom,rgba(3,14,27,.97) 0%,rgba(3,14,27,.92) 78%,rgba(3,14,27,0) 100%) !important;
    border:0 !important; box-shadow:none !important; backdrop-filter:blur(10px) !important;
  }
  header.site-nav .nav-content {
    width:94% !important; min-height:0 !important; display:flex !important;
    flex-wrap:wrap !important; justify-content:center !important; gap:2px !important;
  }
  header.site-nav .brand-name {
    width:100% !important; justify-content:center !important; gap:8px !important;
    margin:0 auto !important;
  }
  header.site-nav .brand-logo { width:46px !important; max-width:46px !important; max-height:42px !important; }
  header.site-nav .brand-name-text { font-size:1.65rem !important; }
  header.site-nav nav { display:block !important; width:100% !important; margin:0 !important; }
  header.site-nav nav ul.nav-links {
    display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:0 4px !important; width:100% !important; margin:0 !important; padding:0 !important;
    justify-items:center !important; align-items:center !important;
  }
  header.site-nav nav ul.nav-links li { min-width:0 !important; width:100% !important; text-align:center !important; }
  header.site-nav .nav-link {
    display:inline-block !important; padding:5px 1px !important;
    font-size:.61rem !important; line-height:1.15 !important; letter-spacing:.025em !important;
    white-space:nowrap !important;
  }
  #hero.hero-section {
    min-height:820px !important; height:auto !important;
    padding:174px 6% 72px !important; align-items:flex-start !important;
  }
  #hero.hero-section > img.hero-bg-img {
    top:auto !important; bottom:0 !important; right:-8% !important;
    width:84% !important; height:58% !important; max-height:none !important;
    object-fit:contain !important; object-position:right bottom !important; opacity:.48 !important;
    mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.4) 18%,#000 48%) !important;
  }
  #hero.hero-section::before {
    background:linear-gradient(180deg,rgba(3,21,34,.98) 0%,rgba(3,21,34,.88) 48%,rgba(3,21,34,.28) 100%) !important;
  }
  #hero .hero-content { width:100% !important; max-width:none !important; }
  #hero .hero-headline { max-width:100% !important; }
  #hero .hero-title-main { white-space:normal !important; font-size:clamp(2rem,9vw,2.65rem) !important; line-height:1.08 !important; }
  #hero .hero-title-accent { white-space:normal !important; font-size:clamp(1.35rem,6.4vw,1.8rem) !important; line-height:1.15 !important; }
  #hero .hero-rule { margin:1.3rem 0 1.2rem !important; }
  #hero .hero-subtext { max-width:100% !important; font-size:1rem !important; line-height:1.5 !important; margin-bottom:1.5rem !important; }
  #hero .hero-actions { display:flex !important; flex-wrap:wrap !important; gap:.7rem !important; }
  #hero .hero-actions .btn { min-height:48px !important; padding:.7rem 1rem !important; font-size:.84rem !important; }
  .container { width:100% !important; max-width:100% !important; }
  section.container, main section { scroll-margin-top:132px !important; }
  #philosophy, #journey, #gallery, #facilities, #blog, #services, #contact { padding-top:3.5rem !important; padding-bottom:3.5rem !important; }
  .philosophy-grid, .contact-layout { grid-template-columns:minmax(0,1fr) !important; gap:1.5rem !important; }
  .about-photo-stack { width:100% !important; }
  .about-photo-stack .philosophy-img { height:210px !important; }
  .card-grid, .card-grid--services, .country-grid, .gallery-grid { grid-template-columns:repeat(1,minmax(0,1fr)) !important; }
  .blog-feature { display:flex !important; width:100% !important; max-width:100% !important; align-items:flex-start !important; }
  .blog-feature img { width:104px !important; height:82px !important; flex:0 0 104px !important; object-fit:cover !important; }
  .form-row { grid-template-columns:minmax(0,1fr) !important; }
  .site-footer .container { justify-content:center !important; text-align:center !important; }
  #mediaModal { padding: .65rem !important; }
  #mediaModal > div { width:100% !important; max-height:92vh !important; padding:1rem !important; }
}


/* MOBILE NAVIGATION — compact fixed header with a clear 3x3 link layout */
@media (max-width:620px) {
  html { scroll-padding-top:118px !important; }
  html body header.site-nav {
    position:fixed !important;
    top:0 !important; left:0 !important; right:0 !important;
    width:100% !important;
    z-index:10000 !important;
    box-sizing:border-box !important;
    padding:5px 0 14px !important;
    background:linear-gradient(
      to bottom,
      rgba(3,14,27,.97) 0%,
      rgba(3,14,27,.93) 72%,
      rgba(3,14,27,.68) 88%,
      rgba(3,14,27,0) 100%
    ) !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:blur(9px) !important;
    -webkit-backdrop-filter:blur(9px) !important;
  }
  html body header.site-nav .nav-content {
    width:94% !important;
    max-width:94% !important;
    min-height:0 !important;
    height:auto !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    gap:3px !important;
  }
  html body header.site-nav .brand-name {
    width:auto !important;
    max-width:100% !important;
    min-height:43px !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
    white-space:nowrap !important;
  }
  html body header.site-nav .brand-name .brand-logo {
    display:block !important;
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
    height:43px !important;
    max-height:43px !important;
    margin:0 !important;
    object-fit:contain !important;
    flex:0 0 58px !important;
  }
  html body header.site-nav .brand-name .brand-name-text {
    display:inline-block !important;
    margin:0 0 0 -10px !important;
    padding:0 !important;
    font-size:1.55rem !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  html body header.site-nav nav {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  html body header.site-nav nav ul.nav-links {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows:minmax(20px,auto) !important;
    justify-content:stretch !important;
    align-items:center !important;
    justify-items:center !important;
    gap:1px 3px !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    list-style:none !important;
  }
  html body header.site-nav nav ul.nav-links li {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    text-align:center !important;
  }
  html body header.site-nav nav ul.nav-links .nav-link {
    display:inline-block !important;
    max-width:100% !important;
    margin:0 !important;
    padding:4px 1px !important;
    font-size:clamp(10px,2.8vw,11px) !important;
    line-height:1.15 !important;
    letter-spacing:.015em !important;
    white-space:nowrap !important;
  }
  html body header.site-nav nav ul.nav-links .nav-link::after {
    height:2px !important;
  }
  html body main #hero.hero-section {
    padding-top:160px !important;
  }
  html body main section[id] {
    scroll-margin-top:118px !important;
  }
}
@media (max-width:360px) {
  html body header.site-nav .brand-name .brand-logo {
    width:50px !important; min-width:50px !important; max-width:50px !important;
    flex-basis:50px !important;
  }
  html body header.site-nav .brand-name .brand-name-text {
    font-size:1.42rem !important;
  }
  html body header.site-nav nav ul.nav-links .nav-link {
    font-size:9.5px !important;
  }
}


/* Professional Services — aligned interactive project cards */
#services .card-grid--services{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  align-items:stretch;
  gap:1rem !important;
  margin-top:2rem;
}
#services .info-card{
  min-width:0;
  min-height:245px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:1.35rem 1.2rem 1.25rem !important;
  border:1px solid rgba(75,155,210,.27);
  border-radius:16px;
  background:linear-gradient(155deg,rgba(17,42,70,.96),rgba(7,18,37,.98));
  box-shadow:0 10px 28px rgba(0,0,0,.2);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
#services .info-card:hover{
  transform:translateY(-6px);
  border-color:rgba(56,189,248,.72);
  box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 22px rgba(56,189,248,.09);
}
#services .service-card-number{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;margin-bottom:1.1rem;border-radius:11px;
  color:#8edcff;font:800 .82rem Outfit,sans-serif;
  background:rgba(56,189,248,.12);border:1px solid rgba(56,189,248,.25);
}
#services .info-card h3{font-size:1.02rem;line-height:1.3;margin-bottom:.65rem}
#services .info-card .card-desc{font-size:.84rem;line-height:1.6;flex:1}
#services .service-card-link{
  display:inline-flex;align-items:center;gap:.45rem;margin-top:1.1rem;
  color:#7dd3fc;text-decoration:none;font:700 .76rem Outfit,sans-serif;
  text-transform:uppercase;letter-spacing:.07em;
}
#services .service-card-link:hover{color:#fff}
#services .services-projects-cta{margin-top:1.8rem}
@media(max-width:1050px){
  #services .card-grid--services{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media(max-width:700px){
  #services .card-grid--services{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:.8rem !important}
  #services .info-card{min-height:235px;padding:1.1rem !important}
}
@media(max-width:460px){
  #services .card-grid--services{grid-template-columns:1fr !important}
  #services .info-card{min-height:0}
}


/* Professional Services — distinctive aquatic line icons */
#services .info-card > .service-card-icon{
  display:flex;align-items:center;justify-content:center;
  align-self:center !important;
  margin-left:auto !important;margin-right:auto !important;
  width:124px;height:100px;margin-bottom:1rem;border:0;border-radius:0;
  background:transparent;box-shadow:none;overflow:visible;
}
#services .service-card-icon img{
  display:block;width:100%;height:100%;object-fit:contain;
  filter:brightness(1.28) saturate(1.38) contrast(1.08) drop-shadow(0 0 8px rgba(0,205,255,.34));
  transition:filter .22s ease,transform .22s ease;
}
#services .info-card:hover .service-card-icon img{
  filter:brightness(1.42) saturate(1.48) contrast(1.1) drop-shadow(0 0 13px rgba(0,220,255,.52));
  transform:translateY(-2px);
}
/* Optical centering of the luminous frames within the five service cards */
#services .info-card:nth-child(1) > .service-card-icon img{transform:translateX(-3px)}
#services .info-card:nth-child(2) > .service-card-icon img{transform:translateX(-5px)}
#services .info-card:nth-child(3) > .service-card-icon img{transform:translateX(-6px)}
#services .info-card:nth-child(4) > .service-card-icon img{transform:translateX(-8px)}
#services .info-card:nth-child(5) > .service-card-icon img{transform:translateX(-10px)}
#services .info-card:nth-child(1):hover > .service-card-icon img{transform:translate(-3px,-2px)}
#services .info-card:nth-child(2):hover > .service-card-icon img{transform:translate(-5px,-2px)}
#services .info-card:nth-child(3):hover > .service-card-icon img{transform:translate(-6px,-2px)}
#services .info-card:nth-child(4):hover > .service-card-icon img{transform:translate(-8px,-2px)}
#services .info-card:nth-child(5):hover > .service-card-icon img{transform:translate(-10px,-2px)}

#services .info-card:hover .service-card-icon{
  border-color:rgba(34,211,238,.85);
  box-shadow:inset 0 0 18px rgba(34,190,230,.13),0 0 18px rgba(34,190,230,.16);
  transform:translateY(-2px);
}
#services .service-card-icon{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
@media(max-width:700px){#services .service-card-icon{width:106px;height:86px}}


/* Unified section-heading alignment: center all major section titles */
html body main section h2.section-heading {
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
html body main section .section-label {
  display:block !important;
  text-align:center !important;
}
#blog .lc-blog-heading,
#blog .lc-blog-heading > div {
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
#blog .lc-blog-intro { text-align:center !important; margin-left:auto !important; margin-right:auto !important; }


/* Center section introductory descriptions beneath their headings */
#facilities > p,
#services > .section-subheading,
#journey > .experience-intro {
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Tighter Home-to-About transition: bring About closer to the wave */
#philosophy .philosophy-grid { padding-top:2.5rem !important; }

/* Contact transition cleanup: keep project content and navigation unobstructed */
html body main section#contact.contact-section {
  margin-top: 0 !important;
  position: relative !important;
  z-index: auto !important;
  isolation: auto !important;
  background-color: rgba(15,26,54,.4) !important;
  background-image: linear-gradient(to bottom, rgba(2,8,20,0) 0%, rgba(2,8,20,.22) 16%, rgba(15,26,54,.72) 40%, rgba(15,26,54,1) 70%) !important;
  border-top: 0 !important;
}
html body main section#contact.contact-section::after { content: none !important; }
html body main section#contact.contact-section > .container { position: relative !important; z-index: 1 !important; }
html body footer.site-footer { background: linear-gradient(to bottom, #0f1a36 0%, rgba(8,17,39,.86) 50%, #020814 100%) !important; border-top: 0 !important; }


/* Mobile-specific services and contact layout */
.services-mobile-cards{display:none;}
@media(max-width:620px){
  #services .services-image-wrap > img,
  #services .services-image-wrap > span[aria-hidden="true"]{display:none !important;}
  #services .services-mobile-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 auto;line-height:normal;}
  #services .service-mobile-card{padding:15px 13px;border:1px solid rgba(65,165,220,.28);border-radius:13px;background:linear-gradient(145deg,rgba(7,24,48,.96),rgba(3,10,24,.96));box-shadow:0 7px 18px rgba(0,0,0,.18);min-width:0;}
  #services .service-mobile-card:last-child{grid-column:1/-1;max-width:calc(50% - 6px);width:100%;justify-self:center;}
  #services .service-mobile-icon{font-size:29px;line-height:1.2;text-align:center;margin:0 auto 9px;filter:drop-shadow(0 0 8px rgba(0,210,255,.25));}
  #services .service-mobile-card h3{font-size:14px;line-height:1.3;text-align:center;margin:0 0 7px;color:#f5fbff;}
  #services .service-mobile-card p{font-size:11.5px;line-height:1.5;text-align:center;margin:0;color:#aebed1;}
  #services .services-projects-cta{margin-top:22px;text-align:center;padding-bottom:36px;}
  #services .services-projects-cta .btn{font-size:13px;padding:14px 18px;max-width:100%;white-space:normal;}
  #contact.contact-section{padding-top:4.7rem !important;padding-bottom:3rem !important;}
  #contact.contact-section::before{top:-88px !important;height:105px !important;left:-1% !important;right:-1% !important;background-size:100% 100%,100% 100% !important;}
  #contact .section-heading{font-size:clamp(2rem,8vw,2.55rem) !important;line-height:1.12 !important;}
  #contact p{font-size:1rem !important;line-height:1.65 !important;}
  #contact .contact-layout{gap:2rem !important;}
  #contact .contact-layout > div:first-child a{font-size:1rem !important;}
}
@media(max-width:390px){
  #services .services-mobile-cards{grid-template-columns:1fr;}
  #services .service-mobile-card:last-child{grid-column:auto;max-width:none;}
}

/* Aquatic shortcuts centered under the main navigation, using matching menu typography */
.site-nav .nav-content{align-items:center!important;}
.site-nav .nav-stack{display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;}
.site-nav nav{display:block!important;}
.site-nav .nav-links{margin:0!important;padding:0!important;}
.aquatic-shortcuts{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;}
.aquatic-shortcut{display:flex;align-items:center;gap:3px;color:#7dd3fc;text-decoration:none;font-size:.64rem;font-weight:700;letter-spacing:normal;text-transform:uppercase;line-height:1;opacity:.9;transition:transform .2s ease,color .2s ease,opacity .2s ease;padding:5px 8px;border:1px solid rgba(56,189,248,.25);border-radius:8px;background:rgba(2,132,199,.08);}
.aquatic-shortcut svg{width:14px;height:14px;display:block;}
.aquatic-shortcut:hover{color:#fff;opacity:1;transform:translateY(-2px);}
@media(max-width:900px){.aquatic-shortcut{font-size:.6rem;padding:4px 6px}.aquatic-shortcut svg{width:13px;height:13px}.aquatic-shortcuts{gap:8px}}
