/*
Theme Name: TRC Minimal Custom
Theme URI: https://www.thereliantcorp.com/
Author: The Reliant Corp
Description: TRC-OS v4.2 Digital Studio UI (Space Grotesk + Inter + JetBrains Mono, Glass Header with 3-Column Mega Menu, Interactive Terminal & Live Dashboard, 4-Color Service Cards, Case Studies, Autoplay Testimonials & 44+ SEO Pages).
Version: 20.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: trc-minimal
*/

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fafafa;
  color: #0a0a0a;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
::selection { background: #ff6b3d; color: #fff; }

/* ============ TOKENS ============ */
:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #fafafa;
  --paper-2: #ffffff;
  --mist: #f3f3f3;
  --line: rgba(10,10,10,0.08);
  --line-2: rgba(10,10,10,0.14);
  --ember: #ff6b3d;
  --ember-2: #ff8a3d;
  --gold: #ffb547;
  --rose: #ff8a8a;
  --mint: #e6f4ea;
  --cream: #fef7e0;
  --coral: #fce8e6;
  --sky: #e8f0fe;
  --green: #16a34a;
  --blue: #2563eb;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1240px;
  --font-d: 'Space Grotesk', sans-serif;
  --font-m: 'JetBrains Mono', monospace;

  /* Mapped Legacy Variables for Inner Page Components */
  --trc-coral: #ff6b3d;
  --trc-red: #ff6b3d;
  --trc-amber: #ffb547;
  --trc-sky: #e8f0fe;
  --trc-cream: #fef7e0;
  --trc-dark: #0a0a0a;
  --trc-white: #ffffff;
  --trc-border-dark: rgba(10,10,10,0.12);
  --trc-border-light: rgba(255,255,255,0.14);
  --g-blue: #2563eb;
  --g-red: #ea4335;
  --g-yellow: #b8860b;
  --g-green: #16a34a;
  --g-blue-soft: #e8f0fe;
  --g-red-soft: #fce8e6;
  --g-yellow-soft: #fef7e0;
  --g-green-soft: #e6f4ea;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b3d, #ffb547);
  border-radius: 10px;
}

/* ============ KEYFRAMES ============ */
@keyframes gridPan { from { background-position: 0 0; } to { background-position: 56px 56px; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }
@keyframes floatSlow { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(12px); } }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes spinRev { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aurora { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(28px,-20px) scale(1.1); } 66% { transform: translate(-20px,28px) scale(0.95); } }
@keyframes scanY { 0% { transform: translateY(-100%); } 100% { transform: translateY(2000%); } }
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawLine { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ringPulse { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

/* ============ UTILITIES ============ */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-m); }
.display { font-family: var(--font-d); }
.gradient-text {
  background: linear-gradient(110deg, #ff6b3d 0%, #ffb547 40%, #ff8a8a 75%, #ff6b3d 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
.text-stroke { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.text-stroke-light { -webkit-text-stroke: 1.5px rgba(255,255,255,0.85); color: transparent; }
.blink { animation: blink 1.1s steps(2) infinite; }
.pulse-dot { animation: pulse 1.6s ease-in-out infinite; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.grid-bg-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Section label pill */
.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(10,10,10,0.7);
}
.sec-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: blink 1.1s steps(2) infinite; }
.sec-label.dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.7); }

