/* ============================================================
   TELOS INTELLIGENCE — GLOBAL STYLESHEET
   Brand: The Stoic Palette v2.0 (Charcoal + Amber)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter+Tight:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Palette */
  --charcoal:       #1B1F2A;
  --amber:          #C9820A;
  --parchment:      #F5EDD6;
  --slate:          #6E7C8A;

  /* Secondary Palette */
  --charcoal-light: #2D3346;
  --amber-light:    #E09B2E;
  --amber-muted:    #A06A08;
  --off-white:      #FAFAF8;
  --stone:          #8C8678;
  --alert-red:      #C0392B;

  /* Typography */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1140px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--amber-light);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Defaults ---------- */
section {
  padding: var(--section-padding);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: inherit;
}

h1 { font-size: clamp(36px, 5vw, 52px); font-weight: bold; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: bold; }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: bold; }

.display-headline {
  font-size: clamp(42px, 6vw, 64px);
  font-family: var(--font-serif);
  font-weight: bold;
  line-height: 1.1;
}

p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
}

.text-amber { color: var(--amber); }
.text-slate  { color: var(--slate); }
.text-white  { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover {
  background: var(--amber-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,130,10,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(27, 31, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,130,10,0.15);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  height: 36px;
  width: auto;
  /* Logo has white background — show in a clean white badge */
  background: #fff;
  padding: 4px 10px;
  border-radius: 3px;
}

.navbar-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar-nav a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  border-bottom-color: var(--amber);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--charcoal);
  z-index: 999;
  padding: 24px;
  border-top: 1px solid rgba(201,130,10,0.2);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-slow);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--amber);
}

.mobile-nav .mobile-cta {
  margin-top: 20px;
}

/* ---------- Hero Section ---------- */
.hero {
  background: var(--charcoal);
  color: #fff;
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,130,10,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,130,10,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(46px, 6.5vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  color: rgba(255,255,255,0.3);
}

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

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--charcoal-light);
  padding: 0;
  border-bottom: 1px solid rgba(201,130,10,0.15);
}

.stats-bar-intro {
  text-align: center;
  padding: 32px 24px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-columns: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
  padding: 36px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: bold;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ---------- Problem Section ---------- */
.problem-section {
  background: var(--parchment);
  padding: var(--section-padding);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-content h2 {
  margin-bottom: 24px;
}

.problem-content p {
  margin-bottom: 20px;
  color: var(--charcoal);
  opacity: 0.85;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem-stat-card {
  background: var(--charcoal);
  color: #fff;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.problem-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.problem-stat-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: bold;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
  min-width: 100px;
}

.problem-stat-text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* ---------- Solution Section ---------- */
.solution-section {
  background: var(--off-white);
  padding: var(--section-padding);
}

.solution-header {
  text-align: left;
  max-width: 880px;
  margin-bottom: 64px;
}

.solution-header h2 {
  margin-bottom: 20px;
  white-space: nowrap;
  font-size: clamp(26px, 3vw, 38px);
}

@media (max-width: 640px) {
  .solution-header h2 { white-space: normal; }
}

.solution-header p {
  font-size: 17px;
  color: rgba(27,31,42,0.75);
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone);
}

.solution-card {
  background: var(--off-white);
  padding: 48px 36px;
  transition: background var(--transition);
}

.solution-card:hover {
  background: var(--parchment);
}

.solution-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon svg {
  color: var(--amber);
}

.solution-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.solution-card p {
  font-size: 15px;
  color: rgba(27,31,42,0.7);
  line-height: 1.65;
}

/* ---------- Services Section ---------- */
.services-section {
  background: var(--charcoal);
  padding: var(--section-padding);
  color: #fff;
}

.services-header {
  margin-bottom: 64px;
}

.services-header h2 {
  color: #fff;
  margin-bottom: 16px;
}

.services-header p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 560px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--parchment);
  padding: 40px 36px 36px;
  border: 1px solid rgba(201,130,10,0.18);
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: #fff;
  border-color: rgba(201,130,10,0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-layer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-muted);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 22px;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.service-price {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(27,31,42,0.1);
}

.service-card p {
  font-size: 15px;
  color: rgba(27,31,42,0.72);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 32px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 12px;
  color: var(--amber);
}

/* ---------- Social Proof Section ---------- */
.proof-section {
  background: var(--parchment);
  padding: var(--section-padding);
}

.proof-header {
  margin-bottom: 64px;
}

.proof-header h2 {
  margin-bottom: 16px;
}

.proof-header p {
  color: rgba(27,31,42,0.65);
  font-size: 17px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.proof-card {
  background: var(--off-white);
  padding: 40px 36px;
  border-left: 4px solid var(--amber);
  transition: box-shadow var(--transition);
}

.proof-card:hover {
  box-shadow: 0 8px 32px rgba(27,31,42,0.12);
}

.proof-metric {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: bold;
  color: var(--amber);
  margin-bottom: 16px;
  line-height: 1;
}

.proof-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.proof-card p {
  font-size: 15px;
  color: rgba(27,31,42,0.7);
  line-height: 1.6;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--off-white);
  padding: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 16px;
  color: rgba(27,31,42,0.8);
  margin-bottom: 20px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--amber);
  margin-top: 8px;
}

