/* Trajeva design system — Linear × Stripe inspired */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

:root {
  --tj-bg: #f6f5f2;
  --tj-bg-elevated: rgba(255, 255, 255, 0.72);
  --tj-surface: #ffffff;
  --tj-ink: #12141a;
  --tj-muted: #5c6478;
  --tj-border: rgba(18, 20, 26, 0.08);
  --tj-accent: #0f766e;
  --tj-accent-2: #ea580c;
  --tj-accent-soft: rgba(15, 118, 110, 0.12);
  --tj-danger: #dc2626;
  --tj-success: #059669;
  --tj-shadow: 0 24px 60px rgba(18, 20, 26, 0.08);
  --tj-radius: 18px;
  --tj-radius-sm: 12px;
  --tj-font: 'Instrument Sans', system-ui, sans-serif;
  --tj-display: 'Newsreader', Georgia, serif;
  --tj-glow: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(234, 88, 12, 0.12), transparent 50%);
  color-scheme: light;
}

html[data-theme='dark'] {
  --tj-bg: #0b0d12;
  --tj-bg-elevated: rgba(22, 26, 36, 0.78);
  --tj-surface: #141824;
  --tj-ink: #f3f4f6;
  --tj-muted: #9aa3b5;
  --tj-border: rgba(255, 255, 255, 0.08);
  --tj-accent: #2dd4bf;
  --tj-accent-2: #fb923c;
  --tj-accent-soft: rgba(45, 212, 191, 0.14);
  --tj-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --tj-glow: radial-gradient(ellipse 80% 50% at 15% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, rgba(251, 146, 60, 0.12), transparent 50%);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body.tj {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tj-font);
  background: var(--tj-bg);
  color: var(--tj-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.tj::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--tj-glow);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--tj-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.tj-shell { position: relative; z-index: 1; }

.tj-container {
  width: calc(100% - 2rem);
  max-width: none;
  margin-inline: auto;
}
.tj-container--narrow { width: min(720px, calc(100% - 2rem)); }

@media (min-width: 900px) {
  .tj-container {
    width: calc(100% - 3rem);
  }
}

/* Buttons */
.tj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}
.tj-btn:active { transform: translateY(1px); }
.tj-btn--primary {
  background: var(--tj-ink);
  color: var(--tj-bg);
  box-shadow: 0 10px 30px rgba(18, 20, 26, 0.18);
}
html[data-theme='dark'] .tj-btn--primary {
  background: var(--tj-accent);
  color: #041312;
}
.tj-btn--primary:hover { filter: brightness(1.05); }
.tj-btn--ghost {
  background: transparent;
  border-color: var(--tj-border);
  color: var(--tj-ink);
}
.tj-btn--ghost:hover { background: var(--tj-accent-soft); border-color: transparent; }
.tj-btn--accent {
  background: var(--tj-accent);
  color: #fff;
}
html[data-theme='dark'] .tj-btn--accent { color: #041312; }
.tj-btn--sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.tj-btn--danger { background: transparent; border-color: rgba(220, 38, 38, 0.35); color: var(--tj-danger); }

/* Glass / cards */
.tj-glass {
  background: var(--tj-bg-elevated);
  border: 1px solid var(--tj-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--tj-radius);
  box-shadow: var(--tj-shadow);
}

.tj-card {
  background: var(--tj-surface);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

.tj-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  margin-bottom: 1.5rem;
}
.tj-nav__brand {
  font-family: var(--tj-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--tj-ink);
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
.tj-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.tj-brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  color: var(--tj-accent);
}
.tj-brand__name {
  font-family: var(--tj-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tj-landing-nav .tj-brand__mark {
  width: 48px;
  height: 48px;
}
.tj-footer__brand .tj-brand__mark {
  width: 28px;
  height: 28px;
}
.tj-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--tj-border);
  background: var(--tj-bg-elevated);
  color: var(--tj-ink);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
}
.tj-nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tj-nav.is-open .tj-nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tj-nav.is-open .tj-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.tj-nav.is-open .tj-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.tj-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}
.tj-nav__links a {
  color: var(--tj-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}
.tj-nav__links a:hover,
.tj-nav__links a.is-active {
  color: var(--tj-ink);
  background: var(--tj-accent-soft);
}

.tj-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--tj-border);
  background: var(--tj-bg-elevated);
  cursor: pointer;
  color: var(--tj-ink);
  display: grid;
  place-items: center;
}

