/*
Theme Name: TSN Apex
Theme URI: https://tsncommunications.com
Description: TSN Communications' flagship theme. Editable homepage sections, per-section layout & alignment, one-click design Blueprints, hero effects, landing-page generator, and full color/typography controls.
Author: TSN Communications
Author URI: https://tsncommunications.com
Version: 5.1.7
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsn-apex
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --tsn-blue:       #0f62fe;
  --tsn-blue-dark:  #0043ce;
  --tsn-blue-light: #e8f0ff;

  --tsn-white:   #ffffff;
  --tsn-off:     #f7f8fc;
  --tsn-fog:     #eef0f7;
  --tsn-border:  #dde1ee;

  --tsn-ink:     #0a0a0a;
  --tsn-steel:   #2e2e2e;
  --tsn-mid:     #606060;

  --tsn-dark:        #001141;
  --tsn-dark-mid:    #c8d0dc;
  --tsn-dark-border: #1e2d5a;

  --tsn-nav-h: 80px;

  --fs-display: clamp(3.5rem, 9vw, 8rem);
  --fs-h2:      clamp(2.2rem, 4.5vw, 4.2rem);
  --fs-body:    1rem;
  --fs-sm:      0.85rem;
  --fs-xs:      0.72rem;
  --tsn-blue-rgb:   15,98,254;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  background: var(--tsn-white);
  color: var(--tsn-ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tsn-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--tsn-blue-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* =============================================
   UTILITY
   ============================================= */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: calc(var(--fs-xs) * var(--tsn-eyebrow-scale, 1)); font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tsn-blue); margin-bottom: 20px;
}
.section-tag::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--tsn-blue); flex-shrink: 0;
}
.section-tag.light       { color: #fff; }
.section-tag.light::before { background: #fff; }

.tsn-divider { display: none; }

.lead {
  font-size: 1.1rem; color: var(--tsn-mid);
  max-width: 520px; line-height: 1.8; font-weight: 400;
}
.lead.light { color: var(--tsn-dark-mid, #cbd6d2); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tsn-blue); color: #fff;
  padding: 16px 36px; font-family: inherit;
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s, transform 0.15s; text-decoration: none;
}
.btn-primary::after { content: '→'; font-size: 1rem; }
.btn-primary:hover  { background: var(--tsn-blue-dark); transform: translateY(-2px); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tsn-btn-secondary-bg, transparent);
  color: var(--tsn-btn-secondary, #ffffff);
  padding: 15px 36px; font-family: inherit;
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--tsn-btn-secondary, rgba(255,255,255,0.4));
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 0.2s, color 0.2s, background 0.2s; text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--tsn-blue);
  color: var(--tsn-blue);
  background: var(--tsn-blue-light, rgba(var(--tsn-blue-rgb),0.08));
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   NAV  — stays dark for contrast
   ============================================= */
#tsn-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--tsn-nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(var(--tsn-nav-bg-rgb,13,17,23),0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tsn-dark-border, var(--tsn-dark-border));
}
.tsn-logo {
  font-size: 1.1rem; font-weight: 900; color: var(--tsn-nav-text,#fff);
  letter-spacing: -0.02em; text-decoration: none; text-transform: uppercase;
}
.tsn-logo span { color: var(--tsn-blue); font-weight: 400; letter-spacing: 0.02em; }

.tsn-nav-links { display: flex; align-items: center; gap: 40px; }
.tsn-nav-links a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(var(--tsn-nav-text-rgb,255,255,255),0.5);
  text-decoration: none; transition: color 0.2s;
}
.tsn-nav-links a:hover { color: var(--tsn-nav-text,#fff); }
.tsn-nav-links .nav-cta {
  background: var(--tsn-blue); color: #fff !important;
  padding: 10px 24px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-weight: 700;
}
.tsn-nav-links .nav-cta:hover { background: var(--tsn-blue-dark); color: #fff !important; }

.tsn-hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.tsn-hamburger span { display: block; width: 28px; height: 2px; background: var(--tsn-nav-text,#fff); transition: all 0.3s; }
.tsn-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.tsn-hamburger.open span:nth-child(2) { opacity: 0; }
.tsn-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

.tsn-mobile-nav {
  display: none; position: fixed;
  top: var(--tsn-nav-h); left: 0; right: 0;
  background: var(--tsn-nav-bg,#0d1117); padding: 24px 48px;
  border-bottom: 1px solid var(--tsn-dark-border, var(--tsn-dark-border));
  z-index: 999; flex-direction: column;
}
.tsn-mobile-nav.open { display: flex; }
.tsn-mobile-nav a {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(var(--tsn-nav-text-rgb,255,255,255),0.72);
  padding: 14px 0; border-bottom: 1px solid var(--tsn-dark-border, var(--tsn-dark-border)); transition: color 0.2s;
}
.tsn-mobile-nav a:hover { color: var(--tsn-nav-text,#fff); }

.tsn-nav-dots {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 99;
}
.tsn-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,0.15); cursor: pointer; border: none; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.tsn-dot:hover  { background: var(--tsn-blue); transform: scale(1.4); }
.tsn-dot.active { background: var(--tsn-blue); transform: scale(1.4); }

/* =============================================
   HERO  — dark, full-bleed, single impact section
   ============================================= */
#tsn-home {
  min-height: 100vh; background: var(--tsn-dark, var(--tsn-dark));
  display: flex; flex-direction: column;
  padding-top: var(--tsn-nav-h);
  position: relative; overflow: hidden;
}
.tsn-hero-bg {
  position: absolute; top: -10%; right: -5%;
  width: 55%; height: 120%;
  background: linear-gradient(160deg, var(--tsn-blue) 0%, var(--tsn-blue-dark) 60%, transparent 100%);
  clip-path: polygon(25% 0%,100% 0%,100% 100%,0% 100%);
  opacity: 0.18; pointer-events: none;
}
.tsn-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px; pointer-events: none;
}
.tsn-hero-accent {
  position: absolute; left: 48px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--tsn-blue) 30%, var(--tsn-blue) 70%, transparent);
  opacity: 0.35;
}
.tsn-hero-content {
  position: relative; z-index: 2;
  padding: 80px 48px 60px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1400px; margin: 0 auto; width: 100%; flex: 1;
}
.tsn-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tsn-blue); margin-bottom: 28px;
}
.tsn-hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--tsn-blue); }
.tsn-hero-content h1 {
  font-size: var(--fs-display); font-weight: 900;
  line-height: 0.95; letter-spacing: -0.04em;
  color: #fff; margin-bottom: 36px;
}
.tsn-h1-accent  { color: var(--tsn-blue); display: block; }
.tsn-h1-outline { -webkit-text-stroke: 2px rgba(255,255,255,0.2); color: transparent; display: block; }
.tsn-hero-content > .tsn-hero-left > p {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  max-width: 440px; line-height: 1.8; margin-bottom: 44px; font-weight: 400;
}
.tsn-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.tsn-hero-right { display: flex; flex-direction: column; gap: 2px; }
.tsn-hero-stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--tsn-dark-border, var(--tsn-dark-border));
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: background 0.2s, border-color 0.2s;
}
.tsn-hero-stat-card:hover { background: rgba(var(--tsn-blue-rgb),0.08); border-color: var(--tsn-blue); }
.tsn-hero-stat-num { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.tsn-hero-stat-num span { color: var(--tsn-blue); }
.tsn-hero-stat-label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.75); text-align: right;
}
.tsn-ticker { background: var(--tsn-blue); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.tsn-ticker-inner { display: inline-flex; animation: ticker 30s linear infinite; }
.tsn-ticker-item {
  display: inline-flex; align-items: center; gap: 32px; padding: 0 32px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
}
.tsn-ticker-item::after { content: '✦'; color: rgba(255,255,255,0.4); font-size: 0.6rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================
   ABOUT  — white bg, dark readable text
   ============================================= */
#tsn-about { background: var(--tsn-white); color: var(--tsn-ink); padding: 120px 48px; }
.tsn-about-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center;
}
#tsn-about h2 { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); margin-bottom: 24px; }
#tsn-about .lead { color: var(--tsn-mid); }
.tsn-about-img {
  position: relative; aspect-ratio: 4/5; background: var(--tsn-fog); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}
.tsn-about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 0.4s; }
.tsn-about-img:hover img { filter: grayscale(0%); }
.tsn-about-img-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--tsn-blue); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 16px 24px;
}
.tsn-about-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--tsn-fog);
}
.tsn-values { display: flex; flex-direction: column; margin-top: 40px; }
.tsn-value-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--tsn-border);
  transition: padding-left 0.2s; cursor: default;
}
.tsn-value-item:first-child { border-top: 1px solid var(--tsn-border); }
.tsn-value-item:hover { padding-left: 8px; }
.tsn-value-icon {
  font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.1em;
  color: var(--tsn-blue); min-width: 36px; padding-top: 4px; text-transform: uppercase;
}
.tsn-value-item h4 { font-size: 1.05rem; font-weight: 800; color: var(--tsn-ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.tsn-value-item p   { font-size: 0.9rem; color: var(--tsn-mid); line-height: 1.65; font-weight: 400; }

/* =============================================
   SERVICES  — light fog bg
   ============================================= */
#tsn-services { background: var(--tsn-off); padding: 120px 48px; }
.tsn-services-inner { max-width: 1400px; margin: 0 auto; }
.tsn-services-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 72px;
}
.tsn-services-header h2 { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); }
#tsn-services .lead { color: var(--tsn-mid); }
.tsn-services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--tsn-border);
}
.tsn-service-card {
  background: var(--tsn-white); padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background 0.3s, box-shadow 0.3s;
  cursor: default; display: flex; flex-direction: column;
}
.tsn-service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--tsn-blue);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.tsn-service-card:hover::before { width: 100%; }
.tsn-service-card:hover { background: var(--tsn-blue-light); box-shadow: 0 8px 40px rgba(var(--tsn-blue-rgb),0.08); }
.tsn-service-num {
  font-size: 5rem; font-weight: 900; letter-spacing: -0.05em;
  color: rgba(0,0,0,0.05); line-height: 1; margin-bottom: 20px;
  display: block; transition: color 0.3s;
}
.tsn-service-card:hover .tsn-service-num { color: rgba(var(--tsn-blue-rgb),0.15); }
.tsn-service-title { font-size: 1.3rem; font-weight: 800; color: var(--tsn-ink); margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.2; }
.tsn-service-line  { display: none; }
.tsn-service-desc  { font-size: 0.9rem; color: var(--tsn-mid); line-height: 1.75; flex: 1; font-weight: 400; }
.tsn-service-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tsn-blue); transition: gap 0.2s;
}
.tsn-service-more::after { content: '→'; }
.tsn-service-card:hover .tsn-service-more { gap: 14px; }