.about-link:hover {
  gap: 12px;
  color: var(--amber-light);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(27,31,42,0.1);
}

.about-value {
  padding: 24px 0;
  border-bottom: 1px solid rgba(27,31,42,0.1);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
}

.value-label {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: bold;
  color: var(--amber);
  padding-top: 2px;
}

.value-text {
  font-size: 15px;
  color: rgba(27,31,42,0.75);
  line-height: 1.6;
}

/* ---------- Final CTA Section ---------- */
.cta-section {
  background: var(--charcoal);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201,130,10,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-divider {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

.cta-email {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}

.cta-email a {
  color: var(--amber);
}

/* ---------- Footer ---------- */
.footer {
  background: #12151F;
  color: rgba(255,255,255,0.5);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(201,130,10,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  background: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.footer-bottom a:hover {
  color: var(--amber);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--charcoal);
  padding: 160px 0 80px;
  color: #fff;
}

.page-hero .section-label {
  margin-bottom: 16px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
  max-width: 700px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.65;
}

/* ---------- Contact Form ---------- */
.contact-section {
  background: var(--off-white);
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  color: rgba(27,31,42,0.75);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  color: var(--amber);
}

.contact-detail-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: 14px;
  color: var(--slate);
}

.contact-detail-text a {
  font-size: 14px;
  color: var(--amber);
}

/* Form */
.contact-form {
  background: var(--off-white);
  border: 1px solid rgba(27,31,42,0.1);
  padding: 48px 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--amber);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid rgba(27,31,42,0.2);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(201,130,10,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--alert-red);
}

.form-group .error-msg {
  display: none;
  font-size: 12px;
  color: var(--alert-red);
  margin-top: 6px;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E7C8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 13px;
  color: var(--slate);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success .success-icon {
  width: 60px;
  height: 60px;
  background: var(--parchment);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-success .success-icon svg {
  color: var(--amber);
}

.form-success h3 {
  margin-bottom: 12px;
  color: var(--charcoal);
}

.form-success p {
  color: var(--slate);
  font-size: 15px;
}

/* ---------- About Page Body ---------- */
.about-story {
  background: var(--off-white);
  padding: var(--section-padding);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-story-content h2 {
  margin-bottom: 28px;
}

.about-story-content p {
  font-size: 16px;
  color: rgba(27,31,42,0.8);
  margin-bottom: 20px;
  line-height: 1.75;
}

.about-values-full {
  background: var(--parchment);
  padding: var(--section-padding);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.about-value-card {
  background: var(--off-white);
  padding: 36px 32px;
  border-top: 3px solid var(--amber);
}

.about-value-card h3 {
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.about-value-card p {
  font-size: 15px;
  color: rgba(27,31,42,0.7);
  line-height: 1.65;
}

/* ---------- Services Page ---------- */
.services-full {
  padding: 0;
}

/* Each layer gets its own background */
.service-layer-section {
  padding: 80px 0;
}
.service-layer-section:nth-child(1) { background: var(--off-white); }
.service-layer-section:nth-child(2) { background: var(--parchment); }
.service-layer-section:nth-child(3) { background: #EEF1F4; }

.service-full-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.service-full-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.service-full-card.reverse .service-full-content {
  order: 2;
}
.service-full-card.reverse .service-full-detail {
  order: 1;
}

.service-layer-badge {
  display: inline-block;
  background: transparent;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 4px;
}

.service-full-content h2 {
  margin-bottom: 16px;
}

.service-full-price {
  font-size: 15px;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 24px;
}

.service-full-content p {
  font-size: 16px;
  color: rgba(27,31,42,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-detail-box {
  background: var(--parchment);
  padding: 40px 36px;
  border-left: 4px solid var(--amber);
}

.service-detail-box h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}

.service-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(27,31,42,0.8);
  line-height: 1.5;
}

.service-detail-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ---------- Methodology Band ---------- */
.methodology-band {
  background: var(--charcoal);
  padding: 80px 0;
  color: #fff;
}

.methodology-band h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}

.methodology-band > .container > p {
  text-align: center;
  color: rgba(255,255,255,0.6);
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(201,130,10,0.15);
}

.method-step {
  background: #2E3347;
  padding: 32px 24px;
  text-align: center;
  transition: background var(--transition);
}

.method-step:hover {
  background: #38405A;
}

.method-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: bold;
  color: var(--amber-light);
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1;
}

.method-step h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.method-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .problem-grid,
  .about-grid,
  .about-story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-full-card,
  .service-full-card.reverse .service-full-content,
  .service-full-card.reverse .service-full-detail {
    grid-template-columns: 1fr;
    order: unset !important;
  }

  .methodology-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 72px 0; }

  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .solution-cards {
    grid-template-columns: 1fr;
    background: transparent;
    gap: 16px;
  }

  .solution-card {
    border: 1px solid rgba(27,31,42,0.1);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .methodology-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 38px;
  }

  .methodology-steps {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 130px 0 60px;
  }
}


/* ============================================================
   TELOS INTELLIGENCE — NEW HOMEPAGE DESIGN SYSTEM
   Classical / editorial vocabulary — two palettes (.tlx-forum / .tlx-codex)
   Scoped under .tlx — does not affect other pages
   ============================================================ */

/* ---------- Palette A — The Forum (light) ---------- */
.tlx-forum {
  --bg:           #EFE6D2;
  --bg-raised:    #F6EFDE;
  --bg-deep:      #1B1F2A;
  --ink:          #14171F;
  --ink-soft:     #2A2E38;
  --ink-mute:     #5A5447;
  --rule:         rgba(20,23,31,0.16);
  --rule-soft:    rgba(20,23,31,0.08);
  --accent:       #6B1F1F;
  --accent-deep:  #4F1313;
  --accent-soft:  #CF7171;
  --bronze:       #826A3C;
  --on-deep:      #E8DFC8;
  --on-deep-mute: rgba(232,223,200,0.62);
}

/* ---------- Palette B — The Codex (dark) ---------- */
.tlx-codex {
  --bg:           #0E121A;
  --bg-raised:    #161B26;
  --bg-deep:      #080B12;
  --ink:          #E8DFC8;
  --ink-soft:     #D4C9AA;
  --ink-mute:     rgba(232,223,200,0.58);
  --rule:         rgba(232,223,200,0.18);
  --rule-soft:    rgba(232,223,200,0.08);
  --accent:       #B8954B;
  --accent-deep:  #8E6E2E;
  --accent-soft:  #D1B26B;
  --bronze:       #8C9A7E;
  --on-deep:      #E8DFC8;
  --on-deep-mute: rgba(232,223,200,0.62);
}

/* ---------- Base reset (scoped) ---------- */
.tlx { all: initial; }
.tlx, .tlx *, .tlx *::before, .tlx *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.tlx {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  display: block;
  width: 100%;
  font-feature-settings: 'ss01', 'cv11';
}
.tlx img { max-width: 100%; height: auto; display: block; }
.tlx a  { color: inherit; text-decoration: none; }
.tlx ul { list-style: none; padding: 0; margin: 0; }
.tlx p  { margin: 0; }
.tlx h1, .tlx h2, .tlx h3, .tlx h4, .tlx h5 { margin: 0; font-weight: 400; }
.tlx button { font: inherit; cursor: pointer; }

/* ---------- Typography classes ---------- */
.tlx .serif { font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif; }
.tlx .mono  { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.tlx .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(56px, 6.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.tlx .display em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.tlx .h-section {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.tlx .h-section em { font-style: italic; color: var(--accent); }

.tlx .h-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.tlx .eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.tlx .eyebrow.muted { color: var(--ink-mute); }

.tlx .ordinal {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.tlx .ticker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.tlx .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}
.tlx .body {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.tlx .body-sm {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------- Container ---------- */
.tlx .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}
.tlx .container-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ---------- Buttons ---------- */
.tlx .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.tlx .btn-solid {
  background: var(--accent);
  color: #FAF6EB;
  border-color: var(--accent);
}
.tlx .btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.tlx .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.tlx .btn-ghost:hover { border-color: var(--ink); }

.tlx .btn-ghost-light {
  background: transparent;
  color: var(--on-deep);
  border-color: rgba(232,223,200,0.28);
}
.tlx .btn-ghost-light:hover { border-color: var(--on-deep); }

.tlx .btn-lg { padding: 18px 30px; font-size: 13px; }
.tlx .btn .arrow { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; }

/* ---------- Fluted column motif ---------- */
.tlx .fluted {
  display: inline-block;
  width: 100%;
  height: 28px;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent 14px
  );
}
.tlx .fluted-v {
  width: 18px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent 4px
  );
  background-size: 4px 100%;
}

/* Pediment cap */
.tlx .pediment {
  width: 100%;
  height: 8px;
  display: flex;
  align-items: center;
  gap: 0;
}
.tlx .pediment::before,
.tlx .pediment::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.tlx .pediment span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}

/* Hairline rule */
.tlx .rule { height: 1px; background: var(--rule); width: 100%; }
.tlx .rule-soft { height: 1px; background: var(--rule-soft); width: 100%; }

/* ---------- Navbar ---------- */
.tlx .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.tlx.tlx-codex .nav { background: var(--bg); }

.tlx .nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 56px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.tlx .nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tlx .nav-brand .mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tlx .nav-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.tlx.tlx-codex .nav-brand .mark img {
  /* logo.svg carries its own colours; the old PNG needed recolouring */
  filter: none;
}
.tlx .nav-brand .word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.15;
}
.tlx .nav-brand .word .small {
  font-family: 'Inter Tight', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-top: 1px;
}

.tlx .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.tlx .nav-links a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: all .15s ease;
}
.tlx .nav-links a.active,
.tlx .nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tlx .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Mobile nav (tlx scope) ---------- */
.tlx .mob-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 24px 56px 32px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.tlx .mob-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.tlx .mob-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tlx .mob-nav ul a {
  display: block;
  padding: 14px 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft);
  transition: color .15s;
}
.tlx .mob-nav ul a:hover { color: var(--ink); }
.tlx .mob-nav .mob-cta { margin-top: 24px; }

.tlx .mob-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.tlx .mob-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s ease;
}
.tlx .mob-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tlx .mob-hamburger.open span:nth-child(2) { opacity: 0; }
.tlx .mob-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (variants) ---------- */
.tlx .hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.tlx .hero-grid-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Hero v1 — editorial classic */
.tlx .hero {
  background: var(--bg) !important;
  color: var(--ink);
}
.tlx .hero-v1 .hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.tlx .hero-v1 .hero-eyebrow-row .rule { flex: 0 0 64px; }
.tlx .hero-v1 .display { max-width: 14ch; }
.tlx .hero-v1 .hero-sub {
  margin-top: 36px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tlx .hero-v1 .hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tlx .hero-v1 .hero-meta {
  position: absolute;
  right: 56px;
  bottom: 110px;
  text-align: right;
}
.tlx .hero-v1 .hero-meta .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 84px;
  line-height: 0.95;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
}
.tlx .hero-v1 .hero-meta .num-sub {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  max-width: 200px;
  margin-left: auto;
}

