/* ==========================================================================
   TotalScope Technologies — design system
   Clean modern theme · gold / charcoal / off-white
   Same component classes as before (ts- namespace) — only the tokens and a
   handful of component treatments changed, so no HTML edits are required.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #17181c;
  --bg-2: #1c1d22;
  --surface: rgba(234, 234, 234, 0.04);
  --surface-2: rgba(234, 234, 234, 0.08);
  --border: rgba(234, 234, 234, 0.10);
  --border-strong: rgba(234, 234, 234, 0.20);
  --text: #eaeaea;
  --muted: #a3a09a;

  /* brand */
  --charcoal: #2b2c32;
  --charcoal-2: #35363d;
  --gold: #b19e7e;
  --gold-light: #d2c3a3;
  --gold-dark: #8a7a5f;
  --ivory: #eaeaea;

  /* legacy accent aliases used by a few components — mapped onto the gold system */
  --indigo: #b19e7e;
  --violet: #8a7a5f;
  --cyan: #d2c3a3;
  --green: #b7c9a8;
  --pink: #c9a98f;

  --grad: linear-gradient(135deg, #b19e7e, #8a7a5f);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 54px -28px rgba(0, 0, 0, 0.85);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ambient background — quiet, warm, no neon */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 12% -5%, rgba(177, 158, 126, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(177, 158, 126, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(234, 234, 234, 0.035) 0%, transparent 60%),
    var(--bg);
}

::selection {
  background: rgba(177, 158, 126, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #101114;
}
::-webkit-scrollbar-thumb {
  background: #2f3037;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d3e46;
}

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

a {
  color: inherit;
}

/* skip link */
.ts-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 500;
  padding: 10px 16px;
  background: var(--gold);
  color: #1c1a15;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.ts-skip:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

/* ---------- 3. Layout utilities ---------- */
.ts-container {
  width: min(var(--maxw), 100% - 2rem);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .ts-container {
    width: min(var(--maxw), 100% - 4rem);
  }
}

.ts-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
}

.ts-section--tight {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.ts-section-head {
  max-width: 740px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.ts-section-head--center {
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ts-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ts-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ts-eyebrow__group,
.ts-eyebrow__break {
  white-space: nowrap;
}

.ts-section-head--center .ts-eyebrow::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (max-width: 640px) {
  .ts-eyebrow {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
  }

  .ts-eyebrow__break {
    flex-basis: 100%;
  }
}

.ts-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin: 0.8rem 0 1rem;
}

.ts-title--grad {
  background: linear-gradient(120deg, #fff 20%, var(--gold-light) 60%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ts-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 640px;
}

.ts-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* dense term/legal grids: single stacked column, cards sized to content */
.ts-grid--terms {
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 800px;
  margin-inline: auto;
}

.ts-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(234, 234, 234, 0.12), transparent);
  max-width: var(--maxw);
  margin-inline: auto;
}

/* ---------- 4. Navigation (pill bar) ---------- */
.ts-nav {
  --nav-text: #eaeaea;
  --nav-muted: #9c9a94;
  --nav-pill: rgba(234, 234, 234, 0.08);
  --nav-active-pill: var(--gold);
  --nav-active-text: #1c1a15;
  font-family: var(--font-sans);
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ts-nav__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43, 44, 50, 0.55);
  border: 1px solid rgba(234, 234, 234, 0.10);
  border-radius: 999px;
  padding: 0.35rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(234, 234, 234, 0.06);
}

.ts-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.4rem 1rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.ts-nav__mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(234, 234, 234, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(234, 234, 234, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(234, 234, 234, 0.08);
  overflow: hidden;
}

.ts-nav__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-nav__sep {
  width: 1px;
  height: 20px;
  background: rgba(234, 234, 234, 0.14);
  flex-shrink: 0;
}

.ts-nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.ts-nav__links a {
  display: block;
  color: var(--nav-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.ts-nav__links a:hover {
  color: var(--nav-text);
  background: var(--nav-pill);
}

.ts-nav__links a.is-active {
  background: var(--nav-active-pill);
  color: var(--nav-active-text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.ts-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: var(--grad);
  color: #1c1a15;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(177, 158, 126, 0.35);
}

.ts-nav__cta:hover {
  opacity: 0.88;
  transform: scale(0.97);
}

/* mobile nav */
#ts-nav-toggle {
  display: none;
}

.ts-nav__mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 24, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 234, 234, 0.08);
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.ts-nav__mobile-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #eaeaea;
  text-decoration: none;
}

.ts-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px;
}