/* Buttons */
.btn, .btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-dark, .btn-pill { background: var(--ink); color: #fff; }
.btn-dark:hover, .btn-pill:hover { background: var(--ember); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,61,0.35); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-glass { background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); color: var(--ink); border: 1px solid rgba(10,10,10,0.1); }
.btn-glass:hover { background: #fff; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn-pill__icon { display: inline-flex; align-items: center; justify-content: center; }

/* ============ BACKDROP (fixed) ============ */
.bg-fixed {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-fixed .paper { position: absolute; inset: 0; background: #fafafa; }
.bg-fixed .grid {
  position: absolute; inset: 0; opacity: 0.6;
  animation: gridPan 12s linear infinite;
}
.aurora-blob {
  position: absolute; border-radius: 9999px; filter: blur(70px); opacity: 0.4;
  animation: aurora 16s ease-in-out infinite; pointer-events: none;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, #ff6b3d, #ffb547, #ff8a8a);
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255,107,61,0.6);
  transition: transform 0.1s linear;
}

/* ============ HEADER (Glass + Mega Menu from Old Site) ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 16px;
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-radius: 18px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 8px 32px rgba(10,10,10,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: padding 0.3s ease;
  position: relative;
}
.header.shrunk .header-inner { padding: 8px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  position: relative; width: 36px; height: 36px; flex-shrink: 0;
}
.brand-logo .ring {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(135deg, #ff6b3d, #ffb547);
  animation: spinSlow 14s linear infinite;
}
.brand-logo .core {
  position: absolute; inset: 2px; border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 16px; color: var(--ink);
}
.brand-logo .pip {
  position: absolute; top: -2px; right: -2px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ember);
}
.brand-logo .pip::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ember);
  animation: ringPulse 1.8s ease-out infinite;
}
.brand-text { line-height: 1.1; }
.brand-text .name { font-family: var(--font-d); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-text .name span { color: var(--ember); }
.brand-text .sub { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(10,10,10,0.5); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: static; display: flex; align-items: center; }
.nav-list > li > a {
  position: relative; padding: 8px 12px; font-size: 13.5px; font-weight: 500;
  color: rgba(10,10,10,0.78); transition: color 0.2s;
}
.nav-list > li > a:hover, .nav-list > li.has-mega:hover > a { color: var(--ink); }
.nav-list > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-list > li > a:hover::after, .nav-list > li.has-mega:hover > a::after { transform: scaleX(1); }
.mega-toggle-btn {
  background: transparent; border: none; color: rgba(10,10,10,0.65);
  cursor: pointer; font-size: 0.78rem; padding: 4px 6px 4px 0; line-height: 1;
}
.mega-toggle-btn:hover { color: var(--ember); }

/* 3-Column Mega Menu Dropdown inside Glass Header */
.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ember);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 28px 70px rgba(10,10,10,0.14);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none; z-index: 1010;
}
@media (min-width: 1025px) {
  .has-mega:hover .mega-menu,
  .has-mega:focus-within .mega-menu,
  .has-mega.is-open .mega-menu {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) 250px; gap: 24px; text-align: left; }
.mega-col h4 {
  font-family: var(--font-d); font-size: 0.95rem; font-weight: 700;
  color: var(--ember); margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.mega-col h4 a { color: inherit; }
.mega-col ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.mega-col ul li a { color: rgba(10,10,10,0.8); font-size: 0.85rem; display: block; padding: 2px 0; transition: all 0.2s; }
.mega-col ul li a:hover { color: var(--ember); transform: translateX(4px); }
.mega-col ul li.sub-indent a { padding-left: 10px; font-size: 0.8rem; color: rgba(10,10,10,0.58); border-left: 2px solid var(--line-2); }
.mega-col ul li.sub-indent a:hover { color: var(--ink); border-left-color: var(--ember); }
.mega-promo {
  background: var(--ink); color: #fff; border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mega-promo__badge {
  display: inline-block; background: var(--ember); color: #fff;
  font-family: var(--font-m); font-size: 9px; font-weight: 600;
  letter-spacing: 0.16em; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; width: fit-content; margin-bottom: 10px;
}

.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 999px; background: rgba(10,10,10,0.06); align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .header-cta .btn { display: none; }
}
.mobile-menu {
  position: fixed; top: 76px; left: 16px; right: 16px; z-index: 49;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 18px; padding: 16px;
  display: none; flex-direction: column; gap: 6px;
  box-shadow: 0 16px 48px rgba(10,10,10,0.16);
  max-height: 82vh; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; display: block; }