@media (max-width: 720px) {
  .tj-nav__toggle { display: inline-flex; }
  .tj-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem 0 0.15rem;
  }
  .tj-nav.is-open .tj-nav__links { display: flex; }
  .tj-nav__links a {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
  }
  .tj-nav__links .tj-theme-toggle {
    align-self: flex-start;
    margin-top: 0.25rem;
  }
  .tj-brand__name { font-size: 1.2rem; }
  .tj-brand__mark { width: 34px; height: 34px; }
}

/* Forms */
.tj-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.tj-field label { font-size: 0.85rem; font-weight: 600; color: var(--tj-muted); }
.tj-input,
.tj-textarea,
.tj-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--tj-radius-sm);
  border: 1px solid var(--tj-border);
  background: var(--tj-surface);
  color: var(--tj-ink);
  font: inherit;
}
.tj-textarea { min-height: 110px; resize: vertical; }
.tj-input:focus,
.tj-textarea:focus,
.tj-select:focus {
  outline: 2px solid var(--tj-accent);
  outline-offset: 1px;
}
.tj-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  margin: 0.75rem 0 1rem;
}
.tj-visibility-switch { margin: 0; }
.tj-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
}
.tj-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tj-switch__track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.18);
  border: 1px solid var(--tj-border);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.tj-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(18, 20, 26, 0.2);
  transition: transform 0.2s ease;
}
.tj-switch input:checked + .tj-switch__track {
  background: var(--tj-accent);
  border-color: transparent;
}
.tj-switch input:checked + .tj-switch__track .tj-switch__thumb {
  transform: translateX(20px);
}
.tj-switch input:focus-visible + .tj-switch__track {
  outline: 2px solid var(--tj-accent);
  outline-offset: 2px;
}
.tj-switch__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}
.tj-switch__label strong {
  font-size: 0.9rem;
  color: var(--tj-ink);
}
.tj-switch__label small {
  font-size: 0.75rem;
  color: var(--tj-muted);
}
html[data-theme='dark'] .tj-switch__track {
  background: rgba(255, 255, 255, 0.18);
}
.tj-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .tj-grid-2 { grid-template-columns: 1fr; }
}

.tj-flash {
  padding: 0.85rem 1rem;
  border-radius: var(--tj-radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.tj-flash--success { background: rgba(5, 150, 105, 0.12); color: var(--tj-success); }
.tj-flash--error { background: rgba(220, 38, 38, 0.12); color: var(--tj-danger); }

.tj-page-title {
  font-family: var(--tj-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.tj-lead { color: var(--tj-muted); margin: 0 0 1.5rem; }

/* Stats */
.tj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 900px) {
  .tj-stats { grid-template-columns: 1fr 1fr; }
}
.tj-stat {
  padding: 1.15rem 1.25rem;
  border-radius: var(--tj-radius);
  background: var(--tj-surface);
  border: 1px solid var(--tj-border);
}
.tj-stat__value {
  font-family: var(--tj-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tj-stat__label { color: var(--tj-muted); font-size: 0.85rem; margin-top: 0.35rem; }

.tj-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--tj-border);
  overflow: hidden;
  margin: 0.75rem 0 1.5rem;
}
.tj-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tj-accent), var(--tj-accent-2));
  border-radius: inherit;
  transition: width 0.6s ease;
}

.tj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 2rem;
}

.tj-table {
  width: 100%;
  border-collapse: collapse;
}
.tj-table th,
.tj-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--tj-border);
  vertical-align: top;
}
.tj-table th { color: var(--tj-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.tj-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--tj-accent-soft);
  color: var(--tj-accent);
}

