.lucem-home #goals .goal-flip{padding:0;min-height:410px;perspective:1200px;overflow:visible}
.lucem-home #goals .goal-flip::before{z-index:2;pointer-events:none}
.lucem-home #goals .goal-flip:has(.goal-front:focus-visible){outline:2px solid #e5d2b5;outline-offset:4px;z-index:1}
.goal-flip-inner{position:relative;min-height:410px;height:100%}
.goal-flip.is-ready .goal-flip-inner{transform-style:preserve-3d;transition:transform .65s cubic-bezier(.22,.68,.24,1)}
.goal-flip.is-ready.is-flipped .goal-flip-inner{transform:rotateY(180deg)}
.goal-front,.goal-back{box-sizing:border-box;width:100%;min-height:410px;padding:30px;text-align:left;background:#191b1c;color:var(--ink);border:0}
.goal-front{display:none;font:inherit;cursor:pointer;flex-direction:column;align-items:flex-start;justify-content:center}
.goal-flip.is-ready .goal-front{display:flex;position:absolute;inset:0;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.goal-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:32px;line-height:1.1;margin:18px 0 12px;max-width:230px}
.goal-description{color:var(--muted);font-size:15px;line-height:1.6;max-width:250px}
.goal-prompt{display:flex;align-items:center;gap:18px;margin-top:32px;color:#e5d2b5;font-size:10px;letter-spacing:.12em}
.goal-prompt>span{font-size:19px;transition:transform .25s}.goal-front:hover .goal-prompt>span{transform:translate(3px,-3px)}
.goal-front:focus-visible{outline:0}
.goal-back{display:flex;flex-direction:column;background:radial-gradient(ellipse at 0 0,#302a2266,transparent 75%),#191b1c}
.goal-flip.is-ready .goal-back{height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateY(180deg)}
.goal-back-head{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.lucem-home #goals .goal-back h3{font-size:25px;line-height:1.08;margin:0;max-width:220px}
.goal-reset{border:1px solid #62594b;border-radius:50%;background:transparent;color:#e5d2b5;min-width:36px;height:36px;font-size:22px;cursor:pointer;flex-shrink:0;transition:background .2s,transform .2s}
.goal-reset:hover{background:#e5d2b522;transform:rotate(-15deg)}
.goal-evidence-note{display:block;font-size:10px;color:#aaa397;letter-spacing:.04em;margin-top:10px}
.goal-peptides{list-style:none;padding:0;margin:18px 0 10px;display:grid;gap:0}
.goal-peptides li{border-bottom:1px solid #ffffff12}
.goal-peptides a,.goal-pending{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;min-height:36px;font-size:15px;color:#f6f2e9}
.goal-peptides a{transition:color .2s}.goal-peptides a:hover{color:#e5d2b5}.goal-peptides a>span{color:#bfa889}
.goal-pending small{font-size:9px;letter-spacing:.025em;color:#aba497;text-align:right;max-width:80px;line-height:1.3}
.goal-more{display:block;color:#aaa397;font-size:11px;margin-bottom:18px}
.goal-back .goal-research-cta{margin-top:auto;min-height:44px;display:flex;justify-content:space-between;gap:10px;padding:10px 15px;font-size:10px;width:100%;box-sizing:border-box;white-space:normal}
.goal-flip:not(.is-ready) .goal-reset{display:none}
@media(max-width:600px){.goal-description{display:none}.lucem-home #goals .goal-flip,.goal-flip-inner,.goal-front,.goal-back{min-height:365px}.goal-front,.goal-back{padding:24px}.goal-front{justify-content:center}.goal-title{max-width:100%;font-size:34px}.goal-prompt{margin-top:24px}.goal-back .goal-peptides a,.goal-pending{font-size:16px}.goal-pending small{max-width:none}}
@media(prefers-reduced-motion:reduce){.goal-flip.is-ready .goal-flip-inner{transition:none;transform:none!important}.goal-flip.is-ready .goal-front,.goal-flip.is-ready .goal-back{transform:none;backface-visibility:visible}.goal-flip.is-ready .goal-back{visibility:hidden}.goal-flip.is-ready.is-flipped .goal-back{visibility:visible}.goal-flip.is-ready.is-flipped .goal-front{visibility:hidden}.goal-prompt>span,.goal-reset{transition:none}}
.lucem-home #goals .goal-flip.is-flipped::before{opacity:0}
/* Keep both faces full-width even when their content is shorter. */
.lucem-home #goals .goal-flip{display:block;min-width:0}
.goal-flip-inner{width:100%;min-width:0}
.goal-peptides a,.goal-peptides a:hover,.goal-peptides a:focus-visible{text-decoration:none}
/* Compact mobile carousel, with a scrollable reverse side for longer lists. */
.goal-carousel-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin:18px 20px 8px;color:#685839}
.goal-carousel-controls button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #a09178;border-radius:50%;background:#f1eee6;color:#30392e;cursor:pointer}
.goal-carousel-controls button:focus-visible{outline:2px solid #806439;outline-offset:3px}
.goal-carousel-controls .goal-carousel-count{font-size:13px;min-width:38px;text-align:center}
.goal-carousel-controls .goal-carousel-pause{width:auto;border-radius:999px;padding:0 16px;font-size:12px}
@media(max-width:900px){
 .lucem-home #goals .goal-flip,.lucem-home #goals .goal-flip-inner{min-height:290px;height:290px}
 .lucem-home #goals .goal-front,.lucem-home #goals .goal-back{min-height:0;height:290px;padding:22px}
 .lucem-home #goals .goal-back{overflow-y:auto;overscroll-behavior:contain}
 .lucem-home #goals .goal-title{font-size:30px;margin:12px 0;max-width:100%}
 .lucem-home #goals .goal-prompt{margin-top:20px}
}
@media(min-width:901px){.goal-carousel-pause{display:none!important}}
/* Fit every reverse-side row without a nested vertical scroll area. */
@media(max-width:900px){
 .lucem-home #goals .goals{align-items:flex-start}
 .lucem-home #goals .goal-flip{height:auto;min-height:260px;align-self:flex-start}
 .lucem-home #goals .goal-flip-inner{height:auto;min-height:260px}
 .lucem-home #goals .goal-back{height:auto;min-height:260px;overflow:visible;padding:20px}
 .lucem-home #goals .goal-front{height:100%;min-height:260px;padding:20px}
 .lucem-home #goals .goal-back h3{font-size:24px;line-height:1.15}
 .lucem-home #goals .goal-evidence-note{margin-top:8px;line-height:1.4}
 .lucem-home #goals .goal-peptides{margin:10px 0 0}
 .lucem-home #goals .goal-peptides a,.lucem-home #goals .goal-pending{padding:7px 0;min-height:32px;font-size:15px;line-height:1.3}
 .lucem-home #goals .goal-more{margin:10px 0 0;font-size:10px;line-height:1.4}
}
