:root {
  --nielsen-dark: #0f172a;
  --nielsen-blue: #1e40af;
  --nielsen-blue-hover: #1d4ed8;
  --nielsen-light-blue: #f0f4ff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --font-sans: 'Public Sans', 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--white); color: var(--nielsen-dark); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  height: 70px; display: flex; align-items: center;
  overflow: hidden; /* clips anything that bleeds below 70px height */
}
.nav-inner {
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
  position: relative; /* FIX: anchor for absolute mobile nav */
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
  font-weight: 800; font-size: 20px; color: var(--white);
  background: var(--nielsen-dark); padding: 4px 10px; border-radius: 2px;
  letter-spacing: -0.03em;
}
.logo-text {
  font-size: 16px; font-weight: 700; color: var(--nielsen-dark);
  letter-spacing: -0.01em; text-transform: uppercase;
}
.logo-text span { color: var(--nielsen-blue); font-weight: 400; }
.nav-links { display: flex; align-items: center; list-style: none; height: 100%; flex-shrink: 0; }
.nav-links li a {
  display: block; padding: 0 14px; height: 70px; line-height: 70px;
  font-size: 13.5px; font-weight: 500; color: var(--text-main);
  text-decoration: none; transition: color 0.15s, border-color 0.15s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-links li a:hover { color: var(--nielsen-blue); border-bottom-color: var(--nielsen-blue); }
.nav-cta-wrap { margin-left: 20px; }
.nav-cta {
  display: inline-block; padding: 10px 20px; border-radius: 4px;
  background: var(--nielsen-blue); color: var(--white) !important;
  font-size: 14px !important; font-weight: 600 !important; text-decoration: none;
  transition: background 0.2s; border-bottom: none !important;
}
.nav-cta:hover { background: var(--nielsen-blue-hover) !important; }
.nav-toggle { display: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--nielsen-dark); }

/* ── HERO IMAGE BACKGROUND ── */
#hero { position: relative; padding-top: 70px; background: var(--white); display: flex; flex-direction: column; }
.hero-top {
  background-image: url('0.jpg');
  background-size: cover;
  background-position: center 30%;
  position: relative;
}
.hero-top::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.82) 55%, rgba(15,23,42,0.45) 100%);
  pointer-events: none; z-index: 0;
}
.hero-top > * { position: relative; z-index: 1; }
.hero-left { padding: 60px 40px 60px 0; }
.hero-tag { color: #93c5fd !important; }
h1 { color: var(--white) !important; }
h1 em { color: #38bdf8 !important; }
.hero-sub { color: #cbd5e1 !important; }
.hero-right {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(8px);
}
.hero-stat-num { color: var(--white) !important; }
.hero-stat-label { color: #38bdf8 !important; }
.hero-stat-desc { color: #94a3b8 !important; }
.hero-divider { background: rgba(255,255,255,0.12) !important; }

.hero-top {
  max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
  min-height: 540px; align-items: center;
}
.hero-left { padding: 60px 40px 60px 0; }
.hero-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nielsen-blue); margin-bottom: 16px;
}
h1 {
  font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1.15;
  color: var(--nielsen-dark); margin-bottom: 24px; letter-spacing: -0.02em;
}
h1 em { font-style: normal; color: var(--nielsen-blue); font-weight: 700; }
.hero-sub {
  font-size: 18px; font-weight: 400; line-height: 1.65;
  color: var(--text-main); max-width: 580px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--nielsen-blue); color: var(--white);
  padding: 14px 28px; font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: 4px; display: inline-block; transition: background 0.2s;
}
.btn-primary:hover { background: var(--nielsen-blue-hover); }
.btn-secondary {
  background: transparent; color: var(--nielsen-dark);
  padding: 14px 28px; font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border-light); border-radius: 4px; display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--bg-light); border-color: var(--text-muted); }

/* FIX: min-width:0 prevents grid child overflow on narrow screens */
.hero-right {
  padding: 40px; background: var(--bg-light); border-radius: 8px;
  border: 1px solid var(--border-light); min-width: 0;
}
.hero-stat-block { margin-bottom: 24px; }
.hero-stat-block:last-child { margin-bottom: 0; }
.hero-stat-num {
  font-size: 44px; font-weight: 800; color: var(--nielsen-dark);
  line-height: 1; margin-bottom: 4px; letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 14px; font-weight: 600; color: var(--nielsen-blue); }
.hero-stat-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.hero-divider { width: 100%; height: 1px; background: var(--border-light); margin: 20px 0; }

