/* =========================================================
   TRINEXA CONSULTING — Master Stylesheet
   Brand: Strategy | Technology | Business
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand palette (sampled from logo) */
  --trinexa-blue:        #1E4A9C;
  --trinexa-blue-deep:   #163A7E;
  --trinexa-blue-light:  #2A5DB8;
  --navy:                #1B2A41;
  --navy-soft:           #2C3E5C;
  --cream:               #F5F2EC;
  --cream-deep:          #ECE7DC;
  --ink:                 #0E1622;
  --line:                #D8D2C4;
  --muted:               #6B7280;
  --white:               #FFFFFF;
  --signal:              #C2410C; /* rare accent — used like a warning light on a dashboard */

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-wordmark:'Montserrat', sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.83rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.75rem, 2rem + 3.5vw, 4.75rem);
  --step-5:  clamp(3.5rem, 2.5rem + 5vw, 6.5rem);

  /* Spacing */
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(3rem, 5.5vw, 5rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
  margin: 0;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--trinexa-blue);
  font-weight: 500;
}
.tag-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  max-width: 1320px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
  font-size: 1.25rem;
}
.nav-brand svg { width: 42px; height: 42px; flex-shrink: 0; }
.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav-brand .brand-text .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.nav-brand .brand-text .brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--trinexa-blue);
  font-family: var(--font-mono);
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--trinexa-blue);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--trinexa-blue); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--trinexa-blue); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 0.85rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--trinexa-blue); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--trinexa-blue); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(30, 74, 156, 0.4); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 7. Hero (Home) ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--trinexa-blue);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--trinexa-blue);
  position: relative;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.1em;
  width: 100%; height: 2px;
  background: var(--trinexa-blue);
  opacity: 0.3;
}
.hero-lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--navy-soft);
  max-width: 32ch;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero stat sidebar */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--navy);
  line-height: 1;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Hero background detail — triangulated mesh, echoing the logo */
.hero-bg {
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
}

/* Ticker — "brands we've worked with" without trademarks */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--cream-deep);
  padding-block: 1.4rem;
  overflow: hidden;
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
}
.ticker-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  width: max-content;
}
.ticker-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy-soft);
  letter-spacing: -0.01em;
}
.ticker-track span::before {
  content: '◆';
  color: var(--trinexa-blue);
  margin-right: 4rem;
  font-size: 0.6em;
  vertical-align: middle;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-head .meta { display: flex; flex-direction: column; gap: 0.5rem; }
.section-head h2 { font-size: var(--step-3); }

/* ---------- 9. Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.35s var(--ease);
  cursor: default;
}
.service-card:hover { background: var(--cream-deep); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.8rem;
  display: block;
}
.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--navy-soft);
  line-height: 1.65;
  margin: 0;
}
.service-card .tags {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.service-card .tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy-soft);
  border-radius: 2px;
}
.service-card:hover .tags span { background: var(--white); }

/* ---------- 10. Coverage panel ---------- */
.coverage {
  background: var(--navy);
  color: var(--cream);
  padding-block: var(--section-y);
}
.coverage h2 { color: var(--cream); }
.coverage .eyebrow { color: var(--trinexa-blue-light); }
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}
.coverage-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.coverage-list li {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.coverage-list li .what { color: var(--cream); }
.coverage-list li .where {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(245,242,236,0.6);
  letter-spacing: 0.08em;
}
.coverage-vis {
  position: relative;
  min-height: 0;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coverage-vis svg { width: 100%; height: auto; }

/* ---------- 11. Approach (steps) ---------- */
.approach-list { display: flex; flex-direction: column; gap: 0; }
.approach-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.approach-row:last-child { border-bottom: 1px solid var(--line); }
.approach-row .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--trinexa-blue);
  letter-spacing: 0.15em;
}
.approach-row h3 { font-size: 1.5rem; }
.approach-row p { color: var(--navy-soft); margin: 0; }