/* =============================================
   PROCESS  — white bg
   ============================================= */
#tsn-process { background: var(--tsn-white); padding: 120px 48px; position: relative; overflow: hidden; }
#tsn-process::after {
  content: 'PROCESS'; position: absolute; right: -20px; top: 40px;
  font-size: clamp(6rem,15vw,14rem); font-weight: 900; letter-spacing: -0.05em;
  color: rgba(0,0,0,0.025); pointer-events: none; line-height: 1; text-transform: uppercase;
}
.tsn-process-inner { max-width: 1400px; margin: 0 auto; }
#tsn-process h2   { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); margin-bottom: 8px; }
#tsn-process .lead { color: var(--tsn-mid); margin-bottom: 80px; }
.tsn-process-trademark {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(0,0,0,0.2); margin-bottom: 72px;
  display: flex; align-items: center; gap: 16px;
}
.tsn-process-trademark::before, .tsn-process-trademark::after { content: ''; flex: 1; height: 1px; background: var(--tsn-border); }
.tsn-process-steps {
  display: grid; grid-template-columns: repeat(4,1fr); position: relative;
}
.tsn-process-steps::before {
  content: ''; position: absolute; top: 60px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tsn-blue) 20%, var(--tsn-blue) 80%, transparent);
  opacity: 0.2; pointer-events: none;
}
.tsn-process-step {
  padding: 48px 36px 40px; border-left: 1px solid var(--tsn-border);
  position: relative; transition: background 0.3s;
}
.tsn-process-step:first-child { border-left: none; }
.tsn-process-step:hover { background: var(--tsn-blue-light); }
.tsn-process-num {
  font-size: clamp(3.5rem,5vw,5rem); font-weight: 900; letter-spacing: -0.05em;
  color: rgba(0,0,0,0.06); line-height: 1; margin-bottom: 36px;
  display: block; transition: color 0.3s;
}
.tsn-process-step:hover .tsn-process-num { color: rgba(var(--tsn-blue-rgb),0.25); }
.tsn-process-icon {
  width: 44px; height: 44px; background: var(--tsn-blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  margin-bottom: 24px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: transform 0.2s;
}
.tsn-process-step:hover .tsn-process-icon { transform: scale(1.1); }
.tsn-process-title  { font-size: 1.5rem; font-weight: 800; color: var(--tsn-ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.tsn-process-subtitle {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tsn-blue); margin-bottom: 18px; display: block;
}
.tsn-process-desc { font-size: 0.9rem; color: var(--tsn-mid); line-height: 1.75; font-weight: 400; }
.tsn-process-connector {
  display: flex; align-items: center; gap: 24px;
  margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--tsn-border);
}
.tsn-process-connector span {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(0,0,0,0.25); white-space: nowrap;
}
.tsn-connector-line { flex: 1; height: 1px; background: var(--tsn-border); }

/* =============================================
   TEAM  — off-white bg
   ============================================= */
#tsn-team { background: var(--tsn-off); padding: 120px 48px; }
.tsn-team-inner { max-width: 1400px; margin: 0 auto; }
.tsn-team-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 72px; gap: 40px; }
#tsn-team h2   { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); }
#tsn-team .lead { color: var(--tsn-mid); margin-bottom: 0; }
.tsn-team-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--tsn-border); }
.tsn-team-card  { background: var(--tsn-white); cursor: default; position: relative; overflow: hidden; transition: background 0.2s; }
.tsn-team-card:hover { background: var(--tsn-fog); }
.tsn-team-photo { aspect-ratio: 1/1; overflow: hidden; position: relative; background: var(--tsn-fog); }
.tsn-team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(40%); transition: filter 0.4s, transform 0.5s cubic-bezier(0.16,1,0.3,1); display: block;
}
.tsn-team-card:hover .tsn-team-photo img { filter: grayscale(0%); transform: scale(1.05); }
.tsn-team-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--tsn-blue-rgb),0.45) 100%);
  opacity: 0; transition: opacity 0.4s; z-index: 1;
}
.tsn-team-card:hover .tsn-team-photo::before { opacity: 1; }
.tsn-team-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900; color: rgba(0,0,0,0.08); letter-spacing: -0.05em;
}
.tsn-team-info  { padding: 18px 22px; border-top: 2px solid transparent; transition: border-color 0.2s; }
.tsn-team-card:hover .tsn-team-info { border-top-color: var(--tsn-blue); }
.tsn-team-name  { font-size: 0.95rem; font-weight: 800; color: var(--tsn-ink); letter-spacing: -0.02em; margin-bottom: 4px; }
.tsn-team-role  { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tsn-blue); }

