*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1a10;
  --navy-mid: #111f14;
  --navy-light: #162b1a;
  --accent: #3a9e5f;
  --accent-dark: #2a7a47;
  --accent-pale: rgba(58,158,95,0.12);
  --gold: #c87941;
  --gold-pale: rgba(200,121,65,0.12);
  --white: #ffffff;
  --off-white: #f4f6f4;
  --text-muted: rgba(255,255,255,0.52);
  --text-body: rgba(255,255,255,0.80);
  --border: rgba(255,255,255,0.08);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --section-pad: 5rem 2rem;
}

/* CHANGE 1: added min-height: 100vh to html */
html { scroll-behavior: smooth; height: 100%; min-height: 100vh; }
body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  /* ── STICKY FOOTER ── */
  display: flex;
  flex-direction: column;
  /* CHANGE 2: was min-height: 100%; changed to 100vh */
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(1.2rem - 2.5px) 2.5rem;
  background: #152318;
  border-bottom: 1px solid #111F14;
  transition: background 0.3s;
  border-top-color: #111F14;
  border-right-color: #111F14;
  border-left-color: #111F14;
}
.logo {
  text-decoration: none;
  display: flex; align-items: center;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(1.05) drop-shadow(0 0 6px rgba(58,158,95,0.25));
  transition: filter 0.2s;
}
.logo:hover img {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(58,158,95,0.4));
}
.logo-dot { display: none; }
.nav-links {
  display: flex; gap: 0.25rem; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links .cta {
  color: var(--accent);
  border: 1px solid rgba(58,158,95,0.4);
  margin-left: 0.5rem;
}
.nav-links .cta:hover { background: var(--accent-pale); color: var(--accent); }

.lang-switcher {
  display: flex; gap: 0.35rem; margin-left: 1rem;
}
.lang-switcher button {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--sans);
}
.lang-switcher button:hover,
.lang-switcher button.active { color: var(--accent); border-color: rgba(58,158,95,0.4); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 0; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.2s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative; z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.hero-logo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.hero-logo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(58,158,95,0.07);
  border: 1px solid rgba(58,158,95,0.2);
}
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 32px;
  background: rgba(200,121,65,0.03);
  border: 1px solid rgba(200,121,65,0.1);
}
.hero-logo-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 32px rgba(58,158,95,0.3)) drop-shadow(0 0 12px rgba(200,121,65,0.15));
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-since {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: fadeUp 0.8s 0.7s ease both;
  position: relative; z-index: 1;
}
.hero-since span { white-space: nowrap; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(58,158,95,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,158,95,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,158,95,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,121,65,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(58,158,95,0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: block;
}
h1 {
  font-family: var(--sans);
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.08rem; font-weight: 300; color: var(--text-body);
  max-width: 560px; margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
  background: var(--accent); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: #4ab870; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 400; font-size: 0.95rem;
  text-decoration: none; display: inline-block;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-stat-num {
  font-family: var(--sans); font-size: 2rem; font-weight: 500;
  color: var(--white); display: block; line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-top: 0.3rem; display: block;
}

/* ── SECTION SHARED ── */
section { padding: var(--section-pad); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 1rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
  background: var(--gold-pale);
  border: 1px solid rgba(200,121,65,0.25);
  padding: 0.3rem 0.9rem 0.3rem 0.75rem;
  border-radius: 100px;
}
.section-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
}
h2 {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--white); line-height: 1.15;
  margin-bottom: 1.5rem;
}
h2 em { font-style: italic; color: var(--accent); }
.section-lead {
  font-size: 1.05rem; font-weight: 300;
  color: var(--text-body); max-width: 600px;
  margin-bottom: 3.5rem;
}

/* ── ABOUT ── */
#about { background: var(--navy-mid); scroll-margin-top: 90px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.about-text p { margin-bottom: 1.2rem; font-weight: 300; color: var(--text-body); }
.about-text p strong { color: var(--white); font-weight: 500; }
.about-highlight {
  background: var(--accent-pale);
  border-left: 2px solid var(--accent);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 2rem;
  font-style: italic;
  color: var(--text-body);
}
.about-illustration {
  margin-bottom: 1.5rem;
  width: 81%;
  margin-inline: auto;
}


.value-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem; border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s;
}
.value-item:hover { border-color: rgba(58,158,95,0.3); background: var(--accent-pale); }
.value-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-pale); border: 1px solid rgba(58,158,95,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent); font-size: 1.25rem;
}
.value-title { font-weight: 500; color: var(--white); margin-bottom: 0.2rem; }
.value-desc { font-size: 0.9rem; color: var(--text-muted); }

