/* Tenantvein — tnv.css
   Palette: Midnight Navy #0E1C2F | Brass #B8924A | Warm Stone #EEE8DC
   Fonts: Playfair Display (display) | DM Sans (body) | JetBrains Mono (numbers)
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand palette */
  --tnv-navy:           #0E1C2F;
  --tnv-navy-alt:       #152438;
  --tnv-brass:          #B8924A;
  --tnv-brass-dark:     #8A6630;
  --tnv-brass-light:    #C9A668;
  --tnv-stone:          #EEE8DC;
  --tnv-stone-alt:      #F7F4EF;

  /* Foreground tokens */
  --tnv-fg-dark-primary:   #EEE8DC;
  --tnv-fg-dark-secondary: #9BA8A0;
  --tnv-fg-dark-muted:     #6B7C74;
  --tnv-fg-light-primary:  #0E1C2F;
  --tnv-fg-light-secondary:#4A5568;

  /* Status */
  --tnv-success:    #4A7C59;
  --tnv-alert:      #C0603A;
  --tnv-divider:    #D4C9B4;

  /* Section backgrounds */
  --tnv-bg-dark:      #0E1C2F;
  --tnv-bg-dark-alt:  #152438;
  --tnv-bg-light:     #EEE8DC;
  --tnv-bg-light-alt: #F7F4EF;
  --tnv-bg-white:     #FFFFFF;
  --tnv-bg-card:      #F7F4EF;

  /* Typography scale */
  --tnv-h1-size:      3.5rem;
  --tnv-h1-lh:        4.2rem;
  --tnv-h2-size:      2.25rem;
  --tnv-h2-lh:        2.9rem;
  --tnv-h3-size:      1.5rem;
  --tnv-h3-lh:        2rem;
  --tnv-h4-size:      1.125rem;
  --tnv-h4-lh:        1.6rem;
  --tnv-body-size:    1rem;
  --tnv-body-lh:      1.65rem;
  --tnv-small-size:   0.875rem;
  --tnv-small-lh:     1.5rem;
  --tnv-mono-size:    0.875rem;
  --tnv-mono-lh:      1.6rem;
  --tnv-eyebrow-size: 0.7rem;

  /* Spacing */
  --tnv-section-pad:    96px;
  --tnv-section-pad-sm: 64px;
  --tnv-card-pad:       40px;
  --tnv-gap:            32px;
  --tnv-container:      1200px;
  --tnv-container-wide: 1400px;

  /* Misc */
  --tnv-radius:         4px;
  --tnv-radius-sm:      2px;
  --tnv-shadow:         0 2px 12px rgba(14,28,47,0.10);
  --tnv-shadow-md:      0 4px 24px rgba(14,28,47,0.14);
  --tnv-nav-height:     72px;
  --tnv-transition:     0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--tnv-body-size);
  line-height: var(--tnv-body-lh);
  color: var(--tnv-fg-light-primary);
  background: var(--tnv-bg-light);
  overflow-x: hidden;
}

body.tnv-page--light-top {
  background: var(--tnv-bg-light-alt);
}

body:has(.tnv-login-page) {
  background: var(--tnv-bg-dark);
}

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

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

ul, ol { list-style: none; }

button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--tnv-h1-size);
  line-height: var(--tnv-h1-lh);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--tnv-h2-size);
  line-height: var(--tnv-h2-lh);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--tnv-h3-size);
  line-height: var(--tnv-h3-lh);
  letter-spacing: 0;
}

h4 {
  font-size: var(--tnv-h4-size);
  line-height: var(--tnv-h4-lh);
  letter-spacing: 0.01em;
}

p {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--tnv-body-size);
  line-height: var(--tnv-body-lh);
}

small, .tnv-small {
  font-size: var(--tnv-small-size);
  line-height: var(--tnv-small-lh);
}

.tnv-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: var(--tnv-mono-size);
  line-height: var(--tnv-mono-lh);
  letter-spacing: -0.01em;
}

.tnv-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--tnv-eyebrow-size);
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Eyebrow context-aware colors */
.tnv-section--dark .tnv-eyebrow,
.tnv-hero .tnv-eyebrow,
.tnv-cta-band .tnv-eyebrow,
.tnv-footer .tnv-eyebrow { color: var(--tnv-brass-light); }

