/* HiGuppy About page — brand-aligned overrides on higuppy-pages.css */

/* Keep the current-page indicator inside the shared floating navigation pill.
   higuppy-pages.css positions it 11px below the link, which makes the line
   appear detached beneath the header on /about-us/. */
body.hg-about-active nav#hgSiteNav.hg-nav .hg-menu a.is-active::after {
  bottom: -3px;
}

/* The block-theme content wrapper falls back to an 800px constrained width.
   About is a full-bleed custom page, so release that constraint here only. */
body.hg-about-active .wp-block-post-content,
body.hg-about-active .entry-content {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove the theme's duplicate top breadcrumb/title strip. The About page
   keeps its own branded breadcrumb inside the custom page content. */
body.hg-about-active .et-fse-page-breadcrumbs {
  display: none !important;
}

body.hg-about-active .higuppy-page.hg-about-page {
  --hg-blue: #1747B8;
  --hg-blue-dark: #0E2F86;
  --hg-yellow: #FDBB2D;
  --hg-orange: #FF6B35;
  --hg-cream: #FFF6E6;
  --hg-sky: #EAF6FF;
  --hg-navy: #13203A;
  --hg-muted: #667085;
  --hg-line: #E3EBF7;
  --hg-teal: #15BFD0;
  --hg-radius: 14px;
  --hg-radius-lg: 22px;
  --hg-card-pad: clamp(20px, 2.4vw, 26px);
  --hg-fish: url("https://higuppy.com/wp-content/uploads/higuppy/hero-guppy-cutout.png");
  background:
    linear-gradient(180deg, #EAF6FF 0, #F3FAFF 150px, #F8FCFF 470px, #fff 760px);
}

body.hg-about-active .higuppy-page .hg-sub-hero.about-hero {
  position: relative;
  padding-top: 52px;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 83% 48%, rgba(21, 191, 208, 0.08), transparent 34%),
    radial-gradient(circle at 9% 86%, rgba(253, 187, 45, 0.12), transparent 23%),
    linear-gradient(180deg, #EAF6FF 0, #EAF6FF 18%, #F2FAFF 48%, #F8FCFF 82%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
}

body.hg-about-active .higuppy-page .hg-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.10);
  border: 1px solid rgba(255, 107, 53, 0.18);
  color: var(--hg-orange);
  font-weight: var(--hg-font-weight-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--hg-font-size-body);
}

body.hg-about-active .higuppy-page .hg-hero-copy h1 {
  color: var(--hg-navy);
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.08;
}

body.hg-about-active .higuppy-page .hg-hero-copy h1 span {
  color: var(--hg-blue);
}

body.hg-about-active .higuppy-page .hg-btn-primary {
  background: linear-gradient(135deg, var(--hg-orange), #ff854f);
  border: 0;
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.25);
}

body.hg-about-active .higuppy-page .hg-btn-secondary {
  border-color: var(--hg-blue);
  color: var(--hg-blue);
}

body.hg-about-active .higuppy-page .hg-soft-section {
  background: var(--hg-cream);
}

body.hg-about-active .higuppy-page .hg-info-card,
body.hg-about-active .higuppy-page .hg-image-card,
body.hg-about-active .higuppy-page a.hg-related-card {
  border: 1px solid var(--hg-line);
  box-shadow: 0 18px 45px rgba(23, 71, 184, 0.08);
  border-radius: 18px;
}

body.hg-about-active .higuppy-page .hg-note {
  background: #fff;
  border: 1px solid #ffd9a8;
  border-left: 4px solid var(--hg-orange);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(23, 71, 184, 0.06);
}

body.hg-about-active .higuppy-page .hg-note strong {
  display: block;
  color: var(--hg-navy);
  margin-bottom: 8px;
}

body.hg-about-active .higuppy-page .hg-note p {
  color: var(--hg-muted);
  margin: 0;
}

body.hg-about-active .higuppy-page .hg-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.hg-about-active .higuppy-page .hg-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

