/**
 * Ditto Design System
 * Clean, brutalist aesthetic with minimal complexity
 *
 * Design Principles:
 * - 3 font sizes (huge, big, body)
 * - 4 spacing values (tight, standard, loose, section)
 * - 2 weights (regular, heavy)
 * - Sharp edges, offset shadows, bold typography
 */

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --red: #e23b0b;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-light: #F3F4F6;
  --gray-mid: #6B7280;
  --gray-dark: #374151;

  /* Typography - 3 sizes only */
  --huge: 5rem;        /* 80px - Hero headlines */
  --big: 3rem;         /* 48px - Section titles */
  --body: 1.125rem;    /* 18px - Everything else */

  /* Spacing - 4 values only */
  --tight: 1rem;       /* 16px - Compact spacing */
  --standard: 2rem;    /* 32px - Default spacing */
  --loose: 4rem;       /* 64px - Generous spacing */
  --section: 7.5rem;   /* 120px - Section padding */

  /* Weights - 2 only */
  --regular: 400;
  --heavy: 800;

  /* Brutalist offset shadow */
  --shadow: 8px 8px 0;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: var(--body);
  font-weight: var(--regular);
  line-height: 1.6;
  color: var(--black);
}

h1, h2, h3, h4 {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--standard);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--red);
  }
  15% {
    opacity: 0.8;
    transform: scale(1.5);
    box-shadow: 0 0 12px 4px rgba(226, 59, 11, 0.3);
  }
  30%, 100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--red);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: var(--white);
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(#E5E7EB 1px, transparent 1px),
    linear-gradient(90deg, #E5E7EB 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.6;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--huge);
  margin-bottom: var(--standard);
}

.hero-highlight {
  color: var(--red);
}

.hero-subhead {
  font-size: calc(var(--body) * 1.33);
  font-weight: var(--regular);
  color: var(--gray-dark);
  margin-bottom: var(--tight);
}

.hero-detail {
  font-size: var(--body);
  color: var(--gray-dark);
  margin-bottom: var(--loose);
  max-width: 700px;
}

ul.hero-detail {
  list-style: none;
  padding-left: 0;
}

ul.hero-detail li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

ul.hero-detail li::before {
  content: "•";
  color: var(--red);
  font-weight: var(--heavy);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.1rem;
}

/* Hero data points animation */
.hero-data-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-data-points span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 6.4s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta {
  display: flex;
  gap: var(--tight);
}

.cta-centered {
  margin-top: var(--loose);
  justify-content: center;
}

.btn {
  padding: var(--tight) var(--standard);
  font-size: var(--body);
  font-weight: var(--heavy);
  font-family: 'Anybody', sans-serif;
  text-decoration: none;
  border-radius: 0;
  border: 2px solid var(--black);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--black);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--red);
}

.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--section) 0;
}

.section-gray {
  background: var(--gray-light);
}

.section h2 {
  font-size: var(--big);
  text-align: center;
  margin-bottom: var(--loose);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: calc(var(--standard) * -1) auto var(--loose);
  font-size: calc(var(--body) * 1.11);
  font-weight: var(--regular);
  color: var(--gray-dark);
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */

.article-page {
  width: 100%;
}

.article-container {
  max-width: 900px;
}

.article-back-link {
  margin-bottom: var(--standard);
}

.article-back-link a {
  color: var(--black);
  text-decoration: none;
  font-weight: var(--heavy);
  transition: color 0.15s ease;
}

.article-back-link a:hover {
  color: var(--red);
}

.article-header {
  margin-bottom: var(--loose);
}

.article-title {
  font-size: var(--huge);
  font-weight: var(--heavy);
  margin-bottom: var(--tight);
  line-height: 1.1;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--standard);
}

.article-tag {
  color: var(--gray-mid);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-tag:hover {
  color: var(--red);
}

.article-author {
  display: flex;
  align-items: center;
  gap: var(--tight);
}

.article-author-image {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  object-fit: cover;
}

.article-author-name {
  margin: 0;
  font-weight: var(--heavy);
  color: var(--black);
}

.article-author-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.article-featured-image {
  margin-bottom: var(--loose);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
}

.article-content h2 {
  font-size: calc(var(--body) * 1.75);
  font-weight: var(--heavy);
  margin-top: var(--section);
  margin-bottom: var(--standard);
  line-height: 1.2;
}

.article-content h3 {
  font-size: calc(var(--body) * 1.4);
  font-weight: var(--heavy);
  margin-top: var(--section);
  margin-bottom: var(--tight);
  line-height: 1.3;
}

.article-content h4 {
  font-size: calc(var(--body) * 1.2);
  font-weight: var(--heavy);
  margin-top: var(--loose);
  margin-bottom: var(--tight);
  line-height: 1.4;
}

.article-content p {
  margin-bottom: var(--tight);
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  font-weight: var(--heavy);
  transition: color 0.15s ease;
}

.article-content a:hover {
  color: var(--black);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--tight);
  padding-left: var(--standard);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  font-weight: var(--heavy);
}