/* ── MISSION ── */
#mission {
  background: var(--navy);
  position: relative; overflow: hidden;
  scroll-margin-top: 90px;
}
.mission-quote-block {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: center;
}
.big-quote {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  font-style: italic;
  color: var(--white); line-height: 1.2;
  position: relative;
  padding-left: 2rem;
}
.big-quote::before {
  content: '"';
  position: absolute; left: -0.5rem; top: -0.5rem;
  font-size: 5rem; color: var(--accent); line-height: 1; opacity: 0.4;
  font-style: normal;
}
.mission-text p { font-weight: 300; color: var(--text-body); margin-bottom: 1.2rem; }
.mission-badge {
  display: inline-block;
  background: var(--accent-pale); border: 1px solid rgba(58,158,95,0.35);
  color: var(--accent); padding: 0.5rem 1.2rem;
  border-radius: 100px; font-style: italic;
  font-family: var(--sans); font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ── SERVICES ── */
#services { background: var(--navy-mid); scroll-margin-top: 90px; }
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}
.services-intro-text .section-lead { margin-bottom: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.service-card:hover {
  border-color: rgba(58,158,95,0.3);
  transform: translateY(-3px);
  background: rgba(58,158,95,0.04);
}
.service-card:hover::after { opacity: 1; }
.service-num {
  font-family: var(--sans); font-size: 0.8rem;
  color: var(--accent); font-style: italic;
  margin-bottom: 1rem; display: block;
  letter-spacing: 0.05em;
}
.service-icon {
  font-size: 2rem; margin-bottom: 1rem;
  display: block;
}
h3 {
  font-size: 1.1rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.8rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.875rem; font-weight: 300;
  color: var(--text-muted); line-height: 1.65;
}
.service-bullets {
  margin-top: 1rem; list-style: none;
}
.service-bullets li {
  font-size: 0.82rem; color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  border-top: 1px solid var(--border);
}
.service-bullets li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent); font-size: 0.75rem;
}