body.hg-about-active .higuppy-page .hg-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.hg-about-active .higuppy-page .hg-timeline > div {
  background: #fff;
  border: 1px solid var(--hg-line);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

body.hg-about-active .higuppy-page .hg-timeline b {
  display: block;
  color: var(--hg-blue);
  margin-bottom: 6px;
}

body.hg-about-active .higuppy-page .hg-cta-band {
  /* Soft sky → cream surface so navy copy stays readable on brand theme. */
  background: linear-gradient(135deg, #EAF6FF 0%, #FFF6E6 58%, #FFFFFF 100%);
  color: #13203A;
  border: 1px solid #E3EBF7;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(23, 71, 184, 0.10);
  /* Fix #3: trim the empty light gap between the CTA band and the footer
     wave — was 48px, now a tighter, more balanced rhythm. */
  margin-bottom: 16px;
  /* Fix #4: comfortable padding + gap between the text block and the button
     row (row-gap when stacked on mobile, column-gap beside text on desktop). */
  padding: clamp(28px, 4vw, 46px);
  gap: clamp(22px, 3.2vw, 40px);
}

body.hg-about-active .higuppy-page .hg-cta-band h2,
body.hg-about-active .higuppy-page .hg-cta-band p {
  color: #13203A !important;
}

body.hg-about-active .higuppy-page .hg-cta-band p {
  color: #667085 !important;
}

body.hg-about-active .higuppy-page .hg-cta-band .hg-btn-secondary {
  background: #FFFFFF;
  border-color: #E3EBF7;
  color: #0E2F86;
}

body.hg-about-active .higuppy-page .hg-cta-band .hg-btn-secondary:hover {
  border-color: #1747B8;
  color: #1747B8;
}

/* ─── Header + hero cohesion (brand sky band) ─────────────── */

/* Float the header pill on the hero's sky-blue instead of dark navy.
   Body paints in front of the ::before layer, so tint the body itself
   sky at the top and keep navy lower down (footer overscroll stays navy). */
body.hg-about-active.higuppy-site-shell,
body.hg-about-active::before {
  background:
    linear-gradient(180deg, #EAF6FF 0, #EAF6FF 132px, #F2FAFF 280px, #F8FCFF 520px, #fff 860px, #0a2d5c 92%, #061f3f 100%) !important;
}

html:has(body.hg-about-active),
body.hg-about-active,
body.hg-about-active.higuppy-site-shell .page-wrapper,
body.hg-about-active.higuppy-site-shell .template-container,
body.hg-about-active.higuppy-site-shell .template-content,
body.hg-about-active.higuppy-site-shell .content-page,
body.hg-about-active.higuppy-site-shell main,
body.hg-about-active.higuppy-site-shell .main-content,
body.hg-about-active.higuppy-site-shell .site-main {
  background:
    linear-gradient(180deg, #EAF6FF 0, #EAF6FF 132px, #F2FAFF 280px, #F8FCFF 520px, #fff 860px) !important;
}

body.hg-about-active.higuppy-site-shell > nav.hg-nav,
body.hg-about-active.higuppy-site-shell nav#hgSiteNav.hg-nav {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 54px rgba(23, 71, 184, 0.10);
}

body.hg-about-active .higuppy-page {
  margin-top: 0;
}

body.hg-about-active .higuppy-page .hg-breadcrumb {
  margin-bottom: 18px;
  font-size: var(--hg-font-size-body);
}

body.hg-about-active .higuppy-page .hg-hero-grid {
  position: relative;
  z-index: 1;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 48px);
}

/* Override shared pages.css (stacks at 1100px) so About keeps copy | image
   through tablet widths. Phone still stacks below. */
@media (min-width: 701px) {
  body.hg-about-active .higuppy-page .hg-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
  }

  body.hg-about-active .higuppy-page .hg-hero-fish-wrap {
    margin-left: auto;
    margin-right: 0;
  }
}

/* Tablet: smaller aquarium, pinned to the right of the About copy. */
@media (min-width: 701px) and (max-width: 1100px) {
  body.hg-about-active .higuppy-page .hg-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.48fr);
    gap: clamp(16px, 2.8vw, 28px);
    align-items: center;
  }

  body.hg-about-active .higuppy-page .hg-hero-fish-wrap {
    max-width: 250px;
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    min-height: 0;
  }

  body.hg-about-active .higuppy-page .hg-hero-fish-wrap img {
    max-width: none;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 700px) {
  body.hg-about-active .higuppy-page .hg-hero-grid {
    grid-template-columns: 1fr;
  }

  body.hg-about-active .higuppy-page .hg-hero-fish-wrap {
    max-width: 240px;
    margin-inline: auto;
  }
}

