/* Trident Consulting site styles v3: Variation 3 calm and modern typography (all Inter), applied to latest baseline */
:root { font-family: Inter, system-ui, sans-serif; color: #0f172a; background: #ffffff; font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; font-family: Inter, system-ui, sans-serif; color: #475569; background: #ffffff; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.025em; color: #0f172a; max-width: 100%; text-wrap: balance; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.tcg-site-shell { min-height: 100vh; background: #ffffff; color: #475569; }

.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,232,240,0.8); transition: box-shadow 0.2s ease; }
.site-nav.scrolled { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.nav-inner { width: min(1280px, calc(100% - 48px)); margin: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 5px; line-height: 1; color: #0f172a; }
.brand strong { color: #0f172a; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.brand small { color: #94a3b8; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 18px; font-size: 0.8125rem; color: #64748b; }
.desktop-nav a:not(.nav-cta), .mobile-nav a:not(.nav-cta) { color: #64748b; transition: color 0.2s; }
.desktop-nav a:not(.nav-cta):hover, .mobile-nav a:not(.nav-cta):hover { color: #0f172a; }
.desktop-nav a.nav-active, .mobile-nav a.nav-active { color: #4f46e5; font-weight: 600; }
.desktop-nav .nav-cta.nav-active, .mobile-nav .nav-cta.nav-active { color: white; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; background: #4f46e5; color: white; padding: 10px 20px; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: #3730a3; transform: translateY(-1px); }
.menu-button { display: none; border: 0; background: transparent; color: #334155; font-size: 1.5rem; cursor: pointer; border-radius: 8px; padding: 8px; }
.mobile-nav { display: none; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; }
.mobile-nav.mobile-nav-open { max-height: 520px; opacity: 1; }

.hero-header { color: white; background: #0f172a; }
.hero { padding: 96px 0; max-width: 1240px; }
.hero-copy { max-width: 1060px; }
.hero-typewriter { margin: 0; min-height: 1.1em; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: clamp(1.5rem, 4.6vw, 3.7rem); color: white; letter-spacing: -0.03em; line-height: 1.1; overflow: visible; text-overflow: clip; white-space: nowrap; }
.cursor { display: inline-block; margin-left: 2px; animation: blink 1s step-end infinite; color: #818cf8; font-weight: 300; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

section { padding: 100px 0; }
.section-kicker { margin: 0 0 20px; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 600; color: #4f46e5; }
#contact .section-kicker { color: #a5b4fc; }
section h2 { max-width: 860px; margin-bottom: 20px; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; color: #0f172a; }
#contact h2 { color: #ffffff; }
.lede { max-width: 100%; color: #64748b; font-size: 1.02rem; line-height: 1.75; }
section p { color: #475569; }
strong, b { color: #0f172a; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-grid article { display: flex; flex-direction: column; gap: 6px; }
.stats-grid strong { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 2rem; letter-spacing: -0.025em; color: #0f172a; }
.stats-grid span { color: #94a3b8; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.industry-marquee { overflow: hidden; background: #ffffff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 20px 0; white-space: nowrap; position: relative; z-index: 3; }
.industry-marquee .wrap { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; column-gap: 42px; overflow: hidden; }
.industry-marquee .section-kicker { color: #4f46e5; position: relative; z-index: 5; opacity: 1; margin: 0; white-space: nowrap; background: #ffffff; }
.marquee-viewport { min-width: 0; overflow: hidden; position: relative; }
.marquee-track { display: inline-flex; align-items: center; min-width: max-content; animation: marquee 50s linear infinite; will-change: transform; }
.marquee-track span { color: #94a3b8; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; margin-right: 24px; }
.marquee-track b { color: #cbd5e1; font-weight: 400; margin-left: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

#process { background: #f8fafc; }
#services { background: transparent; }
#questions { background: #ffffff; }
#experience { background: #f8fafc; padding: 72px 0 64px; }
#case-studies { background: #f8fafc; }
.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }

.questions details { border-top: 1px solid #e2e8f0; padding: 21px 0; }
.questions details:last-child { border-bottom: 1px solid #e2e8f0; }
summary { cursor: pointer; list-style: none; font-weight: 500; color: #0f172a; padding-right: 25px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }
summary:after { content: '+'; position: absolute; right: 0; top: -3px; color: #4f46e5; font-size: 1.25rem; font-weight: 400; }
details[open] summary:after { content: '−'; color: #4f46e5; }
details[open] summary { color: #4f46e5; }
.questions details p { margin: 13px 30px 0 0; color: #64748b; line-height: 1.75; font-size: 0.93rem; }

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

.process-grid article { padding-top: 28px; border-top: 1px solid #e2e8f0; }
.process-grid article > span { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; color: #475569; margin-bottom: 52px; text-transform: uppercase; }
.process-grid h3 { margin: 0 0 20px 0; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.7rem); letter-spacing: -0.025em; color: #4f46e5; line-height: 1.1; }
.process-grid article > p { color: #64748b; line-height: 1.75; font-size: 0.93rem; margin-bottom: 0; }
.pillar-services { margin-top: 40px; display: flex; flex-direction: column; gap: 0; border-bottom: 1px solid #f1f5f9; }
.process-service { border-top: 1px solid #f1f5f9; background: #fff; transition: box-shadow 0.2s; }
.process-service:hover { box-shadow: 0 8px 32px rgba(79,70,229,0.08); }
.process-service summary { padding: 16px 34px 16px 18px; }
.process-service summary > span { display: flex; flex-direction: column; gap: 5px; }
.process-service strong { color: #0f172a; font-size: 0.93rem; font-weight: 500; letter-spacing: -0.01em; }
.process-service em { color: #94a3b8; font-style: normal; font-size: 0.78rem; font-weight: 400; line-height: 1.45; }
.process-service summary:after { right: 14px; top: 15px; font-size: 1.15rem; color: #4f46e5; }
.process-service[open] summary strong { color: #4f46e5; }
.process-service-panel { padding: 0 20px 18px 24px; }
.process-service-panel ul { margin: 0 0 12px; padding-left: 17px; color: #64748b; line-height: 1.75; font-size: 0.875rem; }
.process-service-panel p { margin: 0; color: #64748b; line-height: 1.7; font-size: 0.875rem; font-weight: 500; }

.experience-intro { max-width: 850px; margin-bottom: 28px; }
.stats-grid { max-width: 860px; margin: 32px 0 24px; }
.customer-section { background: #ffffff; padding: 42px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.customer-panel .section-kicker { margin-bottom: 18px; color: #64748b; }
.customer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.customer-card { min-height: 72px; display: flex; align-items: center; justify-content: center; padding: 16px 14px; text-align: center; color: #475569; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px; font-size: 0.9rem; font-weight: 400; line-height: 1.35; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035); }

.bio, .contact-shell { display: grid; grid-template-columns: 1.08fr .92fr; gap: 85px; align-items: start; }
.bio p:not(.section-kicker):not(.lede) { color: #475569; line-height: 1.75; }
.bio-eyeline { color: #4f46e5 !important; font-size: 0.83rem; font-weight: 700; }
.bio-photo { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.bio-photo img { width: min(100%, 320px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 50%; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12); }
.bio-photo figcaption { color: #64748b; font-size: 0.78rem; font-weight: 600; margin-top: 16px; text-align: center; }
.outline-cta { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; color: #374151; background: transparent; border-radius: 9999px; padding: 12px 24px; margin-top: 12px; font-weight: 600; font-size: 0.875rem; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.outline-cta:hover { border-color: #94a3b8; color: #111827; transform: translateY(-1px); }

.cs-teaser-card { background: white; border: 1px solid #e5e7eb; border-top: 3px solid #4f46e5; border-radius: 8px; padding: 28px; transition: transform 0.2s, box-shadow 0.2s; }
.cs-teaser-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(79,70,229,0.10); }

.cs-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.cs-teaser-card { display: flex; flex-direction: column; gap: 10px; }
.cs-teaser-icon { width: 40px; height: 40px; background: #eef2ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cs-teaser-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4f46e5; margin-top: 4px; }
.cs-teaser-outcome { font-size: 1.05rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.cs-teaser-desc { font-size: 0.87rem; color: #64748b; line-height: 1.75; margin: 0; }
.cs-cta-block { margin-top: 52px; text-align: center; }
.cs-cta-block p { color: #64748b; font-size: 0.9rem; margin-bottom: 18px; }

#contact { background: #0f172a; }
#contact h2, #contact .section-kicker { color: white; }
#contact .section-kicker { color: #a5b4fc; }
#contact .lede, #contact .contact-shell p:not(.section-kicker):not(.contact-urgency):not(.form-divider) { color: #94a3b8; }
.contact-urgency { color: #a5b4fc; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.contact-shell form { display: flex; flex-direction: column; gap: 18px; }
form label { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 0.8rem; font-weight: 500; }
#contact form label { color: #94a3b8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, textarea { width: 100%; border: 1px solid #d9dce1; background: white; padding: 12px 13px; color: #0f172a; border-radius: 4px; outline: none; font-weight: 400; }
#contact input, #contact textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: white; border-radius: 4px; }
#contact input::placeholder, #contact textarea::placeholder { color: rgba(255,255,255,0.48); }
input:focus, textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,0.12); }
#contact input:focus, #contact textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.18); }
textarea { resize: vertical; }
form button { border: 0; cursor: pointer; align-self: flex-start; background: #4f46e5; color: white; border-radius: 9999px; padding: 12px 28px; font-weight: 600; transition: background 0.2s, transform 0.2s; }
form button:hover { background: #3730a3; transform: translateY(-1px); }
form small { color: #94a3b8; font-size: 0.76rem; }
#contact form small { color: #94a3b8; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.contact-details a { color: white; font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 10px; transition: color 0.2s; }
.contact-details a:hover { color: #a5b4fc; }
.contact-details .location-row { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 0.88rem; }
.contact-heading { max-width: 100%; line-height: 1.15; }
.form-divider { color: #64748b; font-size: 0.8rem; margin-bottom: 10px; }
.contact-social { margin-top: 18px; }
.linkedin-link { display: inline-flex; align-items: center; gap: 8px; color: #64748b; font-size: 0.82rem; transition: color 0.2s; }
.linkedin-link:hover { color: #0077b5; }

footer { background: #ffffff; border-top: 1px solid #e2e8f0; color: #94a3b8; padding: 29px 0; font-size: 0.8rem; }
footer p { color: #94a3b8; margin-bottom: 6px; }
footer a { color: #4f46e5; }

@media (min-width: 1000px) { #process h2, #experience h2 { max-width: 1120px; } }
@media (max-width: 900px) { .desktop-nav { gap: 14px; font-size: 0.78rem; } }
@media (max-width: 800px) { .desktop-nav { display: none; } .menu-button { display: block; } .mobile-nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; padding: 0 24px; background: white; border-bottom: 1px solid #e2e8f0; flex-direction: column; gap: 17px; font-size: 0.9rem; } .mobile-nav.mobile-nav-open { padding: 18px 24px 24px; } .mobile-nav .nav-cta { text-align: center; margin-top: 5px; } .hero { padding: 128px 0; } .hero-typewriter { font-size: clamp(1.75rem, 7.5vw, 2.5rem); } section { padding: 78px 0; } .split-section, .bio, .contact-shell { grid-template-columns: 1fr; gap: 45px; } .process-grid, .cs-teaser-grid { grid-template-columns: 1fr; margin-top: 35px; } .process-grid article > span { margin-bottom: 32px; } }
@media (max-width: 520px) { .wrap, .nav-inner { width: min(100% - 34px, 1240px); } .brand small { max-width: 230px; line-height: 1.25; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; } .hero { padding: 96px 0; } .form-row { grid-template-columns: 1fr; } .industry-marquee .wrap { grid-template-columns: 1fr; row-gap: 14px; } .marquee-viewport { width: 100%; } }
@media (min-width: 640px) { .hero { padding: 128px 0; } }
@media (min-width: 1024px) { .hero { padding: 160px 0; } }

/* Static-browser helpers only */
.hero-main-copy {
  max-width: 860px;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1.8rem;
  font-weight: 500;
  margin: 2rem 0 0;
}
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1130px) {
  .hero-main-copy { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* Mobile layout fixes, latest baseline */
@media (max-width: 800px) {
  html, body, .tcg-site-shell { width: 100%; max-width: 100%; overflow-x: hidden; }
  .wrap, .nav-inner { width: calc(100% - 40px); max-width: 100%; }
  h1, h2, h3, h4, h5, h6 { white-space: normal; overflow-wrap: normal; }
  section h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); line-height: 1.15; }
  .hero { padding: 82px 0; width: 100%; }
  .hero-copy { max-width: 100%; }
  .hero-typewriter { white-space: normal; min-height: 2.25em; font-size: clamp(1.75rem, 7.5vw, 2.5rem); line-height: 1.12; }
  .hero-main-copy { margin-top: 1.35rem; font-size: 1rem; line-height: 1.6; }
  section { padding: 68px 0; }
  .process-grid { gap: 42px; }
  .process-grid article > span { margin-bottom: 22px; }
  .pillar-services { margin-top: 26px; }
  .industry-marquee { padding: 18px 0; }
  .industry-marquee .wrap { width: 100%; padding-left: 20px; padding-right: 0; }
  .customer-section { padding: 34px 0; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .customer-card { min-height: 66px; padding: 13px 10px; font-size: 0.84rem; }
  .bio-photo img { width: min(76vw, 300px); }
}

@media (max-width: 420px) {
  .wrap, .nav-inner { width: calc(100% - 32px); }
  .customer-grid { grid-template-columns: 1fr 1fr; }
  .customer-card { font-size: 0.8rem; }
}