.tnv-section--light .tnv-eyebrow,
.tnv-section--light-alt .tnv-eyebrow,
.tnv-section--white .tnv-eyebrow { color: var(--tnv-brass-dark); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.tnv-container {
  width: 100%;
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.tnv-container--wide {
  max-width: var(--tnv-container-wide);
}

.tnv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tnv-gap); }
.tnv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tnv-gap); }
.tnv-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tnv-gap); }
.tnv-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tnv-gap); }
.tnv-grid-2x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tnv-gap); }

.tnv-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnv-text-center { text-align: center; }

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.tnv-section--dark {
  background: var(--tnv-bg-dark);
  color: var(--tnv-fg-dark-primary);
}

.tnv-section--dark-alt {
  background: var(--tnv-bg-dark-alt);
  color: var(--tnv-fg-dark-primary);
}

.tnv-section--light {
  background: var(--tnv-bg-light);
  color: var(--tnv-fg-light-primary);
}

.tnv-section--light-alt {
  background: var(--tnv-bg-light-alt);
  color: var(--tnv-fg-light-primary);
}

.tnv-section--white {
  background: var(--tnv-bg-white);
  color: var(--tnv-fg-light-primary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.tnv-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--tnv-nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(238,232,220,0.08);
  transition: background var(--tnv-transition), border-color var(--tnv-transition), box-shadow var(--tnv-transition);
}

/* Dark hero default: nav transparent on top */
.tnv-nav__inner {
  max-width: var(--tnv-container);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Scrolled state */
.tnv-nav--scrolled {
  background: var(--tnv-bg-dark);
  border-bottom-color: rgba(238,232,220,0.12);
  box-shadow: 0 2px 16px rgba(14,28,47,0.18);
}

/* Light-top pages force solid nav always */
body.tnv-page--light-top .tnv-nav {
  background: var(--tnv-bg-dark);
  border-bottom-color: rgba(238,232,220,0.12);
}

/* Logo */
.tnv-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tnv-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 200px;
}

.tnv-nav__logo svg {
  height: 32px;
  width: auto;
}

/* Nav links */
.tnv-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.tnv-nav__link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tnv-fg-dark-primary);
  padding: 6px 12px;
  border-radius: var(--tnv-radius);
  white-space: nowrap;
  transition: color var(--tnv-transition), background var(--tnv-transition);
  letter-spacing: 0;
}

.tnv-nav__link:hover { color: var(--tnv-brass-light); }

/* Nav actions */
.tnv-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tnv-nav__signin {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tnv-fg-dark-secondary);
  padding: 6px 12px;
  transition: color var(--tnv-transition);
}

.tnv-nav__signin:hover { color: var(--tnv-fg-dark-primary); }

/* Dropdown */
.tnv-nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.tnv-nav__dropdown-toggle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tnv-fg-dark-primary);
  padding: 6px 12px;
  border-radius: var(--tnv-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color var(--tnv-transition);
  background: transparent;
  border: none;
}

.tnv-nav__dropdown-toggle:hover,
.tnv-nav__dropdown.is-open .tnv-nav__dropdown-toggle {
  color: var(--tnv-brass-light);
}

.tnv-nav__dropdown-toggle i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.tnv-nav__dropdown.is-open .tnv-nav__dropdown-toggle i {
  transform: rotate(180deg);
}

.tnv-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--tnv-bg-dark);
  border: 1px solid rgba(238,232,220,0.12);
  border-radius: var(--tnv-radius);
  box-shadow: var(--tnv-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  padding: 4px 0;
}

.tnv-nav__dropdown.is-open .tnv-nav__dropdown-menu,
.tnv-nav__dropdown:focus-within .tnv-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tnv-nav__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(238,232,220,0.85);
  transition: background var(--tnv-transition), color var(--tnv-transition);
}

.tnv-nav__dropdown-menu a:hover {
  background: rgba(238,232,220,0.06);
  color: var(--tnv-fg-dark-primary);
}

/* Mobile hamburger */
.tnv-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--tnv-radius);
  transition: background var(--tnv-transition);
  aria-label: "Open menu";
}

.tnv-hamburger:hover { background: rgba(238,232,220,0.06); }

.tnv-hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tnv-fg-dark-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tnv-hamburger.is-active .tnv-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tnv-hamburger.is-active .tnv-hamburger__line:nth-child(2) {
  opacity: 0;
}

.tnv-hamburger.is-active .tnv-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.tnv-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--tnv-bg-dark);
  z-index: 850;
  flex-direction: column;
  padding: calc(var(--tnv-nav-height) + 24px) 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tnv-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.tnv-mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.tnv-mobile-menu__link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tnv-fg-dark-primary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(238,232,220,0.08);
  display: block;
  transition: color var(--tnv-transition);
}