.mobile-menu a:hover { background: rgba(10,10,10,0.05); }
.mobile-mega-details summary {
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.mobile-mega-details .mobile-mega-cols {
  padding: 10px 12px; background: var(--paper); border-radius: 12px; margin-top: 6px;
  display: grid; gap: 14px;
}
.mobile-mega-cols h5 { font-family: var(--font-d); font-size: 12px; color: var(--ember); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.mobile-mega-cols ul { list-style: none; display: grid; gap: 4px; }
.mobile-mega-cols ul li a { padding: 5px 8px; font-size: 13px; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; padding: 120px 0 80px;
  overflow: hidden;
}
.hero-grid-decor {
  position: absolute; inset: 0; opacity: 0.5;
  animation: gridPan 14s linear infinite;
}
.hero-glow-1 {
  position: absolute; top: -10%; left: -5%; width: 480px; height: 480px;
  border-radius: 9999px; filter: blur(80px); opacity: 0.4;
  background: radial-gradient(circle, #ff6b3d 0%, #ffb547 50%, transparent 70%);
  animation: aurora 18s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; top: 20%; right: -8%; width: 520px; height: 520px;
  border-radius: 9999px; filter: blur(80px); opacity: 0.35;
  background: radial-gradient(circle, #ff8a8a 0%, #fce8e6 50%, transparent 70%);
  animation: aurora 20s ease-in-out infinite reverse;
}
.hud-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(10,10,10,0.5);
  margin-bottom: 40px;
}
.hud-row .item { display: flex; align-items: center; gap: 8px; }
.hud-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: blink 1.1s steps(2) infinite; }
@media (max-width: 768px) { .hud-row { display: none; } }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(10,10,10,0.7);
  margin-bottom: 28px;
}
.hero-badge svg { width: 12px; height: 12px; color: var(--ember); }

.hero h1, .hero-headline {
  font-family: var(--font-d); font-weight: 700; letter-spacing: -0.035em;
  line-height: 0.98; font-size: clamp(44px, 6.4vw, 88px);
  color: var(--ink); margin-bottom: 24px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px); color: rgba(10,10,10,0.68);
  max-width: 520px; margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  overflow: hidden; max-width: 480px;
}
.hero-stats .stat { padding: 16px 18px; border-right: 1px solid var(--line); }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .v { font-family: var(--font-d); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1; }
.hero-stats .l { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(10,10,10,0.55); margin-top: 6px; }