/* =============================================
   FAQ  — white bg, dark text
   ============================================= */
#tsn-faq { background: var(--tsn-white); padding: 120px 48px; }
.tsn-faq-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: start;
}
#tsn-faq h2   { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); margin-bottom: 20px; }
#tsn-faq .lead { color: var(--tsn-mid); }
#tsn-faq .btn-primary { margin-top: 40px; }
.tsn-faq-list   { display: flex; flex-direction: column; }
.tsn-faq-item   { border-bottom: 1px solid var(--tsn-border); cursor: pointer; }
.tsn-faq-item:first-child { border-top: 1px solid var(--tsn-border); }
.tsn-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 28px 0; transition: padding-left 0.2s;
}
.tsn-faq-item.open .tsn-faq-q { padding-left: 12px; }
.tsn-faq-q h4  { font-size: 1.05rem; font-weight: 700; color: var(--tsn-ink); letter-spacing: -0.01em; line-height: 1.3; }
.tsn-faq-item.open .tsn-faq-q h4 { color: var(--tsn-blue); }
.tsn-faq-toggle {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--tsn-fog);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 300; color: var(--tsn-ink);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transition: background 0.2s, color 0.2s; flex-shrink: 0; line-height: 1;
}
.tsn-faq-item.open .tsn-faq-toggle { background: var(--tsn-blue); color: #fff; }
.tsn-faq-a { display: none; padding: 0 0 24px; font-size: 0.95rem; color: var(--tsn-steel); line-height: 1.8; font-weight: 400; }
.tsn-faq-item.open .tsn-faq-a { display: block; }
.tsn-faq-item.open { border-left: 3px solid var(--tsn-blue); }

/* =============================================
   CONTACT  — off-white bg, readable
   ============================================= */
#tsn-contact { background: var(--tsn-off); padding: 120px 48px; position: relative; overflow: hidden; }
#tsn-contact::before {
  content: ''; position: absolute; bottom: -100px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tsn-blue-rgb),0.05) 0%, transparent 70%); pointer-events: none;
}
.tsn-contact-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
#tsn-contact h2   { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); margin-bottom: 24px; }
#tsn-contact .lead { color: var(--tsn-mid); margin-bottom: 52px; }
.tsn-contact-info { display: flex; flex-direction: column; }
.tsn-contact-item { padding: 24px 0; border-bottom: 1px solid var(--tsn-border); display: flex; align-items: flex-start; gap: 20px; }
.tsn-contact-item:first-child { border-top: 1px solid var(--tsn-border); }
.tsn-contact-item h5 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tsn-blue); min-width: 80px; padding-top: 2px; }
.tsn-contact-item p, .tsn-contact-item a { font-size: 0.95rem; color: var(--tsn-steel); line-height: 1.6; font-weight: 400; }
.tsn-contact-item a:hover { color: var(--tsn-blue); }
.tsn-contact-form  { display: flex; flex-direction: column; gap: 16px; }
.tsn-form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tsn-form-field    { display: flex; flex-direction: column; gap: 8px; }
.tsn-form-field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsn-mid); }
.tsn-form-field input,
.tsn-form-field textarea,
.tsn-form-field select {
  padding: 14px 18px; border: 1px solid var(--tsn-border);
  background: var(--tsn-white); color: var(--tsn-ink);
  font-family: inherit; font-size: 0.95rem; font-weight: 400;
  outline: none; transition: border-color 0.2s, background 0.2s; width: 100%;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.tsn-form-field input::placeholder, .tsn-form-field textarea::placeholder { color: rgba(0,0,0,0.25); }
.tsn-form-field input:focus, .tsn-form-field textarea:focus, .tsn-form-field select:focus { border-color: var(--tsn-blue); background: var(--tsn-blue-light); }
.tsn-form-field textarea { resize: vertical; min-height: 140px; }
.tsn-form-submit {
  align-self: flex-start; background: var(--tsn-blue); color: #fff;
  padding: 16px 40px; font-family: inherit;
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.tsn-form-submit::after { content: '→'; }
.tsn-form-submit:hover { background: var(--tsn-blue-dark); transform: translateY(-2px); }

/* =============================================
   FOOTER  — dark for contrast / closure
   ============================================= */
#tsn-footer { background: var(--tsn-dark, var(--tsn-dark)); padding: 72px 48px 36px; border-top: 1px solid var(--tsn-dark-border, var(--tsn-dark-border)); }
.tsn-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 64px; }
.tsn-footer-brand .tsn-logo { font-size: 1rem; margin-bottom: 16px; display: inline-block; }
.tsn-footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.3); line-height: 1.8; max-width: 260px; font-weight: 400; }
.tsn-footer-col h5 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tsn-blue); margin-bottom: 20px; }
.tsn-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.tsn-footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.35); font-weight: 400; transition: color 0.2s; }
.tsn-footer-col ul li a:hover { color: #fff; }
.tsn-footer-bottom { padding-top: 28px; border-top: 1px solid var(--tsn-dark-border, var(--tsn-dark-border)); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.tsn-footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.2); }
.tsn-footer-bottom a { color: rgba(255,255,255,0.2); transition: color 0.2s; }
.tsn-footer-bottom a:hover { color: rgba(255,255,255,0.6); }