.tnv-mobile-menu__link:hover { color: var(--tnv-brass-light); }

.tnv-mobile-menu__sub {
  padding-left: 16px;
  display: none;
}

.tnv-mobile-menu__sub.is-open { display: block; }

.tnv-mobile-menu__sub a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--tnv-fg-dark-secondary);
  padding: 8px 0;
  transition: color var(--tnv-transition);
}

.tnv-mobile-menu__sub a:hover { color: var(--tnv-fg-dark-primary); }

.tnv-mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tnv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--tnv-transition), color var(--tnv-transition), box-shadow var(--tnv-transition), transform 0.12s ease;
  border: 2px solid transparent;
  line-height: 1.4;
}

.tnv-btn:active { transform: translateY(1px); }

.tnv-btn--primary {
  background: var(--tnv-brass);
  color: var(--tnv-navy);
  border-color: var(--tnv-brass);
}

.tnv-btn--primary:hover {
  background: var(--tnv-brass-light);
  border-color: var(--tnv-brass-light);
  box-shadow: 0 4px 16px rgba(184,146,74,0.30);
  color: var(--tnv-navy);
}

.tnv-btn--outline-dark {
  background: transparent;
  color: var(--tnv-fg-dark-primary);
  border-color: rgba(238,232,220,0.35);
}

.tnv-btn--outline-dark:hover {
  border-color: var(--tnv-fg-dark-primary);
  background: rgba(238,232,220,0.06);
  color: var(--tnv-fg-dark-primary);
}

.tnv-btn--outline-light {
  background: transparent;
  color: var(--tnv-fg-light-primary);
  border-color: var(--tnv-fg-light-primary);
}

.tnv-btn--outline-light:hover {
  background: var(--tnv-navy);
  color: var(--tnv-fg-dark-primary);
  border-color: var(--tnv-navy);
}

.tnv-btn--sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.tnv-btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================================
   HERO — DARK SECTION
   ============================================================ */
.tnv-hero {
  background: var(--tnv-bg-dark);
  padding-top: calc(var(--tnv-nav-height) + 80px);
  padding-bottom: var(--tnv-section-pad);
  position: relative;
  overflow: hidden;
}

.tnv-hero__inner {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tnv-hero__bg-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.tnv-hero__content { position: relative; z-index: 2; }

.tnv-hero__eyebrow {
  color: var(--tnv-brass-light);
  margin-bottom: 20px;
  display: block;
}

.tnv-hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--tnv-fg-dark-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.tnv-hero__subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--tnv-fg-dark-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.tnv-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.tnv-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Sub-page hero — lighter weight */
.tnv-subhero {
  background: var(--tnv-bg-dark);
  padding-top: calc(var(--tnv-nav-height) + 72px);
  padding-bottom: 72px;
  position: relative;
}

.tnv-subhero__inner {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.tnv-subhero--split .tnv-subhero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tnv-subhero__eyebrow {
  color: var(--tnv-brass-light);
  margin-bottom: 16px;
  display: block;
}

.tnv-subhero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--tnv-fg-dark-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.tnv-subhero__subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tnv-fg-dark-secondary);
  max-width: 560px;
  margin-bottom: 32px;
}

.tnv-subhero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--tnv-radius);
  object-fit: cover;
}

/* Centered subhero */
.tnv-subhero--centered .tnv-subhero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tnv-subhero--centered .tnv-subhero__subhead {
  text-align: center;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.tnv-section {
  padding: var(--tnv-section-pad) 0;
}

.tnv-section--sm {
  padding: calc(var(--tnv-section-pad) * 0.6) 0;
}

.tnv-section__header {
  margin-bottom: 56px;
}

.tnv-section__header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.tnv-section--dark .tnv-section__headline,
.tnv-section--dark-alt .tnv-section__headline,
.tnv-section--dark .tnv-section__headline { color: var(--tnv-fg-dark-primary); }

.tnv-section--light .tnv-section__headline,
.tnv-section--light-alt .tnv-section__headline,
.tnv-section--white .tnv-section__headline { color: var(--tnv-fg-light-primary); }

.tnv-section__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--tnv-h2-size);
  line-height: var(--tnv-h2-lh);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.tnv-section__subhead {
  font-size: 1.05rem;
  line-height: 1.65;
}