.article-content blockquote {
  border-left: 4px solid var(--red);
  padding-left: var(--standard);
  margin: var(--standard) 0;
  font-style: italic;
  color: var(--gray-dark);
}

.article-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: var(--loose) 0;
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--red);
}

.article-content figure {
  margin: var(--loose) 0;
}

.article-content figure img {
  margin: 0;
}

.article-content figcaption {
  margin-top: var(--tight);
  font-size: 0.9rem;
  color: var(--gray-mid);
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--standard) 0;
  border: 2px solid var(--black);
}

.article-content th,
.article-content td {
  padding: var(--tight);
  text-align: left;
  border: 1px solid var(--black);
}

.article-content th {
  background: var(--black);
  color: var(--white);
  font-weight: var(--heavy);
}

.article-content td {
  color: var(--black);
}

.article-content tr:nth-child(even) {
  background: var(--gray-light);
}

.article-author-bio {
  margin: var(--loose) 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--white);
}

.article-author-bio-header {
  margin-bottom: var(--tight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: var(--heavy);
  color: var(--gray-mid);
}

.article-author-bio-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--standard);
  align-items: start;
}

.article-author-bio-image {
  width: 80px;
  height: 80px;
  border: 2px solid var(--black);
  object-fit: cover;
}

.article-author-bio-name {
  font-size: calc(var(--body) * 1.3);
  font-weight: var(--heavy);
  margin-bottom: 0.25rem;
}

.article-author-bio-meta {
  margin-bottom: var(--tight);
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.article-author-bio-text {
  margin: 0;
  line-height: 1.6;
  color: var(--gray-dark);
}

.article-author-social {
  margin-top: var(--tight);
  display: flex;
  gap: 0.5rem;
}

.article-author-social a {
  padding: 0.35rem 0.65rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.article-author-social a:hover {
  background: var(--black);
  color: var(--white);
}

/* Article callout boxes (for research studies) */
.article-callout {
  margin: var(--loose) 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--gray-light);
}

.article-callout-label {
  margin-bottom: var(--tight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--gray-mid);
}

.article-callout a {
  color: var(--red);
  text-decoration: underline;
}

.article-callout a:hover {
  text-decoration: none;
}

.article-related {
  margin: var(--loose) 0;
}

.article-related-title {
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--heavy);
  margin-bottom: var(--standard);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--standard);
}

.article-related-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  box-shadow: 4px 4px 0 var(--red);
  display: flex;
  flex-direction: column;
}

.article-related-card h4 {
  font-size: calc(var(--body) * 1.1);
  font-weight: var(--heavy);
  margin-bottom: var(--tight);
}

.article-related-card h4 a {
  color: var(--black);
  text-decoration: none;
}

.article-related-card p {
  color: var(--gray-dark);
  margin-bottom: var(--standard);
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-related-card .btn {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.article-cta {
  margin: var(--section) 0;
  padding: var(--loose);
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  text-align: center;
}

.article-cta h3 {
  font-size: var(--big);
  font-weight: var(--heavy);
  margin-bottom: var(--standard);
}

.article-cta p {
  color: var(--gray-light);
  margin-bottom: var(--standard);
  font-size: calc(var(--body) * 1.1);
}

.article-cta .btn-primary {
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--white);
}

/* Section with decorative background */
.section.has-background {
  position: relative;
  overflow: hidden;
}

.section.has-background .container {
  position: relative;
  z-index: 1;
}

/* Dark section (Final CTA) */
.section.dark {
  background: var(--black);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 59, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 59, 11, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.section.dark > * {
  position: relative;
  z-index: 1;
}

.section.dark h2 {
  font-size: var(--big);
  margin-bottom: var(--tight);
  color: var(--red);
}

.section.dark h2 + p {
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--regular);
  margin-bottom: var(--standard);
}

.section.dark .cta {
  margin-bottom: var(--standard);
}

.section.dark .btn {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--white);
}

.section.dark .btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--white);
}

.section.dark .text-small {
  color: var(--gray-mid);
}