/* ---------- Stats band ---------- */
.tlx .stats {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: 56px 0;
  position: relative;
}
.tlx .stats .container { max-width: 1360px; }
.tlx .stats-intro {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tlx .stats-intro::before,
.tlx .stats-intro::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232,223,200,0.2);
}
.tlx .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tlx .stat {
  padding: 8px 40px;
  border-right: 1px solid rgba(232,223,200,0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tlx .stat:first-child { padding-left: 0; }
.tlx .stat:last-child { border-right: none; padding-right: 0; }
.tlx .stat .roman {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--accent-soft);
  letter-spacing: 0.06em;
}
.tlx .stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 76px;
  line-height: 0.95;
  font-weight: 500;
  color: var(--on-deep);
}
.tlx .stat .num em { color: var(--accent-soft); font-style: italic; font-weight: 500; }
.tlx .stat .label {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(232,223,200,0.68);
  max-width: 32ch;
}
.tlx .stats-single { padding: 72px 0; }
.tlx .stats-statement {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.25;
  color: var(--on-deep);
  max-width: 26em;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.tlx .stats-statement em { font-style: italic; color: var(--accent-soft); }

/* ---------- Section base ---------- */
.tlx .section {
  padding: 130px 0;
  position: relative;
}
.tlx .section-deep {
  background: var(--bg-deep);
  color: var(--on-deep);
}
.tlx .section-deep .h-section { color: var(--on-deep); }
.tlx .section-deep .body { color: rgba(232,223,200,0.72); }
.tlx .section-deep .eyebrow { color: var(--accent-soft); }

.tlx .section-raised { background: var(--bg-raised); }

.tlx .section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 72px;
  max-width: 760px;
}
.tlx .section-head .eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tlx .section-head .eyebrow-row .rule { flex: 0 0 48px; }