/* FIX: hero-bottom is now a direct flex child of #hero, eliminating any gap */
.hero-bottom { background: var(--nielsen-dark); color: var(--white); }
.hero-bottom-inner {
  max-width: 1280px; margin: 0 auto; padding: 24px 40px;
  display: flex; align-items: center; gap: 24px;
}
.hero-bottom-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.hero-client-strip { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-client-name { font-size: 13px; font-weight: 500; color: #94a3b8; }

/* ── SECTION CORE ── */
.section-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section-header { margin-bottom: 48px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--nielsen-blue); margin-bottom: 12px; display: block;
}
h2 {
  font-size: clamp(28px, 3.2vw, 38px); font-weight: 800;
  line-height: 1.2; color: var(--nielsen-dark); letter-spacing: -0.02em;
}
.section-lead {
  font-size: 17px; font-weight: 400; line-height: 1.7;
  color: var(--text-main); max-width: 700px; margin-top: 16px;
}

/* ── SERVICES / SOLUTIONS ── */
#services { padding: 88px 0; background: var(--bg-light); border-top: 1px solid var(--border-light); }
.services-header-row {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; margin-bottom: 48px; align-items: end;
}
.services-header-row .section-header { margin-bottom: 0; }
.services-header-note { font-size: 15px; color: var(--text-main); line-height: 1.65; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 36px; background: var(--white); border-radius: 6px;
  border: 1px solid var(--border-light); transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  border-color: var(--nielsen-blue);
}
.service-num {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.05em; margin-bottom: 20px;
}
.service-card h3 {
  font-size: 18px; font-weight: 700; color: var(--nielsen-dark); margin-bottom: 12px; letter-spacing: -0.01em;
}
.service-card p { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--text-main); }
.service-link {
  display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 600;
  color: var(--nielsen-blue); text-decoration: none;
}
.service-link:hover { text-decoration: underline; }

/* ── DATA BAND ── */
.band {
  background: var(--nielsen-dark);
  background-image: url('4.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 56px 0; color: var(--white);
}
.band::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.82);
  z-index: 0;
}
.band-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.band-text { font-size: clamp(20px, 2.5vw, 28px); font-weight: 400; line-height: 1.35; max-width: 720px; letter-spacing: -0.01em; }
.band-text strong { font-weight: 700; color: var(--white); }
.btn-white {
  background: var(--white); color: var(--nielsen-dark);
  padding: 14px 28px; font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: 4px; transition: background 0.2s; white-space: nowrap;
}
.btn-white:hover { background: var(--nielsen-light-blue); }

