:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --bg-dark: #232a34;
  --bg-footer: #1c222b;
  --text: #4d5663;
  --heading: #232a34;
  --muted: #6b7280;
  --accent: #1f5967;
  --accent-hover: #12aee0;
  --gold: #f5b120;
  --gold-hover: #ffc645;
  --pink: #f06292;
  --green: #9bc53d;
  --purple: #933fc3;
  --red: #c3423f;
  --border: #e5e9ee;
  --shadow: 0 4px 20px rgba(35, 42, 52, 0.08);
  --shadow-lg: 0 12px 40px rgba(35, 42, 52, 0.15);
  --radius: 8px;
  --radius-pill: 999px;
  --display-font: 'Fredoka One', 'Solway', cursive;
  --body-font: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ============ Layout ============ */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 5rem 0;
}

section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 { margin-bottom: 0.5rem; }

.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ============ Header ============ */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .logo img {
  height: 64px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-nav a:hover { color: var(--accent-hover); }

/* ============ Hero ============ */
.hero {
  background: #b3dff0 url('../img/hero/hero-bg.png') no-repeat center bottom;
  background-size: cover;
  padding: 6rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-clouds .cloud {
  position: absolute;
  display: block;
  max-width: none;
  opacity: 0.95;
  will-change: transform;
}

.hero-clouds .cloud-1 {
  top: 12%;
  left: 4%;
  width: 173px;
  animation: cloud-wave 7s ease-in-out infinite;
}

.hero-clouds .cloud-2 {
  top: 8%;
  right: 18%;
  width: 172px;
  animation: cloud-wave 9s ease-in-out infinite;
  animation-delay: -2s;
}

.hero-clouds .cloud-3 {
  top: 8%;
  left: 38%;
  width: 174px;
  animation: cloud-wave 6s ease-in-out infinite;
  animation-delay: -1s;
}

.hero-clouds .cloud-5 {
  top: 23%;
  right: 6%;
  width: 150px;
  animation: cloud-wave 10s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes cloud-wave {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(8px, -6px); }
  50%      { transform: translate(0, -10px); }
  75%      { transform: translate(-8px, -4px); }
}

.hero-kangaroo {
  position: absolute;
  left: 62%;
  bottom: 6%;
  width: 200px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: kangaroo-journey 20s ease-in-out infinite;
}

/* 5 hops to the right, flip, 5 hops back, flip back. Horizontal motion
   only happens during the airborne phase of each hop, which is what
   gives the motion a hopping feel rather than a slide. */
@keyframes kangaroo-journey {
  /* Right-bound: 5 hops from 62% to calc(95% - 200px) */
  0%   { left: 62%;                 transform: translateY(0)     scaleX(1); }
  4%   { left: calc(65.3% - 20px);  transform: translateY(-32px) scaleX(1); }
  8%   { left: calc(68.6% - 40px);  transform: translateY(0)     scaleX(1); }
  9%   { left: calc(68.6% - 40px);  transform: translateY(0)     scaleX(1); }
  13%  { left: calc(71.9% - 60px);  transform: translateY(-32px) scaleX(1); }
  17%  { left: calc(75.2% - 80px);  transform: translateY(0)     scaleX(1); }
  18%  { left: calc(75.2% - 80px);  transform: translateY(0)     scaleX(1); }
  22%  { left: calc(78.5% - 100px); transform: translateY(-32px) scaleX(1); }
  26%  { left: calc(81.8% - 120px); transform: translateY(0)     scaleX(1); }
  27%  { left: calc(81.8% - 120px); transform: translateY(0)     scaleX(1); }
  31%  { left: calc(85.1% - 140px); transform: translateY(-32px) scaleX(1); }
  35%  { left: calc(88.4% - 160px); transform: translateY(0)     scaleX(1); }
  36%  { left: calc(88.4% - 160px); transform: translateY(0)     scaleX(1); }
  40%  { left: calc(91.7% - 180px); transform: translateY(-32px) scaleX(1); }
  44%  { left: calc(95% - 200px);   transform: translateY(0)     scaleX(1); }

  /* Pause + flip to face left */
  47%  { left: calc(95% - 200px);   transform: translateY(0)     scaleX(1);  }
  50%  { left: calc(95% - 200px);   transform: translateY(0)     scaleX(-1); }

  /* Left-bound (mirror) */
  54%  { left: calc(91.7% - 180px); transform: translateY(-32px) scaleX(-1); }
  58%  { left: calc(88.4% - 160px); transform: translateY(0)     scaleX(-1); }
  59%  { left: calc(88.4% - 160px); transform: translateY(0)     scaleX(-1); }
  63%  { left: calc(85.1% - 140px); transform: translateY(-32px) scaleX(-1); }
  67%  { left: calc(81.8% - 120px); transform: translateY(0)     scaleX(-1); }
  68%  { left: calc(81.8% - 120px); transform: translateY(0)     scaleX(-1); }
  72%  { left: calc(78.5% - 100px); transform: translateY(-32px) scaleX(-1); }
  76%  { left: calc(75.2% - 80px);  transform: translateY(0)     scaleX(-1); }
  77%  { left: calc(75.2% - 80px);  transform: translateY(0)     scaleX(-1); }
  81%  { left: calc(71.9% - 60px);  transform: translateY(-32px) scaleX(-1); }
  85%  { left: calc(68.6% - 40px);  transform: translateY(0)     scaleX(-1); }
  86%  { left: calc(68.6% - 40px);  transform: translateY(0)     scaleX(-1); }
  90%  { left: calc(65.3% - 20px);  transform: translateY(-32px) scaleX(-1); }
  94%  { left: 62%;                 transform: translateY(0)     scaleX(-1); }

  /* Pause + flip back to face right */
  97%  { left: 62%;                 transform: translateY(0)     scaleX(-1); }
  100% { left: 62%;                 transform: translateY(0)     scaleX(1);  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-clouds .cloud,
  .hero-kangaroo { animation: none; }
}

.hero h1 {
  font-size: 3.6rem;
  margin-bottom: 1rem;
  -webkit-text-stroke: 1px #fff;
  paint-order: stroke fill;
}

.hero h1 .aa { color: var(--green); }
.hero h1 .bb { color: var(--gold); }
.hero h1 .cc { color: var(--purple); }

.hero-tag {
  font-size: 1.25rem;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.downloads-cta {
  margin-bottom: 2.5rem;
}

/* ============ Buttons ============ */
.button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--heading);
  font-family: var(--display-font);
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background: var(--gold-hover);
  color: var(--heading);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.secondary {
  background: var(--accent);
  color: #fff;
}

.button.secondary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ============ Devices section ============ */
.device-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.device-photo {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* ============ Screenshots ============ */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot .frame {
  aspect-ratio: 9 / 16;
  background: linear-gradient(180deg, var(--bg-alt), #fff);
  border-bottom: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem;
}

.screenshot.aa .frame { border-color: var(--green); }
.screenshot.bb .frame { border-color: var(--gold); }
.screenshot.cc .frame { border-color: var(--purple); }
.screenshot.dd .frame { border-color: var(--accent); }
.screenshot.ee .frame { border-color: var(--red); }

.screenshot .label {
  padding: 1rem;
  font-family: var(--display-font);
  font-size: 1.1rem;
  color: var(--heading);
}

/* ============ Memberships ============ */
.memberships {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.member {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.member .logo {
  display: block;
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.member .acronym {
  font-family: var(--display-font);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.member .name {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============ Access (password) form ============ */
.access {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.access h2 { color: #fff; }
.access p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; }

.access form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 540px;
  margin: 0 auto;
}

.access label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.access input[type="password"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-family: var(--body-font);
  background: #fff;
  color: var(--heading);
}

.access input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
}

.access .button {
  flex: 0 0 auto;
}

.access .error {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 0 auto 1.5rem;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
}

/* ============ Inquiry form ============ */
.inquiry-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.inquiry-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inquiry-form .form-field {
  margin-bottom: 1.25rem;
}

.inquiry-form label {
  display: block;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.inquiry-form label .required {
  color: var(--red);
  margin-left: 2px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="number"],
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--heading);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 89, 103, 0.12);
}

.inquiry-form textarea {
  min-height: 140px;
  resize: vertical;
}

.inquiry-form .form-actions {
  text-align: center;
  margin-top: 0.5rem;
}

.form-success {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
}

.form-success h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

.form-error {
  background: #fff5f5;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .inquiry-form { padding: 1.75rem; }
  .inquiry-form .form-row { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-footer);
  color: #c8cfd6;
  padding: 3.5rem 0 0;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
}

.site-footer .footer-logo img {
  height: 80px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.site-footer .tagline {
  color: #9aa3ad;
  max-width: 420px;
  margin: 0;
}

.socials {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c8cfd6;
  transition: all 0.25s ease;
}

.socials a:hover {
  background: var(--gold);
  color: var(--heading);
  transform: translateY(-3px);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #7c8590;
}

.copyright p { margin: 0.25rem 0; }

.copyright a { color: var(--gold); }
.copyright a:hover { color: var(--gold-hover); }

/* ============ Downloads page ============ */
.page-head {
  background: linear-gradient(135deg, var(--accent) 0%, #2a7a8e 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.page-head h1 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.page-head p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1.05rem;
}

.downloads-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.downloads-intro a { color: var(--accent); font-weight: 600; }

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.download {
  text-align: center;
}

.download a {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.download a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.download .disk {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
}

.download .disk path {
  fill: #fff;
  stroke-width: 10;
}

.download span.title {
  display: block;
  font-family: var(--display-font);
  font-size: 1.4rem;
  color: var(--heading);
  margin-top: 0.25rem;
}

.download.aa .disk path { stroke: var(--green); fill: rgba(155, 197, 61, 0.1); }
.download.bb .disk path { stroke: var(--gold); fill: rgba(245, 177, 32, 0.1); }
.download.cc .disk path { stroke: var(--purple); fill: rgba(147, 63, 195, 0.1); }
.download.dd .disk path { stroke: var(--accent); fill: rgba(31, 89, 103, 0.1); }
.download.ee .disk path { stroke: var(--red); fill: rgba(195, 66, 63, 0.1); }

.download.aa span.title { color: var(--green); }
.download.bb span.title { color: var(--gold); }
.download.cc span.title { color: var(--purple); }
.download.dd span.title { color: var(--accent); }
.download.ee span.title { color: var(--red); }

.download.arduino a {
  background: var(--accent);
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.2rem;
  padding: 2.6rem 1rem;
}

.download.arduino a:hover { background: var(--accent-hover); }

/* ============ Hop to the Top ============ */
.hop-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96px;
  padding: 0;
  text-decoration: none;
  border: none;
  background: transparent;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hop-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hop-to-top img {
  width: 80px;
  height: 80px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  transform: scaleX(-1);
  transition: transform 0.25s ease;
}

.hop-to-top:hover img,
.hop-to-top:focus-visible img {
  transform: translateY(-6px) scaleX(-1);
}

.hop-to-top span {
  margin-top: 0.25rem;
  font-family: var(--display-font);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 2.5rem 0 4rem; }
  .hero h1 { font-size: 2.6rem; margin-bottom: 0.4rem; }
  .hero-tag { font-size: 1.1rem; margin-bottom: 1.25rem; }
  .hero .cta-row { gap: 0.75rem; }
  .hero-clouds .cloud-3 { display: none; }
  .hero-clouds .cloud-1 { width: 110px; }
  .hero-clouds .cloud-2 { width: 110px; }
  .hero-clouds .cloud-4 { width: 90px; }
  .hero-clouds .cloud-5 { width: 100px; }
  .hero-kangaroo {
    width: 110px;
    left: 5%;
    bottom: 2%;
    animation: kangaroo-journey-sm 16s ease-in-out infinite;
  }
  @keyframes kangaroo-journey-sm {
    /* 5 hops from 5% to calc(95% - 110px) */
    0%   { left: 5%;                transform: translateY(0)     scaleX(1); }
    4%   { left: calc(14% - 11px);  transform: translateY(-22px) scaleX(1); }
    8%   { left: calc(23% - 22px);  transform: translateY(0)     scaleX(1); }
    9%   { left: calc(23% - 22px);  transform: translateY(0)     scaleX(1); }
    13%  { left: calc(32% - 33px);  transform: translateY(-22px) scaleX(1); }
    17%  { left: calc(41% - 44px);  transform: translateY(0)     scaleX(1); }
    18%  { left: calc(41% - 44px);  transform: translateY(0)     scaleX(1); }
    22%  { left: calc(50% - 55px);  transform: translateY(-22px) scaleX(1); }
    26%  { left: calc(59% - 66px);  transform: translateY(0)     scaleX(1); }
    27%  { left: calc(59% - 66px);  transform: translateY(0)     scaleX(1); }
    31%  { left: calc(68% - 77px);  transform: translateY(-22px) scaleX(1); }
    35%  { left: calc(77% - 88px);  transform: translateY(0)     scaleX(1); }
    36%  { left: calc(77% - 88px);  transform: translateY(0)     scaleX(1); }
    40%  { left: calc(86% - 99px);  transform: translateY(-22px) scaleX(1); }
    44%  { left: calc(95% - 110px); transform: translateY(0)     scaleX(1); }

    47%  { left: calc(95% - 110px); transform: translateY(0)     scaleX(1);  }
    50%  { left: calc(95% - 110px); transform: translateY(0)     scaleX(-1); }

    54%  { left: calc(86% - 99px);  transform: translateY(-22px) scaleX(-1); }
    58%  { left: calc(77% - 88px);  transform: translateY(0)     scaleX(-1); }
    59%  { left: calc(77% - 88px);  transform: translateY(0)     scaleX(-1); }
    63%  { left: calc(68% - 77px);  transform: translateY(-22px) scaleX(-1); }
    67%  { left: calc(59% - 66px);  transform: translateY(0)     scaleX(-1); }
    68%  { left: calc(59% - 66px);  transform: translateY(0)     scaleX(-1); }
    72%  { left: calc(50% - 55px);  transform: translateY(-22px) scaleX(-1); }
    76%  { left: calc(41% - 44px);  transform: translateY(0)     scaleX(-1); }
    77%  { left: calc(41% - 44px);  transform: translateY(0)     scaleX(-1); }
    81%  { left: calc(32% - 33px);  transform: translateY(-22px) scaleX(-1); }
    85%  { left: calc(23% - 22px);  transform: translateY(0)     scaleX(-1); }
    86%  { left: calc(23% - 22px);  transform: translateY(0)     scaleX(-1); }
    90%  { left: calc(14% - 11px);  transform: translateY(-22px) scaleX(-1); }
    94%  { left: 5%;                transform: translateY(0)     scaleX(-1); }

    97%  { left: 5%;                transform: translateY(0)     scaleX(-1); }
    100% { left: 5%;                transform: translateY(0)     scaleX(1);  }
  }
  section { padding: 3.5rem 0; }
  .site-header .container { flex-direction: column; gap: 1rem; }
  .site-nav ul { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
  .site-footer .footer-main { grid-template-columns: 1fr; text-align: center; }
  .socials { justify-content: center; }
  .site-footer .tagline { margin-left: auto; margin-right: auto; }
  .hop-to-top { right: 0.75rem; bottom: 0.75rem; width: 76px; }
  .hop-to-top img { width: 64px; height: 64px; }
  .hop-to-top span { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
}