/* ---------- Problem section ---------- */
.tlx .problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: start;
}
.tlx .problem-essay .h-section { margin-bottom: 28px; }
.tlx .problem-essay p { margin-bottom: 18px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.tlx .problem-essay p strong { color: var(--ink); font-weight: 600; }
.tlx .problem-essay .essay-cta { margin-top: 36px; }

.tlx .problem-stats {
  border-top: 1px solid var(--rule);
}
.tlx .problem-stat {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.tlx .problem-stat .pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}
.tlx .problem-stat .copy {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tlx .problem-stat .copy .roman-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}
.tlx .problem-stat .copy .source {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}
.tlx .problem-essay p a,
.tlx .problem-stat .copy .source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tlx .problem-essay p a:hover,
.tlx .problem-stat .copy .source a:hover { color: var(--accent); }

/* ---------- Approach / Pillars ---------- */
.tlx .pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tlx .pillar {
  padding: 48px 36px 56px;
  border-right: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tlx .pillar:last-child { border-right: none; }
.tlx .pillar .pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}
.tlx .pillar .pillar-flute {
  width: 28px;
  height: 56px;
  background: repeating-linear-gradient(to right, var(--accent) 0, var(--accent) 1px, transparent 1px, transparent 4px);
  background-size: 4px 100%;
  opacity: 0.85;
}
.tlx .pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.tlx .pillar p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.tlx .services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.tlx .service-row {
  display: grid;
  grid-template-columns: 100px 1.1fr 1fr 220px;
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background .25s ease;
}
.tlx .service-row:hover {
  background: var(--bg-raised);
}
.tlx .service-row .layer-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-style: italic;
  color: var(--accent);
  line-height: 0.9;
  font-weight: 500;
}
.tlx .service-row .layer-num .roman {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-mute);
  display: block;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.tlx .service-row h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 8px;
}
.tlx .service-row .svc-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tlx .service-row .svc-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.tlx .service-row .svc-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tlx .service-row .svc-meta .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  color: var(--ink);
  font-weight: 500;
}
.tlx .service-row .svc-meta .term {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tlx .service-row .svc-meta .more {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tlx .service-row .svc-meta .more:hover { gap: 10px; }

/* ---------- Origin / credibility band ---------- */
.tlx .origin {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: 120px 0;
  position: relative;
}
.tlx .origin .container { max-width: 1240px; }
.tlx .origin-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: start;
}
.tlx .origin .eyebrow { color: var(--accent-soft); margin-bottom: 24px; display: block; }
.tlx .origin h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
  color: var(--on-deep);
}
.tlx .origin h2 em { font-style: italic; color: var(--accent-soft); }
.tlx .origin p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(232,223,200,0.72);
  margin-bottom: 22px;
}
.tlx .origin .pull {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(232,223,200,0.2);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--accent-soft);
}

