/* =============================================================================
   Trusted section (homepage “Studio” block)
   — Selected-clients strip, 0-1 / im_Theo™ column, testimonial cards grid
   ============================================================================= */

.trusted-section {
  --trusted-star: #ff8a71;
  background: var(--bg-light);
  color: var(--text-dark-muted);
  padding: 5rem 2.5rem 6rem;
  position: relative;
  overflow-x: clip;
  border-radius: 2rem;
  margin: -2rem 0;
  z-index: 0;
}

.trusted-container {
  max-width: min(100vw - 3rem, 1480px);
  margin: 0 auto;
  position: relative;
}

/* Selected clients: full viewport width across entire screen */
.trusted-section .trusted-header-full {
  width: calc(100% + 5rem);
  margin: 0 -2.5rem;
  padding: 0 2.5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.trusted-section .trusted-header-full .trusted-header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2rem;
  width: 100%;
  flex-wrap: nowrap !important;
}

.selected-clients-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.selected-clients-line {
  flex: 1;
  min-width: 2rem;
  height: 1px;
  align-self: center;
  background: rgba(0, 0, 0, 0.12);
}

.selected-clients-line::before {
  content: none;
}

/* Selected clients row – scope to trusted-section to override global .client-logos */
.trusted-section .trusted-header-full .client-logos {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  align-self: center !important;
  flex-wrap: nowrap !important;
  gap: 2rem;
  flex-shrink: 0;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trusted-section .trusted-header-full .client-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.02em;
  cursor: default;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.trusted-section .trusted-header-full .client-icon {
  flex-shrink: 0;
  opacity: 0.7;
  display: block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

.trusted-section .trusted-header-full .client-active {
  color: #000;
  font-weight: 600;
}

/* “0-1” + im_Theo™ / avatars / stars / lede */
.trusted-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 5vw, 5.25rem);
  position: relative;
  z-index: 1;
}

/* Homepage trusted column — “0—1” mark (slightly smaller than full display size) */
.trusted-section .section-number {
  font-family: var(--font-oswald, var(--font-system));
  font-size: clamp(2.85rem, 7.25vw, 5.5rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.04em;
  line-height: 1;
}

.trusted-content h2 {
  font-family: var(--font-oswald, var(--font-system));
  font-size: clamp(1.55rem, 1.8vw, 1.75rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
}

.avatar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 0.65rem;
  isolation: isolate;
}

.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -9px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(1) {
  z-index: 1;
}

.avatar:nth-child(2) {
  z-index: 2;
}

.avatar:nth-child(3) {
  z-index: 3;
}

.avatar:nth-child(4) {
  z-index: 4;
}

.avatar:nth-child(5) {
  z-index: 5;
}

.avatar-photo {
  padding: 0;
  background: #e8e8e8;
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-color {
  background: #e53935 !important;
}

.avatar-count {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.58rem, 1vw, 0.6875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  background: #050505 !important;
}

.avatar-count span {
  line-height: 1;
}

.trusted-by {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #5c5c5c;
  margin: 0 0 0.5rem;
}

.trusted-stars {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.5rem;
}

.trusted-stars svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: var(--trusted-star);
}

/* Legacy class if used elsewhere */
.stars {
  color: var(--trusted-star);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.15em;
}

.trusted-desc {
  font-size: clamp(1.02rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-dark-muted);
  max-width: min(36rem, 100%);
}

/* Testimonial + stats + case study cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.35rem, 2vw, 2.25rem);
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card-bg);
  border-radius: clamp(14px, 1.2vw, 18px);
  padding: clamp(2rem, 2.5vw, 2.75rem);
  box-shadow: var(--shadow);
}

.card-testimonial {
  position: relative;
}

.card-quote {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 6rem;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
}

.card-title {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 0.85rem;
  line-height: 1.28;
}

.card-body {
  font-size: clamp(0.98rem, 1.05vw, 1.05rem);
  line-height: 1.62;
  color: #000;
  margin-bottom: 1.5rem;
}

.card-stat .card-body {
  text-align: center;
  margin-bottom: 0;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-author strong {
  display: block;
  font-size: 0.9rem;
  color: #000;
}

.card-author span {
  font-size: 0.875rem;
  color: var(--text-dark-muted);
}

.card-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-dark-muted);
}

.stat-arrow {
  color: var(--text-dark-muted);
}

.stat-arrow--filled {
  color: rgb(23, 23, 23);
}

.stat-value {
  font-family: var(--font-oswald, var(--font-system));
  font-size: clamp(3.35rem, 6.5vw, 5.5rem);
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

/* Fact 02 — $ + 12k split; bold when card active (see trusted-stat-toggle.js) */
.stat-value--split {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.02em;
  flex-wrap: nowrap;
}

.stat-value--split .stat-currency,
.stat-value--split .stat-figure {
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
  font-synthesis: none;
  transition: font-weight 0.28s ease;
}

.card-stat--metric-toggle {
  cursor: pointer;
  outline: none;
}

.card-stat--metric-toggle:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(91, 240, 158);
}

.card-stat--metric-toggle.is-stat-metric-active .stat-currency,
.card-stat--metric-toggle.is-stat-metric-active .stat-figure {
  font-weight: 700;
}

