/*
 * Design philosophy: mirror the luminous topographic TomoSAR homepage language
 * in a plain PHP/CSS/JS stack suitable for OVH + FileZilla deployment.
 */
:root {
  --bg: #f7faff;
  --bg-soft: #f3f7fc;
  --bg-strong: #edf4fb;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.3);
  --blue: rgba(24, 74, 167, 0.92);
  --blue-soft: rgba(59, 130, 246, 0.08);
  --orange: #ef6b2d;
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 28px 80px rgba(148, 163, 184, 0.18);
  --radius-panel: 2rem;
  --radius-card: 1.9rem;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(59, 130, 246, 0.12), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(254, 83, 187, 0.12), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(255, 219, 59, 0.15), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fc 48%, #eef4fb 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ts-homepage-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.1) 0, rgba(96, 165, 250, 0) 30%),
    radial-gradient(circle at top right, rgba(254, 83, 187, 0.08) 0, rgba(254, 83, 187, 0) 26%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(245, 248, 252, 0.96) 48%, rgba(238, 244, 251, 0.96) 100%);
}

.ts-homepage-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 219, 59, 0.18) 0, rgba(255, 219, 59, 0) 17%),
    radial-gradient(circle at 82% 22%, rgba(254, 83, 187, 0.16) 0, rgba(254, 83, 187, 0) 20%),
    radial-gradient(circle at 18% 18%, rgba(0, 68, 255, 0.11) 0, rgba(0, 68, 255, 0) 20%),
    repeating-radial-gradient(circle at 50% 7%, rgba(0, 116, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 22px);
}

.ts-homepage-shell > * {
  position: relative;
  z-index: 1;
}

.ts-homepage-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
}

.ts-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ts-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ts-brand__logo {
  width: auto;
  height: 44px;
}

.ts-brand__copy {
  display: none;
}

.ts-brand__eyebrow {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #64748b;
}

.ts-brand__tagline {
  font-size: 0.95rem;
  color: #475569;
}

.ts-nav {
  display: none;
  align-items: center;
  gap: 1.7rem;
}

.ts-nav a,
.ts-link {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.ts-nav a:hover,
.ts-link:hover {
  color: var(--blue);
}

.ts-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ts-locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 251, 255, 0.72) 100%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.ts-locale-switch__button,
.ts-filter-chip,
.ts-btn {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ts-locale-switch__button {
  border-radius: var(--radius-pill);
  padding: 0.65rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ts-locale-switch__button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.ts-locale-switch__button.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(24, 74, 167, 0.22);
}

.ts-link--back {
  display: none;
}

.ts-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.88rem 1.4rem;
  min-height: 3rem;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ts-btn:hover {
  transform: translateY(-1px);
}

.ts-btn:disabled,
.ts-btn.is-disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.ts-btn-primary {
  overflow: hidden;
  border: double 4px transparent;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.92) 100%),
    linear-gradient(137deg, #ffdb3b 10%, #fe53bb 42%, #8f51ea 68%, #0044ff 90%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 300%;
  color: rgba(11, 23, 48, 0.96);
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.12), 0 10px 24px rgba(254, 83, 187, 0.1);
  animation: ts-rainbow-shift 9s ease infinite;
}

.ts-btn-primary::before,
.ts-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
}

.ts-btn-primary::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.95) 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.82) 0 1.2px, transparent 1.8px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0.75;
  animation: ts-stars-drift 7s linear infinite;
}

.ts-btn-primary::after {
  inset: auto 12% -55% 12%;
  height: 110%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 219, 59, 0.22) 0%, rgba(255, 219, 59, 0) 52%),
    radial-gradient(circle, rgba(254, 83, 187, 0.18) 0%, rgba(254, 83, 187, 0) 56%),
    radial-gradient(circle, rgba(0, 68, 255, 0.18) 0%, rgba(0, 68, 255, 0) 60%);
  filter: blur(18px);
  opacity: 0.95;
}

.ts-btn-primary > *,
.ts-btn-secondary > * {
  position: relative;
  z-index: 1;
}

.ts-btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(15, 23, 42, 0.84);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(12px);
}

.ts-btn--small {
  min-height: 2.55rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
}

.ts-btn--loadmore.is-disabled {
  background: rgba(255, 255, 255, 0.78);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.08);
  animation: none;
}

.ts-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.58rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.ts-homepage-badge {
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(59, 130, 246, 0.05);
  color: rgba(24, 74, 167, 0.86);
}

.ts-homepage-badge-secondary {
  border: 1px solid rgba(239, 107, 45, 0.14);
  background: rgba(239, 107, 45, 0.08);
  color: var(--orange);
}