/* ---------- About snippet ---------- */
.tlx .about-snippet {
  background: var(--bg);
  padding: 130px 0;
}
/* Same background as the services section above it: avoid doubled padding */
.tlx #services + .about-snippet { padding-top: 0; }
.tlx .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.tlx .about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.tlx .about-portrait .portrait-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--rule);
}
.tlx .about-portrait .portrait-bg svg { width: 60%; height: 80%; opacity: 0.18; }
.tlx .about-portrait .portrait-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(transparent, var(--bg) 70%);
}
.tlx .about-portrait .portrait-meta .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.tlx .about-portrait .portrait-meta .role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.tlx .about-portrait .portrait-meta .placeholder-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.tlx .about-intro .founder-credit {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.tlx .about-intro .founder-credit .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.tlx .about-intro .founder-credit .role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.tlx .about-content p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.tlx .about-content .about-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
}
.tlx .about-content .about-cta:hover { gap: 12px; }

/* ---------- Values ---------- */
.tlx .values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 56px;
}
.tlx .value {
  padding: 40px 28px 8px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tlx .value:last-child { border-right: none; padding-right: 0; }
@media (min-width: 769px) {
  .tlx .value + .value { padding-left: 28px; }
}
.tlx .value .v-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.tlx .value h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}
.tlx .value p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */
.tlx .final-cta {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tlx .final-cta .pediment {
  max-width: 480px;
  margin: 0 auto 40px;
}
.tlx .final-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 1.02;
  color: var(--on-deep);
  max-width: 18ch;
  margin: 0 auto;
}
.tlx .final-cta h2 em { font-style: italic; color: var(--accent-soft); }
.tlx .final-cta p {
  margin: 32px auto 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(232,223,200,0.7);
}
.tlx .final-cta .cta-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tlx .final-cta .email-row {
  margin-top: 36px;
  font-size: 14px;
  color: rgba(232,223,200,0.55);
}
.tlx .final-cta .email-row a {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(184,149,75,0.4);
  padding-bottom: 1px;
}