.ts-nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #eaeaea;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#ts-nav-toggle:checked ~ .ts-nav__mobile-bar .ts-nav__hamburger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

#ts-nav-toggle:checked ~ .ts-nav__mobile-bar .ts-nav__hamburger span:nth-child(2) {
  opacity: 0;
}

#ts-nav-toggle:checked ~ .ts-nav__mobile-bar .ts-nav__hamburger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.ts-nav__mobile-links {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(23, 24, 28, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(234, 234, 234, 0.08);
  position: sticky;
  top: 56px;
  z-index: 99;
}

.ts-nav__mobile-links a {
  display: block;
  color: #9c9a94;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.ts-nav__mobile-links a:hover {
  background: rgba(234, 234, 234, 0.06);
  color: #eaeaea;
}

.ts-nav__mobile-links a.is-active {
  color: var(--gold-light);
  font-weight: 600;
}

#ts-nav-toggle:checked ~ .ts-nav__mobile-links {
  display: flex;
}

@media (max-width: 900px) {
  .ts-nav {
    display: none;
  }

  .ts-nav__mobile-bar {
    display: flex;
  }
}

/* ---------- 5. Buttons ---------- */
@property --ts-beam {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 0.9rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: var(--grad);
  color: #1c1a15;
  box-shadow: 0 2px 10px rgba(177, 158, 126, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.ts-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(177, 158, 126, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ts-btn:active {
  transform: translateY(0) scale(0.97);
}

.ts-btn--ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}

.ts-btn--ghost:hover {
  background: var(--surface);
  box-shadow: none;
  opacity: 1;
}

.ts-btn--sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.ts-arrow {
  display: inline-block;
  transition: translate 0.25s ease;
}

.ts-btn:hover .ts-arrow,
.ts-card__link:hover .ts-arrow {
  translate: 4px 0;
}

/* glowing border-trace button — gold comet instead of cyan */
.ts-btn--glow {
  --beam: #d2c3a3;
  position: relative;
  isolation: isolate;
  background: #202126;
  border: 1px solid rgba(234, 234, 234, 0.14);
  border-radius: 14px;
  color: #f2f0ec;
  box-shadow: none;
}

.ts-btn--glow::before,
.ts-btn--glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ts-beam), transparent 0 82%, color-mix(in oklab, var(--beam) 45%, transparent) 88%, var(--beam) 93%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ts-btn--glow::after {
  filter: blur(8px);
  inset: -3px;
  padding: 4px;
}

.ts-btn--glow:hover,
.ts-btn--glow:focus-visible {
  border-color: rgba(234, 234, 234, 0.24);
  box-shadow: none;
  transform: none;
}

.ts-btn--glow:hover::before,
.ts-btn--glow:hover::after,
.ts-btn--glow:focus-visible::before,
.ts-btn--glow:focus-visible::after {
  opacity: 1;
  animation: ts-beam-lap 1.4s linear infinite;
}

@keyframes ts-beam-lap {
  to {
    --ts-beam: 360deg;
  }
}

/* ---------- 6. Cards (glass) ---------- */
.ts-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(234, 234, 234, 0.03) 0%, transparent 40%), linear-gradient(160deg, #202126 0%, #1a1b1f 100%);
  border: 1px solid rgba(234, 234, 234, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(234, 234, 234, 0.02) inset, 0 1px 0 rgba(234, 234, 234, 0.05) inset;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ts-card:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 158, 126, 0.35);
  box-shadow: 0 36px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(177, 158, 126, 0.16) inset, 0 1px 0 rgba(234, 234, 234, 0.05) inset;
}

.ts-card__sheen {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(210, 195, 163, 0.06) 45%,
      rgba(234, 234, 234, 0.04) 50%,
      rgba(177, 158, 126, 0.06) 55%,
      transparent 70%);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}

.ts-card__mesh {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(177, 158, 126, 0.28) 0%, transparent 55%), radial-gradient(circle at 60% 70%, rgba(234, 234, 234, 0.10) 0%, transparent 55%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

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

.ts-card__sheen,
.ts-card__mesh {
  position: absolute;
}

/* card variant with a photo bled to the card's top edge */
.ts-card--media {
  padding-top: 0;
}

.ts-card__media {
  position: relative;
  margin: 0 -26px;
  aspect-ratio: 2.75 / 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.ts-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ts-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 24, 28, 0.4) 100%);
  pointer-events: none;
}

