/* Testimonial Tumble Deck 3D Carousel, ClientFeedback Bento Grid, and Home Preview Band */

.testimonials-page {
  background: transparent;
}

/* ---------- 1. Interactive 3D Tumble Deck Showcase ---------- */
.tumble-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(3rem, 5vw, 4.5rem);
}

.tumble-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tumble-head h2 {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.tumble-head h2 > span:not(.andros-te-root),
.tumble-head h2 .andros-te-accent {
  color: #0e6b8c;
}

.tumble-head p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.td-stage-shell {
  position: relative;
  border-radius: 1.6rem;
  border: 1px solid rgba(12, 35, 48, 0.16);
  background:
    radial-gradient(circle at 50% 18%, rgba(140, 216, 247, 0.22), transparent 55%),
    linear-gradient(170deg, #082230 0%, #0d364a 58%, #071924 100%);
  box-shadow:
    0 28px 70px rgba(8, 34, 48, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  color: #ffffff;
}

html.theme-day .td-stage-shell {
  background:
    radial-gradient(circle at 50% 18%, rgba(56, 189, 248, 0.24), transparent 55%),
    linear-gradient(170deg, #0d3a50 0%, #145472 58%, #0b3042 100%);
  border-color: rgba(14, 107, 140, 0.3);
}

.td-stage-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 26, 38, 0.52);
  flex-wrap: wrap;
}

.td-active-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.td-counter {
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sea);
  letter-spacing: 0.08em;
}

.td-active-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.td-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.td-step-btn:hover {
  background: rgba(140, 216, 247, 0.22);
  border-color: var(--sea);
}

.td-step-btn:active {
  transform: scale(0.95);
}

.td-root {
  position: relative;
  width: 100%;
  height: clamp(27rem, 62svh, 39rem);
  overflow: hidden;
  outline: none;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.td-root:active {
  cursor: grabbing;
}

.td-root:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sea);
}

.td-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Floor shadow line subtle guide */
.td-stage-shell::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 216, 247, 0.22), transparent);
  pointer-events: none;
}

.td-card {
  position: absolute;
  left: 50%;
  top: var(--td-top);
  width: var(--td-w);
  height: var(--td-h);
  margin-left: calc(var(--td-w) / -2);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.65rem);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.td-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000000;
  opacity: var(--td-shade, 0);
}

