/* Ecosystem — "Five businesses, one orbit". Built to the client's reference design:
   earth-at-dawn texture, the Sedona orb at the centre, five businesses on one elliptical orbit. */

.eco-sec {
  --amber: #f2a65a;
  --fam-serif: "Instrument Serif", var(--intl-serif), Georgia, serif;
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
  padding-block: 80px;
  scroll-margin-top: 64px;
}
.eco-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; opacity: 0.7; }
.eco-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--night), rgba(11, 16, 32, 0.4), rgba(11, 16, 32, 0.7)); }
.eco-wrap { position: relative; max-width: 1400px; margin-inline: auto; padding-inline: 20px; }

/* Heading (same system as the family section) */
.eco-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-inline: auto; }
.eco-eyebrow {
  display: flex; align-items: center; gap: 12px; color: rgba(242, 166, 90, 0.9);
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
}
html.lang-zh .eco-eyebrow { letter-spacing: 0.22em; }
.eco-eyebrow i { display: block; height: 1px; width: 32px; flex-shrink: 0; background: currentColor; }
.eco-title {
  max-width: 48rem; font-family: var(--fam-serif);
  font-size: 2.1rem; line-height: 1.18; font-weight: 500; letter-spacing: 0;
  text-wrap: balance; white-space: pre-line; color: var(--cream);
}
.eco-lede { max-width: 42rem; font-size: 1rem; line-height: 1.625; color: rgba(246, 239, 230, 0.7); }

/* ---------- Orbit diagram (≥1024px) ---------- */
.eco-orbit { position: relative; display: none; margin: 40px auto 0; aspect-ratio: 1000 / 600; max-width: 1100px; }
.eco-orbit > svg.eco-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-dash { animation: ecoOrbit 18s linear infinite; }
@keyframes ecoOrbit { to { stroke-dashoffset: -300; } }

.eco-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.eco-core svg { width: 230px; height: auto; overflow: visible; }
.eco-core .wordmark { margin-top: 8px; font-size: 1.125rem; color: var(--cream); }
.eco-core .tag {
  margin-top: 8px; font-family: var(--f-display); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(242, 166, 90, 0.9);
}
html.lang-zh .eco-core .tag { letter-spacing: 0.2em; }
/* entrance: the halo blooms, the S ribbon draws itself */
.js-motion .eco-orbit:not(.in) .eco-halo { opacity: 0; transform: scale(0.8); }
.js-motion .eco-orbit:not(.in) .eco-ribbon { stroke-dashoffset: 1; }
.eco-halo { transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out); transform-origin: 50% 50%; transform-box: fill-box; }
.eco-ribbon { transition: stroke-dashoffset 1.8s 0.3s var(--ease-in-out); }

.eco-node { position: absolute; width: 224px; transform: translate(-50%, -28px); }
.eco-node > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eco-ico {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(242, 166, 90, 0.4);
  background: rgba(11, 16, 32, 0.7); color: var(--amber);
  box-shadow: 0 0 30px rgba(242, 166, 90, 0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.eco-ico svg { width: 22px; height: 22px; }
.eco-node:hover .eco-ico, .eco-node:focus-within .eco-ico { transform: scale(1.1); border-color: var(--amber); background: rgba(122, 32, 40, 0.6); }
.eco-node .nm { margin-top: 12px; font-size: 1rem; font-weight: 500; }
.eco-node .wordmark { margin-top: 4px; font-size: 0.55rem; color: rgba(246, 239, 230, 0.5); }
.eco-node p { margin-top: 8px; max-width: 13rem; font-size: 0.75rem; line-height: 1.625; color: rgba(246, 239, 230, 0.6); opacity: 0; transition: opacity 0.5s; }
.eco-node:hover p, .eco-node:focus-within p { opacity: 1; }
.eco-node:focus-visible { outline: none; }
.eco-node:focus-visible .eco-ico { box-shadow: 0 0 0 2px rgba(242, 166, 90, 0.8), 0 0 30px rgba(242, 166, 90, 0.35); }

/* ---------- Orbit diagram, phone/tablet (<1024px) ---------- */
.eco-orbit-m { position: relative; margin: 36px auto 0; width: 100%; max-width: 560px; aspect-ratio: 400 / 360; }
.eco-orbit-m > svg.eco-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-orbit-m .eco-core svg { width: clamp(104px, 30vw, 170px); }
.eco-orbit-m .eco-core .wordmark { margin-top: 4px; font-size: 0.8rem; }
.eco-orbit-m .eco-node { width: 96px; transform: translate(-50%, -21px); }
.eco-orbit-m .eco-ico { width: 42px; height: 42px; box-shadow: 0 0 22px rgba(242, 166, 90, 0.32); }
.eco-orbit-m .eco-ico svg { width: 18px; height: 18px; }
.eco-orbit-m .eco-node .nm { margin-top: 8px; font-size: 0.75rem; line-height: 1.25; }
html:not(.lang-zh) .eco-orbit-m .eco-node .nm { font-size: 0.7rem; }
.js-motion .eco-orbit-m:not(.in) .eco-halo { opacity: 0; transform: scale(0.8); }
.js-motion .eco-orbit-m:not(.in) .eco-ribbon { stroke-dashoffset: 1; }

/* ---------- Cards (<1024px) ---------- */
.eco-cards { margin-top: 40px; display: grid; gap: 12px; }
.eco-card {
  display: flex; gap: 16px; border-radius: 1rem;
  border: 1px solid rgba(246, 239, 230, 0.1); background: rgba(11, 16, 32, 0.6);
  padding: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.eco-card .eco-ico { width: 48px; height: 48px; flex-shrink: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.eco-card .eco-ico svg { width: 20px; height: 20px; }
.eco-card .top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.eco-card .nm { font-weight: 500; }
.eco-card .wordmark { font-size: 0.55rem; color: rgba(246, 239, 230, 0.5); }
.eco-card p { margin-top: 6px; font-size: 0.875rem; line-height: 1.625; color: rgba(246, 239, 230, 0.6); }

@media (max-width: 639px) { .eco-eyebrow i { display: none; } }
@media (min-width: 640px) {
  .eco-title { font-size: 2.25rem; }
  .eco-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .eco-sec { padding-block: 128px; }
  .eco-wrap { padding-inline: 40px; }
  .eco-title { font-size: 3rem; }
  .eco-lede { font-size: 1.125rem; }
  .eco-cards { margin-top: 56px; }
}
@media (min-width: 1024px) {
  .eco-orbit { display: block; }
  .eco-orbit-m, .eco-cards { display: none; }
}
@media (min-width: 1280px) { .eco-title { font-size: 3.5rem; } }

@media (prefers-reduced-motion: reduce) {
  .eco-halo, .eco-ribbon { transition: none; }
}