.ts-homepage-panel,
.ts-homepage-panel-strong,
.ts-intro-card,
.ts-gallery-card,
.ts-homepage-team-card,
.ts-homepage-logo-card {
  backdrop-filter: blur(18px);
}

.ts-homepage-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 251, 255, 0.72) 100%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ts-homepage-panel-strong {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 247, 252, 0.9) 100%);
  box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ts-section {
  padding-bottom: 0.75rem;
}

.ts-hero {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.ts-hero__content {
  max-width: 74rem;
  display: grid;
  gap: 2rem;
}

.ts-hero__copy {
  display: grid;
  gap: 1.25rem;
}

.ts-hero__copy h1 {
  max-width: 64rem;
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #020617;
}

.ts-hero__copy p {
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-soft);
}

.ts-hero__actions,
.ts-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ts-icon-inline {
  font-size: 1rem;
  line-height: 1;
}

.ts-panel-stack {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-panel);
}

.ts-intro-grid {
  display: grid;
  gap: 1rem;
}

.ts-intro-card {
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.9));
  padding: 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.ts-intro-card--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.88));
}

.ts-intro-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ts-intro-card__body {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.95;
  color: #334155;
}

.ts-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ts-filter-chip {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.ts-filter-chip:hover {
  border-color: rgba(59, 130, 246, 0.18);
  color: #0f172a;
  transform: translateY(-1px);
}

.ts-filter-chip.is-active {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.14);
}

.ts-gallery-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

.ts-gallery-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 251, 255, 0.72) 100%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
}

.ts-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.12);
}

.ts-gallery-card__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.ts-gallery-card.is-hero .ts-gallery-card__media {
  min-height: 420px;
}

.ts-gallery-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.ts-gallery-card:hover .ts-gallery-card__image {
  transform: scale(1.018);
}

.ts-gallery-card__overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, rgba(24, 74, 167, 0.04) 100%);
  transition: opacity 420ms ease;
}

.ts-gallery-card:hover .ts-gallery-card__overlay {
  opacity: 1;
}

.ts-gallery-card__meta {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.ts-gallery-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.69rem;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.ts-gallery-card__pill--category {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(24, 74, 167, 0.72);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ts-gallery-card__pill--location {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 600;
}

.ts-gallery-card__body {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  transition: background 420ms ease;
}

.ts-gallery-card:hover .ts-gallery-card__body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.ts-gallery-card__intro {
  display: grid;
  gap: 0.75rem;
}

.ts-gallery-card__title {
  font-size: 1.6rem;
  line-height: 1.18;
  font-weight: 800;
  color: #020617;
  transition: color 420ms ease;
}

.ts-gallery-card:hover .ts-gallery-card__title {
  color: rgba(24, 74, 167, 0.96);
}

.ts-gallery-card__summary {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #475569;
}

.ts-gallery-card__reading {
  border-radius: 1.4rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0.75));
  transition: background 420ms ease, box-shadow 420ms ease;
}

.ts-gallery-card:hover .ts-gallery-card__reading {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(59, 130, 246, 0.08);
}

.ts-gallery-card__reading-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(24, 74, 167, 0.72);
}

.ts-gallery-card__reading-copy {
  margin-top: 0.5rem;
  font-size: 0.94rem;
  line-height: 1.8;
  color: #475569;
}

.ts-gallery-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ts-gallery-card__tag {
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.08);
  transition: border-color 420ms ease, background 420ms ease, color 420ms ease;
}

.ts-gallery-card:hover .ts-gallery-card__tag {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.04);
  color: #334155;
}

.ts-gallery__footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ts-gallery__count {
  color: #64748b;
  font-size: 0.94rem;
}

.ts-section-heading {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  padding-bottom: 2rem;
}

.ts-section-heading h2,
.ts-footer__copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  color: #020617;
}

.ts-team-grid {
  display: grid;
  gap: 1rem;
}

.ts-homepage-team-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 247, 252, 0.92) 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.ts-team-card summary {
  list-style: none;
  cursor: pointer;
}

.ts-team-card summary::-webkit-details-marker {
  display: none;
}

.ts-team-card__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.ts-team-card__copy {
  display: grid;
  gap: 0.75rem;
}

.ts-team-card__name {
  font-size: 1.3rem;
  font-weight: 700;
}

.ts-team-card__role {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ts-team-card__bio {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.8;
}

.ts-team-card__toggle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
  transition: transform 220ms ease;
}

.ts-team-card[open] .ts-team-card__toggle {
  transform: rotate(180deg);
}