/* compact variant for dense text (e.g. payment terms) */
.ts-card--compact {
  padding: 14px 16px;
  gap: 8px;
}

.ts-card--compact .ts-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-card--compact .ts-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.ts-card--compact .ts-card__icon svg {
  width: 15px;
  height: 15px;
}

.ts-card--compact .ts-card__title {
  font-size: 0.95rem;
  margin: 0;
}

.ts-card--compact .ts-card__text {
  font-size: 0.86rem;
  line-height: 1.5;
}

.ts-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(210, 195, 163, 0.18), rgba(177, 158, 126, 0.22));
  border: 1px solid rgba(210, 195, 163, 0.28);
  color: #e7dcc8;
  box-shadow: 0 4px 14px rgba(177, 158, 126, 0.22);
  flex-shrink: 0;
}

.ts-card__icon svg {
  width: 22px;
  height: 22px;
}

.ts-card__title {
  font-size: 1.15rem;
  color: #f4f4f4;
}

.ts-card__text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.ts-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  margin-top: 4px;
  align-self: flex-start;
}

.ts-card__link:hover {
  color: #fff;
}

/* small feature card */
.ts-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: rgba(234, 234, 234, 0.03);
  border: 1px solid rgba(234, 234, 234, 0.07);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.ts-feature:hover {
  border-color: rgba(177, 158, 126, 0.32);
  background: rgba(177, 158, 126, 0.06);
  transform: translateY(-3px);
}

.ts-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(177, 158, 126, 0.14);
  border: 1px solid rgba(177, 158, 126, 0.24);
  color: #e7dcc8;
}

.ts-feature__icon svg {
  width: 19px;
  height: 19px;
}

.ts-feature h4 {
  font-size: 0.98rem;
  color: #f4f4f4;
}

.ts-feature p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- 7. Hero ---------- */
.ts-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.ts-hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(234, 234, 234, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 234, 234, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 15%, transparent 70%);
  pointer-events: none;
}

.ts-hero__glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(177, 158, 126, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.ts-hero__content {
  position: relative;
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.ts-hero__title {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.ts-hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
}

.ts-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.ts-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 1.2rem;
}

.ts-hero__meta span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ts-hero__meta span::before {
  content: "\25c6";
  color: var(--gold);
  font-size: 8px;
}

/* interior page hero */
.ts-strip {
  padding: 1rem 0 0;
  text-align: center;
}

.ts-strip__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.8rem;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 234, 234, 0.10);
  background: rgba(234, 234, 234, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ts-strip__inner:hover {
  background: rgba(234, 234, 234, 0.07);
  border-color: rgba(177, 158, 126, 0.4);
}

.ts-strip__inner:active {
  transform: scale(0.98);
}

.ts-strip__inner svg {
  width: 15px;
  height: 15px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.ts-strip__inner span {
  color: var(--muted);
}

.ts-strip__inner strong {
  color: var(--gold-light);
  font-weight: 700;
}

@media (max-width: 640px) {
  .ts-strip__inner {
    padding: 0.45rem 0.85rem;
    font-size: 0.74rem;
    gap: 0.35rem 0.45rem;
  }

  .ts-strip__inner svg {
    width: 13px;
    height: 13px;
  }
}

.ts-page-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem;
  text-align: center;
  overflow: hidden;
}

.ts-page-hero__content {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.ts-page-hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

/* ---------- 8. Process steps ---------- */
.ts-process {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .ts-process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .ts-process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ts-process__step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 234, 234, 0.07);
  background: linear-gradient(180deg, rgba(234, 234, 234, 0.03), transparent 60%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ts-process__step:hover {
  border-color: rgba(177, 158, 126, 0.28);
  transform: translateY(-3px);
}

.ts-process__num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

.ts-process__step h3 {
  font-size: 1.05rem;
  margin: 14px 0 8px;
  color: #f4f4f4;
}

.ts-process__step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 9. Testimonials ---------- */
.ts-testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.ts-testimonial__quote {
  font-size: 0.98rem;
  color: #d8d6d1;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.ts-testimonial__quote::before {
  content: "\201C";
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 2px;
}

.ts-testimonial__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ts-testimonial__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #1c1a15;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(177, 158, 126, 0.32);
  flex-shrink: 0;
}

.ts-testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f4f4f4;
}

.ts-testimonial__role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 10. Founder ---------- */
.ts-founder {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ts-founder {
    grid-template-columns: 300px 1fr;
  }
}

.ts-founder__avatar {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid rgba(234, 234, 234, 0.10);
  background: radial-gradient(circle at 30% 25%, rgba(210, 195, 163, 0.22), transparent 60%), linear-gradient(160deg, #212228, #1a1b1f);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ts-founder__avatar svg {
  width: 46%;
  height: 46%;
  opacity: 0.9;
}

.ts-founder__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ts-founder__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(234, 234, 234, 0.07) 50%, transparent 70%);
}