.tnv-section--dark .tnv-section__subhead,
.tnv-section--dark-alt .tnv-section__subhead { color: var(--tnv-fg-dark-secondary); }

.tnv-section--light .tnv-section__subhead,
.tnv-section--light-alt .tnv-section__subhead,
.tnv-section--white .tnv-section__subhead { color: var(--tnv-fg-light-secondary); }

/* ============================================================
   VALUE STRIP
   ============================================================ */
.tnv-value-strip {
  background: var(--tnv-bg-dark-alt);
  padding: 48px 0;
}

.tnv-value-strip__inner {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: var(--tnv-gap);
  align-items: center;
}

.tnv-stat {
  text-align: center;
  padding: 16px 24px;
}

.tnv-stat__value {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--tnv-brass-light);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: block;
}

.tnv-stat__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--tnv-fg-dark-secondary);
  line-height: 1.4;
}

.tnv-value-strip__divider {
  width: 1px;
  height: 56px;
  background: rgba(238,232,220,0.12);
}

/* ============================================================
   CAPABILITY TILES
   ============================================================ */
.tnv-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--tnv-gap);
}

.tnv-capability-tile {
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  padding: var(--tnv-card-pad);
  transition: border-color var(--tnv-transition), box-shadow var(--tnv-transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tnv-capability-tile:hover {
  border-color: var(--tnv-brass);
  box-shadow: var(--tnv-shadow);
}

.tnv-section--light-alt .tnv-capability-tile {
  background: var(--tnv-bg-white);
}

.tnv-capability-tile__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184,146,74,0.10);
  border-radius: var(--tnv-radius);
  color: var(--tnv-brass-dark);
  font-size: 1.1rem;
}

.tnv-capability-tile__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 4px;
}

.tnv-capability-tile__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tnv-fg-light-secondary);
}

.tnv-capability-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tnv-brass-dark);
  transition: gap var(--tnv-transition), color var(--tnv-transition);
  margin-top: auto;
}

.tnv-capability-tile__link:hover {
  color: var(--tnv-brass);
  gap: 10px;
}

/* ============================================================
   ASSET CLASS CARDS
   ============================================================ */
.tnv-asset-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tnv-gap);
}

.tnv-asset-card {
  background: var(--tnv-bg-card);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: border-color var(--tnv-transition), box-shadow var(--tnv-transition), transform 0.18s ease;
}

.tnv-asset-card:hover {
  border-color: var(--tnv-brass);
  box-shadow: var(--tnv-shadow);
  transform: translateY(-2px);
}

.tnv-asset-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(14,28,47,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--tnv-navy);
}

.tnv-asset-card__label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
}

/* ============================================================
   HOW IT WORKS — 3 STEP
   ============================================================ */
.tnv-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  padding-left: 64px;
}

.tnv-steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--tnv-brass), rgba(184,146,74,0.15));
}

.tnv-step {
  position: relative;
}

.tnv-step__num {
  position: absolute;
  left: -64px;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--tnv-bg-dark);
  border: 1px solid var(--tnv-brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tnv-brass);
}

.tnv-section--light .tnv-step__num {
  background: var(--tnv-bg-light);
}

.tnv-section--light-alt .tnv-step__num {
  background: var(--tnv-bg-light-alt);
}

.tnv-step__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 8px;
}

.tnv-step__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--tnv-fg-light-secondary);
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.tnv-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tnv-gap);
}

.tnv-testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(238,232,220,0.10);
  border-radius: var(--tnv-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color var(--tnv-transition);
}

.tnv-testimonial:hover {
  border-color: rgba(201,166,104,0.30);
}

.tnv-testimonial__quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--tnv-brass-light);
  opacity: 0.6;
}

.tnv-testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tnv-fg-dark-secondary);
  font-style: italic;
}

.tnv-testimonial__author {
  margin-top: auto;
}

.tnv-testimonial__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tnv-fg-dark-primary);
  margin-bottom: 2px;
}

.tnv-testimonial__role {
  font-size: 0.8rem;
  color: var(--tnv-fg-dark-secondary);
}

.tnv-testimonial__firm {
  font-size: 0.75rem;
  color: var(--tnv-fg-dark-muted);
  margin-top: 2px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.tnv-cta-band {
  background: var(--tnv-bg-dark-alt);
  padding: 80px 0;
}

.tnv-cta-band__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(16px, 5vw, 48px);
}