/* Landing */
.tj-landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.tj-hero {
  padding: 3.5rem 0 4rem;
  position: relative;
}
.tj-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
}
.tj-hero--split .tj-hero-preview {
  grid-column: 1 / -1;
}
.tj-hero__copy { min-width: 0; }
.tj-hero__aside {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tj-hero__cta-panel {
  position: relative;
  width: min(100%, 320px);
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  background: var(--tj-bg-elevated);
  box-shadow: var(--tj-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  animation: tj-cta-float 5.5s ease-in-out infinite;
}
.tj-hero__cta-kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--tj-muted);
  letter-spacing: 0.02em;
}
.tj-hero__cta-btn {
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.tj-hero__cta-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle at 50% 40%, rgba(15, 118, 110, 0.22), transparent 65%);
  pointer-events: none;
  animation: tj-radar-pulse 3.8s ease-in-out infinite;
}
@keyframes tj-cta-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 860px) {
  .tj-hero--split {
    grid-template-columns: 1fr;
  }
  .tj-hero__aside { justify-content: flex-start; }
  .tj-hero__cta-panel { width: 100%; max-width: 360px; animation: none; }
}
.tj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--tj-border);
  background: var(--tj-bg-elevated);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tj-muted);
  margin-bottom: 1.25rem;
}
.tj-hero h1 {
  font-family: var(--tj-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.tj-hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--tj-muted);
  max-width: 36ch;
  margin: 0 0 2rem;
}
.tj-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero preview — mini parcours horizontal (plus de cartes dispersées) */
.tj-hero-preview {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  background: var(--tj-bg-elevated);
  backdrop-filter: blur(16px);
  box-shadow: var(--tj-shadow);
}
.tj-hero-preview__label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tj-muted);
  margin: 0 0 1.15rem;
}
.tj-hero-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
}
.tj-hero-node {
  padding: 1rem 1.05rem;
  border-radius: var(--tj-radius-sm);
  border: 1px solid var(--tj-border);
  background: var(--tj-surface);
  animation: tj-float 6.5s ease-in-out infinite;
}
.tj-hero-node:nth-child(1) { animation-delay: 0s; }
.tj-hero-node:nth-child(3) { animation-delay: -2.2s; }
.tj-hero-node:nth-child(5) { animation-delay: -4.4s; }
.tj-hero-node__step {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tj-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.tj-hero-node strong { display: block; margin-bottom: 0.25rem; font-size: 0.98rem; }
.tj-hero-node span { color: var(--tj-muted); font-size: 0.88rem; line-height: 1.4; }
.tj-hero-connector {
  align-self: center;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tj-accent), var(--tj-accent-2));
  position: relative;
}
.tj-hero-connector::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tj-accent-2);
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .tj-hero-rail {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .tj-hero-connector {
    width: 2px;
    height: 22px;
    justify-self: center;
    background: linear-gradient(180deg, var(--tj-accent), var(--tj-accent-2));
  }
  .tj-hero-connector::after {
    right: 50%;
    top: auto;
    bottom: -3px;
    transform: translateX(50%);
  }
}

@keyframes tj-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tj-section { padding: 4.5rem 0; }
.tj-section h2 {
  font-family: var(--tj-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.tj-section__lead { color: var(--tj-muted); margin: 0 0 2rem; max-width: 48ch; }

.tj-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .tj-features { grid-template-columns: 1fr; }
}
.tj-feature {
  padding: 1.5rem;
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  background: var(--tj-surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tj-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.35);
}
.tj-feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tj-accent-soft);
  color: var(--tj-accent);
  margin-bottom: 1rem;
  font-weight: 700;
}
.tj-feature h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.tj-feature p { margin: 0; color: var(--tj-muted); font-size: 0.95rem; }

.tj-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .tj-pricing { grid-template-columns: 1fr; }
}
.tj-price-card {
  padding: 1.75rem;
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  background: var(--tj-surface);
}
.tj-price-card.is-featured {
  border-color: var(--tj-accent);
  background: linear-gradient(180deg, var(--tj-accent-soft), var(--tj-surface));
}
.tj-price-card__price {
  font-family: var(--tj-display);
  font-size: 2.4rem;
  margin: 0.5rem 0;
}