.wp-block-search, .comment-form { display: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .tsn-hero-content    { grid-template-columns: 1fr; }
  .tsn-hero-right      { flex-direction: row; flex-wrap: wrap; }
  .tsn-hero-stat-card  { flex: 1 1 calc(50% - 1px); }
  .tsn-services-header { grid-template-columns: 1fr; gap: 20px; }
  .tsn-team-grid       { grid-template-columns: repeat(3,1fr); }
  .tsn-footer-top      { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  #tsn-nav            { padding: 0 24px; }
  .tsn-nav-links      { display: none; }
  .tsn-hamburger      { display: flex; }
  .tsn-nav-dots       { display: none; }
  #tsn-about, #tsn-contact { padding: 80px 24px; }
  .tsn-about-inner    { grid-template-columns: 1fr; gap: 60px; }
  .tsn-contact-inner  { grid-template-columns: 1fr; gap: 60px; }
  #tsn-services, #tsn-process, #tsn-team, #tsn-faq { padding: 80px 24px; }
  .tsn-services-grid  { grid-template-columns: repeat(2,1fr); }
  .tsn-process-steps  { grid-template-columns: repeat(2,1fr) !important; }
  .tsn-process-step   { border-left: none !important; border-top: 1px solid var(--tsn-border); padding: 36px 24px; }
  .tsn-faq-inner      { grid-template-columns: 1fr; gap: 48px; }
  #tsn-footer         { padding: 60px 24px 32px; }
  .tsn-team-header    { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .tsn-hero-content   { padding: 60px 24px 48px; }
  .tsn-services-grid  { grid-template-columns: 1fr; }
  .tsn-process-steps  { grid-template-columns: 1fr !important; }
  .tsn-process-step   { border-left: none !important; border-top: 1px solid var(--tsn-border); padding: 32px 20px; }
  .tsn-process-step:first-child { border-top: none; }
  .tsn-process-connector span { white-space: normal; text-align: center; }
  .tsn-team-grid      { grid-template-columns: repeat(2,1fr); }
  .tsn-form-row       { grid-template-columns: 1fr; }
  .tsn-footer-top     { grid-template-columns: 1fr; }
  .tsn-footer-bottom  { flex-direction: column; text-align: center; }
  .tsn-hero-stat-card { flex: 1 1 100%; }
}

/* =============================================
   BLOG — Homepage preview strip
   ============================================= */
#tsn-blog { background: var(--tsn-off); padding: 120px 48px; }
.tsn-blog-inner { max-width: 1400px; margin: 0 auto; }
.tsn-blog-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}
.tsn-blog-header h2 { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); }
.tsn-blog-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
#tsn-blog .lead { color: var(--tsn-mid); margin-bottom: 0; }

.tsn-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--tsn-border);
}

.tsn-blog-card {
    background: var(--tsn-white);
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}
.tsn-blog-card:hover { background: var(--tsn-blue-light); }

.tsn-blog-thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--tsn-fog);
    position: relative;
}
.tsn-blog-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
    display: block;
}
.tsn-blog-card:hover .tsn-blog-thumb img { transform: scale(1.04); }

.tsn-blog-thumb-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--tsn-fog);
}
.tsn-blog-thumb-placeholder span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tsn-blue);
}

.tsn-blog-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 3px solid transparent;
    transition: border-color 0.2s;
}
.tsn-blog-card:hover .tsn-blog-body { border-top-color: var(--tsn-blue); }

.tsn-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.tsn-blog-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tsn-blue);
    background: var(--tsn-blue-light);
    padding: 3px 10px;
    border-radius: 2px;
}
.tsn-blog-date {
    font-size: 0.78rem;
    color: var(--tsn-mid);
    font-weight: 500;
}

.tsn-blog-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}
.tsn-blog-body h3 a {
    color: var(--tsn-ink);
    text-decoration: none;
    transition: color 0.2s;
}
.tsn-blog-body h3 a:hover { color: var(--tsn-blue); }

.tsn-blog-body p {
    font-size: 0.9rem;
    color: var(--tsn-mid);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.tsn-blog-read-more {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tsn-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    margin-top: auto;
}
.tsn-blog-card:hover .tsn-blog-read-more { gap: 12px; }

/* =============================================
   BLOG ARCHIVE PAGE (archive.php / home.php)
   ============================================= */
.tsn-archive-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--tsn-nav-h) + 60px) 48px 100px;
}
.tsn-archive-header {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--tsn-border);
}
.tsn-archive-header h1 { font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); color: var(--tsn-ink); margin-bottom: 12px; }
.tsn-archive-header p  { font-size: 1.05rem; color: var(--tsn-mid); }

.tsn-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--tsn-border);
    margin-bottom: 60px;
}