/* ---------- Footer ---------- */
.tlx .footer {
  background: var(--bg-deep);
  color: var(--on-deep-mute);
  padding: 72px 0 36px;
  border-top: 1px solid rgba(232,223,200,0.1);
}
.tlx .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.tlx .footer-brand .mark {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tlx .footer-brand .mark img {
  width: 100%; height: 100%; object-fit: contain;
  /* logo.svg carries its own colours; the old PNG needed recolouring */
  filter: none;
}
.tlx .footer-brand .word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--on-deep);
  margin-bottom: 12px;
}
.tlx .footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(232,223,200,0.55);
}
.tlx .footer-col h5 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,223,200,0.55);
  margin-bottom: 22px;
}
.tlx .footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.tlx .footer-col a {
  font-size: 14px;
  color: rgba(232,223,200,0.65);
  transition: color .15s ease;
}
.tlx .footer-col a:hover { color: var(--accent-soft); }
.tlx .footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(232,223,200,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(232,223,200,0.55);
}
.tlx .footer-bottom a { color: rgba(232,223,200,0.55); }
.tlx .footer-bottom a:hover { color: var(--accent-soft); }

/* ---------- Theme toggle ---------- */
.tlx .theme-toggle {
  appearance: none;
  background: transparent;
  border: none;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.tlx .theme-toggle .tt-track {
  width: 52px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: background .25s ease, border-color .25s ease;
}
.tlx .theme-toggle .tt-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), background .25s, color .25s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.tlx .theme-toggle .tt-track.on .tt-thumb {
  transform: translateX(26px);
}
.tlx .theme-toggle:hover .tt-track {
  border-color: var(--ink-mute);
}

/* ---------- Decorative ornaments ---------- */
.tlx .ornament {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
}
.tlx .ornament .dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.tlx .ornament .line { width: 80px; height: 1px; background: currentColor; opacity: 0.5; }
.tlx .ornament .diamond {
  width: 8px; height: 8px;
  background: currentColor;
  transform: rotate(45deg);
}

/* ---------- Scroll reveal (scoped) ---------- */
.tlx .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tlx .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.tlx .reveal-delay-1 { transition-delay: 0.1s; }
.tlx .reveal-delay-2 { transition-delay: 0.2s; }
.tlx .reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive (tlx scope) ---------- */
@media (max-width: 1024px) {
  .tlx .container,
  .tlx .container-wide { padding: 0 32px; }
  .tlx .nav-inner { padding: 0 32px; }

  .tlx .problem-grid { grid-template-columns: 1fr; gap: 56px; }
  .tlx .origin-grid { grid-template-columns: 1fr; gap: 56px; }
  .tlx .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .tlx .about-portrait { aspect-ratio: 16/9; }

  .tlx .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .tlx .nav-inner { padding: 0 24px; }
  .tlx .nav-links { display: none; }
  .tlx .nav-cta { display: none; }
  .tlx .mob-hamburger { display: flex; }

  .tlx .container,
  .tlx .container-wide { padding: 0 24px; }

  .tlx .mob-nav { padding: 24px; }

  .tlx .hero { padding: 56px 0 80px; }
  .tlx .hero-v1 .hero-meta { display: none; }
  .tlx .hero-v1 .display { font-size: clamp(44px, 10vw, 72px); }
  .tlx .hero-v1 .hero-actions { flex-direction: column; align-items: flex-start; }

  .tlx .stats-grid { grid-template-columns: 1fr; }
  .tlx .stat {
    border-right: none;
    border-bottom: 1px solid rgba(232,223,200,0.14);
    padding: 24px 0;
  }
  .tlx .stat:last-child { border-bottom: none; }

  .tlx .section { padding: 80px 0; }

  .tlx .pillars { grid-template-columns: 1fr; }
  .tlx .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .tlx .pillar:last-child { border-bottom: none; }

  .tlx .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .tlx .service-row .layer-num { font-size: 40px; }

  .tlx .values { grid-template-columns: 1fr 1fr; }
  .tlx .value { padding: 28px 16px 8px 0; }

  .tlx .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tlx .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .tlx .values { grid-template-columns: 1fr; }
  .tlx .value { border-right: none; border-bottom: 1px solid var(--rule); padding: 24px 0; }
  .tlx .value:last-child { border-bottom: none; }
  .tlx .footer-grid { grid-template-columns: 1fr; }
  .tlx .problem-stat { grid-template-columns: 100px 1fr; gap: 16px; }
  .tlx .problem-stat .pct { font-size: 40px; }
}