.tj-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--tj-border);
  color: var(--tj-muted);
  font-size: 0.9rem;
  display: grid;
  gap: 1.15rem;
}
.tj-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
}
.tj-footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tj-ink);
  text-decoration: none;
  font-weight: 550;
  opacity: 0.88;
}
.tj-footer__legal a:hover {
  opacity: 1;
  color: var(--tj-accent);
}
.tj-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.tj-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
@media (min-width: 720px) {
  .tj-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .tj-footer__legal {
    grid-column: 1 / -1;
  }
  .tj-footer__links {
    justify-content: flex-end;
    width: auto;
  }
}

/* Reveal */
.tj-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
  filter: blur(4px);
}
.tj-reveal[data-reveal='fade-down'] { transform: translateY(-24px); }
.tj-reveal[data-reveal='fade-left'] { transform: translateX(-32px); }
.tj-reveal[data-reveal='fade-right'] { transform: translateX(32px); }
.tj-reveal[data-reveal='scale-up'] { transform: translateY(20px) scale(0.96); }
.tj-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Auth */
.tj-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.tj-auth__card {
  width: min(420px, 100%);
  padding: 2rem;
}
.tj-auth__card h1 {
  font-family: var(--tj-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}
.tj-auth__meta { color: var(--tj-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* Public profile / timeline */
.tj-profile-hero {
  padding: 1rem 0 0.75rem;
}
.tj-profile-hero__identity {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tj-profile-hero__intro { flex: 1; min-width: 220px; }
.tj-profile-hero__row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tj-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--tj-accent), var(--tj-accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--tj-display);
  font-size: 2rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.tj-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tj-profile-hero h1 {
  font-family: var(--tj-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}
.tj-profile-hero__headline { font-size: 0.92rem; color: var(--tj-muted); margin: 0.1rem 0 0; }
.tj-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: var(--tj-muted);
  font-size: 0.8rem;
  margin-bottom: 0;
}
.tj-profile-bio {
  max-width: none;
  color: var(--tj-ink);
  opacity: 0.92;
  line-height: 1.45;
  margin: 0;
  white-space: normal;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.tj-profile-triad {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.95fr) minmax(200px, 0.9fr);
  gap: 0.75rem;
  align-items: stretch;
  max-height: min(42vh, 360px);
}
.tj-profile-panel {
  border: 1px solid var(--tj-border);
  border-radius: calc(var(--tj-radius) - 4px);
  background: var(--tj-surface);
  padding: 0.75rem 0.85rem 0.85rem;
  min-height: 0;
  max-height: min(42vh, 360px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.tj-profile-panel__title {
  font-family: var(--tj-display);
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.tj-profile-panel__identity {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--tj-border);
  flex-shrink: 0;
}
.tj-profile-panel__who { flex: 1; min-width: 0; }
.tj-profile-panel__name {
  font-family: var(--tj-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tj-profile-panel__role {
  margin: 0;
  color: var(--tj-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.tj-profile-panel__title--resume {
  margin-top: 0;
}
.tj-profile-panel__identity .tj-actions {
  margin-top: 0.4rem;
  gap: 0.35rem;
}
.tj-avatar--sm {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.05rem;
}
.tj-avatar-edit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.tj-avatar-edit .tj-avatar {
  flex-shrink: 0;
}
.tj-profile-panel--skills {
  background:
    radial-gradient(circle at 30% 20%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(234, 88, 12, 0.1), transparent 50%),
    var(--tj-surface);
}
.tj-profile-panel--skills .tj-skills-radar {
  flex: 1;
  min-height: 160px;
}
.tj-profile-panel--skills .tj-skills-radar__svg {
  width: 100%;
  max-width: 260px;
  max-height: none;
}
.tj-profile-panel--next {
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.12), rgba(234, 88, 12, 0.08));
  overflow-y: auto;
}
.tj-profile-panel--next p {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.tj-profile-panel--next p:last-child { margin-bottom: 0; }
.tj-profile-panel--next .tj-badge {
  margin-bottom: 0.4rem !important;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.tj-skills-radar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0;
  flex: 1;
  width: 100%;
}
.tj-skills-radar__svg {
  width: min(100%, 280px);
  height: auto;
  max-width: 100%;
  max-height: calc(min(42vh, 360px) - 3.2rem);
  aspect-ratio: 1;
  margin: 0 auto;
  display: block;
  overflow: visible;
  flex: 1 1 auto;
}
.tj-skills-radar__ring {
  fill: none;
  stroke: var(--tj-border);
  stroke-width: 1;
  opacity: 0.7;
}
.tj-skills-radar__axis {
  stroke: var(--tj-border);
  stroke-width: 1;
  opacity: 0.55;
}
.tj-skills-radar__shape {
  filter: drop-shadow(0 6px 12px rgba(15, 118, 110, 0.22));
}
.tj-skills-radar__dot {
  fill: var(--tj-accent);
  stroke: #fff;
  stroke-width: 1.5;
  opacity: 0;
  animation: tj-radar-dot 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 0.55s);
}
@keyframes tj-radar-dot {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tj-skills-radar__label {
  fill: var(--tj-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  paint-order: stroke fill;
  stroke: var(--tj-surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.tj-skills-radar__glow {
  animation: tj-radar-pulse 3.6s ease-in-out infinite;
}
@keyframes tj-radar-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.tj-skills-radar__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none; /* compact: radar seul sur le 1er écran */
}
.tj-skills-radar__legend li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.8rem;
}
.tj-skills-radar__legend strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tj-skills-radar__legend em {
  color: var(--tj-muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.tj-skills-radar__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--tj-border);
  overflow: hidden;
}
.tj-skills-radar__bar i {
  display: block;
  height: 100%;
  width: calc(var(--lvl) * 20%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tj-accent), var(--tj-accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  animation: tj-bar-fill 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.35s;
}
@keyframes tj-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.tj-timeline-head {
  margin: 0.85rem 0 0.35rem;
}
.tj-timeline-head .tj-page-title {
  font-size: 1.25rem !important;
}
.tj-timeline-hint {
  font-size: 0.8rem;
  margin: 0.15rem 0 0;
}

@media (max-width: 980px) {
  .tj-profile-triad {
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }
  .tj-profile-panel {
    max-height: none;
  }
  .tj-profile-panel--bio { grid-column: 1 / -1; }
  .tj-skills-radar__legend { display: grid; gap: 0.3rem; }
}
@media (max-width: 640px) {
  .tj-profile-triad { grid-template-columns: 1fr; }
}

/* ========== Journey timeline (cubes + markers) ========== */
.tj-journey { margin: 0.75rem 0 2rem; }
.tj-journey__mobile-hint {
  display: none;
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--tj-muted);
}
@media (max-width: 720px) {
  .tj-journey__mobile-hint { display: block; }
}
.tj-journey__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 1.25rem;
  align-items: center;
}
.tj-cube--legend {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem;
  width: auto !important;
  height: auto !important;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  box-shadow: none !important;
  transform: none !important;
}
.tj-cube--legend i {
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
}

.tj-journey__scroller {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tj-journey__rail {
  --col-w: 140px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--stops, 1), var(--col-w));
  gap: 0;
  min-width: max-content;
  padding: 0 1rem 0.5rem;
}
.tj-journey__line {
  position: absolute;
  left: calc(var(--col-w) / 2);
  right: calc(var(--col-w) / 2);
  top: 7px; /* aligné sur l’axe en haut — les cubes descendent en dessous */
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tj-accent), var(--tj-accent-2));
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 720px) {
  .tj-journey__line { top: 7px; }
}
.tj-journey__col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--col-w);
  scroll-snap-align: center;
  cursor: pointer;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
}
.tj-journey__col:focus-visible {
  outline: 2px solid var(--tj-accent);
  outline-offset: 4px;
  border-radius: 12px;
}
.tj-journey__col.is-active .tj-journey__dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px var(--tj-accent-soft);
}
.tj-journey__col.is-active .tj-journey__role {
  color: var(--tj-accent);
}

.tj-journey__stack {
  display: flex;
  flex-direction: column; /* empile vers le bas */
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 0;
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 0.55rem;
}

.tj-cube {
  --cube-skill: #0f766e;
  --cube-project: #ea580c;
  --cube-testimonial: #2563eb;
  --cube-achievement: #7c3aed;
  width: 108px;
  min-height: 34px;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(18, 20, 26, 0.14), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(8px) scale(0.96);
  opacity: 0.92;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, box-shadow 0.25s ease;
}
.tj-cube i {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255,255,255,0.22);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
}
.tj-cube span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  opacity: 0.95;
}
.tj-cube--skill { background: linear-gradient(145deg, #14b8a6, var(--cube-skill)); }
.tj-cube--project { background: linear-gradient(145deg, #fb923c, var(--cube-project)); }
.tj-cube--testimonial { background: linear-gradient(145deg, #60a5fa, var(--cube-testimonial)); }
.tj-cube--achievement { background: linear-gradient(145deg, #a78bfa, var(--cube-achievement)); }
.tj-cube--more {
  background: var(--tj-surface);
  color: var(--tj-muted);
  border: 1px dashed var(--tj-border);
  box-shadow: none;
  opacity: 1;
  transform: none;
  align-items: center;
}
/* Toujours visibles — l’anim is-pop est un bonus, jamais un prérequis d’affichage */
.tj-cube.is-new,
.tj-cube.is-pop,
.tj-journey__col .tj-cube {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.tj-cube.is-pop {
  animation: tj-cube-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes tj-cube-pop {
  0% { opacity: 0; transform: translateY(16px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tj-journey__axis {
  position: relative;
  z-index: 2;
  height: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  order: 0;
}
.tj-journey__stack { order: 1; }
.tj-journey__marker { order: 2; }
.tj-journey__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tj-bg);
  border: 3px solid var(--tj-accent);
  box-shadow: 0 0 0 4px var(--tj-accent-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tj-journey__dot.is-current {
  border-color: var(--tj-accent-2);
  background: var(--tj-accent-2);
}

.tj-journey__marker {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 5.5rem;
  padding: 0 0.15rem;
}
.tj-journey__role {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.tj-journey__when {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tj-accent);
}
.tj-journey__co {
  font-size: 0.7rem;
  color: var(--tj-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tj-journey__detail {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--tj-radius);
  border: 1px solid var(--tj-border);
  background: var(--tj-surface);
  box-shadow: var(--tj-shadow);
}
.tj-journey__detail-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tj-accent);
}
.tj-journey__detail h3 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.tj-journey__detail-co {
  margin: 0 0 0.75rem;
  color: var(--tj-muted);
}
.tj-journey__detail-hint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--tj-muted);
}

@media (max-width: 720px) {
  .tj-journey__scroller {
    overflow: visible;
    scroll-snap-type: none;
    padding: 0.15rem 0 0.5rem;
  }
  .tj-journey__rail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    padding: 0;
    gap: 0;
  }
  .tj-journey__line {
    left: 11px;
    right: auto;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--tj-accent), var(--tj-accent-2));
  }
  .tj-journey__col {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 0.35rem 0.75rem;
    padding: 0.9rem 0 0.9rem 2.1rem;
    position: relative;
  }
  .tj-journey__axis {
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 24px;
    height: 18px;
    margin: 0;
    order: 0;
  }
  .tj-journey__marker {
    flex: 1 1 auto;
    min-height: 0;
    order: 1;
    text-align: left;
    align-items: flex-start;
    padding: 0;
  }
  .tj-journey__stack {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    margin: 0.35rem 0 0;
    gap: 6px;
  }
  .tj-cube {
    width: auto;
    min-width: 96px;
    max-width: calc(50% - 4px);
    flex: 1 1 96px;
    font-size: 0.68rem;
  }
  .tj-journey__role {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }
  .tj-journey__when,
  .tj-journey__co {
    font-size: 0.75rem;
  }
  .tj-journey__legend {
    gap: 0.45rem 0.65rem;
  }
}

/* Dashboard toolbar */
.tj-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}
.tj-dash-toolbar .tj-btn {
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .tj-dash-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .tj-dash-toolbar .tj-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 0.65rem 0.5rem;
    font-size: 0.82rem;
  }
  .tj-dash-toolbar .tj-btn--accent {
    grid-column: 1 / -1;
  }
  .tj-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .tj-stat {
    padding: 0.9rem 0.95rem;
  }
  .tj-stat__value {
    font-size: 1.55rem;
  }
  .tj-page-title {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }
  .tj-visibility-switch .tj-switch__label small {
    display: none;
  }
}

@media (max-width: 420px) {
  .tj-stats { grid-template-columns: 1fr; }
  .tj-dash-toolbar { grid-template-columns: 1fr; }
  .tj-dash-toolbar .tj-btn--accent { grid-column: auto; }
}

/* Legacy horizontal cards (unused on profile) kept minimal */
.tj-timeline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.tj-timeline-hint {
  color: var(--tj-muted);
  font-size: 0.85rem;
}

.tj-ach-list { display: grid; gap: 0.65rem; margin-top: 0.85rem; }
.tj-ach {
  padding: 0.75rem 0.85rem;
  border-radius: var(--tj-radius-sm);
  background: var(--tj-accent-soft);
  border: 1px solid transparent;
}
.tj-ach h4 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.tj-ach p { margin: 0.15rem 0; font-size: 0.82rem; color: var(--tj-muted); }
.tj-ach__metrics { font-weight: 650; color: var(--tj-accent); font-size: 0.85rem; }

.tj-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}
.tj-skill-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--tj-border);
  font-size: 0.85rem;
  background: var(--tj-surface);
}
.tj-skill-chip em {
  font-style: normal;
  color: var(--tj-muted);
  margin-left: 0.35rem;
}

.tj-quote {
  padding: 1.25rem 1.4rem;
  border-radius: var(--tj-radius);
  border-left: 3px solid var(--tj-accent);
  background: var(--tj-surface);
  margin-bottom: 1rem;
}
.tj-quote p { margin: 0 0 0.75rem; font-family: var(--tj-display); font-size: 1.15rem; }
.tj-quote footer { color: var(--tj-muted); font-size: 0.9rem; }

.tj-next-chapter {
  padding: 1.75rem;
  border-radius: var(--tj-radius);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(234, 88, 12, 0.1));
  border: 1px solid var(--tj-border);
  margin: 2rem 0;
}
.tj-next-chapter h2 {
  font-family: var(--tj-display);
  margin: 0 0 0.75rem;
}

/* ========== Landing motion system ========== */
.tj-landing {
  position: relative;
  overflow: clip;
  padding-bottom: 2rem;
}
.tj-landing__inner {
  position: relative;
  z-index: 1;
  /* Centre le contenu home sans toucher dashboard / profil public */
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .tj-landing__inner {
    width: min(1120px, calc(100% - 3rem));
  }
}

.tj-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.tj-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  will-change: transform;
  animation: tj-orb-drift 18s ease-in-out infinite alternate;
}
.tj-ambient__orb--a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.45), transparent 68%);
}
.tj-ambient__orb--b {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 18%;
  right: -10%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.28), transparent 70%);
  animation-delay: -6s;
}
.tj-ambient__orb--c {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  bottom: 8%;
  left: 35%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 70%);
  animation-delay: -11s;
}
html[data-theme='dark'] .tj-ambient__orb--a { background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 68%); }
html[data-theme='dark'] .tj-ambient__orb--b { background: radial-gradient(circle, rgba(251, 146, 60, 0.2), transparent 70%); }