.td-card[data-tone='mint'] {
  background: linear-gradient(155deg, #f2f9fe 0%, #d8effa 100%);
  color: #0b2330;
  border: 1px solid rgba(12, 35, 48, 0.14);
}

.td-card[data-tone='cobalt'] {
  background: linear-gradient(155deg, #174963 0%, #0d3a52 100%);
  color: #ffffff;
  border: 1px solid rgba(140, 216, 247, 0.3);
}

.td-card[data-tone='obsidian'] {
  background: linear-gradient(155deg, #0b2636 0%, #123c52 100%);
  color: #ffffff;
  border: 1px solid rgba(140, 216, 247, 0.26);
}

.td-card[data-tone='sea'] {
  background: linear-gradient(155deg, #166587 0%, #0f4c68 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.td-card-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(64, 108, 130, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(64, 108, 130, 0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 62%, transparent 105%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 62%, transparent 105%);
}

.td-card[data-tone='cobalt'] .td-card-grid,
.td-card[data-tone='obsidian'] .td-card-grid,
.td-card[data-tone='sea'] .td-card-grid {
  background-image:
    linear-gradient(to right, rgba(140, 216, 247, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 216, 247, 0.12) 1px, transparent 1px);
}

.td-card-top,
.td-quote,
.td-card-foot {
  position: relative;
  z-index: 1;
}

.td-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
}

.td-dispatch {
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

.td-part-tag {
  text-align: right;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  max-width: 55%;
}

.td-quote {
  margin: auto 0;
  padding-block: 0.55rem;
  font-size: clamp(0.86rem, 1.35vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
}

.td-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(127, 155, 150, 0.26);
}

.td-person {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.td-name {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.15;
}

.td-role {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

.td-company {
  font-size: 0.7rem;
  opacity: 0.74;
}

.td-avatar {
  width: clamp(2.85rem, 4.5vw, 3.85rem);
  height: clamp(2.85rem, 4.5vw, 3.85rem);
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.td-stage-foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 26, 38, 0.6);
  flex-wrap: wrap;
}

.td-hint {
  font-size: 0.7rem;
  color: rgba(240, 248, 252, 0.72);
}

.td-dots {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.td-dot {
  width: 1.9rem;
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.td-dot:hover {
  background: rgba(140, 216, 247, 0.65);
}

.td-dot.is-active {
  width: 2.75rem;
  background: var(--sea);
}

/* ---------- 2. ClientFeedback Asymmetric 3-Column Bento Grid ---------- */
.feedback-section {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4.5rem, 7vw, 6.5rem);
}

.feedback-head {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.feedback-head.timeline-reveal,
.js-ready .feedback-head.timeline-reveal {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.feedback-head h2 {
  margin: 0.75rem 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 600;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--ink);
}

.feedback-head p {
  margin: 0 auto;
  max-width: 34rem;
  color: #1a3a4c;
  font-size: 0.9rem;
  line-height: 1.65;
}

.feedback-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.45rem;
  border: 1px solid rgba(16, 29, 32, 0.12);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(8, 34, 48, 0.16);
}

.bento-card.size-tall {
  flex: 7;
}

.bento-card.size-compact {
  flex: 3;
}

.bento-card.size-standard {
  flex: 1;
}

.bento-card.tone-mint {
  background: linear-gradient(155deg, rgba(244, 250, 255, 0.96), rgba(212, 238, 251, 0.92));
  color: #0b2330;
  border-color: rgba(12, 35, 48, 0.14);
}

html:not(.theme-day) .bento-card.tone-mint {
  background: linear-gradient(155deg, rgba(13, 46, 66, 0.94), rgba(9, 34, 48, 0.94));
  color: #f0f8fc;
  border-color: rgba(140, 216, 247, 0.26);
}

html:not(.theme-day) .bento-card.tone-mint .bento-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(140, 216, 247, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 216, 247, 0.12) 1px, transparent 1px);
}

.bento-card.tone-cobalt {
  background: linear-gradient(145deg, #135a7a 0%, #0d425b 100%);
  color: #ffffff;
  border-color: rgba(140, 216, 247, 0.3);
}

.bento-card.tone-obsidian {
  background: #0c2a3a;
  color: #ffffff;
  border-color: rgba(140, 216, 247, 0.24);
}

.bento-card.tone-sea {
  background: linear-gradient(145deg, #166c91 0%, #0f4c69 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.bento-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(64, 108, 130, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(64, 108, 130, 0.15) 1px, transparent 1px);
  background-size: 50px 56px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
}

.bento-card-inner {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.1rem;
}

.bento-part-context {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

.bento-quote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.bento-person-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  padding-top: 0.6rem;
}

.bento-person-row h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  text-shadow: none;
}

.bento-person-row p {
  margin: 0.18rem 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.35;
}

.bento-person-row span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  opacity: 0.68;
}

.bento-avatar {
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 0.8rem;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Staggered Timeline Blur Reveal (inspired by ClientFeedback TimelineContent) */
.timeline-reveal {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.js-ready .timeline-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-16px);
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-ready .timeline-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.bento-bottom-rule {
  position: relative;
  margin-top: 2rem;
  border-top: 1px solid rgba(16, 29, 32, 0.16);
}

html:not(.theme-day) .bento-bottom-rule {
  border-top-color: rgba(140, 216, 247, 0.22);
}

.bento-bottom-rule::before,
.bento-bottom-rule::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--ink);
  opacity: 0.24;
  border-radius: 1px;
}

.bento-bottom-rule::before {
  left: 0;
}

.bento-bottom-rule::after {
  right: 0;
}

.testimonials-cta-bar {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.55rem;
  border-radius: 1.15rem;
  flex-wrap: wrap;
}

.testimonials-cta-bar p {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 42rem;
}

html:not(.theme-day) .testimonials-cta-bar {
  background: #071b28;
  border-color: rgba(140, 216, 247, 0.26);
  color: #f0f8fc;
}

html:not(.theme-day) .testimonials-cta-bar p {
  color: #c4e0ed;
}

html:not(.theme-day) .testimonials-cta-bar strong {
  color: #8cd8f7;
}

/* ---------- 3. Home Page Fleet Reviews Link & Preview Band ---------- */
.fleet-reviews-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.fleet-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.fleet-reviews-head h2 {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.fleet-reviews-head h2 em {
  color: #0b5d82;
  font-style: normal;
}

.fleet-reviews-copy {
  max-width: 26rem;
}

.fleet-reviews-copy p {
  margin: 0 0 1rem;
  color: #1a3a4c;
  font-size: 0.88rem;
  line-height: 1.68;
}

.fleet-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0c4b66;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fleet-inline-link:hover {
  color: #0284c7;
}

html:not(.theme-day) .fleet-inline-link,
html:not(.theme-day) .fleet-phrase-link {
  color: #8cd8f7;
}

html:not(.theme-day) .fleet-inline-link:hover,
html:not(.theme-day) .fleet-phrase-link:hover {
  color: #c4ecfd;
}

.fleet-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fleet-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.45rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(12, 35, 48, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(9, 34, 48, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html:not(.theme-day) .fleet-preview-card {
  background: rgba(11, 38, 54, 0.92);
  color: #f0f8fc;
  border-color: rgba(140, 216, 247, 0.24);
  box-shadow: 0 18px 44px rgba(2, 10, 16, 0.45);
}

.fleet-preview-card:hover {
  transform: translateY(-4px);
  border-color: #0e7ea6;
  box-shadow: 0 20px 44px rgba(9, 34, 48, 0.14);
}

html:not(.theme-day) .fleet-preview-card:hover {
  border-color: #8cd8f7;
  box-shadow: 0 24px 52px rgba(2, 10, 16, 0.6);
}

.fleet-preview-card.is-dark {
  background: #0d3245;
  color: #f4fbff;
  border-color: rgba(140, 216, 247, 0.3);
}

html:not(.theme-day) .fleet-preview-card.is-dark {
  background: rgba(7, 26, 38, 0.96);
  border-color: rgba(140, 216, 247, 0.34);
}

.fleet-preview-card blockquote {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.fleet-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(125, 168, 190, 0.26);
}

.fleet-preview-foot strong {
  display: block;
  font-size: 0.92rem;
}

.fleet-preview-foot span {
  display: block;
  font-size: 0.74rem;
  opacity: 0.78;
}

.fleet-preview-foot img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.fleet-reviews-cta {
  margin-top: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.fleet-phrase-link {
  color: #0d506b;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 1020px) {
  .feedback-bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-col:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fleet-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .feedback-bento,
  .bento-col:last-child,
  .fleet-preview-grid {
    grid-template-columns: 1fr;
  }
  .td-root {
    height: clamp(28.5rem, 68svh, 33rem);
  }
  .td-card {
    padding: 0.9rem 1rem;
  }
  .td-card-top {
    font-size: 0.6rem;
    gap: 0.4rem;
  }
  .td-quote {
    padding-block: 0.3rem;
    font-size: 0.79rem;
    line-height: 1.4;
  }
  .td-card-foot {
    padding-top: 0.5rem;
    gap: 0.65rem;
  }
  .td-name {
    font-size: 0.9rem;
  }
  .td-role {
    font-size: 0.72rem;
  }
  .td-company {
    font-size: 0.64rem;
  }
  .td-avatar {
    width: 2.55rem;
    height: 2.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .timeline-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}