.tnv-cta-band__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--tnv-fg-dark-primary);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.tnv-cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.tnv-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tnv-gap);
}

.tnv-feature-card {
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  padding: 32px 28px;
  transition: border-color var(--tnv-transition), box-shadow var(--tnv-transition);
}

.tnv-section--white .tnv-feature-card {
  background: var(--tnv-bg-light-alt);
}

.tnv-feature-card:hover {
  border-color: var(--tnv-brass);
  box-shadow: var(--tnv-shadow);
}

.tnv-feature-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tnv-brass-dark);
  font-size: 1rem;
  margin-bottom: 16px;
}

.tnv-feature-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 8px;
}

.tnv-feature-card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--tnv-fg-light-secondary);
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.tnv-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.tnv-two-col--reversed { direction: rtl; }
.tnv-two-col--reversed > * { direction: ltr; }

.tnv-two-col__content { max-width: 520px; }

.tnv-two-col__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--tnv-h2-size);
  line-height: var(--tnv-h2-lh);
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.tnv-two-col__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 24px;
}

.tnv-two-col__image img {
  width: 100%;
  height: auto;
  border-radius: var(--tnv-radius);
  box-shadow: var(--tnv-shadow-md);
  object-fit: cover;
}

/* ============================================================
   DATA TABLE MOCKUP
   ============================================================ */
.tnv-data-table-wrap {
  overflow-x: auto;
  border-radius: var(--tnv-radius);
  box-shadow: var(--tnv-shadow-md);
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
}

.tnv-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
}

.tnv-data-table thead {
  background: var(--tnv-navy);
  color: var(--tnv-fg-dark-primary);
}

.tnv-data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tnv-data-table tbody tr {
  border-bottom: 1px solid var(--tnv-divider);
  transition: background var(--tnv-transition);
}

.tnv-data-table tbody tr:last-child { border-bottom: none; }

.tnv-data-table tbody tr:hover { background: rgba(184,146,74,0.04); }

.tnv-data-table tbody td {
  padding: 11px 16px;
  color: var(--tnv-fg-light-primary);
  white-space: nowrap;
}

.tnv-data-table .tnv-mono {
  color: var(--tnv-navy);
  font-weight: 500;
}

.tnv-data-table .tnv-alert-cell { color: var(--tnv-alert); font-weight: 600; }
.tnv-data-table .tnv-success-cell { color: var(--tnv-success); font-weight: 600; }

/* ============================================================
   SECURITY CONTROLS GRID
   ============================================================ */
.tnv-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tnv-gap);
}

.tnv-control-card {
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--tnv-transition);
}

.tnv-control-card:hover { border-color: var(--tnv-brass); }

.tnv-control-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,124,89,0.10);
  border-radius: var(--tnv-radius);
  color: var(--tnv-success);
  font-size: 1rem;
}

.tnv-control-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 4px;
}

.tnv-control-card__desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--tnv-fg-light-secondary);
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.tnv-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tnv-gap);
}

.tnv-team-card {
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  overflow: hidden;
  transition: box-shadow var(--tnv-transition), border-color var(--tnv-transition);
}

.tnv-team-card:hover {
  box-shadow: var(--tnv-shadow-md);
  border-color: var(--tnv-brass);
}

.tnv-team-card__portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.tnv-team-card__letter {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--tnv-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--tnv-brass);
}

.tnv-team-card__info {
  padding: 20px;
}

.tnv-team-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 4px;
}

.tnv-team-card__title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tnv-brass-dark);
  margin-bottom: 8px;
}

.tnv-team-card__bio {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--tnv-fg-light-secondary);
}

/* ============================================================
   VALUE CARDS (about page)
   ============================================================ */
.tnv-value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tnv-gap);
}

.tnv-value-card {
  padding: 32px;
  background: var(--tnv-bg-light-alt);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  border-top: 3px solid var(--tnv-brass);
}

.tnv-value-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--tnv-brass);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.tnv-value-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 12px;
}

.tnv-value-card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--tnv-fg-light-secondary);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.tnv-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tnv-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.tnv-form-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  letter-spacing: 0.04em;
}