/* Pagination */
.tsn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tsn-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tsn-ink);
    border: 1px solid var(--tsn-border);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.tsn-pagination .page-numbers:hover,
.tsn-pagination .page-numbers.current {
    background: var(--tsn-blue);
    color: #fff;
    border-color: var(--tsn-blue);
}

/* =============================================
   SINGLE POST PAGE (single.php)
   ============================================= */
.tsn-single-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--tsn-nav-h) + 60px) 48px 100px;
}
.tsn-single-header { margin-bottom: 48px; }
.tsn-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tsn-single-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--tsn-ink);
    margin-bottom: 24px;
    line-height: 1.1;
}
.tsn-single-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 48px;
    border-radius: 2px;
}
.tsn-single-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Post content typography */
.tsn-post-content { color: var(--tsn-steel); line-height: 1.85; font-size: 1.05rem; }
.tsn-post-content h2 { font-size: 1.8rem; color: var(--tsn-ink); margin: 2em 0 0.75em; }
.tsn-post-content h3 { font-size: 1.4rem; color: var(--tsn-ink); margin: 1.75em 0 0.6em; }
.tsn-post-content p  { margin-bottom: 1.5em; }
.tsn-post-content ul,
.tsn-post-content ol { margin: 0 0 1.5em 1.5em; }
.tsn-post-content li { margin-bottom: 0.5em; }
.tsn-post-content a  { color: var(--tsn-blue); text-decoration: underline; }
.tsn-post-content blockquote {
    border-left: 4px solid var(--tsn-blue);
    margin: 2em 0;
    padding: 16px 24px;
    background: var(--tsn-blue-light);
    font-style: italic;
    color: var(--tsn-steel);
}
.tsn-post-content img { max-width: 100%; height: auto; border-radius: 2px; margin: 1.5em 0; }

.tsn-post-footer {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--tsn-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.tsn-post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tsn-post-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tsn-blue);
    background: var(--tsn-blue-light);
    padding: 4px 12px;
    border-radius: 2px;
    text-decoration: none;
}
.tsn-post-tag:hover { background: var(--tsn-blue); color: #fff; }

/* Post navigation (prev/next) */
.tsn-post-nav {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--tsn-border);
}
.tsn-post-nav-item {
    background: var(--tsn-white);
    padding: 28px 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s;
}
.tsn-post-nav-item:hover { background: var(--tsn-blue-light); }
.tsn-post-nav-item.tsn-post-next { text-align: right; }
.tsn-post-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tsn-blue);
}
.tsn-post-nav-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tsn-ink);
    line-height: 1.3;
}

/* =============================================
   RESPONSIVE — Blog additions
   ============================================= */
@media (max-width: 900px) {
    #tsn-blog { padding: 80px 24px; }
    .tsn-blog-header { grid-template-columns: 1fr; gap: 24px; }
    .tsn-archive-wrap, .tsn-single-wrap { padding: calc(var(--tsn-nav-h) + 40px) 24px 80px; }
    .tsn-post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .tsn-blog-grid, .tsn-archive-grid { grid-template-columns: 1fr; }
    .tsn-single-header h1 { font-size: 2rem; }
}

/* =============================================
   CLIENT LOGOS STRIP
   ============================================= */
#tsn-logos {
  background: var(--tsn-off);
  padding: 40px 0;
  border-top: 1px solid var(--tsn-border);
  border-bottom: 1px solid var(--tsn-border);
  overflow: hidden;
}
.tsn-logos-inner { max-width: 1400px; margin: 0 auto; }
.tsn-logos-tag {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tsn-mid);
  margin-bottom: 20px;
}
.tsn-logos-track { overflow: hidden; position: relative; }
/* Fade edges */
.tsn-logos-track::before,
.tsn-logos-track::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.tsn-logos-track::before { left: 0;  background: linear-gradient(to right, var(--tsn-off), transparent); }
.tsn-logos-track::after  { right: 0; background: linear-gradient(to left, var(--tsn-off), transparent);  }

.tsn-logos-inner-scroll {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: tsn-logos-scroll 30s linear infinite;
  width: max-content;
}
.tsn-logos-inner-scroll:hover { animation-play-state: paused; }
@keyframes tsn-logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tsn-logo-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.tsn-logo-item img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s;
  display: block;
}
.tsn-logo-item:hover img { filter: grayscale(0%) opacity(1); }

/* =============================================
   TESTIMONIALS
   ============================================= */
#tsn-testimonials {
  background: var(--tsn-dark);
  padding: 120px 48px;
}
.tsn-testimonials-inner { max-width: 1400px; margin: 0 auto; }
.tsn-testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}
.tsn-testimonials-header .section-tag { color: var(--tsn-sky); }
.tsn-testimonials-header .section-tag::before { background: var(--tsn-sky); }
#tsn-testimonials h2 { color: var(--tsn-hero-fg); font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1)); margin-bottom: 16px; }
#tsn-testimonials .lead { color: rgba(var(--tsn-hero-fg-rgb),0.6); margin: 0 auto; text-align: center; }

.tsn-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--tsn-dark-border);
}
.tsn-testimonial-card {
  background: rgba(255,255,255,0.04);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  transition: background 0.2s;
  cursor: default;
  position: relative;
}
.tsn-testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; left: 36px;
  font-size: 5rem;
  line-height: 1;
  color: var(--tsn-blue);
  opacity: 0.25;
  font-family: Georgia, serif;
}
.tsn-testimonial-card:hover { background: rgba(var(--tsn-blue-rgb),0.07); }

.tsn-testimonial-quote {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  font-style: italic;
  font-weight: 400;
  padding-top: 24px;
}
.tsn-testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tsn-testimonial-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--tsn-blue-rgb),0.4);
  flex-shrink: 0;
}
.tsn-testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tsn-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.tsn-testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.tsn-testimonial-title {
  font-size: 0.75rem;
  color: var(--tsn-blue);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  #tsn-testimonials { padding: 80px 24px; }
  .tsn-testimonials-grid { grid-template-columns: 1fr; }
  #tsn-logos { padding: 32px 0; }
}
@media (max-width: 640px) {
  .tsn-testimonials-grid { grid-template-columns: 1fr; }
}

/* Offset anchored sections so the fixed header doesn't cover their tops */
section[id^="tsn-"] { scroll-margin-top: var(--tsn-nav-h); }