body.hg-about-active .higuppy-page .hg-lead {
  max-width: 52ch;
  line-height: 1.7;
}

/* Soft brand glows for depth behind the hero */
body.hg-about-active .higuppy-page .hg-sub-hero.about-hero::before,
body.hg-about-active .higuppy-page .hg-sub-hero.about-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

body.hg-about-active .higuppy-page .hg-sub-hero.about-hero::before {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -60px;
  background: radial-gradient(circle, rgba(21, 191, 208, 0.28), transparent 68%);
}

body.hg-about-active .higuppy-page .hg-sub-hero.about-hero::after {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(253, 187, 45, 0.20), transparent 70%);
}

/* Trust markers → soft chips */
body.hg-about-active .higuppy-page .hg-mini-trust {
  gap: 10px 12px;
  margin-top: 26px;
}

@media (min-width: 901px) {
  body.hg-about-active .higuppy-page .hg-mini-trust {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
  }

  body.hg-about-active .higuppy-page .hg-mini-trust span {
    white-space: nowrap;
  }
}

body.hg-about-active .higuppy-page .hg-mini-trust span {
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hg-line);
  box-shadow: 0 8px 20px rgba(23, 71, 184, 0.06);
  font-size: var(--hg-font-size-body);
  font-weight: var(--hg-font-weight-ui);
  color: var(--hg-navy);
}

body.hg-about-active .higuppy-page .hg-mini-trust span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(23, 71, 184, 0.10);
  color: var(--hg-blue);
  font-size: var(--hg-font-size-body);
  font-weight: var(--hg-font-weight-ui);
}

/* Hero → planted aquarium scene with a real school of guppies.
   Keep the frame compact and pinned to the right of the About copy. */
body.hg-about-active .higuppy-page .hg-hero-fish-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 5 / 4;
  border: 1px solid rgba(21, 191, 208, 0.28);
  box-shadow:
    inset 0 3px 16px rgba(255, 255, 255, 0.65),
    inset 0 -10px 30px rgba(12, 94, 142, 0.16),
    0 26px 55px rgba(23, 71, 184, 0.16);
  background: #bde9f6;
}

body.hg-about-active .higuppy-page .hg-hero-fish-wrap img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
  transform-origin: 50% 50%;
  animation: hgAquariumDrift 14s ease-in-out infinite alternate;
}

/* A soft moving glass highlight adds water motion without obscuring the fish. */
body.hg-about-active .higuppy-page .hg-hero-fish-wrap::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  border-radius: 0 !important;
  background:
    linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.18) 42%, transparent 56%);
  animation: hgWaterShimmer 9s ease-in-out infinite alternate;
}

/* Rising bubbles */
body.hg-about-active .higuppy-page .hg-hero-fish-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(6px 6px at 30% 92%, rgba(255, 255, 255, 0.9), transparent 62%),
    radial-gradient(4px 4px at 35% 82%, rgba(255, 255, 255, 0.7), transparent 62%),
    radial-gradient(8px 8px at 67% 90%, rgba(255, 255, 255, 0.85), transparent 62%),
    radial-gradient(5px 5px at 72% 78%, rgba(255, 255, 255, 0.65), transparent 62%),
    radial-gradient(4px 4px at 50% 86%, rgba(255, 255, 255, 0.7), transparent 62%);
  animation: hgBubbles 7s linear infinite;
}

@keyframes hgAquariumDrift {
  0% { transform: scale(1.015) translate3d(-0.6%, 0.3%, 0); }
  100% { transform: scale(1.055) translate3d(0.8%, -0.5%, 0); }
}

@keyframes hgWaterShimmer {
  0% { transform: translate3d(-6%, 0, 0); opacity: 0.55; }
  100% { transform: translate3d(6%, -2%, 0); opacity: 0.9; }
}

@keyframes hgBubbles {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 -260px, 0 -220px, 0 -300px, 0 -240px, 0 -280px; }
}

@media (prefers-reduced-motion: reduce) {
  body.hg-about-active .higuppy-page .hg-hero-fish-wrap img { animation: none; }
  body.hg-about-active .higuppy-page .hg-hero-fish-wrap::before { animation: none; }
  body.hg-about-active .higuppy-page .hg-hero-fish-wrap::after { animation: none; }
}