/* ---------- 12. CTA block ---------- */
.cta-block {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 2px;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(30,74,156,0.45), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(42,93,184,0.3), transparent 50%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 {
  color: var(--cream);
  max-width: 24ch;
  font-size: var(--step-3);
}
.cta-block .cta-row {
  display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.cta-block .btn-primary { background: var(--cream); color: var(--navy); }
.cta-block .btn-primary:hover { background: var(--white); }
.cta-block .btn-ghost { border-color: var(--cream); color: var(--cream); }
.cta-block .btn-ghost:hover { background: var(--cream); color: var(--navy); }

/* ---------- 13. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a {
  font-size: 0.9rem;
  color: rgba(245,242,236,0.85);
  transition: color 0.2s var(--ease);
}
.footer-grid a:hover { color: var(--trinexa-blue-light); }
.footer-brand { max-width: 32ch; }
.footer .nav-brand .brand-name { color: var(--cream); }
.footer .nav-brand .brand-sub { color: var(--trinexa-blue-light, #2A5DB8); }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(245,242,236,0.7);
  margin-top: 1rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(245,242,236,0.5);
  letter-spacing: 0.06em;
}

/* Watermark triangle (logo echo) on dark sections */
.tri-watermark {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

/* ---------- 14. Page header (subpages) ---------- */
.page-head {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-head .breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.page-head .breadcrumbs a { color: var(--trinexa-blue); }
.page-head h1 {
  font-size: var(--step-4);
  max-width: 18ch;
}
.page-head .lede {
  font-size: var(--step-1);
  color: var(--navy-soft);
  max-width: 50ch;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ---------- 15. About — Founder section ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.founder-portrait {
  background: var(--cream-deep);
  aspect-ratio: 4/5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder-portrait .initials {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--trinexa-blue);
  opacity: 0.5;
}
.founder-portrait .meta {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--navy);
}
.founder-content h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.founder-content p { color: var(--navy-soft); margin-bottom: 1.2rem; max-width: 62ch; }
.founder-pillars {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.founder-pillars li {
  padding: 1.5rem 1rem 0 0;
  border-right: 1px solid var(--line);
}
.founder-pillars li:last-child { border-right: 0; }
.founder-pillars .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.3rem;
}
.founder-pillars .lab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 16. Insights cards ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--navy);
  padding-top: 1.5rem;
  cursor: default;
  transition: border-color 0.25s var(--ease);
}
.insight-card:hover { border-top-color: var(--trinexa-blue); }
.insight-card .meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.insight-card .meta .cat { color: var(--trinexa-blue); }
.insight-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.insight-card p {
  font-size: 0.92rem;
  color: var(--navy-soft);
  margin: 0 0 1.2rem;
}
.insight-card .read {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-top: auto;
}

/* ---------- 17. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-info dd {
  margin: 0 0 1.8rem;
  color: var(--navy);
  font-size: 1.05rem;
}
.contact-info dd a { color: var(--trinexa-blue); }
form.contact-form { display: grid; gap: 1.5rem; }
form.contact-form .field { display: flex; flex-direction: column; gap: 0.5rem; }
form.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  border-bottom-color: var(--trinexa-blue);
}
form.contact-form textarea { min-height: 110px; resize: vertical; }
form.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
form.contact-form button {
  margin-top: 1rem;
  justify-self: start;
}

/* ---------- 18. Industries page ---------- */
.industry-block {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.industry-block:last-of-type { border-bottom: 1px solid var(--line); }
.industry-block .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--trinexa-blue);
  margin-bottom: 1rem;
  display: block;
}
.industry-block h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.industry-block .summary { color: var(--navy-soft); font-size: 1.1rem; max-width: 28ch; }
.industry-block .details { display: grid; gap: 1.2rem; }
.industry-block .details h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.industry-block .details p { color: var(--navy-soft); font-size: 0.95rem; margin: 0; }

/* ---------- 19. Animation on load ---------- */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease) forwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
.fade-up.d5 { animation-delay: 0.7s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .section-head,
  .founder-grid,
  .contact-grid,
  .coverage-grid,
  .industry-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid,
  .insights-grid { grid-template-columns: 1fr; }
  .approach-row { grid-template-columns: 60px 1fr; }
  .approach-row p { grid-column: 1 / -1; }
  .hero-stats { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; flex-direction: row; flex-wrap: wrap; gap: 2rem 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .team-pillars { grid-template-columns: 1fr !important; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    padding: 0.5rem;
  }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--navy); display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 2rem var(--pad-x);
    border-bottom: 1px solid var(--line);
    gap: 1.5rem;
  }
  form.contact-form .row-2 { grid-template-columns: 1fr; }
  .founder-pillars { grid-template-columns: 1fr; }
  .founder-pillars li { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* ---------- 21. Print styles (for documents generated from site later) ---------- */
@media print {
  .nav, .footer, .cta-block { display: none; }
  body { background: white; color: black; }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../assets/trinexa-logo.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    opacity: 0.04;
    z-index: -1;
  }
}

/* ==========================================================
   v3 ADDITIONS (May 25 2026)
   Hero visual, coverage metrics, footer newsletter, socials
   ========================================================== */

/* Hero right-side visual */
.hero-visual {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  position: relative;
}
.hero-visual svg { width: 100%; height: auto; }

/* Hero stats horizontal layout (now below the headline) */
.hero-stats-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  padding-left: 0;
  border-left: 0;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}
.hero-stats-row .hero-stat { min-width: 130px; }