/* ============================================
   CARDS
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--standard);
}

.card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  transform: translateY(-4px);
  box-shadow: var(--shadow) var(--red);
}

.card-label {
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 0.75);
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--black);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: var(--tight);
  box-shadow: 4px 4px 0 var(--red);
}

.card h3 {
  font-size: calc(var(--body) * 1.5);
  margin-bottom: var(--tight);
}

.card p {
  margin-bottom: var(--tight);
  font-weight: var(--regular);
}

.card-examples {
  font-size: calc(var(--body) * 0.875);
  color: var(--gray-dark);
}

/* ============================================
   METHODOLOGY SECTION
   ============================================ */

.methodology {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--loose);
  position: relative;
}

.methodology::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--black);
  z-index: 0;
}

.method-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.method-number {
  width: 72px;
  height: 72px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 2);
  font-weight: var(--heavy);
  margin: 0 auto var(--standard);
  box-shadow: 4px 4px 0 var(--red);
}

.method-step h3 {
  font-size: calc(var(--body) * 1.25);
  margin-bottom: var(--tight);
}

.method-step p {
  font-size: calc(var(--body) * 0.875);
  font-weight: var(--regular);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison {
  background: var(--white);
  padding: var(--loose);
  max-width: 900px;
  margin: 0 auto;
  border: 3px solid var(--black);
  position: relative;
}

.comparison::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: var(--red);
  z-index: -1;
}

.comparison h3 {
  text-align: center;
  font-size: calc(var(--body) * 2);
  margin-bottom: var(--standard);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--tight);
}

.comparison-header {
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 0.875);
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: var(--tight);
  border-bottom: 3px solid var(--black);
  text-align: center;
}

.comparison-row {
  display: contents;
}

.comparison-cell {
  padding: var(--tight) 0;
  border-bottom: 1px solid #D1D5DB;
  display: flex;
  align-items: center;
  font-size: var(--body);
}

.comparison-label {
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
}

.comparison-traditional {
  color: var(--gray-dark);
  justify-content: center;
}

.comparison-ditto {
  font-weight: var(--heavy);
  justify-content: center;
}

.comparison-ditto::before {
  content: '→';
  color: var(--red);
  margin-right: 8px;
  font-weight: var(--heavy);
}

/* ============================================
   BADGES
   ============================================ */

.badges {
  display: flex;
  justify-content: center;
  gap: var(--standard);
  flex-wrap: wrap;
  margin: var(--loose) 0;
}

.badge {
  width: 140px;
  height: 140px;
  background: var(--white);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anybody', sans-serif;
  font-weight: var(--heavy);
  text-align: center;
  padding: var(--tight);
}

/* ============================================
   WORLD MAP
   ============================================ */

.world-map-container {
  position: relative;
  margin: var(--loose) 0;
  width: 100%;
  padding-bottom: 50%;
  background-image: url('/world_map_dots.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.world-map-dots {
  position: absolute;
  inset: 0;
}

.world-map-dots span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 6.4s ease-in-out infinite;
}

/* ============================================
   LEADERS SECTION
   ============================================ */

.leaders-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--standard);
  margin-top: var(--loose);
}

.leaders-card {
  background: var(--white);
  padding: var(--standard);
  text-align: left;
}

.leaders-card h3 {
  font-size: calc(var(--body) * 1.25);
  margin-bottom: var(--tight);
}

.leaders-card p {
  color: var(--gray-dark);
  font-weight: var(--regular);
  line-height: 1.6;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--standard);
  margin-top: var(--loose);
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--black);
  margin-bottom: var(--tight);
}

.team-member-name {
  font-size: var(--body);
  font-weight: var(--heavy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.team-member-linkedin {
  display: inline-block;
  color: var(--black);
  transition: color 0.15s ease;
}

.team-member-linkedin:hover {
  color: var(--red);
}

.team-member-linkedin svg {
  width: 24px;
  height: 24px;
}

/* Work Methods Grid */
.work-methods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--loose);
  margin-top: var(--loose);
}

.work-method {
  text-align: center;
}

.work-method-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--standard);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-method-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.work-method-icon svg {
  width: 60px;
  height: 60px;
  color: var(--black);
}

.work-method h3 {
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--heavy);
  margin-bottom: var(--tight);
  line-height: 1.2;
}

.work-method p {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ============================================
   UTILITIES
   ============================================ */

.narrow-container {
  max-width: 800px;
}

.content-block {
  margin-bottom: var(--section);
}

.text-dark {
  color: var(--gray-dark);
}

.text-muted {
  font-size: calc(var(--body) * 0.875);
  color: var(--gray-mid);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--loose);
}

.two-col-grid h3 {
  font-size: calc(var(--body) * 1.5);
  margin-bottom: var(--standard);
}