@media (max-width: 900px) {
  body.hg-about-active .higuppy-page .hg-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body.hg-about-active .higuppy-page .hg-timeline {
    grid-template-columns: 1fr;
  }

  /* Turn the 4 facility photos into one swipeable slide on mobile. */
  body.hg-about-active .higuppy-page .hg-gallery {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 2px 4px 8px;
  }

  body.hg-about-active .higuppy-page .hg-gallery::-webkit-scrollbar {
    display: none;
  }

  body.hg-about-active .higuppy-page .hg-gallery img {
    flex: 0 0 88%;
    scroll-snap-align: center;
    aspect-ratio: 16 / 10;
  }

  /* Commitments cards → one swipeable slide on mobile. */
  body.hg-about-active .higuppy-page #hg-about-commitments .commitment-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 2px 4px 8px;
    align-items: stretch;
  }

  body.hg-about-active .higuppy-page #hg-about-commitments .commitment-grid::-webkit-scrollbar {
    display: none;
  }

  body.hg-about-active .higuppy-page #hg-about-commitments .commitment-grid > .hg-image-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
    min-width: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   Unified design system — balanced columns, consistent cards,
   brand-harmonized backgrounds, aquarium section transitions.
   ══════════════════════════════════════════════════════════════ */

/* ── Balanced two-column sections (Company Story, Facility) ── */
body.hg-about-active .higuppy-page .hg-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

body.hg-about-active .higuppy-page .hg-video-card {
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hg-line);
  box-shadow: 0 18px 45px rgba(23, 71, 184, 0.10);
}

body.hg-about-active .higuppy-page .hg-video-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.hg-about-active .higuppy-page .hg-section-head {
  margin-bottom: clamp(22px, 3vw, 34px);
}

/* ── Consistent card grids (philosophy, commitments, team) ── */
body.hg-about-active .higuppy-page .hg-card-grid {
  display: grid;
}

body.hg-about-active .higuppy-page .hg-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

body.hg-about-active .higuppy-page .hg-card-grid .hg-info-card,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 14px;
  padding: var(--hg-card-pad);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(23, 71, 184, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.hg-about-active .higuppy-page .hg-card-grid .hg-info-card:hover,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(23, 71, 184, 0.13);
}

/* Icon + title on the same row */
body.hg-about-active .higuppy-page .hg-card-grid .hg-info-card > i,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card > i {
  grid-column: 1;
  grid-row: 1;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hg-sky), #d5eefb);
  border: 1px solid rgba(21, 191, 208, 0.25);
  font-size: 22px;
  font-style: normal;
  line-height: 1;
}

body.hg-about-active .higuppy-page .hg-card-grid .hg-info-card > h3,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card > h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  color: var(--hg-navy);
}

body.hg-about-active .higuppy-page .hg-card-grid .hg-info-card > p,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card > p,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card > img {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

body.hg-about-active .higuppy-page .hg-card-grid .hg-info-card > p,
body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card > p {
  color: var(--hg-muted);
  font-size: var(--hg-font-size-body);
  line-height: 1.65;
}

body.hg-about-active .higuppy-page .hg-card-grid .hg-image-card > img {
  width: 100%;
  margin-top: 10px;
  border-radius: var(--hg-radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Warm-white cards on cream (soft) sections so they blend in */
body.hg-about-active .higuppy-page .hg-soft-section .hg-info-card,
body.hg-about-active .higuppy-page .hg-soft-section .hg-image-card,
body.hg-about-active .higuppy-page .hg-soft-section a.hg-related-card,
body.hg-about-active .higuppy-page .hg-soft-section .hg-timeline > div {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

/* ── Related Pages cards + CTA link ── */
body.hg-about-active .higuppy-page .hg-card-grid a.hg-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: var(--hg-card-pad);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(23, 71, 184, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.hg-about-active .higuppy-page .hg-card-grid a.hg-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(23, 71, 184, 0.13);
}

body.hg-about-active .higuppy-page .hg-related-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hg-blue);
  font-weight: var(--hg-font-weight-ui);
  font-size: var(--hg-font-size-body);
}

body.hg-about-active .higuppy-page .hg-related-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

body.hg-about-active .higuppy-page a.hg-related-card:hover .hg-related-more::after {
  transform: translateX(3px);
}

/* ── Note callout + timeline: consistent radius/spacing ── */
body.hg-about-active .higuppy-page .hg-note {
  border-radius: var(--hg-radius);
  padding: clamp(20px, 2.4vw, 26px);
}

body.hg-about-active .higuppy-page .hg-timeline {
  gap: clamp(10px, 1.4vw, 16px);
}

body.hg-about-active .higuppy-page .hg-timeline > div {
  border-radius: var(--hg-radius);
  padding: 18px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--hg-line);
  box-shadow: 0 10px 26px rgba(23, 71, 184, 0.06);
}

/* ── Aquarium section transitions: wavy dividers + plant tufts ── */
body.hg-about-active .higuppy-page .hg-section.hg-soft-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  background:
    radial-gradient(42px 62px at 4% 100%, rgba(47, 163, 106, 0.16) 0 44%, transparent 47%),
    radial-gradient(34px 50px at 8% 100%, rgba(21, 191, 208, 0.14) 0 44%, transparent 47%),
    radial-gradient(42px 62px at 96% 100%, rgba(47, 163, 106, 0.16) 0 44%, transparent 47%),
    radial-gradient(34px 50px at 92% 100%, rgba(21, 191, 208, 0.14) 0 44%, transparent 47%),
    var(--hg-cream);
}