.tnv-form-input,
.tnv-form-select,
.tnv-form-textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--tnv-fg-light-primary);
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  padding: 11px 14px;
  width: 100%;
  line-height: 1.5;
  transition: border-color var(--tnv-transition), box-shadow var(--tnv-transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.tnv-form-input:focus,
.tnv-form-select:focus,
.tnv-form-textarea:focus {
  border-color: var(--tnv-brass);
  box-shadow: 0 0 0 3px rgba(184,146,74,0.12);
}

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

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

/* Login form dark variant */
.tnv-form--dark .tnv-form-label { color: var(--tnv-fg-dark-secondary); }
.tnv-form--dark .tnv-form-input,
.tnv-form--dark .tnv-form-select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(238,232,220,0.15);
  color: var(--tnv-fg-dark-primary);
}

.tnv-form--dark .tnv-form-input::placeholder { color: var(--tnv-fg-dark-muted); }
.tnv-form--dark .tnv-form-input:focus,
.tnv-form--dark .tnv-form-select:focus {
  border-color: var(--tnv-brass);
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.tnv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.tnv-blog-card {
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  overflow: hidden;
  transition: box-shadow var(--tnv-transition), border-color var(--tnv-transition);
  display: flex;
  flex-direction: column;
}

.tnv-blog-card:hover {
  box-shadow: var(--tnv-shadow-md);
  border-color: var(--tnv-brass);
}

.tnv-blog-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.tnv-blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tnv-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tnv-blog-card__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--tnv-fg-light-secondary);
}

.tnv-blog-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tnv-brass-dark);
  background: rgba(184,146,74,0.10);
  border-radius: var(--tnv-radius-sm);
  padding: 3px 8px;
}

.tnv-blog-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.tnv-blog-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--tnv-fg-light-secondary);
  flex: 1;
}

.tnv-blog-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tnv-brass-dark);
  margin-top: 16px;
  transition: gap var(--tnv-transition), color var(--tnv-transition);
}

.tnv-blog-card:hover .tnv-blog-card__readmore {
  color: var(--tnv-brass);
  gap: 10px;
}

/* ============================================================
   ARTICLE HERO & BODY
   ============================================================ */
.tnv-article-hero__inner {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  padding-top: calc(var(--tnv-nav-height) + 64px);
  padding-bottom: 64px;
  max-width: 800px;
  text-align: center;
}

.tnv-article-hero__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--tnv-fg-dark-muted);
  margin-bottom: 16px;
  display: block;
}

.tnv-article-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--tnv-fg-dark-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.tnv-article-hero__author {
  font-size: 0.85rem;
  color: var(--tnv-fg-dark-secondary);
}

.tnv-article-hero__cover {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  height: 360px;
  object-fit: cover;
  border-radius: var(--tnv-radius);
  margin-top: 32px;
}

.tnv-article-body {
  background: var(--tnv-bg-light-alt);
  padding: var(--tnv-section-pad) 0;
}

.tnv-article-body__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.tnv-article-body__inner h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--tnv-fg-light-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.tnv-article-body__inner h3 {
  font-size: 1.125rem;
  color: var(--tnv-fg-light-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.tnv-article-body__inner p {
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 16px;
}

.tnv-article-body__inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.tnv-article-body__inner ul li {
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tnv-pullquote {
  border-left: 3px solid var(--tnv-brass);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(184,146,74,0.05);
  border-radius: 0 var(--tnv-radius) var(--tnv-radius) 0;
}

.tnv-pullquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--tnv-fg-light-primary);
  margin-bottom: 0;
}

.tnv-inline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.875rem;
}

.tnv-inline-table th {
  background: var(--tnv-navy);
  color: var(--tnv-fg-dark-primary);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tnv-inline-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--tnv-divider);
  color: var(--tnv-fg-light-secondary);
}

.tnv-inline-table td .tnv-mono {
  color: var(--tnv-navy);
  font-weight: 500;
}

/* Related articles */
.tnv-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tnv-gap);
}

/* ============================================================
   LOGIN PAGES
   ============================================================ */
.tnv-login-page {
  min-height: 100dvh;
  background: var(--tnv-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(16px, 5vw, 48px);
}

.tnv-login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(238,232,220,0.12);
  border-radius: 8px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}

.tnv-login-card__logo {
  display: block;
  margin: 0 auto 32px;
  height: 28px;
  width: auto;
}

.tnv-login-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tnv-fg-dark-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tnv-login-card__sub {
  font-size: 0.875rem;
  color: var(--tnv-fg-dark-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.tnv-login-card__footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--tnv-fg-dark-muted);
}

.tnv-login-card__footer a {
  color: var(--tnv-brass-light);
  transition: color var(--tnv-transition);
}

.tnv-login-card__footer a:hover { color: var(--tnv-brass); }