.two-col-grid ul {
  list-style: none;
  padding: 0;
}

.two-col-grid li {
  margin-bottom: var(--tight);
}

.text-red {
  color: var(--red);
}

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

/* News/Articles */
.news-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--loose);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--standard);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--standard);
}

.news-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: var(--standard);
  box-shadow: 4px 4px 0 var(--red);
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  font-size: calc(var(--body) * 1.2);
  margin-bottom: var(--tight);
  font-weight: var(--heavy);
}

.news-card h3 a {
  color: var(--black);
  text-decoration: none;
}

.news-card p {
  color: var(--gray-dark);
  margin-bottom: var(--standard);
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-card .btn {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: var(--standard);
  align-self: flex-start;
}

.sidebar h4 {
  font-size: 0.875rem;
  margin-bottom: var(--tight);
  font-weight: var(--heavy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  padding: 0.35rem 0.65rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: var(--black);
  color: var(--white);
}

.tag-pill-active {
  background: var(--black);
  color: var(--white);
}

.empty-state {
  text-align: center;
  padding: var(--loose);
}

.empty-state h3 {
  font-size: var(--big);
  margin-bottom: var(--standard);
}

.empty-state p {
  color: var(--gray-dark);
  margin-bottom: var(--standard);
}

/* Research/Tag intro blocks */
.research-intro {
  margin-bottom: var(--loose);
  padding: var(--standard);
  background: var(--white);
  border: 2px solid var(--black);
}

.research-intro-title {
  margin: 0 0 var(--tight);
  font-size: var(--big);
  line-height: 1.2;
  color: var(--black);
  font-weight: var(--heavy);
}

.research-intro-subtitle {
  margin: 0 0 var(--standard);
  font-size: calc(var(--body) * 1.1);
  font-weight: var(--heavy);
  color: var(--black);
  line-height: 1.6;
}

.research-intro-text {
  max-width: 800px;
  margin-bottom: var(--standard);
}

.research-intro-text p {
  margin: 0 0 var(--standard);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--gray-dark);
}

.research-intro-bullets {
  margin: var(--standard) 0;
}

.research-intro-bullets ul {
  list-style: disc;
  padding-left: var(--loose);
  margin-top: var(--tight);
}

.research-intro-bullets li {
  margin-bottom: var(--tight);
  line-height: 1.6;
  color: var(--gray-dark);
}

.research-intro-cta {
  font-style: italic;
  color: var(--gray-mid);
  margin-top: var(--tight);
}

/* FAQ sections */
.research-faq {
  margin-top: var(--standard);
}

.research-faq-item + .research-faq-item {
  margin-top: var(--standard);
}

.research-faq-question {
  margin: 0 0 var(--tight);
  font-weight: var(--heavy);
  color: var(--black);
}

.research-faq-answer {
  margin: 0;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* FAQ Section Styles */
.faq-container {
  max-width: 900px;
}

.faq-header {
  text-align: center;
  margin-bottom: var(--loose);
}

.faq-category {
  margin-bottom: var(--section);
}

.faq-category-title {
  font-size: calc(var(--body) * 1.5);
  color: var(--red);
  margin-bottom: var(--standard);
}

.faq-item {
  margin-bottom: var(--tight);
  border: 2px solid var(--black);
  background: var(--white);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: calc(var(--body) * 1.25);
  padding: var(--tight);
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  color: var(--red);
  font-weight: var(--heavy);
}

.faq-answer {
  display: none;
  padding: 0 var(--tight) var(--tight) var(--tight);
  border-top: 2px solid var(--black);
}

.faq-answer p {
  color: var(--gray-dark);
  margin: var(--tight) 0 0 0;
}

/* Article content tables */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--loose) 0;
  border: 2px solid var(--black);
  overflow: hidden;
  background: var(--white);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--black);
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content th {
  background: var(--black);
  color: var(--white);
  font-weight: var(--heavy);
  font-size: calc(var(--body) * 1.05);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.article-content th *,
.article-content th p {
  color: var(--white);
  font-weight: var(--heavy);
  font-size: calc(var(--body) * 1.05);
  line-height: 1.4;
  margin: 0;
}

.article-content td {
  color: var(--gray-dark);
}

.article-content tr:nth-child(even) td {
  background: var(--gray-light);
}

@media (max-width: 720px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-content th,
  .article-content td {
    white-space: nowrap;
  }
}

/* Author byline */
.author-byline {
  display: flex;
  align-items: center;
  gap: var(--tight);
  margin-bottom: var(--loose);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--red);
}

.author-name {
  font-weight: var(--heavy);
  color: var(--black);
}