/* =============================================
   CASE STUDIES
   ============================================= */
#tsn-case-studies {
  background: var(--tsn-off);
  padding: 120px 48px;
}
.tsn-cs-inner { max-width: 1200px; margin: 0 auto; }

.tsn-cs-header {
  text-align: center;
  margin-bottom: 64px;
}
.tsn-cs-header .section-tag { color: var(--tsn-blue); }
#tsn-case-studies h2 {
  font-size: calc(var(--fs-h2) * var(--tsn-h2-scale, 1));
  margin-bottom: 16px;
  color: var(--tsn-ink);
}
#tsn-case-studies .lead {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--tsn-mid);
}

.tsn-cs-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin-bottom: 48px;
  overflow: hidden;
}
.tsn-cs-card:last-child { margin-bottom: 0; }

.tsn-cs-hero {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: var(--tsn-border);
}

.tsn-cs-banner {
  background: var(--tsn-blue);
  color: #fff;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tsn-cs-banner-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.tsn-cs-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 40px;
}

.tsn-cs-main { display: flex; flex-direction: column; gap: 32px; }

.tsn-cs-block { position: relative; }
.tsn-cs-block-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tsn-blue);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tsn-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tsn-cs-icon {
  font-size: 1.1rem;
}
.tsn-cs-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tsn-steel);
  margin: 0 0 10px;
}
.tsn-cs-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.tsn-cs-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tsn-steel);
}
.tsn-cs-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 8px;
  background: var(--tsn-blue);
  border-radius: 50%;
}

.tsn-cs-quotes {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid var(--tsn-border);
  padding-left: 32px;
}
.tsn-cs-quote {
  position: relative;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}
.tsn-cs-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--tsn-blue);
  font-weight: 700;
  margin-bottom: -10px;
}
.tsn-cs-quote p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tsn-steel);
  margin: 0 0 12px;
}
.tsn-cs-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--tsn-mid);
  font-weight: 500;
}

@media (max-width: 900px) {
  #tsn-case-studies { padding: 80px 24px; }
  .tsn-cs-body { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .tsn-cs-quotes { border-left: none; border-top: 1px solid var(--tsn-border); padding-left: 0; padding-top: 24px; }
  .tsn-cs-hero { height: 200px; }
  .tsn-cs-banner { padding: 14px 24px; font-size: 1rem; }
}

/* Case Study Download Button */
.tsn-cs-download {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--tsn-border);
}
.tsn-cs-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--tsn-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.tsn-cs-download-btn:hover {
  background: var(--tsn-blue-dark, var(--tsn-blue-dark));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--tsn-blue-rgb),0.25);
  color: #fff !important;
}
.tsn-cs-download-icon { font-size: 1.1rem; }
.tsn-cs-download-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.tsn-cs-download-btn:hover .tsn-cs-download-arrow {
  transform: translateX(4px);
}

/* =============================================
   LANDING PAGES (Google Ads campaign pages)
   ============================================= */
.tsn-lp-body {
  margin: 0;
  background: var(--tsn-white, #fff);
  color: var(--tsn-steel, #2e2e2e);
  font-family: var(--tsn-font-body, 'Inter', sans-serif);
}
.tsn-lp * { box-sizing: border-box; }
.tsn-lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.tsn-lp-container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header — logo only */
.tsn-lp-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--tsn-border, var(--tsn-border));
  background: #fff;
}
.tsn-lp-header .tsn-lp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tsn-lp-logo { display: flex; align-items: center; text-decoration: none; }
.tsn-lp-logo img { height: 36px; width: auto; display: block; }
.tsn-lp-logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--tsn-ink, #0a0a0a);
  letter-spacing: -0.02em;
}
.tsn-lp-header-phone {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tsn-ink, #0a0a0a);
  text-decoration: none;
  transition: color 0.15s;
}
.tsn-lp-header-phone:hover { color: var(--tsn-blue, var(--tsn-blue)); }

/* Hero */
.tsn-lp-hero {
  position: relative;
  padding: 90px 0 80px;
  background: var(--tsn-dark, var(--tsn-dark));
  color: var(--tsn-hero-fg, #fff);
  overflow: hidden;
}
.tsn-lp-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, rgba(var(--tsn-blue-rgb),0.15) 100%),
    radial-gradient(circle at 80% 30%, rgba(var(--tsn-blue-rgb),0.2) 0%, transparent 60%);
  pointer-events: none;
}
.tsn-lp-hero > .tsn-lp-container { position: relative; z-index: 1; text-align: center; }
.tsn-lp-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tsn-blue, var(--tsn-blue));
  background: rgba(var(--tsn-blue-rgb),0.1);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.tsn-lp-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--tsn-hero-fg, #fff);
}
.tsn-lp-subhead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: rgba(var(--tsn-hero-fg-rgb, 255,255,255), 0.8);
  margin: 0 auto 36px;
  max-width: 720px;
}
.tsn-lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--tsn-blue, var(--tsn-blue));
  color: var(--tsn-btn-fg, #fff);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(var(--tsn-blue-rgb),0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}
.tsn-lp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--tsn-blue-rgb),0.45);
  color: var(--tsn-btn-fg, #fff);
}
.tsn-lp-arrow { display: inline-block; transition: transform 0.15s; }
.tsn-lp-cta-btn:hover .tsn-lp-arrow { transform: translateX(4px); }

/* Trust strip */
.tsn-lp-trust {
  padding: 44px 0;
  background: var(--tsn-off, var(--tsn-off));
  border-bottom: 1px solid var(--tsn-border, var(--tsn-border));
}
.tsn-lp-trust-intro {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tsn-mid, #666);
  margin: 0 0 24px;
}
.tsn-lp-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.tsn-lp-logo-item img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s;
}
.tsn-lp-logo-item:hover img { filter: grayscale(0%) opacity(1); }

/* Value props */
.tsn-lp-value {
  padding: 80px 0;
  background: #fff;
}
.tsn-lp-value-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: var(--tsn-ink, #0a0a0a);
}
.tsn-lp-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.tsn-lp-value-item {
  padding: 28px;
  background: var(--tsn-off, var(--tsn-off));
  border-left: 4px solid var(--tsn-blue, var(--tsn-blue));
  border-radius: 2px;
}
.tsn-lp-value-num {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--tsn-blue, var(--tsn-blue));
  opacity: 0.85;
  margin-bottom: 12px;
}
.tsn-lp-value-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tsn-steel, #2e2e2e);
  font-weight: 500;
}