.tj-ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 20, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 20, 26, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
  animation: tj-grid-shift 28s linear infinite;
}
html[data-theme='dark'] .tj-ambient__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

@keyframes tj-orb-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(24px, 36px, 0) scale(1.08); }
}
@keyframes tj-grid-shift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}

.tj-landing-nav__actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .tj-landing-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  .tj-landing-nav .tj-brand__name { font-size: 1.25rem; }
  .tj-landing-nav .tj-brand__mark { width: 40px; height: 40px; }
  .tj-landing-nav__actions {
    width: 100%;
    justify-content: stretch;
  }
  .tj-landing-nav__actions .tj-btn {
    flex: 1 1 auto;
    min-height: 42px;
  }
  .tj-hero {
    padding: 2rem 0 2.5rem;
  }
  .tj-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .tj-hero__cta-panel {
    max-width: none;
  }
  .tj-hero__cta-btn {
    width: 100%;
  }
}
.tj-brand-glow {
  position: relative;
}
.tj-brand-glow::after {
  content: '';
  position: absolute;
  inset: -8px -12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--tj-accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.tj-brand-glow:hover::after { opacity: 1; }

.tj-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tj-accent);
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45);
  animation: tj-pulse 2.2s ease-out infinite;
}
@keyframes tj-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.tj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.tj-hero__title { max-width: 16ch; }
.tj-text-gradient {
  background: linear-gradient(120deg, var(--tj-accent), var(--tj-accent-2), var(--tj-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tj-gradient-shift 6s ease infinite;
}
@keyframes tj-gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.tj-btn--lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
.tj-btn--shine {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}
.tj-btn--shine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255,255,255,0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tj-btn--shine:hover::before { opacity: 1; }

.tj-hero-preview {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.tj-hero-preview__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}
.tj-hero-preview > *:not(.tj-hero-preview__glow) { position: relative; z-index: 1; }
.tj-live-bar {
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 0.45rem;
  vertical-align: middle;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tj-accent), var(--tj-accent-2));
  background-size: 200% 100%;
  animation: tj-gradient-shift 2.4s linear infinite;
}