.ts-founder__name {
  font-size: 1.6rem;
  margin-top: 0.2rem;
}

.ts-founder__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.4rem;
}

.ts-founder__quote {
  font-size: 1.05rem;
  color: #d8d6d1;
  line-height: 1.75;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-top: 1.1rem;
}

/* ---------- 11. Clients ---------- */
.ts-client-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.ts-client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px dashed rgba(234, 234, 234, 0.20);
  color: #d4d2cc;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(234, 234, 234, 0.02);
  transition: border-color 0.2s, color 0.2s;
}

.ts-client:hover {
  border-color: rgba(177, 158, 126, 0.45);
  color: #fff;
}

/* ---------- 12. CTA band ---------- */
.ts-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(234, 234, 234, 0.10);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(177, 158, 126, 0.14), rgba(138, 122, 95, 0.08)), linear-gradient(180deg, rgba(234, 234, 234, 0.035), transparent 50%), #1a1b20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.ts-cta::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 200px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(210, 195, 163, 0.18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.ts-cta > * {
  position: relative;
}

.ts-cta__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.ts-cta__sub {
  color: var(--muted);
  max-width: 560px;
}

.ts-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- 13. Footer ---------- */
.ts-footer {
  border-top: 1px solid rgba(234, 234, 234, 0.08);
  background: rgba(19, 20, 24, 0.7);
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}

/* logo mark in the footer blends with the footer surface, keeping its frame */
.ts-footer .ts-nav__mark {
  background: rgba(19, 20, 24, 0.7);
}

.ts-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .ts-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

.ts-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4d2cc;
  margin-bottom: 1rem;
}

.ts-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ts-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.ts-footer a:hover {
  color: #fff;
}

.ts-footer__brand p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.9rem 0 1.1rem;
  max-width: 300px;
  line-height: 1.6;
}

.ts-footer__social {
  display: flex;
  gap: 0.5rem;
}

.ts-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(234, 234, 234, 0.10);
  color: #9c9a94;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.ts-footer__social a:hover {
  color: #fff;
  border-color: rgba(177, 158, 126, 0.4);
  background: rgba(177, 158, 126, 0.10);
}

.ts-footer__social svg {
  width: 15px;
  height: 15px;
}

.ts-footer__contact li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.ts-footer__contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--gold-light);
}

.ts-footer__portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(234, 234, 234, 0.07);
}

.ts-footer__portals span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f6d67;
}

.ts-footer__portals a {
  font-size: 0.82rem;
}

.ts-footer__bottom {
  border-top: 1px solid rgba(234, 234, 234, 0.07);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.ts-footer__bottom p {
  font-size: 0.82rem;
  color: #6f6d67;
}

.ts-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.ts-footer__legal a {
  font-size: 0.8rem;
  color: #6f6d67;
}

/* ---------- 14. Cookie consent banner ---------- */
.ts-cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 300;
  width: min(560px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  background: rgba(30, 31, 36, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border: 1px solid rgba(234, 234, 234, 0.12);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.ts-cookie.is-dismissed {
  transform: translate(-50%, 130%);
  opacity: 0;
  visibility: hidden;
}

.ts-cookie.is-hidden {
  display: none;
}

.ts-cookie__text {
  flex: 1 1 240px;
  font-size: 13px;
  line-height: 1.55;
  color: #d4d2cc;
}

.ts-cookie__actions {
  display: flex;
  gap: 10px;
}

.ts-cookie__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--font-sans);
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ts-cookie__btn--accept {
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: #1c1a15;
}

.ts-cookie__btn--dismiss {
  border: 1.5px solid rgba(234, 234, 234, 0.35);
  background: transparent;
  color: var(--text);
}

.ts-cookie__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
}

.ts-cookie__btn:active {
  transform: translateY(0) scale(0.97);
}

.ts-cookie__x {
  position: relative;
  width: 10px;
  height: 10px;
}

.ts-cookie__x::before,
.ts-cookie__x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
}