/* Coverage metrics row (new visual anchor) */
.coverage-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 3rem 0 2rem;
}
.coverage-metric {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.coverage-metric:last-child { border-right: 0; padding-right: 0; }
.coverage-metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.02em;
}
.coverage-metric-num .sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--trinexa-blue-light);
}
.coverage-metric-lab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.55);
  margin-top: 0.8rem;
  line-height: 1.5;
}

/* Footer newsletter band */
.footer-newsletter {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-newsletter h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--cream);
  margin: 0.5rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.footer-newsletter p {
  color: rgba(245,242,236,0.7);
  margin: 0;
  font-size: 0.95rem;
}
.footer-newsletter-cta {
  justify-self: end;
}

/* Follow us social icons */
.follow-us { margin-top: 2rem; }
.social-icons {
  display: flex;
  gap: 0.6rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(245,242,236,0.2);
  border-radius: 50%;
  color: rgba(245,242,236,0.7);
  transition: all 0.25s var(--ease);
}
.social-icons a:hover {
  background: var(--trinexa-blue);
  border-color: var(--trinexa-blue);
  color: var(--cream);
  transform: translateY(-2px);
}

/* Contact "Let's Connect" — Deloitte-inspired pattern */
.lets-connect-block {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.lets-connect-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.lets-connect-block p {
  color: var(--navy-soft);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
  line-height: 1.5;
}
.lets-connect-block .social-icons a {
  border-color: var(--line);
  color: var(--navy-soft);
}
.lets-connect-block .social-icons a:hover {
  background: var(--trinexa-blue);
  border-color: var(--trinexa-blue);
  color: var(--cream);
}

/* Responsive overrides */
@media (max-width: 960px) {
  .hero-visual { max-width: 100%; margin: 2rem auto 0; }
  .coverage-metrics { grid-template-columns: repeat(2, 1fr); }
  .coverage-metric:nth-child(2) { border-right: 0; }
  .coverage-metric { padding-right: 1rem; }
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-newsletter-cta { justify-self: start; }
}
@media (max-width: 600px) {
  .coverage-metrics { grid-template-columns: 1fr; }
  .coverage-metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 0; }
  .coverage-metric:last-child { border-bottom: 0; }
}


/* ==========================================================
   v6 ADDITIONS — Tagline, lede emphasis, mobile QA
   ========================================================== */

/* Hero tagline (two-line, italic accent emphasis) */
.hero-tagline {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  max-width: 22ch;
}
.hero-tagline .tagline-line {
  display: block;
}
.hero-tagline .accent {
  font-style: italic;
  color: var(--trinexa-blue);
  position: relative;
}
.hero-tagline .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.08em;
  width: 100%; height: 2px;
  background: var(--trinexa-blue);
  opacity: 0.18;
}

/* Lede emphasis — spotlight the closing sentence */
.hero-lede strong {
  color: var(--navy);
  font-weight: 500;
  background: linear-gradient(to bottom, transparent 60%, rgba(30, 74, 156, 0.08) 60%);
}

/* Defensive: animation fallback if JS or animations fail */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .ticker-track { animation: none; }
}

/* ===== MOBILE FIRST RESPONSIVE ENHANCEMENTS ===== */

/* Tighten container padding on small phones */
@media (max-width: 480px) {
  :root {
    --pad-x: 1.1rem;
    --section-y: 3.5rem;
  }
  .hero-tagline { font-size: clamp(1.7rem, 7.5vw, 2.2rem); line-height: 1.2; }
  .hero-lede { font-size: 1rem; }
  .hero-stats-row { gap: 1.5rem 2rem; }
  .hero-stat .num { font-size: 2.2rem; }
  .hero-stat .label { font-size: 0.62rem; }

  h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  .nav-inner { padding: 0.85rem var(--pad-x); }
  .nav-brand { font-size: 0.85rem; }
  .nav-brand svg { width: 22px; height: 22px; }
  .nav-cta { font-size: 0.78rem; padding: 0.5rem 0.9rem; }

  .btn { padding: 0.85rem 1.3rem; font-size: 0.85rem; }

  .section-head { gap: 1.5rem; margin-bottom: 2.5rem; }

  .coverage-list li {
    padding: 0.9rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .coverage-list li .where { font-size: 0.7rem; }

  /* Forms: full-width on mobile, font-size 16px to prevent iOS zoom */
  form.contact-form .row-2 { grid-template-columns: 1fr; gap: 1.2rem; }
  form.contact-form input,
  form.contact-form textarea,
  form.contact-form select { font-size: 16px; }

  /* Footer compaction */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid { gap: 2.2rem; }
  .footer-newsletter { padding: 1.8rem 0 2rem; margin-bottom: 2rem; }
  .footer-newsletter h3 { font-size: 1.3rem; }

  /* CTA block padding */
  .cta-block { padding: 2.2rem 1.5rem; }
  .cta-block h2 { font-size: 1.7rem; }

  /* Ticker — slower on mobile */
  .ticker-track { animation-duration: 30s; }
  .ticker-track span { font-size: 1.1rem; }
  .ticker-track span::before { margin-right: 2rem; }

  /* Page heads */
  .page-head { padding: 2.5rem 0 1.5rem; }
  .page-head h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .page-head .lede { font-size: 1rem; }
}

/* iOS-specific: nav blur compatibility */
@supports (-webkit-touch-callout: none) {
  .nav { -webkit-backdrop-filter: blur(14px) saturate(180%); }
}

/* ==========================================================
   v7 ADDITIONS — Visual richness layer
   Custom SVG illustrations, narrative blocks, triptych
   ========================================================== */

/* Narrative block: text + SVG illustration paired */
.narrative-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
}
.narrative-block.reverse {
  grid-template-columns: 1fr 1fr;
}
.narrative-block.reverse .editorial-illustration { order: -1; }