/* Testimonial */
.tsn-lp-testimonial {
  padding: 80px 0;
  background: var(--tsn-off, var(--tsn-off));
  text-align: center;
}
.tsn-lp-quote-mark {
  font-size: 5rem;
  line-height: 0.6;
  color: var(--tsn-blue, var(--tsn-blue));
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: 12px;
  font-weight: 900;
}
.tsn-lp-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--tsn-ink, #0a0a0a);
  font-weight: 500;
  font-style: italic;
  margin: 0 auto 32px;
  max-width: 720px;
}
.tsn-lp-quote-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tsn-lp-quote-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tsn-blue, var(--tsn-blue));
}
.tsn-lp-quote-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--tsn-ink, #0a0a0a);
  text-align: left;
}
.tsn-lp-quote-title {
  font-size: 0.85rem;
  color: var(--tsn-blue, var(--tsn-blue));
  font-weight: 500;
  text-align: left;
}

/* Form section */
.tsn-lp-form-section {
  padding: 80px 0 100px;
  background: #fff;
  border-top: 1px solid var(--tsn-border, var(--tsn-border));
}
.tsn-lp-form-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--tsn-ink, #0a0a0a);
  text-align: center;
}
.tsn-lp-form-sub {
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tsn-mid, #666);
  margin: 0 0 40px;
}
.tsn-lp-form { display: flex; flex-direction: column; gap: 20px; }
.tsn-lp-field { display: flex; flex-direction: column; gap: 6px; }
.tsn-lp-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tsn-ink, #0a0a0a);
}
.tsn-lp-optional {
  color: var(--tsn-mid, #999);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.tsn-lp-field input,
.tsn-lp-field select {
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--tsn-border, var(--tsn-border));
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  color: var(--tsn-ink, #0a0a0a);
  transition: border-color 0.15s;
}
.tsn-lp-field input:focus,
.tsn-lp-field select:focus {
  outline: none;
  border-color: var(--tsn-blue, var(--tsn-blue));
}
.tsn-lp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--tsn-blue, var(--tsn-blue));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(var(--tsn-blue-rgb),0.25);
  transition: transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
}
.tsn-lp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--tsn-blue-rgb),0.4);
}
.tsn-lp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.tsn-lp-submit-arrow { display: inline-block; transition: transform 0.15s; }
.tsn-lp-submit-btn:hover .tsn-lp-submit-arrow { transform: translateX(4px); }
.tsn-lp-form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--tsn-mid, #666);
  margin: 8px 0 0;
}