.tj-hero-node {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tj-hero-node.is-in {
  opacity: 1;
  transform: none;
  animation: tj-float 6.5s ease-in-out infinite;
}
.tj-hero-node:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 12px 30px rgba(18, 20, 26, 0.08);
}
.tj-hero-connector {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.85;
}
.tj-hero-connector.is-drawn { transform: scaleX(1); }
@media (max-width: 720px) {
  .tj-hero-connector {
    transform: scaleY(0);
    transform-origin: top center;
  }
  .tj-hero-connector.is-drawn { transform: scaleY(1); }
}

.tj-marquee {
  margin: 1rem 0 0.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  border-block: 1px solid var(--tj-border);
  padding: 0.85rem 0;
}
.tj-marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tj-muted);
  animation: tj-marquee 28s linear infinite;
}
.tj-marquee__track span { white-space: nowrap; }
@keyframes tj-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tj-feature--lift {
  position: relative;
  overflow: hidden;
}
.tj-feature--lift::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tj-accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s ease;
  transform: translate(20px, 20px);
  pointer-events: none;
}
.tj-feature--lift:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}
.tj-feature__icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tj-feature--lift:hover .tj-feature__icon {
  transform: translateY(-3px) scale(1.06);
}

.tj-section--band {
  position: relative;
  border-radius: calc(var(--tj-radius) + 8px);
  padding-inline: 1.25rem;
  background: linear-gradient(180deg, transparent, var(--tj-accent-soft), transparent);
}