.ts-cookie__x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ts-cookie__x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- 15. Services sub-nav (sticky anchor pills) ---------- */
.ts-subnav {
  position: sticky;
  top: 86px;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem 1rem;
}

.ts-subnav__bar {
  display: flex;
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(234, 234, 234, 0.04);
  border: 1px solid rgba(234, 234, 234, 0.10);
  border-radius: 999px;
  padding: 0.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.ts-subnav__bar::-webkit-scrollbar {
  display: none;
}

.ts-subnav__bar a {
  flex-shrink: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.ts-subnav__bar a:hover {
  color: var(--text);
  background: rgba(234, 234, 234, 0.1);
}

.ts-subnav__bar a.is-active {
  background: var(--grad);
  color: #1c1a15;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(177, 158, 126, 0.35);
}

@media (max-width: 900px) {
  .ts-subnav {
    top: 55px;
  }
}

/* ---------- 16. Service sections ---------- */
.ts-service__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2.2rem;
}

.ts-service__head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.ts-service__head p {
  color: var(--muted);
  max-width: 660px;
}

/* ---------- 17. FAQ ---------- */
.ts-faq {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ts-faq details {
  border: 1px solid rgba(234, 234, 234, 0.09);
  border-radius: 16px;
  background: rgba(234, 234, 234, 0.03);
  overflow: hidden;
  transition: border-color 0.2s;
}

.ts-faq details[open] {
  border-color: rgba(177, 158, 126, 0.32);
}

.ts-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #f4f4f4;
}

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

.ts-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ts-faq details[open] summary::after {
  transform: rotate(45deg);
}

.ts-faq__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- 18. Contact ---------- */
.ts-details {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .ts-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ts-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(234, 234, 234, 0.03);
  border: 1px solid rgba(234, 234, 234, 0.08);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ts-detail:hover {
  border-color: rgba(177, 158, 126, 0.32);
  transform: translateY(-2px);
}

.ts-detail__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(177, 158, 126, 0.22), rgba(138, 122, 95, 0.22));
  border: 1px solid rgba(210, 195, 163, 0.30);
  color: #e7dcc8;
  flex-shrink: 0;
}

.ts-detail__icon svg {
  width: 20px;
  height: 20px;
}

.ts-detail h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #f4f4f4;
}

.ts-detail p,
.ts-detail a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
}

.ts-detail a:hover {
  color: #fff;
}

.ts-detail ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* form */
.ts-contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 960px) {
  .ts-contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.ts-form {
  display: grid;
  gap: 1.1rem;
}

.ts-form__row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ts-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.ts-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ts-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d4d2cc;
}

.ts-field input,
.ts-field textarea {
  font: inherit;
  color: var(--text);
  background: rgba(234, 234, 234, 0.04);
  border: 1px solid rgba(234, 234, 234, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

.ts-field textarea {
  resize: vertical;
  min-height: 140px;
}

.ts-field input::placeholder,
.ts-field textarea::placeholder {
  color: #706e68;
}

.ts-field input:focus,
.ts-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(177, 158, 126, 0.07);
  box-shadow: 0 0 0 3px rgba(177, 158, 126, 0.18);
}

.ts-form__note {
  font-size: 0.82rem;
  color: var(--muted);
}

.ts-form__status {
  font-size: 0.85rem;
  color: var(--gold-light);
  min-height: 1.2em;
}

/* ---------- 19. Scroll reveal ---------- */
/* Hidden only when JS is active (progressive enhancement) */
.js .ts-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .ts-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .ts-reveal {
    opacity: 1;
    transform: none;
  }

  .ts-btn--glow:hover::before,
  .ts-btn--glow:hover::after,
  .ts-btn--glow:focus-visible::before,
  .ts-btn--glow:focus-visible::after {
    animation: none;
    opacity: 0.6;
  }
}

/* ==========================================================================
   Service Areas — city-organized navigation & footer (SEO landing pages)
   ========================================================================== */

/* ---------- Desktop nav dropdown ---------- */
.ts-nav__drop { position: relative; }

