/* trust · owner P5
   Left: the Stage-0 truths, a calm list. Right: the four gate conditions as four padlocks
   (layered CSS 3D: a black front face over violet depth layers, like the hero mark) that click shut in sequence. */
#trust { padding: var(--sec) 0 calc(var(--sec) + clamp(16px, 3vw, 48px)); overflow: clip;
  /* banner ground, the right way up: the light of #developers' foot, down to a darker grey under the locks */
  --ground: radial-gradient(50% 30% at 70% 58%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, #e6e6e6 0, #dedede 40%, #c4c4c4 100%); }
#trust .trust__s1 { --h: clamp(72px, 21vw, 310px); }
#trust .trust__s2 { --h: clamp(56px, 6.4vw, 96px); }
#trust .trust__line { margin-top: clamp(22px, 2.4vw, 32px); }
#trust .trust__k { font-stretch: 125%; font-weight: 600; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
#trust .trust__today, #trust .trust__gate { margin-top: clamp(56px, 7vw, 104px); }

/* the calm list: hairlines draw in, the fix sits under a violet return mark */
#trust .truths { margin-top: clamp(18px, 2vw, 28px); }
#trust .truth { position: relative; padding: 22px 0 24px; }
#trust .truth::before, #trust .truth:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(0, 0, 0, 0.22); transform-origin: 0 50%; }
#trust .truth:last-child::after { top: auto; bottom: 0; }
#trust .truth dt { font-stretch: 118%; font-weight: 600; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.01em; line-height: 1.2; }
#trust .truth dd { margin-top: 6px; font-size: 16px; line-height: 1.5; max-width: 30em; }
#trust .truth .truth__fix { display: flex; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
#trust .truth__fix::before { content: ""; flex: none; width: 11px; height: 9px; margin-top: 3px; border-left: 2px solid var(--v); border-bottom: 2px solid var(--v); }
html.motion #trust .truth::before, html.motion #trust .truth:last-child::after { transform: scaleX(var(--draw, 1)); }

/* the four conditions */
#trust .conds { list-style: none; padding: 0; margin-top: clamp(20px, 2.6vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--gut); }
#trust .cond { display: flex; flex-direction: column; align-items: center; text-align: center; }
#trust .cond__n { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .4s var(--ease); }
#trust .cond__t { margin-top: 6px; max-width: 13em; font-size: clamp(15px, 1.15vw, 17px); font-weight: 500; font-stretch: 106%; line-height: 1.3; text-wrap: balance; }
#trust .cond.is-shut .cond__n { color: #5200cc; }
#trust .trust__note { margin-top: clamp(30px, 3.4vw, 44px); max-width: 30em; }
#trust .trust__note::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 14px; background: var(--v); }

@media (min-width: 900px) {
  #trust .trust__title { grid-column: 1 / span 8; }
  #trust .trust__line { max-width: 27em; }
  #trust .trust__today { grid-column: 1 / span 4; grid-row: 2; }
  #trust .trust__gate { grid-column: 6 / span 7; grid-row: 2; }
  #trust .conds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #trust .trust__note { margin-left: auto; margin-right: auto; text-align: center; }
  #trust .trust__note::before { margin-inline: auto; }
}

/* the padlock: shackle (sh) and body (bd), each a black front face <b> over violet depth layers <i> (added by trust.js) */
#trust .trust__gate { position: relative; }
#trust .cond__obj { --u: clamp(70px, 22vw, 104px); position: relative; width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.84); perspective: calc(var(--u) * 8); perspective-origin: 50% 20%; }
#trust .lk { position: absolute; left: calc(var(--u) * .25); top: calc(var(--u) * .02); width: var(--u); height: calc(var(--u) * 1.66); transform-style: preserve-3d; transform-origin: 50% 70%; transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, 22deg)); }
#trust .lk__sh { position: absolute; left: calc(var(--u) * .17); top: calc(var(--u) * .30); width: calc(var(--u) * .66); height: calc(var(--u) * .70); transform-style: preserve-3d; transform-origin: calc(var(--u) * .07) 100%; }
#trust .lk__bd { position: absolute; left: 0; top: calc(var(--u) * .88); width: var(--u); height: calc(var(--u) * .78); transform-style: preserve-3d; transform-origin: 50% 100%; }
#trust .lk__sh > b, #trust .lk__sh > i, #trust .lk__bd > b, #trust .lk__bd > i { position: absolute; inset: 0; display: block; }
#trust .lk__sh > b, #trust .lk__sh > i { clip-path: polygon(0 100%, 0 22.86%, 24.24% 0, 75.76% 0, 100% 22.86%, 100% 100%, 78.79% 100%, 78.79% 31.14%, 66.97% 20%, 33.03% 20%, 21.21% 31.14%, 21.21% 100%); }
#trust .lk__bd > b, #trust .lk__bd > i { clip-path: polygon(13% 0, 100% 0, 100% 83.33%, 87% 100%, 0 100%, 0 16.67%); }
#trust .lk__sh > b { background: linear-gradient(90deg, #2a2a2a, #070707 30%, #000 70%, #1c1c1c); transform: translateZ(calc(var(--u) * .07)); }
#trust .lk__bd > b { background: linear-gradient(166deg, #2a2a2a 0%, #0b0b0b 34%, #000 100%); transform: translateZ(calc(var(--u) * .15)); }
#trust .lk__cyl { position: absolute; left: 50%; top: 42%; width: calc(var(--u) * .22); height: calc(var(--u) * .22); margin: calc(var(--u) * -.11) 0 0 calc(var(--u) * -.11); border-radius: 50%; background: radial-gradient(circle at 36% 30%, #404040, #171717 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
#trust .lk__cyl i { position: absolute; left: 50%; top: 17%; bottom: 17%; width: calc(var(--u) * .036); margin-left: calc(var(--u) * -.018); border-radius: 1px; background: #777; transition: background-color .35s var(--ease); }
#trust .cond.is-shut .lk__cyl i { background: var(--v-dk); }
#trust .lk__mark { position: absolute; left: 11%; bottom: 11%; width: calc(var(--u) * .17); height: calc(var(--u) * .17); background: linear-gradient(160deg, #3d3d3d, #1f1f1f); -webkit-mask: url("../../brand/mark.svg") center / contain no-repeat; mask: url("../../brand/mark.svg") center / contain no-repeat; }
#trust .lk__ring { position: absolute; left: calc(var(--u) * .5); top: calc(var(--u) * .9); width: calc(var(--u) * .9); height: calc(var(--u) * .9); margin: calc(var(--u) * -.45) 0 0 calc(var(--u) * -.45); border: 2px solid var(--v); border-radius: 50%; opacity: 0; transform: translateZ(calc(var(--u) * .2)) scale(.3); pointer-events: none; }
#trust .cond__shadow { position: absolute; left: 50%; bottom: calc(var(--u) * .04); width: calc(var(--u) * 1.36); height: calc(var(--u) * .24); margin-left: calc(var(--u) * -.68); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.14) 58%, transparent); }
@media (min-width: 900px) {
  #trust .cond__obj { --u: clamp(62px, 7.3vw, 110px); }
}
/* studio light pooled behind the locks */
#trust .trust__gate { isolation: isolate; }
#trust .trust__gate::before { content: ""; position: absolute; left: -8%; right: -8%; top: 4%; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 72%); }
/* a violet floor light spreads under the locks as they shut (trust.js sets data-shut on the list when all four are) */
#trust .conds { position: relative; }
#trust .conds::before { content: ""; position: absolute; left: -6%; right: -6%; top: 18%; height: 46%; z-index: -1; pointer-events: none; background: radial-gradient(50% 50% at 50% 60%, rgba(102, 0, 255, 0.26), rgba(102, 0, 255, 0.08) 55%, rgba(102, 0, 255, 0) 100%); }
html.motion #trust .conds::before { opacity: 0; transform: scaleX(.6); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease-out); }
html.motion #trust .conds[data-shut]::before { opacity: 1; transform: none; }
@media (min-width: 600px) and (max-width: 899px) {
  #trust .conds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #trust .cond__obj { --u: 12.6vw; }
}

/* the locks hover a little, out of step (compositor only: the individual translate property, paused off screen);
   their contact shadows breathe with them */
html.motion #trust .lk { animation: trust-float 6.4s cubic-bezier(.45, 0, .55, 1) infinite paused; }
html.motion #trust .cond__shadow { animation: trust-breathe 6.4s cubic-bezier(.45, 0, .55, 1) infinite paused; }
html.motion #trust.is-live .lk, html.motion #trust.is-live .cond__shadow { animation-play-state: running; }
#trust .cond:nth-child(2) .lk, #trust .cond:nth-child(2) .cond__shadow { animation-delay: -1.6s; }
#trust .cond:nth-child(3) .lk, #trust .cond:nth-child(3) .cond__shadow { animation-delay: -3.2s; }
#trust .cond:nth-child(4) .lk, #trust .cond:nth-child(4) .cond__shadow { animation-delay: -4.8s; }
@keyframes trust-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--u) * -.07); } }
@keyframes trust-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