.tj-quote--motion {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tj-quote--motion:hover {
  transform: translateY(-4px);
  box-shadow: var(--tj-shadow);
}

.tj-price-card.is-featured {
  position: relative;
  animation: tj-featured-glow 4.5s ease-in-out infinite;
}
@keyframes tj-featured-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.45), 0 18px 50px rgba(15, 118, 110, 0.16); }
}

.tj-cta-final {
  margin: 1rem 0 2.5rem;
  padding: 2.5rem 1.75rem;
  border-radius: calc(var(--tj-radius) + 6px);
  border: 1px solid var(--tj-border);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, var(--tj-accent-soft), transparent 60%),
    var(--tj-surface);
  position: relative;
  overflow: hidden;
}
.tj-cta-final::before {
  content: '';
  position: absolute;
  inset: -40% auto auto 30%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.16), transparent 70%);
  animation: tj-orb-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.tj-cta-final h2 {
  font-family: var(--tj-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  position: relative;
}
.tj-cta-final p {
  color: var(--tj-muted);
  margin: 0 0 1.25rem;
  position: relative;
}
.tj-cta-final .tj-btn { position: relative; }

@media print {
  .tj-nav, .tj-theme-toggle, .tj-btn, .no-print, .tj-ambient, .tj-marquee { display: none !important; }
  body.tj::before { display: none; }
  .tj-timeline__card { break-inside: avoid; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .tj-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .tj-hero-node { opacity: 1; transform: none; }
  .tj-hero-connector { transform: none; }
  .tj-ambient__orb, .tj-ambient__grid { animation: none !important; }
}