.tnv-login-logo-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 20px clamp(24px, 8vw, 80px);
  z-index: 10;
}

/* ============================================================
   CONTACT ADDRESS STRIP
   ============================================================ */
.tnv-address-strip {
  background: var(--tnv-bg-dark-alt);
  padding: 56px 0;
}

.tnv-address-strip__inner {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.tnv-address-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tnv-address-item__icon {
  color: var(--tnv-brass-light);
  font-size: 1.1rem;
}

.tnv-address-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tnv-fg-dark-muted);
}

.tnv-address-item__value {
  font-size: 0.9rem;
  color: var(--tnv-fg-dark-secondary);
  line-height: 1.5;
}

.tnv-address-item__value a {
  color: var(--tnv-fg-dark-secondary);
  transition: color var(--tnv-transition);
}

.tnv-address-item__value a:hover { color: var(--tnv-brass-light); }

/* ============================================================
   NOI WATERFALL SVG PANEL
   ============================================================ */
.tnv-waterfall-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(238,232,220,0.10);
  border-radius: 6px;
  padding: 28px;
  max-width: 500px;
  width: 100%;
}

.tnv-waterfall-panel__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tnv-fg-dark-muted);
  margin-bottom: 20px;
}

/* ============================================================
   INTEGRATION LOGOS
   ============================================================ */
.tnv-integration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.tnv-integration-logo {
  background: var(--tnv-bg-white);
  border: 1px solid var(--tnv-divider);
  border-radius: var(--tnv-radius);
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tnv-fg-light-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--tnv-transition);
}

.tnv-integration-logo:hover { border-color: var(--tnv-brass); }

/* ============================================================
   FOOTER
   ============================================================ */
.tnv-footer {
  background: var(--tnv-bg-dark-alt);
  padding: 72px 0 0;
  color: var(--tnv-fg-dark-secondary);
}

.tnv-footer__inner {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(238,232,220,0.08);
}

.tnv-footer__brand .tnv-nav__logo svg {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.tnv-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--tnv-fg-dark-secondary);
  margin-bottom: 20px;
  max-width: 260px;
}

.tnv-footer__contact-detail {
  font-size: 0.8rem;
  color: var(--tnv-fg-dark-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.tnv-footer__contact-detail a {
  color: var(--tnv-fg-dark-muted);
  transition: color var(--tnv-transition);
}

.tnv-footer__contact-detail a:hover { color: var(--tnv-brass-light); }

.tnv-footer__col-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tnv-fg-dark-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.tnv-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnv-footer__col-links a {
  font-size: 0.875rem;
  color: var(--tnv-fg-dark-secondary);
  transition: color var(--tnv-transition);
}

.tnv-footer__col-links a:hover { color: var(--tnv-brass-light); }

.tnv-footer__bottom {
  max-width: var(--tnv-container);
  margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tnv-footer__copy {
  font-size: 0.78rem;
  color: var(--tnv-fg-dark-muted);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.tnv-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tnv-bg-dark-alt);
  border-top: 1px solid rgba(238,232,220,0.12);
  padding: 16px clamp(16px, 5vw, 48px);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(14,28,47,0.25);
}

.tnv-cookie-banner.is-visible { display: flex; }

.tnv-cookie-banner__text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--tnv-fg-dark-secondary);
  flex: 1;
}

.tnv-cookie-banner__text a {
  color: var(--tnv-brass-light);
  text-decoration: underline;
}

.tnv-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