/* Success state */
.tsn-lp-form-success {
  text-align: center;
  padding: 40px 20px;
}
.tsn-lp-success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--tsn-blue, var(--tsn-blue));
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 24px;
}
.tsn-lp-form-success h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--tsn-ink, #0a0a0a);
}
.tsn-lp-success-msg {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tsn-steel, #2e2e2e);
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
.tsn-lp-footer {
  padding: 40px 0;
  background: var(--tsn-off, var(--tsn-off));
  border-top: 1px solid var(--tsn-border, var(--tsn-border));
}
.tsn-lp-footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--tsn-steel, #2e2e2e);
}
.tsn-lp-footer-legal {
  text-align: center;
  font-size: 0.85rem;
  color: var(--tsn-mid, #666);
}

/* Responsive */
@media (max-width: 720px) {
  .tsn-lp-hero { padding: 60px 0 50px; }
  .tsn-lp-container { padding: 0 20px; }
  .tsn-lp-value { padding: 60px 0; }
  .tsn-lp-testimonial { padding: 60px 0; }
  .tsn-lp-form-section { padding: 60px 0 80px; }
  .tsn-lp-logos { gap: 24px; }
  .tsn-lp-footer-contact { flex-direction: column; gap: 8px; }
  .tsn-lp-header .tsn-lp-container { justify-content: center; }
  .tsn-lp-header-phone { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   TSN APEX v2.7.6 — alignment + design knobs
   ═══════════════════════════════════════════════════════════════ */

/* Per-section alignment (heading + subtext + buttons) */
.tsn-al-center { text-align: center; }
.tsn-al-center .lead { margin-left: auto; margin-right: auto; }
.tsn-al-center .section-tag::before { display: none; }
.tsn-al-center .tsn-hero-left { margin-left: auto; margin-right: auto; }
.tsn-al-center .tsn-hero-btns { justify-content: center; }
.tsn-al-left { text-align: left; }
.tsn-al-left .lead { margin-left: 0; margin-right: auto; }
.tsn-al-left .tsn-hero-btns { justify-content: flex-start; }
.tsn-al-right { text-align: right; }
.tsn-al-right .lead { margin-left: auto; margin-right: 0; }
.tsn-al-right .tsn-hero-btns { justify-content: flex-end; }

/* Site-wide default alignment for pages & posts */
body.tsn-palign-center .tsn-post-content,
body.tsn-palign-center .tsn-post-content * { text-align: center; }
body.tsn-palign-left .tsn-post-content,
body.tsn-palign-left .tsn-post-content * { text-align: left; }
body.tsn-palign-right .tsn-post-content,
body.tsn-palign-right .tsn-post-content * { text-align: right; }

/* Corner radius knob */
.btn-primary, .btn-outline, .tsn-form-submit, .tsn-cs-download-btn { border-radius: var(--tsn-btn-radius, var(--tsn-radius, 4px)) !important; }
.tsn-service-card, .tsn-hero-stat-card, .tsn-cs-card, .tsn-value-item,
.tsn-contact-form input, .tsn-contact-form textarea, .tsn-contact-form select { border-radius: var(--tsn-radius, 4px) !important; }

/* Button shape knob (overrides radius on buttons only) */
body.tsn-btn-rounded { --tsn-btn-radius: 12px; }
body.tsn-btn-pill    { --tsn-btn-radius: 999px; }

/* Density knob — vertical breathing room (front-page sections, hero excluded) */
body.tsn-density-compact  section[id^="tsn-"]:not(#tsn-home) { padding-top: 60px  !important; padding-bottom: 60px  !important; }
body.tsn-density-spacious section[id^="tsn-"]:not(#tsn-home) { padding-top: 132px !important; padding-bottom: 132px !important; }
@media (max-width: 768px) {
  body.tsn-density-compact  section[id^="tsn-"]:not(#tsn-home) { padding-top: 40px !important; padding-bottom: 40px !important; }
  body.tsn-density-spacious section[id^="tsn-"]:not(#tsn-home) { padding-top: 84px !important; padding-bottom: 84px !important; }
}


/* ═══ Adaptive hero foreground (light vs dark hero background) — v2.5.0 ═══ */
.tsn-hero-content h1 { color: var(--tsn-hero-fg); }
.tsn-h1-outline { -webkit-text-stroke: 2px rgba(var(--tsn-hero-fg-rgb),0.22); color: transparent; }
.tsn-hero-content > .tsn-hero-left > p { color: rgba(var(--tsn-hero-fg-rgb),0.82); }
.tsn-hero-stat-card { background: rgba(var(--tsn-hero-fg-rgb),0.04); border-color: rgba(var(--tsn-hero-fg-rgb),0.12); }
.tsn-hero-stat-num { color: var(--tsn-hero-fg); }
.tsn-hero-stat-label { color: rgba(var(--tsn-hero-fg-rgb),0.75); }
#tsn-footer .tsn-logo { color: var(--tsn-hero-fg); }
.btn-primary, .btn-primary:hover { color: var(--tsn-btn-fg); }
.tsn-hero-btns .btn-outline { color: var(--tsn-hero-fg); border-color: rgba(var(--tsn-hero-fg-rgb),0.4); }
.tsn-ticker-item, .tsn-ticker-item::after { color: var(--tsn-btn-fg); }

/* ═══ Adaptive footer foreground (footer bg follows hero bg) — v2.5.1 ═══ */
.tsn-footer-brand p { color: rgba(var(--tsn-hero-fg-rgb),0.5); }
.tsn-footer-col ul li a { color: rgba(var(--tsn-hero-fg-rgb),0.62); }
.tsn-footer-col ul li a:hover { color: var(--tsn-hero-fg); }
.tsn-footer-bottom p, .tsn-footer-bottom a { color: rgba(var(--tsn-hero-fg-rgb),0.5); }
.tsn-footer-bottom a:hover { color: var(--tsn-hero-fg); }

/* ═══ Colored dividers (v2.6.0) ═══ */
.tsn-divider { width: 100%; display: block; line-height: 0; }
.tsn-divider-line { height: var(--tsn-dh,4px); background: var(--tsn-dc,#0f766e); }
.tsn-divider-gradient { height: var(--tsn-dh,4px); background: linear-gradient(90deg, transparent, var(--tsn-dc,#0f766e), transparent); }
.tsn-divider-dots { height: var(--tsn-dh,8px); background-image: radial-gradient(circle, var(--tsn-dc,#0f766e) 30%, transparent 32%); background-size: calc(var(--tsn-dh,8px) * 1.8) 100%; background-repeat: repeat-x; background-position: center; }
.tsn-divider-wave { height: calc(var(--tsn-dh,8px) * 2); background: var(--tsn-dc,#0f766e); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Cpath d='M0 8 Q10 0 20 8 T40 8 V16 H0 Z'/%3E%3C/svg%3E") repeat-x center / 40px 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Cpath d='M0 8 Q10 0 20 8 T40 8 V16 H0 Z'/%3E%3C/svg%3E") repeat-x center / 40px 100%; }

/* ═══ Hero keyword effects + glow (v2.7.0) ═══ */
#tsn-home { position: relative; overflow: hidden; }
.tsn-hero-glow { position: absolute; top: 6%; left: 50%; width: min(92%, 1000px); height: 72%; transform: translateX(-50%); background: radial-gradient(ellipse at center, var(--tsn-glow,#7c3aed) 0%, transparent 62%); opacity: .40; filter: blur(72px); pointer-events: none; z-index: 0; }
.tsn-hero-content { position: relative; z-index: 1; }
.tsn-fx-gradient .tsn-h1-accent { background: linear-gradient(120deg, var(--tsn-blue,#7c3aed) 0%, var(--tsn-accent-sheen,#c9b3f2) 50%, var(--tsn-blue,#7c3aed) 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; animation: tsn-shimmer 3s ease-in-out infinite !important; }
@keyframes tsn-shimmer { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.tsn-fx-highlight .tsn-h1-accent { background: var(--tsn-blue); color: var(--tsn-btn-fg); padding: 0 .18em; border-radius: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tsn-fx-underline .tsn-h1-accent { color: var(--tsn-blue); background: linear-gradient(var(--tsn-blue), var(--tsn-blue)) no-repeat left 90% / 100% .12em; padding-bottom: .04em; }


/* ═══ Responsive: new layout features (v5.0.0) ═══ */
@media (max-width: 900px) {
  .tsn-divider-wave { height: calc(var(--tsn-dh,8px) * 1.4); }
  .tsn-hero-glow { width: 118%; height: 58%; filter: blur(52px); opacity: .34; }
}
@media (max-width: 768px) {
  /* Per-section spacing: keep compact/spacious sane on phones */
  body.tsn-density-compact  section[id^="tsn-"]:not(#tsn-home) { padding-top: 40px !important; padding-bottom: 40px !important; }
  body.tsn-density-spacious section[id^="tsn-"]:not(#tsn-home) { padding-top: 84px !important; padding-bottom: 84px !important; }
  /* Alignment: never let right-align cramp text on small screens */
  .tsn-al-right .lead, .tsn-al-left .lead { margin-left: 0; margin-right: 0; }
  .tsn-al-center .tsn-hero-btns, .tsn-al-right .tsn-hero-btns { justify-content: center; }
  /* Hero effects stay legible */
  .tsn-fx-highlight .tsn-h1-accent { padding: 0 .12em; }
  /* Mobile menu uses its own colors (never inherits hero) */
  .tsn-mobile-nav { padding: 20px 24px; }
  .tsn-mobile-nav a { font-size: 0.95rem; letter-spacing: .06em; }
}
@media (max-width: 480px) {
  .tsn-hero-glow { filter: blur(40px); opacity: .30; }
  .tsn-divider-dots { background-size: calc(var(--tsn-dh,8px) * 1.5) 100%; }
}


/* Third headline line: solid instead of outlined */
body.tsn-line3-solid .tsn-h1-outline { -webkit-text-stroke: 0 !important; color: var(--tsn-hero-fg) !important; }