.ts-nav__drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  transform: translateY(6px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  min-width: min(92vw, 860px);
  max-width: calc(100vw - 2rem);
  padding: 1.15rem 1.4rem;
  background: rgba(24, 25, 29, 0.97);
  border: 1px solid rgba(234, 234, 234, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(234, 234, 234, 0.07);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 130;
}
.ts-nav__drop-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.ts-nav__drop:hover .ts-nav__drop-panel,
.ts-nav__drop:focus-within .ts-nav__drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.ts-nav__drop-panel a.ts-nav__drop-city {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 0 0.5rem;
  margin-bottom: 0.4rem;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ts-nav__drop-panel a.ts-nav__drop-city:hover {
  color: #fff;
  background: none;
}
.ts-nav__drop-panel a {
  display: block;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--nav-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.ts-nav__drop-panel a:hover { color: var(--nav-text); background: var(--nav-pill); }
.ts-nav__drop-panel a.is-active { color: var(--gold-light); font-weight: 600; }


/* ---------- Footer: Service Areas row (under social icons) ---------- */
.ts-footer__areas {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 1.1rem;
}
.ts-footer__areas-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4d2cc;
}
.ts-footer__areas-list {
  display: flex;
  flex-wrap: wrap;
}
.ts-footer__areas-list a {
  font-size: 0.9rem;
  padding: 0.1rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.ts-footer__areas-list a:first-child { padding-left: 0; }
.ts-footer__areas-list a + a { border-left: 1px solid rgba(234, 234, 234, 0.16); }
.ts-footer__areas-list a:hover { color: #fff; }

/* ---------- Nav fit safeguard (901-1080px) ---------- */
@media (max-width: 1080px) {
  .ts-nav__links a { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
  .ts-nav__cta { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
}

/* ==========================================================================
   Interactive service-area map — clickable stars over Middle TN
   ========================================================================== */
.ts-map {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  max-height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 234, 234, 0.10);
  background:
    radial-gradient(ellipse 60% 50% at 26% 22%, rgba(177, 158, 126, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 78% 78%, rgba(177, 158, 126, 0.07) 0%, transparent 60%),
    linear-gradient(160deg, #1c1d22 0%, #17181c 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ts-map__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(234, 234, 234, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 234, 234, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 40%, transparent 88%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 40%, transparent 88%);
}

.ts-map__label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}

.ts-map__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ts-map__route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  opacity: 0.4;
}

.js .ts-map__route {
  animation: ts-route-flow 2.6s linear infinite;
}

@keyframes ts-route-flow {
  to { stroke-dashoffset: -18; }
}

.ts-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text);
  z-index: 2;
  padding: 4px;
}

.ts-map__pin-dot {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.ts-map__pin-dot svg {
  width: 100%;
  height: 100%;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(177, 158, 126, 0.55));
  transition: transform 0.2s ease, color 0.2s ease;
}

.ts-map__pin-dot::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(177, 158, 126, 0.5);
  opacity: 0;
}

.js .ts-map__pin-dot::before {
  animation: ts-pin-ping 2.8s ease-out infinite;
}

.ts-map__pin:nth-of-type(2) .ts-map__pin-dot::before { animation-delay: 0.4s; }
.ts-map__pin:nth-of-type(3) .ts-map__pin-dot::before { animation-delay: 0.8s; }
.ts-map__pin:nth-of-type(4) .ts-map__pin-dot::before { animation-delay: 1.2s; }
.ts-map__pin:nth-of-type(5) .ts-map__pin-dot::before { animation-delay: 1.6s; }

@keyframes ts-pin-ping {
  0% { transform: scale(0.4); opacity: 0.8; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}

.ts-map__pin-label {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 24, 28, 0.85);
  border: 1px solid rgba(234, 234, 234, 0.14);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ts-map__pin:hover .ts-map__pin-label,
.ts-map__pin:focus-visible .ts-map__pin-label {
  color: #1c1a15;
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-2px);
}

.ts-map__pin:hover .ts-map__pin-dot svg,
.ts-map__pin:focus-visible .ts-map__pin-dot svg {
  transform: scale(1.3);
}

.ts-map__pin--hub .ts-map__pin-label {
  color: var(--gold-light);
  border-color: rgba(177, 158, 126, 0.4);
}

@media (max-width: 640px) {
  .ts-map { aspect-ratio: 3 / 4; }
  .ts-map__pin-label { font-size: 0.7rem; }
}

/* ---------- 21. Pixel mascot (secret scroll-to-top button) ---------- */
.ts-mascot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 84px;
  height: 96px;
  z-index: 200;
  display: block;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease, bottom 0.3s ease;
}

.ts-mascot.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ts-mascot:hover,
.ts-mascot:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

.ts-mascot:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.ts-mascot__canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

@media (max-width: 640px) {
  .ts-mascot { width: 63px; height: 72px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-mascot { transition: opacity 0.2s linear; }
}