/* Hero right: terminal + dashboard */
.hero-visual { position: relative; }
.terminal {
  position: relative; background: #0a0a0a; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08); overflow: hidden;
  box-shadow: 0 30px 80px rgba(10,10,10,0.18), 0 0 0 1px rgba(255,107,61,0.1);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dots span:nth-child(1) { background: #ff5f57; }
.terminal-bar .dots span:nth-child(2) { background: #febc2e; }
.terminal-bar .dots span:nth-child(3) { background: #28c840; }
.terminal-bar .title {
  font-family: var(--font-m); font-size: 11px; color: rgba(255,255,255,0.5);
  margin-left: 8px;
}
.terminal-body {
  padding: 18px 20px; font-family: var(--font-m); font-size: 12.5px;
  line-height: 1.75; min-height: 280px; padding-bottom: 100px;
}
.terminal-body .ln { display: block; }
.terminal-body .prompt { color: #ff6b3d; }
.terminal-body .cmd { color: #e8e8e8; }
.terminal-body .out { color: rgba(255,255,255,0.55); }
.terminal-body .ok { color: #28c840; }
.terminal-body .key { color: #ffb547; }
.terminal-body .caret {
  display: inline-block; width: 8px; height: 14px; background: #ff6b3d;
  vertical-align: text-bottom; animation: caret 1s steps(2) infinite;
}

/* Dashboard card floating below terminal */
.dashboard {
  position: absolute; right: -20px; bottom: -30px; width: 240px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 14px; box-shadow: 0 20px 60px rgba(10,10,10,0.12);
  animation: floatSlow 8s ease-in-out infinite;
}
@media (max-width: 980px) { .dashboard { right: 0; } }
@media (max-width: 480px) { .dashboard { right: 0; width: 220px; bottom: -20px; } }
.dashboard .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dashboard .head .t { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(10,10,10,0.55); }
.dashboard .head .live { display: flex; align-items: center; gap: 5px; font-family: var(--font-m); font-size: 9px; color: var(--green); }
.dashboard .head .live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.4s ease-in-out infinite; }
.dashboard .big { font-family: var(--font-d); font-weight: 700; font-size: 32px; color: var(--ink); line-height: 1; }
.dashboard .delta { font-family: var(--font-m); font-size: 11px; color: var(--green); margin-top: 4px; }
.dashboard .chart { margin-top: 12px; display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.dashboard .chart .bar {
  flex: 1; background: linear-gradient(180deg, #ff6b3d, #ffb547); border-radius: 3px 3px 0 0;
  transform-origin: bottom; animation: barGrow 1.2s ease-out backwards;
}

/* Floating accents */
.float-square {
  position: absolute; left: -20px; top: 30%;
  width: 56px; height: 56px; border-radius: 10px;
  border: 1.5px solid rgba(10,10,10,0.25); background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px); animation: float 7s ease-in-out infinite;
}
.float-ring {
  position: absolute; right: -10px; top: 8%;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ember); background: rgba(255,255,255,0.4);
  animation: floatSlow 9s ease-in-out infinite;
}

/* ============ LOGOS STRIP ============ */
.logos {
  padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.logos-label {
  text-align: center; font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase; color: rgba(10,10,10,0.45);
  margin-bottom: 24px;
}
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 36px 48px;
}
.logos-row .logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-weight: 600; font-size: 16px;
  color: rgba(10,10,10,0.6); transition: color 0.2s;
}
.logos-row .logo:hover { color: var(--ink); }
.logos-row .logo .ic {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--ink);
}
.logos-row .logo .ic svg { width: 16px; height: 16px; }

/* ============ SECTION HEADER ============ */
.section, .section-padding { padding: 64px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.section-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; font-size: clamp(36px, 5vw, 60px); color: var(--ink);
  margin-top: 16px;
}
.section-head .desc { max-width: 380px; color: rgba(10,10,10,0.65); font-size: 15px; }

/* ============ SERVICES GRID ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; display: block;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(10,10,10,0.1); }
.svc-card .corner { position: absolute; width: 12px; height: 12px; }
.svc-card .corner.tl { top: 8px; left: 8px; border-left: 2px solid; border-top: 2px solid; }
.svc-card .corner.tr { top: 8px; right: 8px; border-right: 2px solid; border-top: 2px solid; }
.svc-card .corner.bl { bottom: 8px; left: 8px; border-left: 2px solid; border-bottom: 2px solid; }
.svc-card .corner.br { bottom: 8px; right: 8px; border-right: 2px solid; border-bottom: 2px solid; }
.svc-card .top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-card .no { font-family: var(--font-m); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; }
.svc-card .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.svc-card:hover .ic { transform: scale(1.1) rotate(6deg); }
.svc-card .ic svg { width: 22px; height: 22px; }
.svc-card h3 {
  font-family: var(--font-d); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; margin-top: 32px; color: var(--ink);
}
.svc-card p { font-size: 13.5px; color: rgba(10,10,10,0.65); margin-top: 10px; line-height: 1.55; }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.svc-card .tag {
  font-family: var(--font-m); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  background: rgba(10,10,10,0.05); color: rgba(10,10,10,0.6);
}
.svc-card .bar {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0;
  transition: width 0.5s ease;
}
.svc-card:hover .bar { width: 100%; }
.svc-card.cream { background: #fef7e0; }
.svc-card.cream .corner { border-color: #b8860b; }
.svc-card.cream .no { color: #b8860b; }
.svc-card.cream .ic { background: var(--ink); color: #fef7e0; }
.svc-card.cream .bar { background: #b8860b; }
.svc-card.mint { background: #e6f4ea; }
.svc-card.mint .corner { border-color: #16a34a; }
.svc-card.mint .no { color: #16a34a; }
.svc-card.mint .ic { background: var(--ink); color: #e6f4ea; }
.svc-card.mint .bar { background: #16a34a; }
.svc-card.sky { background: #e8f0fe; }
.svc-card.sky .corner { border-color: #2563eb; }
.svc-card.sky .no { color: #2563eb; }
.svc-card.sky .ic { background: var(--ink); color: #e8f0fe; }
.svc-card.sky .bar { background: #2563eb; }
.svc-card.coral { background: #fce8e6; }
.svc-card.coral .corner { border-color: #ea4335; }
.svc-card.coral .no { color: #ea4335; }
.svc-card.coral .ic { background: var(--ink); color: #fce8e6; }
.svc-card.coral .bar { background: #ea4335; }

/* ============ PROCESS ============ */
.process { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process-grid { grid-template-columns: 1fr; } }
.proc-card {
  position: relative; padding: 32px 24px; border-radius: var(--radius-lg);
  background: #fafafa; border: 1px solid var(--line); overflow: hidden;
  transition: all 0.3s ease;
}
.proc-card:hover { background: #fff; border-color: var(--ember); transform: translateY(-3px); }
.proc-card .no {
  font-family: var(--font-d); font-weight: 700; font-size: 56px;
  letter-spacing: -0.04em; line-height: 1; color: var(--ink);
  -webkit-text-stroke: 1px var(--ink); color: transparent; margin-bottom: 24px;
}
.proc-card:hover .no { -webkit-text-stroke: 1px var(--ember); }
.proc-card .label { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.proc-card h3 { font-family: var(--font-d); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.proc-card p { font-size: 13.5px; color: rgba(10,10,10,0.65); margin-top: 10px; line-height: 1.55; }
.proc-card .arrow {
  position: absolute; top: 32px; right: 24px; color: rgba(10,10,10,0.2);
  transition: color 0.3s, transform 0.3s;
}
.proc-card:hover .arrow { color: var(--ember); transform: translate(4px, -4px); }
.proc-card .arrow svg { width: 18px; height: 18px; }

/* ============ TECH STACK MARQUEE ============ */
.tech { padding: 80px 0; overflow: hidden; }
.tech-marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.tech-track:hover { animation-play-state: paused; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-d); font-weight: 600; font-size: 15px; color: var(--ink);
  white-space: nowrap;
}
.tech-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============ CASE STUDIES ============ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #0a0a0a; color: #fff; padding: 28px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s ease;
}
.case-card:hover { transform: translateY(-4px); }
.case-card .glow {
  position: absolute; top: -40%; right: -20%; width: 280px; height: 280px;
  border-radius: 9999px; filter: blur(70px); opacity: 0.4; pointer-events: none;
}
.case-card .top { position: relative; }
.case-card .client { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.case-card .client .av {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 13px;
}
.case-card .client .info .n { font-family: var(--font-d); font-weight: 600; font-size: 14px; }
.case-card .client .info .r { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.case-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-card .tag {
  font-family: var(--font-m); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
}
.case-card .bottom { position: relative; }
.case-card .metric { font-family: var(--font-d); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.case-card .metric-desc { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; }
.case-card .arrow {
  position: absolute; top: 28px; right: 28px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.case-card:hover .arrow { background: var(--ember); border-color: var(--ember); transform: translate(3px, -3px); }
.case-card .arrow svg { width: 14px; height: 14px; }

/* ============ DARK TAGLINE ============ */
.dark-section {
  background: #0a0a0a; color: #fff; position: relative; overflow: hidden;
}
.dark-section .grid-decor {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.dark-glow-1 {
  position: absolute; top: -10%; left: 5%; width: 500px; height: 500px;
  border-radius: 9999px; filter: blur(80px); opacity: 0.4;
  background: radial-gradient(circle, #ff6b3d 0%, transparent 70%);
  animation: aurora 16s ease-in-out infinite;
}
.dark-glow-2 {
  position: absolute; bottom: -10%; right: 5%; width: 460px; height: 460px;
  border-radius: 9999px; filter: blur(80px); opacity: 0.35;
  background: radial-gradient(circle, #ffb547 0%, transparent 70%);
  animation: aurora 18s ease-in-out infinite reverse;
}
.tagline { padding: 120px 0; position: relative; }
.tagline .words { margin-top: 24px; }
.tagline .word {
  font-family: var(--font-d); font-weight: 700; letter-spacing: -0.04em;
  line-height: 0.95; font-size: clamp(48px, 9vw, 128px);
  display: block;
}
.tagline .sub { margin-top: 36px; max-width: 480px; color: rgba(255,255,255,0.6); font-size: 16px; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 100px 0; position: relative; }
.testi-stage { position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.testi-slide { min-width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 800px) { .testi-slide { grid-template-columns: 1fr; } }
.testi-quote {
  position: relative; padding: 40px; border-radius: var(--radius-lg);
  overflow: hidden; min-height: 320px;
}
.testi-quote .qmark { position: absolute; top: 24px; right: 24px; width: 60px; height: 60px; opacity: 0.15; }
.testi-quote .qmark svg { width: 100%; height: 100%; }
.testi-quote .stars { display: flex; gap: 4px; margin-bottom: 20px; }
.testi-quote .stars svg { width: 16px; height: 16px; }
.testi-quote p {
  font-family: var(--font-d); font-weight: 500; font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.3; letter-spacing: -0.02em; color: var(--ink);
}
.testi-quote .who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.testi-quote .who .av {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 16px;
}
.testi-quote .who .n { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--ink); }
.testi-quote .who .r { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(10,10,10,0.55); margin-top: 2px; }
.testi-stat {
  position: relative; padding: 40px; border-radius: var(--radius-lg);
  background: #0a0a0a; color: #fff; overflow: hidden;
}
.testi-stat .label { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.testi-stat .big { font-family: var(--font-d); font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -0.03em; margin-top: 20px; }
.testi-stat .desc { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 10px; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.testi-dots button {
  width: 28px; height: 4px; border-radius: 999px; background: rgba(10,10,10,0.18);
  transition: all 0.3s;
}
.testi-dots button.active { background: var(--ember); width: 44px; }
.testi-nav { display: flex; gap: 8px; }
.testi-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.testi-nav button:hover { background: var(--ink); color: #fff; }
.testi-nav button svg { width: 16px; height: 16px; }

/* ============ CTA ============ */
.cta { padding: 40px 0 64px; }
.cta-card {
  position: relative; padding: 56px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(120deg, #fef7e0 0%, #fce8e6 50%, #e8f0fe 100%);
}
@media (max-width: 600px) { .cta-card { padding: 36px 28px; } }
.cta-card .grid-decor {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-card .float-1 { position: absolute; top: 30px; right: 40px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ember); background: rgba(255,255,255,0.4); animation: float 6s ease-in-out infinite; }
.cta-card .float-2 { position: absolute; bottom: 30px; left: 40px; width: 36px; height: 36px; border-radius: 8px; background: var(--ink); animation: floatSlow 8s ease-in-out infinite; }
.cta-card .inner { position: relative; max-width: 640px; }
.cta-card h2 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(34px, 5vw, 56px); line-height: 1; color: var(--ink); }
.cta-card p { font-size: 17px; color: rgba(10,10,10,0.7); margin-top: 16px; max-width: 500px; }
.cta-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-card .next-slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(10,10,10,0.1);
  font-size: 13px; color: rgba(10,10,10,0.75); font-weight: 500;
}
.cta-card .next-slot svg { width: 14px; height: 14px; color: var(--ember); }

/* ============ FOOTER ============ */
.footer { background: #0a0a0a; color: #fff; position: relative; overflow: hidden; padding: 80px 0 0; }
.footer .top-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ember), var(--gold), transparent); }
.footer-glow {
  position: absolute; top: -20%; left: 30%; width: 500px; height: 500px;
  border-radius: 9999px; filter: blur(80px); opacity: 0.25;
  background: radial-gradient(circle, #ff6b3d 0%, transparent 70%);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; margin-bottom: 56px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.footer-col a:hover { color: var(--ember); }
.footer-col a::before {
  content: ""; width: 0; height: 1px; background: var(--ember); transition: width 0.3s;
}
.footer-col a:hover::before { width: 14px; }
.footer-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
@media (max-width: 600px) { .footer-contact { grid-template-columns: 1fr; } }
.footer-contact .item .l { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.footer-contact .item .v { font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-contact .item .v.live { display: flex; align-items: center; gap: 8px; }
.footer-contact .item .v.live .d { width: 8px; height: 8px; border-radius: 50%; background: #28c840; animation: pulse 1.4s ease-in-out infinite; }
.footer-brand {
  position: relative; text-align: center; padding: 40px 0 24px;
  font-family: var(--font-d); font-weight: 700; letter-spacing: -0.05em;
  line-height: 0.85; font-size: clamp(56px, 14vw, 220px);
  background: linear-gradient(180deg, #fff 0%, #ff6b3d 60%, rgba(255,107,61,0.3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.footer-bottom .socials { display: flex; gap: 20px; }
.footer-bottom .socials a:hover { color: var(--ember); }

/* ============ ANIMATION HELPERS ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ INNER PAGES & BATTALION (Matched to TRC-OS v4.2 Design System) ============ */
.page-hero {
  padding: 96px 0 36px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(10,10,10,0.7); margin-bottom: 18px;
}
.page-hero__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: blink 1.1s steps(2) infinite; }
.page-hero__lead { font-size: 17px; color: rgba(10,10,10,0.68); max-width: 680px; margin-top: 14px; }
.page-hero__img { border-radius: var(--radius-lg); height: 310px; width: 100%; object-fit: cover; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(10,10,10,0.08); }
.breadcrumbs { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; color: rgba(10,10,10,0.55); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a:hover { color: var(--ember); }

.trc-value-ribbon { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0; }
.trc-value-ribbon__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .trc-value-ribbon__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .trc-value-ribbon__grid { grid-template-columns: 1fr; } }
.trc-value-pill { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--paper); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); }
.trc-value-pill:nth-child(1) .trc-value-pill__dot { background: #fef7e0; color: #b8860b; border: 1px solid #b8860b; }
.trc-value-pill:nth-child(2) .trc-value-pill__dot { background: #e6f4ea; color: #16a34a; border: 1px solid #16a34a; }
.trc-value-pill:nth-child(3) .trc-value-pill__dot { background: #e8f0fe; color: #2563eb; border: 1px solid #2563eb; }
.trc-value-pill:nth-child(4) .trc-value-pill__dot { background: #fce8e6; color: #ea4335; border: 1px solid #ea4335; }
.trc-value-pill__dot { width: 28px; height: 28px; border-radius: 8px; font-family: var(--font-m); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.entry-content h2 { font-family: var(--font-d); font-size: 28px; margin: 32px 0 12px; color: var(--ink); letter-spacing: -0.02em; }
.entry-content p { margin-bottom: 16px; line-height: 1.7; color: rgba(10,10,10,0.75); }

.trc-archetype { margin: 48px 0; border-radius: var(--radius-lg); padding: 36px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(10,10,10,0.04); }
.trc-archetype--dark, .trc-archetype--coral { background: #0a0a0a; color: #fff; border-color: rgba(255,255,255,0.1); }
.trc-archetype__badge { display: inline-block; background: var(--ember); color: #fff; font-family: var(--font-m); padding: 4px 12px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 12px; }
.trc-archetype__title { font-family: var(--font-d); font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; line-height: 1.15; letter-spacing: -0.02em; }

.trc-gauge-grid, .trc-blueprint-steps, .trc-deliverables-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.trc-gauge-card, .trc-step-card { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.trc-gauge-ring { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--ember); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--ember); background: #fff; }
.trc-step-num { font-family: var(--font-m); font-size: 10px; font-weight: 600; color: var(--ember); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px; }

.trc-ai-sim { background: #141416; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.trc-ai-prompt { background: rgba(255,107,61,0.14); color: #ffb547; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-family: var(--font-m); font-size: 12px; }
.trc-ai-response { color: #f3f3f3; line-height: 1.65; border-left: 3px solid #28c840; padding-left: 16px; }

.trc-tab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.trc-tab-btn { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.16); padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 13px; }
.trc-tab-btn.is-active { background: var(--ember); color: #fff; border-color: var(--ember); }
.trc-tab-panel { display: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 24px; }
.trc-tab-panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.trc-swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 20px; }
.trc-swatch { border-radius: var(--radius); padding: 20px; min-height: 115px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; border: 1px solid var(--line-2); }

.comp-grid-2, .trc-split-ps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
@media (max-width: 800px) { .comp-grid-2, .trc-split-ps, .trc-tab-panel.is-active { grid-template-columns: 1fr; } }
.comp-box { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-2); color: var(--ink); }
.trc-ps-card { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line-2); }
.trc-ps-card--problem { background: var(--coral); }
.trc-ps-card--solution { background: var(--mint); }
.trc-ps-card h3 { font-family: var(--font-d); font-size: 21px; margin-bottom: 12px; }
.trc-ps-list { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.trc-ps-card--problem .trc-ps-list li::before { content: "✗ "; color: #ea4335; font-weight: 800; margin-right: 6px; }
.trc-ps-card--solution .trc-ps-list li::before { content: "✓ "; color: #16a34a; font-weight: 800; margin-right: 6px; }

.trc-deliverables-band { background: #0a0a0a; color: #fff; border-radius: var(--radius-lg); padding: 38px; margin: 40px 0; }
.trc-deliverable-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 22px; }
.trc-deliverable-item h4 { font-family: var(--font-d); color: #fff; margin-bottom: 6px; }

.child-pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 22px; }
.child-page-card { border: 1px solid var(--line-2); padding: 24px; border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; transition: all 0.25s ease; }
.child-page-card:nth-child(4n+1) { background: var(--cream); }
.child-page-card:nth-child(4n+2) { background: var(--mint); }
.child-page-card:nth-child(4n+3) { background: var(--sky); }
.child-page-card:nth-child(4n+4) { background: var(--coral); }
.child-page-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,10,10,0.08); }

/* Our Battalion Team Grid */
.trc-team-filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 34px; }
.trc-team-filter-btn { background: #fff; border: 1px solid var(--line-2); color: var(--ink); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; }
.trc-team-filter-btn.is-active, .trc-team-filter-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.trc-battalion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
@media (max-width: 900px) { .trc-battalion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trc-battalion-grid { grid-template-columns: 1fr; } }
.trc-member-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: all 0.25s ease; }
.trc-member-card:hover { transform: translateY(-5px); border-color: var(--ember); box-shadow: 0 20px 50px rgba(10,10,10,0.08); }
.trc-member-photo-wrap { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); position: relative; margin-bottom: 14px; }
.trc-member-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.trc-member-dept-pill { position: absolute; top: 10px; left: 10px; background: rgba(10,10,10,0.82); color: #fff; font-family: var(--font-m); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.trc-member-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.trc-member-meta h3 { font-family: var(--font-d); font-size: 20px; margin: 0 0 2px; }
.trc-member-meta p { font-family: var(--font-m); font-size: 11px; color: var(--ember); margin: 0; text-transform: uppercase; letter-spacing: 0.08em; }
.trc-member-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.trc-bio-modal { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,0.72); backdrop-filter: blur(10px); align-items: center; justify-content: center; padding: 20px; }
.trc-bio-modal.is-open { display: flex; }
.trc-bio-modal__dialog { background: #fff; color: var(--ink); border-radius: var(--radius-lg); max-width: 880px; width: 100%; max-height: 88vh; overflow-y: auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding: 32px; position: relative; }
@media (max-width: 800px) { .trc-bio-modal__dialog { grid-template-columns: 1fr; } }
.trc-bio-modal__close { position: absolute; top: 18px; right: 18px; background: var(--ink); color: #fff; width: 36px; height: 36px; border-radius: 50%; }
.trc-bio-modal__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; border-radius: var(--radius); }
.trc-bio-skill-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.trc-bio-skill-pill { background: var(--cream); color: var(--ink); font-family: var(--font-m); padding: 4px 10px; border-radius: 6px; font-size: 10px; }

.trc-form { display: grid; gap: 16px; max-width: 680px; }
.trc-form input, .trc-form select, .trc-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; font-size: 14px; background: #fff; }
.trc-form button { background: var(--ink); color: #fff; padding: 14px 28px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 14px; width: fit-content; }
.trc-form button:hover { background: var(--ember); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

@media (max-width: 920px) {
  .trc-arcade-grid, .trc-vibe-grid { grid-template-columns: 1fr !important; }
}


/* ============ v18.0 MULTI-MEGA-MENU ENHANCEMENTS & HOVER BRIDGE FIX ============ */
.nav-list > li > a {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 13.5px;
}
.mega-caret {
  font-size: 10px;
  opacity: 0.65;
  transition: transform 0.22s ease;
}
.has-mega:hover .mega-caret,
.has-mega.is-open .mega-caret {
  transform: rotate(180deg);
  color: var(--ember);
  opacity: 1;
}
.mega-toggle-btn {
  display: none;
}
/* Invisible hover bridge so cursor never drops :hover across the gap between header and mega-menu */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
}
.mega-col__head {
  margin-bottom: 10px;
}
.mega-col__tag {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.mega-hot-pill {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  font-family: var(--font-m);
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.mega-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mega-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10,10,10,0.08);
  border-color: var(--ember);
}
.mega-feature-card h4 {
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--ink);
  margin: 6px 0 8px;
}
.mega-feature-card p {
  font-size: 12.8px;
  color: rgba(10,10,10,0.72);
  line-height: 1.55;
}


/* ============ v19.0 ZERO-DROP MEGA MENU HOVER BRIDGE & HITBOX FIX ============ */
.header-inner {
  overflow: visible !important;
}
.nav-list > li.has-mega {
  position: static;
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.mega-menu {
  top: calc(100% + 6px) !important;
}
/* 48px tall invisible bridge spanning the entire gap between nav link, header-inner padding, and mega-menu */
.mega-menu::before {
  content: "" !important;
  position: absolute !important;
  top: -48px !important;
  left: 0 !important;
  right: 0 !important;
  height: 52px !important;
  background: transparent !important;
  pointer-events: auto !important;
  display: block !important;
}