/* Editorial SVG illustration container — frame + subtle wash */
.editorial-illustration {
  position: relative;
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--cream) 100%);
  border: 1px solid var(--line);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.editorial-illustration::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border-top: 2px solid var(--trinexa-blue);
  border-left: 2px solid var(--trinexa-blue);
  opacity: 0.35;
  pointer-events: none;
}
.editorial-illustration::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 30px;
  border-bottom: 2px solid var(--trinexa-blue);
  border-right: 2px solid var(--trinexa-blue);
  opacity: 0.35;
  pointer-events: none;
}
.editorial-illustration:hover {
  box-shadow: 0 12px 40px rgba(30, 74, 156, 0.08);
}

/* Visual breath triptych — three illustrated panels */
.visual-breath {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--cream);
}
.image-triptych {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 1.5rem;
}
.image-triptych .triptych-panel {
  position: relative;
  background: linear-gradient(135deg, var(--cream-deep) 0%, #ECE6D6 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
}
.image-triptych .triptych-panel:nth-child(2) {
  aspect-ratio: 3/5;
  align-self: center;
  background: linear-gradient(135deg, #1B2A41 0%, #163A7E 100%);
}
.image-triptych .triptych-panel svg {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
}
.image-triptych .triptych-panel:hover {
  transform: translateY(-4px);
}
.triptych-caption {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(245, 242, 236, 0.85);
  padding: 0.4rem 0.7rem;
  border-radius: 1px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-triptych .triptych-panel:nth-child(2) .triptych-caption {
  color: var(--cream);
  background: rgba(27, 42, 65, 0.7);
}
.triptych-corner {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 24px; height: 24px;
  border-top: 1px solid var(--trinexa-blue);
  border-right: 1px solid var(--trinexa-blue);
  opacity: 0.5;
}
.image-triptych .triptych-panel:nth-child(2) .triptych-corner {
  border-color: rgba(245, 242, 236, 0.5);
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: stack on tablet and below */
@media (max-width: 960px) {
  .narrative-block,
  .narrative-block.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
  }
  .narrative-block.reverse .editorial-illustration { order: 0; }
  .image-triptych { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .image-triptych .triptych-panel:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 16/8;
  }
}
@media (max-width: 600px) {
  .image-triptych { grid-template-columns: 1fr; }
  .image-triptych .triptych-panel,
  .image-triptych .triptych-panel:nth-child(2),
  .image-triptych .triptych-panel:nth-child(3) {
    aspect-ratio: 4/3;
  }
  .editorial-illustration { padding: 1rem; }
}


/* ===== Brand logo (faceted N mark + TRINEXA wordmark) ===== */
.nav-brand .brand-mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 10px rgba(79, 141, 255, 0.30));
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.nav-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav-brand .brand-text .brand-name { font-family: 'Montserrat', sans-serif; }
.footer .nav-brand .brand-mark { height: 46px; }
@media (max-width: 720px) {
  .nav-brand .brand-mark { height: 30px; }
}

/* ===== Header brand: center wordmark + tagline ===== */
.nav-brand .brand-text {
  align-items: center;
  text-align: center;
  gap: 4px;
  line-height: 1.05;
}
.nav-brand .brand-text .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: #5b6575;
  text-transform: none;
  white-space: nowrap;
}
.footer .nav-brand .brand-text .brand-sub { color: var(--cream); opacity: 0.85; }
@media (max-width: 720px) {
  .nav-brand .brand-text .brand-sub { font-size: 0.48rem; letter-spacing: 0.1em; }
}