/* ── RENTAL HIGHLIGHT ── */
.rental-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.benefit-pill {
  background: var(--accent-pale); border: 1px solid rgba(58,158,95,0.2);
  border-radius: 10px; padding: 1rem 1.25rem;
  font-size: 0.85rem; color: var(--text-body);
}
.benefit-pill strong { display: block; color: var(--accent); margin-bottom: 0.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── CONTACT ── */
/* CHANGE 3 (new rule): padding-bottom prevents content hiding behind fixed footer */
#contact { background: var(--navy-light); padding-bottom: 7rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-pale); border: 1px solid rgba(58,158,95,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem; color: var(--accent);
}
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-value { font-weight: 500; color: var(--white); font-size: 0.95rem; }
.contact-value a { color: var(--accent); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ── FOOTER ── */
/* CHANGE 4: added position, bottom, left, width, z-index, box-shadow for sticky behaviour */
footer {
  background: #152318;
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
  flex-shrink: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.35);
}
.footer-logo {
  font-family: var(--sans); font-size: 1.1rem;
  color: var(--white); text-decoration: none;
}
.footer-logo img { height: 23px !important; }
.footer-copy {
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── SECTION ILLUSTRATIONS ── */
.section-illustration {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  border-radius: 12px;
}

/* ── DECORATIVE DIVIDER ── */
.divider {
  height: 1px; background: var(--border);
  max-width: 1100px; margin: 0 auto;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  #about, #mission, #services { scroll-margin-top: 64px; }
  .services-intro { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links, .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .logo img { height: 38px; }
  nav > div:last-child { margin-right: -10px; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--navy-mid); padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem; z-index: 99;
  }
  .nav-links.open ~ * .lang-switcher { display: flex; }
  #hero { padding: 6rem 1.5rem 3rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-logo-img { max-width: 220px; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .about-grid, .mission-quote-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-illustration { width: 78%; max-width: 280px; margin-inline: auto; }
  .about-illustration { width: 63%; max-width: 227px; }
  #contact .fade-in > div[style*="grid"] { grid-template-columns: 1fr !important; }
  section { padding: 3.5rem 1.5rem; }
  /* CHANGE 5: slimmer footer padding on mobile to save vertical space */
  footer { padding: 0.75rem 1.5rem; flex-direction: row; align-items: center; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

/* ============================================================
   SVG ILLUSTRATION ANIMATIONS
   Disabled automatically under prefers-reduced-motion (see end).
   ============================================================ */

/* ── 1. HERO: circuit board / medical cross (power-up) ── */
svg[aria-label^="Circuit board"] polyline {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: circuit-flow 2.4s ease-out forwards;
}
svg[aria-label^="Circuit board"] polyline:nth-of-type(3n)   { animation-delay: 0.15s; }
svg[aria-label^="Circuit board"] polyline:nth-of-type(3n+1) { animation-delay: 0.35s; }
svg[aria-label^="Circuit board"] polyline:nth-of-type(3n+2) { animation-delay: 0.55s; }
svg[aria-label^="Circuit board"] circle[fill="#c87941"] {
  transform-box: fill-box; transform-origin: center;
  animation: core-pulse 2.6s ease-in-out 1s infinite;
}
@keyframes circuit-flow { to { stroke-dashoffset: 0; } }
@keyframes core-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

/* ── 2. MISSION: ECG heartbeat (looping monitor sweep) ──
   Uses pathLength="1" on the main polyline (set in index.html). */
svg[aria-label^="ECG heartbeat"] polyline:nth-of-type(1) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ecg-sweep 3.2s linear infinite;
}
svg[aria-label^="ECG heartbeat"] circle[fill="#c87941"] {
  transform-box: fill-box; transform-origin: center;
  animation: beat 3.2s ease-in-out infinite;
}
@keyframes ecg-sweep {
  0%   { stroke-dashoffset: 1; }
  80%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes beat {
  0%, 22%, 100% { transform: scale(1);   opacity: 0.8; }
  28%           { transform: scale(1.6); opacity: 1; }
  34%           { transform: scale(1);   opacity: 0.8; }
}

/* ── 3. SERVICES: orbit hub ── */

/* Orbit ring spins faster */
svg[aria-label^="Six service areas"] circle[stroke-dasharray] {
  transform-box: fill-box; transform-origin: center;
  animation: orbit-spin 12s linear infinite;
}

/* Central hexagon pulses strongly */
svg[aria-label^="Six service areas"] polygon:nth-of-type(1) {
  transform-box: fill-box; transform-origin: center;
  animation: hex-core-pulse 2.4s ease-in-out infinite;
}

/* Outer hexagons breathe with bigger scale and a stroke glow */
svg[aria-label^="Six service areas"] polygon:nth-of-type(n+2) {
  transform-box: fill-box; transform-origin: center;
  animation: hex-outer-pulse 2.8s ease-in-out infinite;
}
svg[aria-label^="Six service areas"] polygon:nth-of-type(2) { animation-delay: 0s; }
svg[aria-label^="Six service areas"] polygon:nth-of-type(3) { animation-delay: 0.45s; }
svg[aria-label^="Six service areas"] polygon:nth-of-type(4) { animation-delay: 0.9s; }
svg[aria-label^="Six service areas"] polygon:nth-of-type(5) { animation-delay: 1.35s; }
svg[aria-label^="Six service areas"] polygon:nth-of-type(6) { animation-delay: 1.8s; }
svg[aria-label^="Six service areas"] polygon:nth-of-type(7) { animation-delay: 2.25s; }

/* Spoke midpoint dots travel outward like signals */
svg[aria-label^="Six service areas"] circle[r="3"] {
  transform-box: fill-box; transform-origin: center;
  animation: dot-travel 2.8s ease-in-out infinite;
}
svg[aria-label^="Six service areas"] circle[r="3"]:nth-of-type(1) { animation-delay: 0s; }
svg[aria-label^="Six service areas"] circle[r="3"]:nth-of-type(2) { animation-delay: 0.47s; }
svg[aria-label^="Six service areas"] circle[r="3"]:nth-of-type(3) { animation-delay: 0.94s; }
svg[aria-label^="Six service areas"] circle[r="3"]:nth-of-type(4) { animation-delay: 1.41s; }
svg[aria-label^="Six service areas"] circle[r="3"]:nth-of-type(5) { animation-delay: 1.88s; }
svg[aria-label^="Six service areas"] circle[r="3"]:nth-of-type(6) { animation-delay: 2.35s; }

@keyframes orbit-spin    { to { transform: rotate(360deg); } }
@keyframes hex-core-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0px #3a9e5f); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 10px #3a9e5f); }
}
@keyframes hex-outer-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.75; filter: drop-shadow(0 0 0px #3a9e5f); }
  50%      { transform: scale(1.10); opacity: 1;    filter: drop-shadow(0 0 8px #3a9e5f); }
}
@keyframes dot-travel {
  0%   { transform: scale(1);   opacity: 0.3; }
  40%  { transform: scale(1.8); opacity: 1; }
  70%  { transform: scale(1.4); opacity: 0.7; }
  100% { transform: scale(1);   opacity: 0.3; }
}

/* ── 4. CONTACT: signal rings (radar pulse) ── */
svg[aria-label^="Signal rings"] circle[stroke="#3a9e5f"] {
  transform-box: fill-box; transform-origin: 200px 140px;
  animation: signal-pulse 3s ease-out infinite;
}
svg[aria-label^="Signal rings"] circle[r="20"] { animation-delay: 0s; }
svg[aria-label^="Signal rings"] circle[r="42"] { animation-delay: 0.4s; }
svg[aria-label^="Signal rings"] circle[r="64"] { animation-delay: 0.8s; }
svg[aria-label^="Signal rings"] circle[r="86"] { animation-delay: 1.2s; }
svg[aria-label^="Signal rings"] circle[fill="#c87941"][r="5"] {
  transform-box: fill-box; transform-origin: center;
  animation: core-pulse 2.4s ease-in-out infinite;
}
@keyframes signal-pulse {
  0%   { opacity: 0;   transform: scale(0.6); }
  30%  { opacity: 0.7; }
  100% { opacity: 0;   transform: scale(1.15); }
}

/* ── 5. ABOUT: DNA helix / circuit ── */
svg[aria-label^="DNA double helix"] #about-strand1 {
  stroke-dasharray: 36 14;
  stroke-dashoffset: 0;
  animation: dna-flow1 1.8s linear infinite;
}
svg[aria-label^="DNA double helix"] #about-strand2 {
  stroke-dasharray: 36 14;
  stroke-dashoffset: 25;
  animation: dna-flow2 1.8s linear infinite;
}
svg[aria-label^="DNA double helix"] circle[fill="#c87941"] {
  transform-box: fill-box; transform-origin: center;
  animation: core-pulse 2.6s ease-in-out infinite;
}
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"],
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"] {
  transform-box: fill-box; transform-origin: center;
  animation: node-appear 2.4s ease-out forwards, node-twinkle 2.2s ease-in-out 2.4s infinite;
}
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"] { color: #c87941; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"] { color: #3a9e5f; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"]:nth-of-type(1) { animation-delay: 0.1s, 2.5s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"]:nth-of-type(1) { animation-delay: 0.2s, 2.6s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"]:nth-of-type(2) { animation-delay: 0.3s, 2.7s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"]:nth-of-type(2) { animation-delay: 0.4s, 2.8s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"]:nth-of-type(3) { animation-delay: 0.5s, 2.9s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"]:nth-of-type(3) { animation-delay: 0.6s, 3.0s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"]:nth-of-type(4) { animation-delay: 0.7s, 3.1s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"]:nth-of-type(4) { animation-delay: 0.8s, 3.2s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"]:nth-of-type(5) { animation-delay: 0.9s, 3.3s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"]:nth-of-type(5) { animation-delay: 1.0s, 3.4s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#c87941"]:nth-of-type(6) { animation-delay: 1.1s, 3.5s; }
svg[aria-label^="DNA double helix"] circle[r="4"][stroke="#3a9e5f"]:nth-of-type(6) { animation-delay: 1.2s, 3.6s; }

@keyframes dna-flow1    { to { stroke-dashoffset: -50; } }
@keyframes dna-flow2    { to { stroke-dashoffset: -25; } }
@keyframes node-appear  {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes node-twinkle {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.45); filter: drop-shadow(0 0 5px currentColor); }
}


@media (prefers-reduced-motion: reduce) {
  svg[aria-label] * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}