/* ============================================================
   INNER PAGE OVERRIDES
   Applied when about / services / contact / blog pages
   are wrapped in .tlx — brings them into the new design system
   ============================================================ */

/* Headings → Cormorant Garamond for all inner sections */
.tlx h1, .tlx h2, .tlx h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Page hero (dark charcoal → new parchment) */
.tlx .page-hero {
  background: var(--bg) !important;
  color: var(--ink) !important;
  padding: 130px 0 88px;
  border-bottom: 1px solid var(--rule);
}
.tlx .page-hero .section-label {
  color: var(--accent);
}
.tlx .page-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 16px 0 24px;
}
.tlx .page-hero p {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 620px;
  line-height: 1.75;
}

/* Small uppercase eyebrow labels */
.tlx .section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Primary button → oxblood */
.tlx .btn.btn-primary,
.tlx a.btn.btn-primary,
.tlx button.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--accent);
  color: var(--on-deep) !important;
  border: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tlx .btn.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* Outline button on dark backgrounds */
.tlx .btn.btn-outline-white,
.tlx a.btn.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: transparent;
  color: var(--on-deep) !important;
  border: 1px solid rgba(232,223,200,0.35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease;
}
.tlx .btn.btn-outline-white:hover { border-color: var(--on-deep); color: var(--on-deep); }

/* text-amber accent → use new token */
.tlx .text-amber { color: var(--accent) !important; }

/* ── About page ── */
.tlx .about-story {
  background: var(--bg-raised) !important;
  padding: 100px 0;
  color: var(--ink);
}
.tlx .about-story h2 {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}
.tlx .about-story p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 16px; }
.tlx .about-story strong { color: var(--ink); }

.tlx .about-values-full {
  background: var(--bg) !important;
  padding: 100px 0;
}
.tlx .about-values-full h2 {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 56px;
}
.tlx .about-value-card {
  background: var(--bg-raised) !important;
  border: 1px solid var(--rule-soft) !important;
  padding: 36px 32px !important;
}
.tlx .about-value-card h3 {
  font-size: 28px;
  font-weight: 500;
  color: var(--accent) !important;
  margin-bottom: 14px;
}
.tlx .about-value-card p { color: var(--ink-mute); line-height: 1.7; }

/* ── Services page ── */
.tlx .methodology-band {
  background: var(--bg-deep) !important;
  color: var(--on-deep);
  padding: 88px 0;
}
.tlx .methodology-band h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  color: var(--on-deep);
  margin-bottom: 14px;
}
.tlx .methodology-band > .container > p { color: var(--on-deep-mute); margin-bottom: 56px; }
.tlx .method-num {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 52px;
  font-weight: 400;
  color: var(--accent-soft) !important;
  opacity: 1;
  line-height: 1;
}
.tlx .method-step h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--on-deep);
  margin: 12px 0 8px;
}
.tlx .method-step p { font-size: 14px; color: var(--on-deep-mute); }

.tlx .service-layer-section {
  padding: 100px 0;
}
.tlx .service-layer-section:nth-child(odd)  { background: var(--bg) !important; }
.tlx .service-layer-section:nth-child(even) { background: var(--bg-raised) !important; }

.tlx .service-layer-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  margin-bottom: 16px;
}
.tlx .service-full-content h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.tlx .service-full-price { color: var(--ink-mute); font-size: 14px; margin-bottom: 20px; }
.tlx .service-full-content p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 14px; }

.tlx .service-detail-box {
  background: var(--bg-raised) !important;
  border: 1px solid var(--rule-soft) !important;
  padding: 36px 32px !important;
}
.tlx .service-detail-box h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}
.tlx .service-detail-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft) !important;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}
.tlx .service-detail-list li:last-child { border-bottom: none !important; }

