:root {
  --trust-ink: #24133c;
  --trust-muted: #554661;
  --trust-paper: #fffaf2;
  --trust-gold: #f3cb75;
  --trust-cyan: #35c7c7;
  --trust-violet: #6d4ca6;
  --trust-night: #0b0616;
}

/* Text must keep its own layout space while surrounding cards may still animate. */
html body :is(h1, h2, h3, h4, .eyebrow, .footer-heading) {
  transform: none !important;
}

.trust-page {
  background:
    linear-gradient(180deg, rgba(8, 4, 18, .78), rgba(14, 8, 29, .94)),
    url("../img/optimized/app-design-galaxy-hero.jpg") center top / cover fixed no-repeat;
}

.trust-hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 7vw, 88px);
  color: #fffaf2;
}

.trust-hero-grid,
.trust-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.trust-hero h1,
.trust-dark h2,
.trust-dark h3 {
  color: #fffaf2 !important;
  -webkit-text-fill-color: #fffaf2 !important;
  text-shadow: 0 6px 26px rgba(0, 0, 0, .55) !important;
}

.trust-hero p,
.trust-dark p,
.trust-dark li {
  color: #eee7f6 !important;
  -webkit-text-fill-color: #eee7f6 !important;
}

.trust-hero .eyebrow,
.trust-dark .eyebrow {
  color: #f3cb75 !important;
  -webkit-text-fill-color: #f3cb75 !important;
}

.trust-identity-card,
.trust-dark {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(247, 220, 116, .28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 9, 39, .96), rgba(57, 31, 88, .92));
  box-shadow: 0 28px 70px rgba(3, 2, 10, .38), inset 0 1px rgba(255, 255, 255, .08);
}

.trust-identity-card img {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
}

.trust-identity-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fffaf2 !important;
  -webkit-text-fill-color: #fffaf2 !important;
  font-size: 1.2rem;
}

.trust-identity-card a,
.trust-dark a {
  color: #f7dc74 !important;
  -webkit-text-fill-color: #f7dc74 !important;
}

.trust-light-band {
  padding: clamp(58px, 8vw, 104px) 0;
  background: linear-gradient(180deg, #fffdf8, #f5efff);
}

.trust-surface {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(74, 45, 103, .16);
  border-radius: 8px;
  background: rgba(255, 250, 242, .98);
  color: var(--trust-ink);
  box-shadow: 0 24px 60px rgba(36, 19, 60, .14);
}

.trust-surface :is(h1, h2, h3, h4, strong, b, label) {
  color: var(--trust-ink) !important;
  -webkit-text-fill-color: var(--trust-ink) !important;
  text-shadow: none !important;
}

.trust-surface :is(p, li, small, dd) {
  color: var(--trust-muted) !important;
  -webkit-text-fill-color: var(--trust-muted) !important;
  text-shadow: none !important;
}

.trust-surface .eyebrow {
  color: #5b2f83 !important;
  -webkit-text-fill-color: #5b2f83 !important;
}

.trust-card-grid,
.work-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.trust-dark .trust-card-grid article {
  padding: 20px;
  border: 1px solid rgba(247, 220, 116, .2);
  border-radius: 8px;
  background: rgba(7, 4, 18, .38);
}

.trust-dark .trust-card-grid article h3 {
  margin-bottom: 8px;
}

.trust-card,
.principle-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(74, 45, 103, .16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #f3edfb);
  box-shadow: 0 16px 36px rgba(36, 19, 60, .1);
}

.trust-card :is(h2, h3, strong),
.principle-card :is(h2, h3, strong) {
  color: var(--trust-ink) !important;
  -webkit-text-fill-color: var(--trust-ink) !important;
  text-shadow: none !important;
}

.trust-card :is(p, li),
.principle-card :is(p, li) {
  color: var(--trust-muted) !important;
  -webkit-text-fill-color: var(--trust-muted) !important;
  text-shadow: none !important;
}

.trust-card::before,
.principle-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--trust-gold), var(--trust-cyan));
}

