/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  width: 1322px;
  max-width: calc(100vw - 40px);
  height: 74px;
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  border-radius: 0;
}

.nav--scrolled {
  width: calc(100% - 80px);
  max-width: 1400px;
  top: 16px;
  height: 64px;
  padding: 0 32px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  align-self: center;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 65px;
  width: 329px;
  height: 27px;
  align-items: center;
}

.nav__link {
  font-family: var(--font-family-nav);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-text-link);
  transition: color var(--duration-fast) var(--ease-default);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  color: var(--color-primary) !important;
  font-weight: 400;
}

.nav__actions {
  display: flex;
  align-items: center;
}

.nav__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 145px;
  height: 46px;
  background: var(--color-primary);
  border-width: 0.5px 4px 4px 0.5px;
  border-style: solid;
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 18px;
  color: var(--color-text-inverse);
  transition: background var(--duration-fast) var(--ease-default);
}

.nav__btn:hover {
  background: var(--color-primary-dark);
}

.nav__hamburger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 3px 0 0 var(--color-border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background var(--duration-fast) var(--ease-default);
}

.nav__hamburger:hover {
  background: var(--color-primary-dark);
}

.nav__hamburger-line {
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform var(--duration-normal) var(--ease-default), opacity var(--duration-normal) var(--ease-default);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  max-height: calc(100svh - 72px);
  overflow-y: auto;
  background: var(--color-page-bg);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.14), 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1001;
  padding: 24px 24px 36px;
  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top center;
  transition:
    opacity 0.3s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.36s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.mobile-menu__logo img {
  height: 36px;
  width: auto;
}

.mobile-menu__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 4px 0 0 var(--color-border);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.7);
  transition:
    background var(--duration-fast) var(--ease-default),
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu.open .mobile-menu__close {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.1s;
}

.mobile-menu__close:hover {
  background: var(--color-primary-dark);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  flex: none;
  margin-top: 0;
  gap: 12px;
}

.mobile-menu__link {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: var(--color-text-primary);
  text-decoration: none;
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition:
    color var(--duration-fast) var(--ease-default),
    opacity 0.32s ease,
    transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu__link:hover {
  color: var(--color-primary);
}

.mobile-menu.open .mobile-menu__link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.22s; }

.mobile-menu__actions {
  padding: 20px 0 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-menu__actions {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.mobile-menu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 28px;
  height: 48px;
  background: var(--color-primary);
  border-width: 0.5px 4px 4px 0.5px;
  border-style: solid;
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  color: var(--color-text-inverse);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-default);
}

.mobile-menu__btn:hover {
  background: var(--color-primary-dark);
}