/* ── CTA section (dark band) ── */
.tlx .cta-section {
  background: var(--bg-deep) !important;
  color: var(--on-deep);
  padding: 120px 0;
  text-align: center;
}
.tlx .cta-section h2 {
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 500;
  color: var(--on-deep);
  margin-bottom: 20px;
}
.tlx .cta-section > .container > p { color: var(--on-deep-mute); max-width: 540px; margin: 0 auto 40px; line-height: 1.75; }
.tlx .cta-email { color: var(--on-deep-mute); font-size: 14px; }
.tlx .cta-email a { color: var(--on-deep-mute); }
.tlx .cta-email a:hover { color: var(--on-deep); }

/* ── Contact page ── */
.tlx .contact-section {
  background: var(--bg) !important;
  padding: 100px 0;
}
.tlx .contact-info h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}
.tlx .contact-info p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 20px; }
.tlx .contact-detail-icon { color: var(--accent); }
.tlx .contact-detail strong { color: var(--ink); }
.tlx .contact-detail a, .tlx .contact-detail span { color: var(--ink-mute); }

.tlx .contact-form {
  background: var(--bg-raised) !important;
  border: 1px solid var(--rule-soft) !important;
  padding: 40px !important;
}
.tlx .contact-form label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.tlx .contact-form input,
.tlx .contact-form select,
.tlx .contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 15px;
}
.tlx .contact-form input:focus,
.tlx .contact-form select:focus,
.tlx .contact-form textarea:focus { border-color: var(--accent); outline: none; }
.tlx .contact-form .form-note { color: var(--ink-mute); }
.tlx .contact-form .required { color: var(--accent); }
.tlx .contact-form .error-msg { color: var(--accent); font-size: 12px; }
.tlx .form-success { background: var(--bg-raised); border: 1px solid var(--rule-soft); }
.tlx .form-success .success-icon { color: var(--accent); }

/* ── Blog page ── */
.tlx .blog-card {
  background: var(--bg-raised) !important;
  border-color: var(--rule-soft) !important;
}
.tlx .blog-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 8px 32px rgba(20,23,31,0.1) !important;
}
.tlx .blog-card h3 { color: var(--ink) !important; }
.tlx .blog-card p { color: var(--ink-mute) !important; }
.tlx .blog-tag {
  color: var(--accent) !important;
  background: rgba(107,31,31,0.08) !important;
}
.tlx .blog-date { color: var(--ink-mute) !important; }
.tlx .blog-read-more { color: var(--accent) !important; }
.tlx .blog-card:hover .blog-read-more { color: var(--accent-deep) !important; }
.tlx .blog-card-image { background: var(--bg-deep) !important; }
.tlx .blog-card-image-placeholder { color: var(--accent-soft) !important; }

.tlx .blog-empty { border-color: var(--rule) !important; }
.tlx .blog-empty h3 { color: var(--ink) !important; }
.tlx .blog-empty p { color: var(--ink-mute) !important; }
.tlx .blog-empty svg { color: var(--accent) !important; }

.tlx .social-pill {
  border-color: var(--rule) !important;
  color: var(--ink) !important;
}
.tlx .social-pill:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.tlx .blog-subscribe {
  background: var(--bg-deep) !important;
}
.tlx .blog-subscribe h2 { color: var(--on-deep) !important; }
.tlx .blog-subscribe p { color: var(--on-deep-mute) !important; }
.tlx .subscribe-form input[type="email"] {
  background: rgba(232,223,200,0.06) !important;
  border-color: rgba(232,223,200,0.15) !important;
  color: var(--on-deep) !important;
}
.tlx .subscribe-form input[type="email"]:focus { border-color: var(--accent) !important; }
.tlx .subscribe-form button { background: var(--accent) !important; }
.tlx .subscribe-form button:hover { background: var(--accent-deep) !important; }
.tlx .subscribe-note { color: var(--on-deep-mute) !important; }


/* ---------- 2026-10-11 fixes ---------- */
/* Dark theme: cream text on gold failed contrast (2.6:1); use dark ink. */
.tlx.tlx-codex .btn-solid { color: #0E121A; }
.tlx.tlx-codex .btn-solid:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #0E121A; }
/* Closed mobile menu must not be reachable by keyboard. */
.tlx .mob-nav { visibility: hidden; transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s; }
.tlx .mob-nav.open { visibility: visible; transition-delay: 0s; }
/* The desktop nav overflowed between 769px and ~1060px; use the menu button below 1100px. */
@media (max-width: 1100px) {
  .tlx .nav-links { display: none; }
  .tlx .nav-cta { display: none; }
  .tlx .mob-hamburger { display: flex; }
}