.ts-team-card__content {
  display: grid;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.ts-team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ts-team-card__tag {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.ts-team-card__links {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.ts-team-card__link {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.ts-team-card__link:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: #fff;
  transform: translateY(-1px);
}

.ts-team-card__link svg,
.ts-team-card__toggle svg {
  width: 1rem;
  height: 1rem;
}

.ts-ecosystem-panel {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: var(--radius-panel);
}

.ts-ecosystem-panel__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
}

.ts-ecosystem-panel__glow--top {
  inset: 0 8% auto;
  height: 8rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
}

.ts-ecosystem-panel__glow--bottom {
  inset: auto 18% 0;
  height: 7rem;
  background: radial-gradient(circle, rgba(239, 107, 45, 0.14), transparent 70%);
}

.ts-ecosystem-panel__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.ts-ecosystem-panel__copy {
  display: grid;
  gap: 0.75rem;
  text-align: center;
  justify-items: center;
}

.ts-ecosystem-panel__copy h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
}

.ts-ecosystem-panel__copy p {
  max-width: 46rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}

.ts-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ts-homepage-logo-card {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(148, 163, 184, 0.12);
  padding: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ts-homepage-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(148, 163, 184, 0.16);
}

.ts-homepage-logo-card img {
  max-height: 5rem;
  width: auto;
  object-fit: contain;
}

.ts-homepage-footer {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(244, 247, 252, 0.92) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ts-footer__grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.ts-footer__copy {
  display: grid;
  gap: 1.25rem;
}

.ts-footer__eyebrow {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ts-footer__description {
  max-width: 44rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.9;
}

.ts-contact-card {
  border-radius: 1.8rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.ts-contact-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
}

.ts-contact-card__label {
  color: #020617;
  font-weight: 700;
}

.ts-contact-card__icon {
  margin-top: 0.1rem;
  color: rgba(24, 74, 167, 0.55);
  font-size: 1rem;
}

.ts-contact-card a {
  color: #475569;
  transition: color 180ms ease;
}

.ts-contact-card a:hover {
  color: #0f172a;
}

@keyframes ts-rainbow-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ts-stars-drift {
  0% { transform: translateX(-2%); }
  50% { transform: translateX(2%); }
  100% { transform: translateX(-2%); }
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .ts-brand__copy {
    display: block;
  }

  .ts-link--back {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .ts-gallery-grid {
    column-count: 2;
  }

  .ts-intro-grid,
  .ts-team-grid,
  .ts-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ts-ecosystem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .ts-header__inner {
    padding-top: 0;
    padding-bottom: 0;
    flex-wrap: nowrap;
  }

  .ts-nav {
    display: flex;
  }

  .ts-hero {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1280px) {
  .ts-gallery-grid {
    column-count: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
 * Interactive VLM webmapping demo banner — links to demo/ (merged from galarieweb).
 * The whole card is one <a>; the pill inside is a styled <span>, not a nested link.
 * ------------------------------------------------------------------------- */
.ts-section--demo-banner {
  margin-top: 1.25rem;
}

/* Two map call-outs (Montpellier demo + Ho Chi Minh viewer) stacked full-width. */
.ts-demo-banner-stack {
  display: grid;
  gap: 1rem;
}

/* Ho Chi Minh viewer — violet/indigo, to distinguish it from the blue/teal Montpellier one. */
.ts-demo-banner--hcmc {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(99, 102, 241, 0.92) 52%, rgba(79, 70, 229, 0.94));
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.28);
}

.ts-demo-banner--hcmc:hover {
  box-shadow: 0 28px 56px rgba(79, 70, 229, 0.34);
}

.ts-demo-banner--hcmc .ts-demo-banner__glow {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(236, 72, 153, 0.4), transparent 48%);
}

.ts-demo-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.96), rgba(14, 165, 233, 0.92) 52%, rgba(15, 118, 110, 0.94));
  box-shadow: 0 22px 48px rgba(24, 74, 167, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ts-demo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(24, 74, 167, 0.34);
}

.ts-demo-banner__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(124, 58, 237, 0.4), transparent 48%);
}

.ts-demo-banner__icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.ts-demo-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.ts-demo-banner__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.ts-demo-banner__title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.ts-demo-banner__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 62ch;
}

.ts-demo-banner__cta {
  flex: 0 0 auto;
  width: 100%;
}

.ts-btn-demo {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.ts-demo-banner:hover .ts-btn-demo {
  background: rgba(255, 255, 255, 0.26);
}

@media (min-width: 768px) {
  .ts-demo-banner {
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 1.5rem 1.9rem;
  }

  .ts-demo-banner__icon {
    font-size: 2.4rem;
  }

  .ts-demo-banner__cta {
    width: auto;
  }
}