.mobile-menu__illustration {
  margin-top: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-menu__illustration {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s;
}

.mobile-menu__illustration img {
  height: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}

.mobile-menu__contact {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-menu.open .mobile-menu__contact {
  opacity: 1;
  transition-delay: 0.36s;
}

.mobile-menu__contact-label {
  font-family: var(--font-family-primary);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.mobile-menu__contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu__contact-email {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
}

.mobile-menu__copy-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mobile-menu__globe {
  margin-top: 4px;
  font-family: var(--font-family-primary);
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  width: 1512px;
  max-width: 100%;
  height: 920px;
  background: var(--color-page-bg);
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  position: relative;
  margin: 0 auto;
}

.hero__content {
  width: 762px;
  position: relative;
  left: 94px;
  top: 221px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__name {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  display: inline-block;
  position: relative;
}

.hero__description {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 32px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  width: 762px;
  position: relative;
}

.underline-blue,
.underline-pink,
.underline-purple {
  position: relative;
  display: inline;
}

.wiggle-img {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 7px;
  object-fit: fill;
}

.hero__name-last {
  position: relative;
  display: inline;
}

.hero__speech-bubble {
  position: absolute;
  top: -10px;
  left: calc(100% + 4px);
  width: 136.11px;
  height: 72.97px;
}

.hero__speech-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-indicator {
  cursor: pointer;
  text-decoration: none;
  color: #292929;
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 32px;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 40px;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hero-image {
  position: absolute;
  left: 937px;
  top: 201px;
  width: 500px;
  height: 500px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__grass {
  position: absolute;
  width: 1514px;
  height: 182px;
  left: -1px;
  top: 738px;
}

.hero__grass-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   PROJECT CARDS
   ======================================== */

.projects {
  background: var(--color-page-bg);
  padding: 80px 97px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-card {
  width: 100%;
  max-width: 1315px;
  height: 550px;
  background: var(--color-white);
  border-radius: var(--radius-xl, 32px);
  padding: 16px 32px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.project-card__text {
  width: 621px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-card__title {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

.project-card__category {
  margin-top: 12px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

.project-card__description {
  margin-top: 24px;
  width: 582px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: var(--color-text-description);
}

.project-card__metrics {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 24px;
  color: var(--color-text-description);
}

.project-card__check {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.project-card__check-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-card__btn {
  margin-top: 24px;
  width: 160px;
  height: 42px;
  background: var(--color-primary);
  border-width: 0.5px 4px 4px 0.5px;
  border-style: solid;
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 18px;
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-default);
}

.project-card__btn:hover {
  background: var(--color-primary-dark);
}

.project-card__btn:active {
  transform: scale(0.96);
}

.project-card__image {
  width: 584px;
  height: 474px;
  background: var(--color-page-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__icon {
  width: 35.57px;
  height: 35.57px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card__icon--lg {
  width: 53px;
  height: 53px;
}

.project-card--reverse {
  flex-direction: row-reverse;
}

/* ========================================
   SLIDESHOW
   ======================================== */

.slideshow {
  width: 100%;
  height: 809px;
  background: var(--color-page-bg);
  position: relative;
  overflow: hidden;
}

.slideshow__header {
  position: absolute;
  left: 111px;
  top: 41px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slideshow__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.slideshow__title {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

.slideshow__viewport {
  position: absolute;
  width: 100%;
  height: 620px;
  left: 0;
  top: 120px;
  overflow: hidden;
}

.slideshow__track {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.slideshow__slide {
  width: 580px;
  height: 620px;
  border-radius: var(--radius-card);
  flex-shrink: 0;
  overflow: hidden;
  background-color: #f7f7f7;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   FOOTER
   ======================================== */

/* ========================================
   SITE FOOTER
   ======================================== */

.site-footer {
  position: relative;
  width: 100%;
  min-height: 700px;
  background-image: url('../portfolio-design-images/footer illustrations/blue sea water.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: visible;
  padding-top: 130px;
}

/* Wave image — at the very top edge of the entire footer */
.site-footer__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: none;
  z-index: 4;
  pointer-events: none;
}

/* Wave texture lines — subtle background ripples inside the water (desktop).
   z-index:-1 keeps them behind the band text, sand and every illustrated
   element regardless of DOM order, since this is just a background layer. */
.site-footer__wave-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

/* ── Part 1: Top Info Band ── */

.footer-band {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 80px;
  background: transparent;
}

.footer-band__left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  max-width: 400px;
}

.footer-band__clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: #333333;
  margin: 0;
}

.footer-band__clock-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-band__message {
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: #000000;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
}

.footer-band__nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}

.footer-band__nav-link,
.footer-band__nav-link:hover,
.footer-band__nav-link:focus,
.footer-band__nav-link:active {
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: #000000 !important;
  text-decoration: none !important;
}

.footer-band__socials {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-s);
  align-items: center;
}

.footer-band__social-btn,
.footer-band__social-btn:hover,
.footer-band__social-btn:focus,
.footer-band__social-btn:active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  gap: 10px;
  width: 60px;
  height: 60px;
  border-radius: 100px;
  background: var(--color-footer-bg);
  border-width: 0.5px 0.5px 4px 0.5px;
  border-style: solid;
  border-color: var(--color-border);
  text-decoration: none;
  flex-shrink: 0;
  transition: none;
  box-sizing: border-box;
}

.footer-band__social-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* ========================================
   UNDERWATER SCENE
   ======================================== */

.footer-sea {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: visible;
}

/* Sand floor — flat color fill behind the illustrated sand edge */
.footer-sea__sand {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--color-sand);
  border-radius: 60px 60px 0 0;
  z-index: 1;
}

/* Sand floor illustration — full width, natural aspect ratio so the wavy
   top edge is never stretched/straightened */
.footer-sea__sand-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* All illustrated elements share this base */
.footer-sea__el {
  position: absolute;
  width: auto;
  object-fit: contain;
  z-index: 2;
}

/* Green coral sits behind the back-to-land rock so the rock hides its exposed stem */
.footer-sea__gc {
  z-index: 1;
}

/* Right seaweed sits behind the purple mushroom cluster */
.footer-sea__dgs-r {
  z-index: 1;
}

/* Yellow/orange coral sit behind the sand so their roots are hidden and only the
   branches (which rise above the sand's wavy top edge) show */
.footer-sea__ycoral,
.footer-sea__ocoral {
  z-index: 0;
}

/* Fish wrappers — position set via inline style on each */
.footer-sea__fish-wrap {
  position: absolute;
  z-index: 3;
}

.footer-sea__fish-img {
  height: 90px;
  width: auto;
  display: block;
}

.footer-sea__fish-img--flip {
  transform: scaleX(-1);
}

.footer-sea__fish-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

/* Offset text into the fish body (away from tail) for each fish orientation */
.footer-sea__fw-yellow .footer-sea__fish-text {
  left: 63%;
}

.footer-sea__fw-green .footer-sea__fish-text {
  left: 37%;
}

/* Teeny in floater — sits on the wave, positioned relative to .site-footer */
.footer-sea__teeny {
  position: absolute;
  right: 80px;
  top: -30px;
  height: 200px;
  width: auto;
  object-fit: contain;
  z-index: 10;
}

/* CSS bubbles */
.footer-sea__bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 32%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 38%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  z-index: 3;
  pointer-events: none;
}

/* Bottom bar — sits on the sand */
.footer-sea__bar {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 5;
}

/* Back to land — uses the actual rocks.png illustration as its shape, undistorted */
.footer-sea__back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 115px;
  height: 67px;
  background-color: transparent;
  background-image: url('../portfolio-design-images/footer illustrations/rocks.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--color-white);
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  line-height: 1;
}

.footer-sea__back-btn:hover,
.footer-sea__back-btn:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.footer-sea__copyright,
.footer-sea__tagline {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
}

/* Mobile-only footer elements — hidden on desktop/tablet */
.footer-sea__rock-btn,
.footer-sea__rock-2,
.footer-sea__bubble-img {
  display: none;
}

/* ========================================
   RESPONSIVE - TABLET (768px)
   ======================================== */

@media (max-width: 1024px) {
  .nav {
    width: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__btn {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
  }

  .hero__content {
    position: static;
    width: 90%;
    left: auto;
    top: auto;
    margin: 0 auto;
  }

  .hero__name {
    width: 100%;
    font-size: 38px;
  }

  .hero__description {
    width: 100%;
    font-size: 22px;
  }

  .hero__name-last {
    position: relative;
    display: inline;
  }

  .hero__speech-bubble {
    position: absolute;
    top: -8px;
    left: calc(100% + 6px);
    right: auto;
    width: 116px;
    height: 62px;
  }

  .hero-image {
    position: static;
    left: auto;
    top: auto;
    width: min(380px, 92vw);
    height: min(380px, 92vw);
    margin: 20px auto 0;
    flex-shrink: 0;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .scroll-indicator {
    font-size: 22px;
    margin-top: 20px;
  }

  .scroll-arrow {
    width: 28px;
    height: 28px;
  }

  .hero__grass {
    width: 100%;
    position: relative;
    top: auto;
    left: auto;
    height: 120px;
    margin-top: -30px;
    flex-shrink: 0;
  }

  .projects {
    padding: 40px 24px;
    gap: 40px;
  }

  .project-card {
    flex-direction: column;
    height: auto;
    padding: var(--spacing-m);
    width: 100%;
  }

  .project-card--reverse {
    flex-direction: column;
  }

  .project-card__text {
    width: 100%;
  }

  .project-card__description {
    width: 100%;
  }

  .project-card__image {
    width: 100%;
    height: 300px;
  }

  .slideshow {
    width: 100%;
    height: auto;
    padding-bottom: 40px;
  }

  .slideshow__viewport {
    width: 90%;
    height: auto;
    left: 5%;
    position: relative;
    top: auto;
    margin-top: 100px;
  }

  .slideshow__slide {
    width: 300px;
    height: 350px;
  }

  .footer-band {
    flex-wrap: wrap;
    padding: 28px 20px 20px;
    row-gap: 20px;
    column-gap: 16px;
    align-items: flex-start;
  }

  .footer-band__left {
    flex: 1 1 55%;
    min-width: 0;
  }

  .footer-band__message {
    font-size: 16px;
  }

  .footer-band__socials {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .footer-band__social-btn,
  .footer-band__social-btn:hover,
  .footer-band__social-btn:focus,
  .footer-band__social-btn:active {
    width: 42px;
    height: 42px;
  }

  .footer-band__social-btn img {
    width: 20px;
    height: 20px;
  }

  .footer-band__nav {
    order: 3;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .site-footer {
    padding-top: 80px;
    overflow: hidden;
  }

  .footer-sea__teeny {
    height: 120px;
    right: 16px;
  }

  .footer-sea {
    height: 280px;
    overflow: hidden;
  }

  .footer-sea__sand {
    height: 70px;
    border-radius: 36px 36px 0 0;
  }

  .footer-sea__fish-wrap {
    bottom: 100px !important;
  }

  .footer-sea__fish-img {
    height: 58px;
  }

  .footer-sea__fish-text {
    font-size: 12px;
  }

  .footer-sea__bar {
    bottom: 6px;
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }

  .footer-sea__back-btn {
    width: 101px;
    height: 59px;
    font-size: 12px;
  }

  .footer-sea__copyright,
  .footer-sea__tagline {
    font-size: 11px;
    text-align: center;
  }

}

/* ========================================
   RESPONSIVE - MOBILE (375px)
   ======================================== */

@media (max-width: 768px) {
  .nav {
    top: 20px;
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 156px;
  }

  .hero__content {
    gap: 10px;
    width: 92%;
  }

  .hero__name {
    font-size: 26px;
  }

  .hero__description {
    font-size: 16px;
  }

  .hero__name-last {
    position: relative;
    display: inline;
  }

  .hero__speech-bubble {
    position: absolute;
    top: -28px;
    left: calc(100% + 4px);
    right: auto;
    width: 90px;
    height: 48px;
  }

  .hero-image {
    width: min(330px, 90vw);
    height: min(330px, 90vw);
    margin: 16px auto 0;
  }

  .scroll-indicator {
    font-size: 16px;
    margin-top: 12px;
    gap: 8px;
  }

  .scroll-arrow {
    width: 18px;
    height: 18px;
  }

  .hero__grass {
    height: 100px;
    margin-top: -20px;
  }

  .projects {
    padding: 32px 20px;
    gap: 24px;
  }

  .project-card,
  .project-card--reverse {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 16px;
    gap: 16px;
    border-radius: 17px;
  }

  .project-card__image {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 315.7 / 256.24;
    border-radius: 13px;
  }

  .project-card__text {
    width: 100%;
  }

  .project-card__title-row {
    gap: 3px;
  }

  .project-card__icon {
    width: 23px;
    height: 23px;
  }

  .project-card__icon--lg {
    width: 24px;
    height: 24px;
  }

  .project-card__title {
    font-size: 18px;
    line-height: 120%;
  }

  .project-card__category {
    font-size: 12px;
    margin-top: 6px;
  }

  .project-card__description {
    font-size: 16px;
    margin-top: 13px;
    width: 100%;
  }

  .project-card__metrics {
    margin-top: 13px;
    gap: 7px;
  }

  .project-card__metric {
    font-size: 14px;
    color: var(--color-text-primary);
  }

  .project-card__check-icon {
    width: 16px;
    height: 16px;
  }

  .project-card__btn {
    margin-top: 16px;
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    font-size: 16px;
  }

  .slideshow {
    padding-bottom: 60px;
  }

  .slideshow__header {
    left: 24px;
    top: 24px;
  }

  .slideshow__title {
    font-size: 24px;
  }

  .slideshow__viewport {
    margin-top: 80px;
  }

  .slideshow__slide {
    width: 250px;
    height: 300px;
  }

  .footer-band__message {
    font-size: 15px;
  }

  /* ── Mobile Footer Overhaul ── */

  .site-footer {
    height: 693px;
    min-height: unset;
    padding-top: 0;
    overflow: hidden;
    background-image: url('../Sea water mobile.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .footer-sea__teeny {
    display: none !important;
  }

  .site-footer__wave-line {
    display: none;
  }

  .site-footer__wave {
    display: none;
  }

  .footer-band {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 0 18px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    row-gap: 16px;
    column-gap: 0;
    background: transparent;
  }

  .footer-band__left {
    flex: 0 0 100%;
    min-width: 0;
    gap: 8px;
  }

  .footer-band__clock {
    font-size: 12px;
    color: #333333;
  }

  .footer-band__clock-icon {
    width: 16px;
    height: 16px;
  }

  .footer-band__message {
    font-size: 15px;
    color: #1C1C1C;
    max-width: 100%;
  }

  .footer-band__nav {
    order: 0;
    width: auto;
    flex: 0 0 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .footer-band__nav-link,
  .footer-band__nav-link:hover,
  .footer-band__nav-link:focus,
  .footer-band__nav-link:active {
    font-size: 15px;
    color: #1C1C1C !important;
  }

  .footer-band__socials {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 240px;
  }

  .footer-band__social-btn,
  .footer-band__social-btn:hover,
  .footer-band__social-btn:focus,
  .footer-band__social-btn:active {
    width: 40px;
    height: 40px;
    background: #F7F3FF;
    border-width: 1px 1px 3px 1px;
    border-radius: 59px;
  }

  .footer-band__social-btn img {
    width: 19px;
    height: 19px;
  }

  .footer-sea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .footer-sea__sand {
    display: block;
    top: 604px;
    bottom: 0;
    left: 0;
    height: auto;
    border-radius: 0;
    background: #FBDCA6;
    z-index: 1;
  }

  .footer-sea__sand-img {
    display: block;
    position: absolute;
    left: 0;
    top: 558px;
    width: 100%;
    height: auto;
    z-index: 2;
  }

  .footer-sea__oshells {
    display: block !important;
    left: 70px !important;
    right: auto !important;
    top: 624px !important;
    bottom: auto !important;
    height: 20px !important;
    z-index: 3;
  }

  .footer-sea__bubble-img {
    display: block;
    position: absolute;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
  }

  .footer-sea__bubble-img--a {
    width: 55px;
    left: 296px;
    top: 387px;
  }

  .footer-sea__bubble-img--b {
    width: 65px;
    left: 12px;
    top: 361px;
  }

  .footer-sea__rock-btn {
    display: flex;
    position: absolute;
    left: 6px;
    top: 608px;
    width: 68px;
    height: 40px;
    z-index: 5;
    cursor: pointer;
    background-color: transparent;
    background-image: url('../portfolio-design-images/footer illustrations/rocks.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .footer-sea__rock-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-family-primary);
    font-size: 12px;
    font-weight: var(--font-weight-regular);
    line-height: 1.2;
    pointer-events: none;
    width: 100%;
    height: 100%;
  }

  .footer-sea__back-btn {
    display: none;
  }

  .footer-sea__bar {
    bottom: 6px;
    padding: 8px 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    z-index: 10;
    background: transparent;
  }

  .footer-sea__copyright,
  .footer-sea__tagline {
    font-size: 9px;
    text-align: left;
  }

  /* ── Underwater element positions ── */

  .footer-sea__gc {
    left: 0 !important;
    right: auto !important;
    top: 458px !important;
    bottom: auto !important;
    height: 165px !important;
    z-index: 2 !important;
  }

  .footer-sea__dgs-l {
    display: none !important;
  }

  .footer-sea__fw-yellow {
    left: 21px !important;
    right: auto !important;
    top: 400px !important;
    bottom: auto !important;
  }

  .footer-sea__pink-mush {
    left: 96px !important;
    right: auto !important;
    top: 585px !important;
    bottom: auto !important;
    height: 72px !important;
  }

  .footer-sea__pstar {
    left: 2px !important;
    right: auto !important;
    top: 576px !important;
    bottom: auto !important;
    height: 20px !important;
    transform: rotate(33.14deg) !important;
  }

  .footer-sea__ostar {
    left: 242px !important;
    right: auto !important;
    top: 626px !important;
    bottom: auto !important;
    height: 20px !important;
    transform: rotate(-15deg) !important;
  }

  .footer-sea__ptube {
    left: 183px !important;
    right: auto !important;
    top: 555px !important;
    bottom: auto !important;
    height: 90px !important;
  }

  .footer-sea__rock-1 {
    left: 308px !important;
    right: auto !important;
    top: 619px !important;
    bottom: auto !important;
    height: 26px !important;
  }

  .footer-sea__rock-2 {
    display: block !important;
    left: 250px !important;
    right: auto !important;
    top: 614px !important;
    bottom: auto !important;
    height: 22px !important;
  }

  .footer-sea__pshell {
    display: none !important;
  }

  .footer-sea__ycoral {
    display: block !important;
    right: auto !important;
    left: 218px !important;
    top: 480px !important;
    bottom: auto !important;
    height: 128px !important;
    z-index: 1 !important;
  }

  .footer-sea__ocoral {
    right: auto !important;
    left: 275px !important;
    top: 470px !important;
    bottom: auto !important;
    height: 155px !important;
    z-index: 1 !important;
  }

  .footer-sea__dgs-r {
    right: auto !important;
    left: 352px !important;
    top: 462px !important;
    bottom: auto !important;
    height: 155px !important;
    z-index: 2 !important;
  }

  .footer-sea__fw-green {
    right: auto !important;
    left: 277px !important;
    top: 350px !important;
    bottom: auto !important;
  }

  .footer-sea__purple-mush {
    right: auto !important;
    left: 320px !important;
    top: 604px !important;
    bottom: auto !important;
    height: 62px !important;
    clip-path: inset(0 0 15% 0) !important;
  }

  .footer-sea__yshells {
    right: auto !important;
    left: 276px !important;
    top: 624px !important;
    bottom: auto !important;
    height: 20px !important;
  }

  .footer-sea__pustar {
    right: auto !important;
    left: 42px !important;
    top: 622px !important;
    bottom: auto !important;
    height: 20px !important;
    transform: rotate(33.14deg) !important;
  }

  .footer-sea__fish-wrap {
    bottom: auto !important;
  }

  .footer-sea__fish-img {
    height: 49px !important;
    width: auto !important;
    display: block;
  }

  .footer-sea__fw-green .footer-sea__fish-img {
    transform: scaleX(-1);
    animation: mobile-flip-rl 18s linear infinite;
  }

  .footer-sea__fish-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    font-size: 12px;
    white-space: nowrap;
  }

  .footer-sea__fw-yellow .footer-sea__fish-text,
  .footer-sea__fw-green .footer-sea__fish-text {
    left: 0;
  }

  /* ── Mobile Footer Animations ── */

  @keyframes mobile-bubble-float {
    0%   { transform: scale(0.65) translateY(0);      opacity: 0.7; }
    70%  { opacity: 0.4; }
    100% { transform: scale(0.65) translateY(-320px); opacity: 0; }
  }

  @keyframes mobile-seaweed-sway {
    0%, 100% { transform: rotate(0deg); }
    33%      { transform: rotate(3deg); }
    66%      { transform: rotate(-3deg); }
  }

  @keyframes mobile-coral-sway {
    0%, 100% { transform: rotate(0deg); }
    33%      { transform: rotate(2deg); }
    66%      { transform: rotate(-2deg); }
  }

  @keyframes mobile-fish-swim-r {
    from { transform: translateX(0); }
    to   { transform: translateX(365px); }
  }

  @keyframes mobile-fish-swim-l {
    from { transform: translateX(0); }
    to   { transform: translateX(-295px); }
  }

  @keyframes mobile-flip-lr {
    0%, 49.9%  { transform: scaleX(1); }
    50%, 100%  { transform: scaleX(-1); }
  }

  @keyframes mobile-flip-rl {
    0%, 49.9%  { transform: scaleX(-1); }
    50%, 100%  { transform: scaleX(1); }
  }

  @keyframes mobile-wave-sway {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-30px); }
  }

  /* Bubbles — float upward and fade */
  .footer-sea__bubble {
    transform: scale(0.65);
    transform-origin: center center;
    animation: mobile-bubble-float 5s ease-in infinite;
  }
  .footer-sea__bubble:nth-child(odd) {
    animation-duration: 6.5s;
    animation-delay: -2.5s;
  }
  .footer-sea__bubble:nth-child(3n) {
    animation-duration: 4s;
    animation-delay: -1.2s;
  }

  /* PNG bubble images — float upward */
  .footer-sea__bubble-img {
    animation: mobile-bubble-float 6s ease-in infinite;
  }
  .footer-sea__bubble-img--a { animation-delay: -2s; }
  .footer-sea__bubble-img--b { animation-delay: -4s; }

  /* Seaweed — gentle sway from base */
  .footer-sea__dgs-r {
    transform-origin: bottom center;
    animation: mobile-seaweed-sway 4s ease-in-out infinite;
  }

  /* Yellow fish — ping-pong left ↔ right, flip to face direction of travel */
  .footer-sea__fish-wrap:not(.footer-sea__fish-wrap--right) {
    animation: mobile-fish-swim-r 7s ease-in-out infinite alternate;
    cursor: pointer;
  }
  .footer-sea__fw-yellow .footer-sea__fish-img {
    animation: mobile-flip-lr 14s linear infinite;
  }

  /* Green fish — ping-pong right ↔ left, flip to face direction of travel */
  .footer-sea__fish-wrap--right {
    animation: mobile-fish-swim-l 9s ease-in-out infinite alternate;
    cursor: pointer;
  }

  /* Orange coral — very slow sway */
  .footer-sea__ocoral {
    transform-origin: bottom center;
    animation: mobile-coral-sway 7s ease-in-out infinite;
  }

  /* Green coral — very slow sway, offset phase */
  .footer-sea__gc {
    transform-origin: bottom center;
    animation: mobile-coral-sway 8s ease-in-out infinite;
    animation-delay: -3s;
  }

  /* Water top edge — gentle side-to-side sway */
  .site-footer__wave {
    animation: mobile-wave-sway 5s ease-in-out infinite;
  }
}

/* ==========================================================================
   FOOTER UNDERWATER ANIMATIONS
   ========================================================================== */

@keyframes bubble-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  30%  { transform: translateY(-90px) translateX(6px); }
  55%  { transform: translateY(-200px) translateX(-8px); }
  80%  { transform: translateY(-310px) translateX(5px); opacity: 0.7; }
  100% { transform: translateY(-420px) translateX(0); opacity: 0; }
}

@keyframes fish-swim-left {
  0%   { transform: translateY(0) translateX(0); }
  20%  { transform: translateY(-12px) translateX(8px); }
  40%  { transform: translateY(-6px) translateX(18px); }
  60%  { transform: translateY(-16px) translateX(10px); }
  80%  { transform: translateY(-4px) translateX(-6px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes fish-swim-right {
  0%   { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(-14px) translateX(-12px); }
  50%  { transform: translateY(-8px) translateX(-22px); }
  75%  { transform: translateY(-18px) translateX(-8px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes teeny-bob {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-8px) rotate(1.5deg); }
  50%  { transform: translateY(-14px) rotate(0deg); }
  75%  { transform: translateY(-6px) rotate(-1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes wave-drift {
  0%   { transform: translateX(0) translateY(0); }
  33%  { transform: translateX(-6px) translateY(3px); }
  66%  { transform: translateX(4px) translateY(-2px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes sway {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(2deg); }
  70%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

.footer-sea__fish-wrap:not(.footer-sea__fish-wrap--right) {
  will-change: transform;
  animation: fish-swim-left 7s ease-in-out infinite;
}

.footer-sea__fish-wrap--right {
  will-change: transform;
  animation: fish-swim-right 9s ease-in-out infinite;
}

.footer-sea__teeny {
  will-change: transform;
  animation: teeny-bob 4s ease-in-out infinite;
}

.site-footer__wave {
  will-change: transform;
  animation: wave-drift 6s ease-in-out infinite;
}

.footer-sea__el--sway {
  will-change: transform;
  transform-origin: bottom center;
  animation-name: sway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* ==========================================================================
   NEXT PROJECT — case study bottom teaser card
   ========================================================================== */

.cs-next-project {
  padding: 56px 80px 72px;
}

.cs-next-project__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 120%;
  color: var(--color-text-primary);
}

.cs-next-project__star {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cs-next-project__card {
  max-width: 1315px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  min-height: 340px;
}

.cs-next-project__text {
  flex: 0 0 48%;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-next-project__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cs-next-project__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.cs-next-project__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-next-project__title {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 120%;
  color: var(--color-text-primary);
}

.cs-next-project__category {
  margin-top: 10px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 18px;
  color: var(--color-text-secondary);
}

.cs-next-project__description {
  margin-top: 20px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 18px;
  line-height: 160%;
  color: var(--color-text-description);
}

.cs-next-project__btn {
  margin-top: 28px;
  align-self: flex-start;
  padding: 11px 24px;
  background: var(--color-primary);
  border-width: 0.5px 4px 4px 0.5px;
  border-style: solid;
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 17px;
  color: var(--color-text-inverse);
  transition: background var(--duration-fast) var(--ease-default);
}

.cs-next-project__btn:hover {
  background: var(--color-primary-dark);
}

.cs-next-project__btn:active {
  transform: scale(0.96);
}

.cs-next-project__image {
  flex: 1;
  overflow: hidden;
  background: var(--color-page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-next-project__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .cs-next-project {
    padding: 40px 24px 56px;
  }

  .cs-next-project__card {
    flex-direction: column;
    min-height: unset;
  }

  .cs-next-project__text {
    flex: none;
    padding: 32px 28px;
  }

  .cs-next-project__image {
    height: 260px;
  }

  .cs-next-project__title {
    font-size: 24px;
  }

  .cs-next-project__description {
    font-size: 16px;
  }
}

/* ==========================================================================
   DESKTOP FOOTER ANIMATIONS (1025px+)
   Isolated to desktop only — mobile/tablet untouched.
   ========================================================================== */

@media (min-width: 1025px) {

  /* ── Yellow fish: continuous left → right loop, always faces right ── */
  @keyframes desktop-fish-lr {
    from { transform: translateX(-400px); }
    to   { transform: translateX(calc(100vw + 100px)); }
  }

  .footer-sea__fw-yellow.footer-sea__fish-wrap {
    animation: desktop-fish-lr 20s linear infinite;
    animation-delay: -8s;
  }
  .footer-sea__fw-yellow .footer-sea__fish-img {
    animation: none;
    transform: scaleX(1);
  }

  /* ── Green fish: continuous right → left loop, always faces left ──
     The SVG natively faces LEFT so no scaleX flip is needed at all.
     translateX moves it from off-screen right to off-screen left.
  ── */
  @keyframes desktop-fish-rl {
    from { transform: translateX(300px); }
    to   { transform: translateX(calc(-100vw - 200px)); }
  }

  .footer-sea__fw-green.footer-sea__fish-wrap {
    animation: desktop-fish-rl 22s linear infinite;
    animation-delay: -5s;
  }
  .footer-sea__fw-green .footer-sea__fish-img {
    animation: none;
    transform: none;
  }
  /* Restore text to its normal centered position (undo previous counter-flip) */
  .footer-sea__fw-green .footer-sea__fish-text {
    transform: translate(-50%, -50%);
  }

  /* ── Bubbles — rise and fade, staggered so they're always visible ── */
  .footer-sea__bubble {
    animation: bubble-rise 9s ease-in infinite;
  }
  .footer-sea__bubble:nth-child(2n)  { animation-delay: -1.5s; animation-duration: 10s; }
  .footer-sea__bubble:nth-child(3n)  { animation-delay: -3.5s; animation-duration: 8s;  }
  .footer-sea__bubble:nth-child(4n)  { animation-delay: -5.5s; animation-duration: 12s; }
  .footer-sea__bubble:nth-child(5n)  { animation-delay: -2s;   animation-duration: 7s;  }
  .footer-sea__bubble:nth-child(6n)  { animation-delay: -7s;   animation-duration: 11s; }
  .footer-sea__bubble:nth-child(7n)  { animation-delay: -9s;   animation-duration: 13s; }

  /* ── Seaweed — gentle underwater sway from base ── */
  @keyframes seaweed-sway {
    0%, 100% { transform: rotate(0deg);  }
    25%      { transform: rotate(4deg);  }
    75%      { transform: rotate(-4deg); }
  }

  .footer-sea__dgs-l {
    transform-origin: bottom center;
    animation: seaweed-sway 6s ease-in-out infinite;
  }
  .footer-sea__dgs-r {
    transform-origin: bottom center;
    animation: seaweed-sway 7s ease-in-out infinite;
    animation-delay: -2.5s;
  }

  /* ── Corals — gentle sway ── */
  @keyframes coral-sway {
    0%, 100% { transform: rotate(0deg);  }
    30%      { transform: rotate(2deg);  }
    70%      { transform: rotate(-2deg); }
  }

  .footer-sea__ocoral {
    transform-origin: bottom center;
    animation: coral-sway 7s ease-in-out infinite;
  }
  .footer-sea__gc {
    transform-origin: bottom center;
    animation: coral-sway 8s ease-in-out infinite;
    animation-delay: -3s;
  }

  /* ── Purple tube coral — very slow, barely perceptible sway ── */
  @keyframes subtle-sway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(1deg); }
  }

  .footer-sea__ptube {
    transform-origin: bottom center;
    animation: subtle-sway 12s ease-in-out infinite;
  }

  /* ── Mushrooms — barely moving, almost still ── */
  .footer-sea__pink-mush {
    transform-origin: bottom center;
    animation: subtle-sway 14s ease-in-out infinite;
    animation-delay: -4s;
  }
  .footer-sea__purple-mush {
    transform-origin: bottom center;
    animation: subtle-sway 13s ease-in-out infinite;
    animation-delay: -6s;
  }
}

/* ==========================================================================
   TABLET FOOTER ANIMATIONS  (max-width: 1024px)
   Replicates desktop animation set — overrides the default tiny-wobble fish.
   ========================================================================== */

@media (max-width: 1024px) {

  @keyframes tab-fish-lr {
    from { transform: translateX(-400px); }
    to   { transform: translateX(calc(100vw + 100px)); }
  }
  @keyframes tab-fish-rl {
    from { transform: translateX(300px); }
    to   { transform: translateX(calc(-100vw - 200px)); }
  }
  @keyframes tab-seaweed-sway {
    0%, 100% { transform: rotate(0deg);  }
    25%      { transform: rotate(4deg);  }
    75%      { transform: rotate(-4deg); }
  }
  @keyframes tab-coral-sway {
    0%, 100% { transform: rotate(0deg);  }
    30%      { transform: rotate(2deg);  }
    70%      { transform: rotate(-2deg); }
  }
  @keyframes tab-subtle-sway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(1deg); }
  }

  /* Yellow fish: continuous left → right */
  .footer-sea__fish-wrap:not(.footer-sea__fish-wrap--right) {
    animation: tab-fish-lr 20s linear infinite;
    animation-delay: -8s;
  }
  .footer-sea__fw-yellow .footer-sea__fish-img {
    animation: none;
    transform: none;
  }

  /* Green fish: continuous right → left, natively faces left */
  .footer-sea__fish-wrap--right {
    animation: tab-fish-rl 22s linear infinite;
    animation-delay: -5s;
  }
  .footer-sea__fw-green .footer-sea__fish-img {
    animation: none;
    transform: none;
  }

  /* Bubbles */
  .footer-sea__bubble {
    animation: bubble-rise 9s ease-in infinite;
  }
  .footer-sea__bubble:nth-child(2n) { animation-delay: -1.5s; animation-duration: 10s; }
  .footer-sea__bubble:nth-child(3n) { animation-delay: -3.5s; animation-duration: 8s;  }
  .footer-sea__bubble:nth-child(4n) { animation-delay: -5.5s; animation-duration: 12s; }
  .footer-sea__bubble:nth-child(5n) { animation-delay: -2s;   animation-duration: 7s;  }
  .footer-sea__bubble:nth-child(6n) { animation-delay: -7s;   animation-duration: 11s; }
  .footer-sea__bubble:nth-child(7n) { animation-delay: -9s;   animation-duration: 13s; }

  /* Seaweed — both sides */
  .footer-sea__dgs-l {
    transform-origin: bottom center;
    animation: tab-seaweed-sway 6s ease-in-out infinite;
  }
  .footer-sea__dgs-r {
    transform-origin: bottom center;
    animation: tab-seaweed-sway 7s ease-in-out infinite;
    animation-delay: -2.5s;
  }

  /* Corals */
  .footer-sea__ocoral {
    transform-origin: bottom center;
    animation: tab-coral-sway 7s ease-in-out infinite;
  }
  .footer-sea__gc {
    transform-origin: bottom center;
    animation: tab-coral-sway 8s ease-in-out infinite;
    animation-delay: -3s;
  }

  /* Purple tube coral */
  .footer-sea__ptube {
    transform-origin: bottom center;
    animation: tab-subtle-sway 12s ease-in-out infinite;
  }

  /* Mushrooms */
  .footer-sea__pink-mush {
    transform-origin: bottom center;
    animation: tab-subtle-sway 14s ease-in-out infinite;
    animation-delay: -4s;
  }
  .footer-sea__purple-mush {
    transform-origin: bottom center;
    animation: tab-subtle-sway 13s ease-in-out infinite;
    animation-delay: -6s;
  }
}

/* ==========================================================================
   MOBILE FOOTER ANIMATIONS  (max-width: 768px)
   Replicates desktop animation set — overrides the old bounce/flip fish.
   ========================================================================== */

@media (max-width: 768px) {

  /* Water surface — slow gentle sway left ↔ right */
  @keyframes mob-sea-sway {
    0%, 100% { background-position: 40% top; }
    50%       { background-position: 60% top; }
  }

  .site-footer {
    animation: mob-sea-sway 9s ease-in-out infinite;
  }

  @keyframes mob-fish-lr {
    from { transform: translateX(-400px); }
    to   { transform: translateX(calc(100vw + 100px)); }
  }
  @keyframes mob-fish-rl {
    from { transform: translateX(300px); }
    to   { transform: translateX(calc(-100vw - 200px)); }
  }
  @keyframes mob-seaweed-sway {
    0%, 100% { transform: rotate(0deg);  }
    25%      { transform: rotate(4deg);  }
    75%      { transform: rotate(-4deg); }
  }
  @keyframes mob-coral-sway {
    0%, 100% { transform: rotate(0deg);  }
    30%      { transform: rotate(2deg);  }
    70%      { transform: rotate(-2deg); }
  }
  @keyframes mob-subtle-sway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(1deg); }
  }

  /* Yellow fish: continuous left → right, always faces right */
  .footer-sea__fish-wrap:not(.footer-sea__fish-wrap--right) {
    animation: mob-fish-lr 18s linear infinite;
    animation-delay: -6s;
  }
  .footer-sea__fw-yellow .footer-sea__fish-img {
    animation: none;
    transform: none;
  }

  /* Green fish: continuous right → left, natively faces left */
  .footer-sea__fish-wrap--right {
    animation: mob-fish-rl 20s linear infinite;
    animation-delay: -5s;
  }
  .footer-sea__fw-green .footer-sea__fish-img {
    animation: none;
    transform: none;
  }

  /* Bubbles — switch to bubble-rise, matching desktop behavior */
  .footer-sea__bubble {
    transform: none;
    animation: bubble-rise 9s ease-in infinite;
  }
  .footer-sea__bubble:nth-child(2n) { animation-delay: -1.5s; animation-duration: 10s; }
  .footer-sea__bubble:nth-child(3n) { animation-delay: -3.5s; animation-duration: 8s;  }
  .footer-sea__bubble:nth-child(4n) { animation-delay: -5.5s; animation-duration: 12s; }
  .footer-sea__bubble:nth-child(5n) { animation-delay: -2s;   animation-duration: 7s;  }
  .footer-sea__bubble:nth-child(6n) { animation-delay: -7s;   animation-duration: 11s; }
  .footer-sea__bubble:nth-child(7n) { animation-delay: -9s;   animation-duration: 13s; }

  /* Seaweed — both sides */
  .footer-sea__dgs-l {
    transform-origin: bottom center;
    animation: mob-seaweed-sway 6s ease-in-out infinite;
  }
  .footer-sea__dgs-r {
    transform-origin: bottom center;
    animation: mob-seaweed-sway 7s ease-in-out infinite;
    animation-delay: -2.5s;
  }

  /* Corals */
  .footer-sea__ocoral {
    transform-origin: bottom center;
    animation: mob-coral-sway 7s ease-in-out infinite;
  }
  .footer-sea__ycoral {
    transform-origin: bottom center;
    animation: mob-coral-sway 9s ease-in-out infinite;
    animation-delay: -4s;
  }
  .footer-sea__gc {
    transform-origin: bottom center;
    animation: mob-coral-sway 8s ease-in-out infinite;
    animation-delay: -3s;
  }

  /* Purple tube coral */
  .footer-sea__ptube {
    transform-origin: bottom center;
    animation: mob-subtle-sway 12s ease-in-out infinite;
  }

  /* Mushrooms */
  .footer-sea__pink-mush {
    transform-origin: bottom center;
    animation: mob-subtle-sway 14s ease-in-out infinite;
    animation-delay: -4s;
  }
  .footer-sea__purple-mush {
    transform-origin: bottom center;
    animation: mob-subtle-sway 13s ease-in-out infinite;
    animation-delay: -6s;
  }

  /* Fish text — positioned at the body centre of each SVG (yellow body=63%, green body=37%) */
  .footer-sea__fw-yellow .footer-sea__fish-text {
    position: absolute;
    top: 50%;
    left: 63%;
    right: auto;
    bottom: auto;
    width: auto;
    display: block;
    transform: translate(-50%, -50%);
  }
  .footer-sea__fw-green .footer-sea__fish-text {
    position: absolute;
    top: 50%;
    left: 37%;
    right: auto;
    bottom: auto;
    width: auto;
    display: block;
    transform: translate(-50%, -50%);
  }
}