body.hg-about-active .higuppy-page .hg-section.hg-soft-section::before,
body.hg-about-active .higuppy-page .hg-section.hg-soft-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(30px, 4.4vw, 56px);
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body.hg-about-active .higuppy-page .hg-section.hg-soft-section::before {
  top: 1px;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2070'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2070%20L0%2034%20C280%204%20560%204%20840%2032%20C1080%2056%201260%2054%201440%2028%20L1440%2070%20Z'%20fill='%23FFF6E6'/%3E%3C/svg%3E");
}

body.hg-about-active .higuppy-page .hg-section.hg-soft-section::after {
  bottom: 1px;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2070'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%200%20L0%2036%20C280%2066%20560%2066%20840%2038%20C1080%2014%201260%2016%201440%2042%20L1440%200%20Z'%20fill='%23FFF6E6'/%3E%3C/svg%3E");
}

/* The soft-section's cream wave (::after, z-index:1) hangs into the next
   section and was covering its eyebrow/heading (e.g. "Facility", "Learn more").
   A soft-section is position:relative + z-index:1, so it forms a stacking
   context that paints ABOVE a following section left at z-index:auto — which
   means a z-index on the following section's *inner* container is trapped and
   can't beat the wave. Lift the whole following section to z-index:2 so it
   (and its content) sits above the sibling wave. The section background is
   transparent, so the decorative wave still shows through empty areas while
   text stays readable. */
body.hg-about-active .higuppy-page .hg-section.hg-soft-section + .hg-section {
  position: relative;
  z-index: 2;
}

body.hg-about-active .higuppy-page .hg-section.hg-soft-section + .hg-section > .hg-container {
  position: relative;
  z-index: 2;
}

/* ── Responsive reflow ── */
@media (max-width: 900px) {
  body.hg-about-active .higuppy-page .hg-story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.hg-about-active .higuppy-page .hg-card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.hg-about-active .higuppy-page .hg-card-grid.four:not(.commitment-grid) {
    grid-template-columns: 1fr;
  }

  /* Team Expertise → keep a compact 2×2 grid on mobile (ID selector wins). */
  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-image-card,
  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-info-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 12px;
  }

  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-image-card > i,
  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-info-card > i {
    grid-column: 1;
    grid-row: auto;
  }

  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-image-card > h3,
  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-info-card > h3 {
    grid-column: 1;
    grid-row: auto;
    font-size: var(--hg-font-size-body);
  }

  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-image-card > p,
  body.hg-about-active .higuppy-page #hg-about-team .hg-card-grid.four .hg-info-card > p {
    font-size: var(--hg-font-size-body);
    line-height: 1.5;
  }
}

/* ── Phone only: drop the aquarium tank frame and show a compact cutout.
   Tablet (701–1100) keeps the framed scene on the right of the About copy. ── */