.work-card {
  overflow: hidden;
  border: 1px solid rgba(247, 220, 116, .26);
  border-radius: 8px;
  background: #120926;
  color: #fffaf2;
  box-shadow: 0 24px 54px rgba(3, 2, 10, .34);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(247, 220, 116, .22);
}

.process-media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.work-card-copy {
  padding: 26px;
}

.work-card :is(h2, h3, strong) {
  color: #fffaf2 !important;
  -webkit-text-fill-color: #fffaf2 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .42) !important;
}

.work-card :is(p, li) {
  color: #e9e1f2 !important;
  -webkit-text-fill-color: #e9e1f2 !important;
}

.work-card .work-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff2b8;
  color: var(--trust-ink) !important;
  -webkit-text-fill-color: var(--trust-ink) !important;
  font-size: .73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card a {
  color: #f7dc74 !important;
  -webkit-text-fill-color: #f7dc74 !important;
}

.policy-shell {
  max-width: 900px;
}

.policy-shell section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(74, 45, 103, .14);
}

.policy-shell ul {
  padding-left: 1.25rem;
}

.policy-meta {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #efe6f8;
  color: var(--trust-ink) !important;
  -webkit-text-fill-color: var(--trust-ink) !important;
  font-size: .82rem;
  font-weight: 800;
}

html body .home-credibility-section,
html[data-theme] body .home-credibility-section,
#home-credibility {
  padding: clamp(48px, 7vw, 86px) 0;
  background-color: #180c2d !important;
  background-image:
    linear-gradient(115deg, rgba(8, 4, 18, .96), rgba(39, 20, 66, .92)),
    url("../img/optimized/growth/growth-partner.webp") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  color: #fffaf2 !important;
}

.home-credibility-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.home-credibility-copy :is(h2, p),
.home-credibility-list :is(b, p) {
  color: #fffaf2 !important;
  -webkit-text-fill-color: #fffaf2 !important;
}

.home-credibility-copy .eyebrow {
  color: #f7dc74 !important;
  -webkit-text-fill-color: #f7dc74 !important;
}

.home-credibility-list {
  display: grid;
  gap: 12px;
}

.home-credibility-list div {
  padding: 18px 20px;
  border: 1px solid rgba(247, 220, 116, .24);
  border-radius: 8px;
  background: rgba(10, 5, 23, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.home-credibility-list b {
  display: block;
  margin-bottom: 4px;
}

.home-credibility-list p {
  margin: 0;
  opacity: .84;
}

.trust-footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 242, .16);
}

.trust-footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.trust-footer-bar a {
  color: #fffaf2 !important;
  -webkit-text-fill-color: #fffaf2 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.trust-footer-bar a:hover,
.trust-footer-bar a:focus-visible {
  color: #f7dc74 !important;
  -webkit-text-fill-color: #f7dc74 !important;
}

.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 60px 0;
  background:
    linear-gradient(135deg, rgba(7, 4, 17, .84), rgba(41, 20, 68, .9)),
    url("../img/optimized/cosmic-workspace.jpg") center / cover no-repeat;
}

@media (max-width: 900px) {
  .trust-hero-grid,
  .trust-split,
  .home-credibility-shell {
    grid-template-columns: 1fr;
  }

  .trust-card-grid,
  .work-grid,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .trust-page {
    background-attachment: scroll;
  }

  .trust-hero {
    padding-top: 46px;
  }

  .trust-card-grid,
  .work-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .trust-surface,
  .trust-identity-card,
  .trust-dark,
  .trust-card,
  .principle-card,
  .work-card-copy {
    padding: 22px;
  }

  .trust-footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  html body .home-credibility-section,
  html[data-theme] body .home-credibility-section,
  #home-credibility {
    background-color: #180c2d !important;
    background-image:
      linear-gradient(155deg, rgba(8, 4, 18, .98), rgba(45, 23, 74, .96)),
      url("../img/optimized/growth/growth-partner.webp") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-page,
  .home-credibility-section {
    background-attachment: scroll;
  }
}