body.tnv-cookie-visible { padding-bottom: 80px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.tnv-legal-body {
  background: var(--tnv-bg-light-alt);
  padding: var(--tnv-section-pad) 0;
}

.tnv-legal-body__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.tnv-legal-body__inner h2 {
  font-size: 1.35rem;
  color: var(--tnv-fg-light-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.tnv-legal-body__inner h3 {
  font-size: 1rem;
  color: var(--tnv-fg-light-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.tnv-legal-body__inner p {
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.tnv-legal-body__inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.tnv-legal-body__inner ul li {
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tnv-legal-body__inner a {
  color: var(--tnv-brass-dark);
  text-decoration: underline;
}

.tnv-legal-body__inner a:hover { color: var(--tnv-brass); }

/* ============================================================
   404 PAGE
   ============================================================ */
.tnv-404-page {
  min-height: 100vh;
  background: var(--tnv-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(16px, 5vw, 48px);
  text-align: center;
}

.tnv-404-page__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 500;
  color: rgba(238,232,220,0.08);
  line-height: 1;
  margin-bottom: 8px;
}

.tnv-404-page__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--tnv-fg-dark-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.tnv-404-page__text {
  font-size: 1rem;
  color: var(--tnv-fg-dark-secondary);
  margin-bottom: 36px;
  max-width: 400px;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Failsafe: after 1.2s, force visible */
@keyframes tnv-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: tnv-reveal 0.5s ease 1.2s forwards;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --tnv-h1-size: 2.75rem;
    --tnv-h1-lh: 3.4rem;
    --tnv-h2-size: 2rem;
    --tnv-h2-lh: 2.6rem;
  }

  .tnv-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .tnv-hero__subhead { max-width: 100%; }
  .tnv-hero__visual { justify-content: center; }

  .tnv-subhero--split .tnv-subhero__inner { grid-template-columns: 1fr; gap: 32px; }

  .tnv-value-strip__inner { grid-template-columns: 1fr 1px 1fr 1px 1fr; }

  .tnv-capability-grid { grid-template-columns: 1fr 1fr; }

  .tnv-asset-cards { grid-template-columns: repeat(2, 1fr); }

  .tnv-feature-grid { grid-template-columns: 1fr 1fr; }

  .tnv-two-col { grid-template-columns: 1fr; gap: 40px; }
  .tnv-two-col--reversed { direction: ltr; }

  .tnv-team-grid { grid-template-columns: repeat(2, 1fr); }

  .tnv-value-cards { grid-template-columns: 1fr 1fr; }

  .tnv-testimonial-grid { grid-template-columns: 1fr 1fr; }

  .tnv-controls-grid { grid-template-columns: 1fr 1fr; }

  .tnv-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }

  .tnv-blog-grid { grid-template-columns: 1fr 1fr; }

  .tnv-address-strip__inner { grid-template-columns: 1fr; gap: 24px; }

  .tnv-nav__links { display: none; }
  .tnv-nav__actions { display: none; }
  .tnv-hamburger { display: flex; }
  .tnv-mobile-menu { display: flex; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --tnv-h1-size: 2rem;
    --tnv-h1-lh: 2.6rem;
    --tnv-h2-size: 1.75rem;
    --tnv-h2-lh: 2.2rem;
    --tnv-section-pad: 56px;
  }

  .tnv-capability-grid { grid-template-columns: 1fr; }

  .tnv-asset-cards { grid-template-columns: 1fr 1fr; }

  .tnv-feature-grid { grid-template-columns: 1fr; }

  .tnv-value-strip__inner { grid-template-columns: 1fr; }
  .tnv-value-strip__divider { width: 56px; height: 1px; margin: 0 auto; }

  .tnv-testimonial-grid { grid-template-columns: 1fr; }

  .tnv-team-grid { grid-template-columns: 1fr 1fr; }

  .tnv-value-cards { grid-template-columns: 1fr; }

  .tnv-controls-grid { grid-template-columns: 1fr; }

  .tnv-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .tnv-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .tnv-blog-grid { grid-template-columns: 1fr; }

  .tnv-related-grid { grid-template-columns: 1fr; }

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

  .tnv-cta-band__actions { flex-direction: column; align-items: center; }

  .tnv-hero__actions { flex-direction: column; align-items: flex-start; }

  .tnv-login-card { padding: 32px 20px; }

  .tnv-cookie-banner { flex-direction: column; align-items: flex-start; }
  .tnv-cookie-banner__actions { width: 100%; }

  .tnv-grid-2x3 { grid-template-columns: 1fr 1fr; }

  .tnv-steps { padding-left: 48px; }
  .tnv-step__num { left: -48px; width: 36px; height: 36px; font-size: 0.7rem; }
  .tnv-steps::before { left: 18px; }
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */
.tnv-legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.tnv-legal-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

.tnv-legal-content h2:first-child {
  margin-top: 0;
}

.tnv-legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tnv-fg-light-primary);
  margin: 1.5rem 0 0.5rem;
}

.tnv-legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 1rem;
}

.tnv-legal-content ul {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--tnv-fg-light-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.tnv-legal-content li {
  margin-bottom: 0.35rem;
}

.tnv-legal-content a {
  color: var(--tnv-brass-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tnv-legal-content a:hover {
  color: var(--tnv-brass);
}

.tnv-legal-content strong {
  color: var(--tnv-fg-light-primary);
  font-weight: 600;
}