.author-meta {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.author-social {
  margin-top: var(--tight);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tight);
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.author-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--red);
}

.author-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.author-social-icon svg {
  width: 14px;
  height: 14px;
}

.author-social-icon-linkedin {
  background: #0a66c2;
}

.author-social-icon-instagram {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 35%, #d62976 60%, #962fbf 80%, #4f5bd5 100%);
}

.author-social-icon-twitter {
  background: #000000;
}

/* Article layout with sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--loose);
}

@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* Case study specific styles */
.case-study-hero {
  position: relative;
  background-image: url('/static/hero-background-people.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.case-study-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(226, 59, 11, 0.3) 100%);
  opacity: 0.9;
  z-index: 1;
}

.case-study-hero > * {
  position: relative;
  z-index: 2;
}

.case-study-media {
  margin: var(--loose) 0;
}

.case-study-media img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 8px 8px 0 var(--red);
}

.case-study-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--black);
  overflow: hidden;
  background: var(--white);
  margin: var(--loose) 0;
}

.case-study-table th,
.case-study-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--black);
}

.case-study-table tr:last-child td {
  border-bottom: none;
}

.case-study-table th {
  background: var(--black);
  color: var(--white);
  font-weight: var(--heavy);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.case-study-callout {
  margin: var(--loose) 0;
  padding: var(--standard);
  border: 2px solid var(--black);
  background: var(--gray-light);
}

.text-small {
  font-size: calc(var(--body) * 0.875);
  text-align: center;
  color: var(--gray-dark);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  background: var(--white);
  border-bottom: 2px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--tight);
  padding-bottom: var(--tight);
}

.header-logo {
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--body) * 1.5);
  font-weight: var(--heavy);
  color: var(--red);
  text-decoration: none;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--standard);
}

.header-nav a {
  font-size: var(--body);
  font-weight: var(--regular);
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--red);
}

.header-nav .btn {
  padding: calc(var(--tight) * 0.75) var(--tight);
}

.header-nav .btn-primary {
  color: var(--white);
}

.header-nav .btn-primary:hover {
  color: var(--white);
}

.header-mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--black);
  padding: 8px 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.header-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--black);
  display: block;
}

.header-mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--tight);
  padding: var(--standard) 0;
  border-top: 2px solid var(--black);
  margin-top: var(--tight);
}

.header-mobile-nav.active {
  display: flex;
}

.header-mobile-nav a {
  font-size: var(--body);
  font-weight: var(--regular);
  color: var(--black);
  text-decoration: none;
  padding: calc(var(--tight) * 0.5) 0;
}

.header-mobile-nav a:hover {
  color: var(--red);
}

.header-mobile-nav .btn-primary {
  color: var(--white);
}

.header-mobile-nav .btn-primary:hover {
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--loose) 0 var(--standard);
  border-top: 4px solid var(--red);
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: var(--tight);
}

.footer a {
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--standard);
  margin-bottom: var(--loose);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--tight) * 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--standard);
  border-top: 1px solid var(--gray-dark);
  color: var(--gray-mid);
  font-size: calc(var(--body) * 0.875);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --huge: 2.5rem;     /* 40px on mobile */
    --big: 1.75rem;     /* 28px on mobile */
    --body: 1rem;       /* 16px on mobile */
    --section: 4rem;    /* 64px on mobile */
  }

  .container {
    padding: 0 var(--tight);
  }

  .cards,
  .methodology,
  .leaders-cards {
    grid-template-columns: 1fr;
  }

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

  .work-methods {
    grid-template-columns: 1fr;
    gap: var(--loose);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .methodology::before {
    display: none;
  }

  .world-map-container {
    padding-bottom: 60%;
  }

  .world-map-dots span {
    width: 6px;
    height: 6px;
  }

  /* Header mobile */
  .header-nav {
    display: none;
  }

  .header-mobile-toggle {
    display: flex;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Case study sidebar callout improvements */
.article-callout + .article-callout {
  margin-top: var(--loose);
}

.article-callout dl {
  margin: 0;
}

.article-callout dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  margin-bottom: 4px;
}

.article-callout dd {
  margin: 0 0 var(--tight) 0;
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.article-callout dd:last-child {
  margin-bottom: 0;
}

.callout-header {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--tight);
  font-size: 0.85rem;
}

/* Case study hero improvements */
.hero .container.narrow-case-study {
  max-width: 900px;
}

.case-study-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: var(--tight);
}

/* Use case card links */
.card-link {
  display: inline-block;
  margin-top: var(--standard);
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.card-link:hover {
  transform: translateX(4px);
  text-decoration: underline;
}