@media (max-width: 700px) {
  body.hg-about-active .higuppy-page .hg-hero-fish-wrap {
    min-height: 0;
    aspect-ratio: auto;
    max-width: 240px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    overflow: visible;
    animation: none;
    padding: 0;
    margin: 2px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.hg-about-active .higuppy-page .hg-hero-fish-wrap::before,
  body.hg-about-active .higuppy-page .hg-hero-fish-wrap::after {
    content: none;
    display: none;
  }

  body.hg-about-active .higuppy-page .hg-hero-fish {
    display: none;
  }

  body.hg-about-active .higuppy-page .hg-hero-fish-wrap img {
    position: relative;
    width: min(62%, 240px);
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    animation: none;
    filter: drop-shadow(0 12px 20px rgba(8, 40, 74, 0.22));
  }
}

/* ══════════════════════════════════════════════════════════════
   Fix #2 — Timeline connectors ("How HiGuppy Grew").
   Subtle brand-blue chevrons convey progression between the five
   steps: a right-pointing chevron between cards in a row (desktop,
   5-across) and a down-pointing chevron between stacked cards
   (mobile, 1-col). The 2-col mid range (641–900px) shows no
   connector to avoid an awkward wrap. CSS-only, no JS.
   ══════════════════════════════════════════════════════════════ */
body.hg-about-active .higuppy-page .hg-timeline > div {
  position: relative;
}

/* Desktop: single row of 5 → right-pointing chevrons in the gaps */
@media (min-width: 901px) {
  body.hg-about-active .higuppy-page .hg-timeline > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -13px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--hg-blue);
    border-right: 2px solid var(--hg-blue);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.55;
    pointer-events: none;
  }
}

/* Mobile: stacked cards → down-pointing chevrons between them */
@media (max-width: 640px) {
  body.hg-about-active .higuppy-page .hg-timeline {
    gap: 20px;
  }

  body.hg-about-active .higuppy-page .hg-timeline > div:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--hg-blue);
    border-bottom: 2px solid var(--hg-blue);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.55;
    pointer-events: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   Fix #4 — Blue CTA band button spacing / sizing (premium feel).
   Base padding + gap are set on .hg-cta-band above; here we give the
   buttons comfortable sizing and the button row clear separation when
   the band stacks on mobile.
   ══════════════════════════════════════════════════════════════ */
/* Fix #3 (cont.): the theme content wrapper adds ~33px of bottom padding that
   stacked with the CTA band margin into an oversized empty gap before the
   footer. Trim it (About-only via body.hg-about-active so it can't leak) for a
   tighter, balanced transition into the footer without cramping it. */
body.hg-about-active .container.content-page {
  padding-bottom: 6px;
}

body.hg-about-active .higuppy-page .hg-cta-band .hg-button-row {
  gap: 14px;
}

body.hg-about-active .higuppy-page .hg-cta-band .hg-btn {
  padding: 15px 30px;
  font-weight: var(--hg-font-weight-ui);
}

@media (max-width: 768px) {
  /* Base theme switches the band to display:block when stacked, which nullifies
     the flex `gap`. Force flex-column so the gap (and stretch) apply and the
     buttons get clear separation from the lead paragraph. */
  body.hg-about-active .higuppy-page .hg-cta-band {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(24px, 5vw, 32px);
  }

  body.hg-about-active .higuppy-page .hg-cta-band .hg-btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }
}

/* Company Story copy: center block headings, justify body paragraphs. */
body.hg-about-active .higuppy-page #hg-about-story .hg-story-grid > div:first-child {
  text-align: center;
}

body.hg-about-active .higuppy-page #hg-about-story .hg-story-grid > div:first-child .hg-eyebrow {
  margin-inline: auto;
}

body.hg-about-active .higuppy-page #hg-about-story .hg-story-grid > div:first-child h2 {
  text-align: center;
}

body.hg-about-active .higuppy-page #hg-about-story .hg-story-grid > div:first-child > p {
  text-align: justify;
  text-justify: inter-word;
  margin-inline: auto;
  max-width: 62ch;
}

/* Facility copy: center headings/subheads, justify body paragraphs. */
body.hg-about-active .higuppy-page #hg-about-facility .hg-section-head {
  text-align: center;
}

body.hg-about-active .higuppy-page #hg-about-facility .hg-story-grid > div:first-child {
  text-align: center;
}

body.hg-about-active .higuppy-page #hg-about-facility .hg-story-grid > div:first-child h3 {
  text-align: center;
}

body.hg-about-active .higuppy-page #hg-about-facility .hg-story-grid > div:first-child > p {
  text-align: justify;
  text-justify: inter-word;
  margin-inline: auto;
  max-width: 62ch;
}