/* ── LEADERSHIP / ABOUT ── */
#about { padding: 88px 0; background: var(--white); }
/* FIX: removed position:sticky from about-portrait — sticky requires a scrollable parent with defined height, which is absent here, causing broken layout on some browsers */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.about-portrait { /* position:sticky removed */ }
.portrait-box {
  background: var(--nielsen-dark); aspect-ratio: 3/4; border-radius: 6px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; position: relative;
  /* FIX: hide overflow so large initials text doesn't spill outside the box */
  overflow: hidden;
}
/* FIX: initials text font-size reduced to prevent overflow at small widths; color opacity kept for decorative effect */
.portrait-initials {
  position: absolute; top: 20px; left: 20px; font-size: clamp(36px, 6vw, 72px); font-weight: 800; color: rgba(255,255,255,0.03);
  /* FIX: prevent text selection of decorative element */
  user-select: none; pointer-events: none;
}
.portrait-name { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.portrait-role { font-size: 12px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.certs { display: flex; gap: 6px; margin-top: 12px; }
.cert { background: rgba(255,255,255,0.1); color: var(--white); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 2px; }
.about-text p { font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--text-main); margin-bottom: 20px; }
.pullquote {
  font-size: 18px; font-weight: 500; color: var(--nielsen-blue);
  border-left: 4px solid var(--nielsen-blue); padding: 12px 20px;
  background: var(--bg-light); margin: 28px 0; border-radius: 0 4px 4px 0;
}
/* FIX: border-right dividers between exp items for visual clarity; last child has no right padding waste */
.exp-row { display: flex; gap: 0; margin-top: 40px; border-top: 1px solid var(--border-light); }
.exp-item { flex: 1; padding: 24px 24px 0 0; border-right: 1px solid var(--border-light); }
.exp-item:last-child { border-right: none; padding-right: 0; }
.exp-num { font-size: 36px; font-weight: 800; color: var(--nielsen-dark); line-height: 1; margin-bottom: 4px; }
.exp-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

/* ── TRACK RECORD / CLIENTS ── */
#clients { padding: 88px 0; background: var(--white); border-top: 1px solid var(--border-light); }
.clients-header-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 40px; }
.clients-note { font-size: 15px; color: var(--text-main); line-height: 1.65; }
/* FIX: table-layout:fixed + width constraints to prevent columns from blowing out on small content */
.clients-table { width: 100%; border-collapse: collapse; margin-top: 12px; table-layout: fixed; }
.clients-table thead tr { border-bottom: 2px solid var(--nielsen-dark); }
.clients-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--nielsen-dark); padding: 14px 16px;
}
.clients-table tbody tr { border-bottom: 1px solid var(--border-light); transition: background 0.15s; }
.clients-table tbody tr:hover { background: var(--bg-light); }
.clients-table td { padding: 16px; font-size: 14px; color: var(--text-main); vertical-align: middle; word-wrap: break-word; }
.clients-table td:first-child { font-weight: 600; color: var(--nielsen-dark); font-size: 15px; }
.client-sub { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.tag {
  display: inline-block; padding: 4px 8px; background: var(--bg-light);
  border: 1px solid var(--border-light); border-radius: 4px;
  font-size: 11px; font-weight: 500; color: var(--text-main);
}

/* ── HUMAN CAPITAL / TEAM ── */
#team { padding: 88px 0; background: var(--bg-light); border-top: 1px solid var(--border-light); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.team-card { background: var(--white); padding: 32px 24px; border-radius: 6px; border: 1px solid var(--border-light); }
.team-icon { font-size: 24px; margin-bottom: 16px; display: block; }
.team-card h4 { font-size: 16px; font-weight: 700; color: var(--nielsen-dark); margin-bottom: 8px; }
.team-card p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.team-cta-bar {
  background: var(--nielsen-dark); color: var(--white); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-top: 32px; border-radius: 6px;
}
.team-cta-text { font-size: 15px; font-weight: 400; }
.btn-outline-white {
  background: transparent; color: var(--white); padding: 10px 20px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ── INQUIRIES / CONTACT ── */
#contact { background: var(--white); border-top: 1px solid var(--border-light); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.contact-left { background: var(--nielsen-dark); color: var(--white); padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.contact-right { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.contact-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; margin-bottom: 16px; }
.contact-left h2 { color: var(--white); margin-bottom: 40px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon-box { font-size: 18px; color: #94a3b8; margin-top: 2px; }
.c-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; letter-spacing: 0.05em; }
.c-value { font-size: 15px; color: #e2e8f0; line-height: 1.5; }
.c-value a { color: #e2e8f0; text-decoration: none; }
.c-value a:hover { color: var(--white); text-decoration: underline; }

.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; background: var(--bg-light); border: 1px solid var(--border-light);
  padding: 12px; font-family: var(--font-sans); font-size: 14px; border-radius: 4px;
  color: var(--nielsen-dark); outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--nielsen-blue); background: var(--white); }
.form-textarea { height: 100px; resize: vertical; }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
/* FIX: type="button" added in HTML so button doesn't trigger native form submission in some environments */
.btn-submit {
  width: 100%; background: var(--nielsen-blue); color: var(--white);
  padding: 14px; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.btn-submit:hover { background: var(--nielsen-blue-hover); }

/* ── FOOTER ── */
footer { background: var(--nielsen-dark); color: var(--white); padding: 60px 0 30px; border-top: 4px solid var(--nielsen-blue); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: var(--white); opacity: 0.6; }
.footer-brand-tagline { font-size: 13px; color: #94a3b8; margin-top: 12px; }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #64748b; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: #64748b; }

/* ── SCROLL ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ── ADAPTIVE LAYOUTS ── */
@media (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-left { padding: 40px 0 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait { max-width: 300px; }
  .clients-header-row { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 60px 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .services-header-row { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section-wrap, .nav-inner, .footer-inner, .band-inner { padding: 0 20px; }
  .contact-left, .contact-right { padding: 40px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  /* FIX: hero-bottom padding on mobile */
  .hero-bottom-inner { padding: 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  /* FIX: exp-row wraps on very small screens */
  .exp-row { flex-wrap: wrap; }
  .exp-item { min-width: 120px; border-right: none; }
  /* FIX: table horizontal scroll on mobile instead of content squish */
  #clients .section-wrap { overflow-x: auto; }
  .clients-table { min-width: 600px; }
}