/* Stat cards (80%, $12k): content in bottom half, left-aligned per reference */
.card.card-stat.card-stat-left {
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: clamp(260px, 28vw, 320px);
}
.card.card-stat.card-stat-left .stat-value {
  margin-top: auto !important;
  padding-top: 2rem;
  align-self: flex-start;
}
.card.card-stat.card-stat-left .stat-value,
.card.card-stat.card-stat-left .card-body {
  text-align: left !important;
}

.card-case-study {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.case-study-image {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 28vw, 340px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-study-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 50%);
  color: white;
}

.case-study-title {
  font-family: var(--font-display, 'Apfel Grotezk', sans-serif);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--accent-green);
  text-decoration: none;
}

.case-study-link svg {
  flex-shrink: 0;
}

/* Process description card (Framer “Process card”) */
.card-process {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-process-quote {
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
}

.card-process-quote .card-title {
  margin-bottom: 0;
}

.card-process .card-link {
  margin-top: auto;
  padding-top: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-green, #22c55e);
  text-decoration: none;
  margin-top: 0.5rem;
}

.card-link:hover {
  text-decoration: underline;
}

.card-link svg {
  flex-shrink: 0;
}

/* Mint arrow + dark label (Framer export) */
.card-link--process {
  color: rgb(23, 23, 23);
  align-items: center;
  gap: 0.5rem;
}

.card-link--process .card-link-arrow {
  flex-shrink: 0;
  color: rgb(91, 240, 158);
}

.card-link--process:hover,
.card-link--process:focus-visible {
  color: rgb(91, 240, 158);
  text-decoration: none;
}

.card-link--process:hover .card-link-text,
.card-link--process:focus-visible .card-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Timeline card */
.card-timeline {
  display: flex;
  flex-direction: column;
}

.timeline-header {
  margin-bottom: 1.25rem;
}

.timeline-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  display: block;
  font-size: 0.875rem;
  color: var(--text-dark-muted);
}

/* Timeline graph – chart-style layout */
.timeline-graph {
  margin-top: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Timeline chart: staggered pill blocks, axis, grid */
.timeline-chart-area {
  position: relative;
  min-height: clamp(160px, 18vw, 190px);
  padding: 0.85rem 0 3.75rem;
  /* Framer-style: vertical week columns + horizontal rows */
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(12.5% - 1px),
      rgba(0, 0, 0, 0.065) calc(12.5% - 1px),
      rgba(0, 0, 0, 0.065) 12.5%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 49px,
      rgba(0, 0, 0, 0.04) 49px,
      rgba(0, 0, 0, 0.04) 50px
    );
}

.timeline-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline-grid-lines .grid-line {
  position: absolute;
  top: 0;
  bottom: 3.5rem;
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
}

/* Horizontal grid lines for chart */
.timeline-grid-lines::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 33.33%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06) 5%, rgba(0, 0, 0, 0.06) 95%, transparent);
  pointer-events: none;
}

/* Baseline connecting chart to axis */
.timeline-grid-lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.5rem;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.timeline-pill {
  position: absolute;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.timeline-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.timeline-pill-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Discovery: light green, top, spans ~ellipsis to 1 Week */
.timeline-pill-discovery {
  left: 5%;
  width: 30%;
  top: 0;
  background: linear-gradient(180deg, #9ef9c4 0%, #92F8B7 100%);
}

/* Concept: mid green, middle, spans ~1 Week to past 2 Weeks */
.timeline-pill-concept {
  left: 20%;
  width: 48%;
  top: 2.75rem;
  background: linear-gradient(180deg, #82e8a8 0%, #71E59C 100%);
}

/* Execution: darker green, bottom, spans ~2 Weeks to past 3 Weeks */
.timeline-pill-execution {
  left: 45%;
  width: 50%;
  top: 5.5rem;
  background: linear-gradient(180deg, #4de08a 0%, #38DB7A 100%);
}

/* Axis: horizontal line, tick marks, week labels (per reference) */
.timeline-axis {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  grid-template-rows: auto auto;
  min-height: 2.5rem;
  margin-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.timeline-axis-ellipsis {
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.timeline-axis-track {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  min-height: 0.6rem;
}

.timeline-axis-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.18);
}

.axis-tick {
  position: absolute;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  bottom: 0;
  width: 1px;
  height: 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.timeline-axis-labels {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  padding-top: 0.35rem;
  min-height: 1rem;
}

.axis-label {
  position: absolute;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 968px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .trusted-main {
    grid-template-columns: 1fr;
  }

  /* Keep selected clients row horizontal; allow scroll if needed */
  .trusted-section .trusted-header-full .trusted-header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .trusted-section .trusted-header-full .client-logos {
    justify-content: flex-start;
    gap: 1.5rem;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .trusted-section {
    padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 4vw, 1.25rem) clamp(3rem, 9vw, 5rem);
    margin: -1rem 0;
    border-radius: 1.25rem;
  }

  .trusted-container {
    max-width: 100%;
  }

  /* Match negative margin to section horizontal padding */
  .trusted-section .trusted-header-full {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-value--split .stat-currency,
  .stat-value--split .stat-figure {
    transition: none;
  }
}
