/* V5.13 — final commercial polish */
:root{--virtus-gold-readable:#956315;--virtus-gold-soft:#c89c43}

/* Home hero: cleaner message hierarchy + load motion */
.flagship-home .hero-v3-copy{padding-top:28px}
.flagship-home .hero-brand-center{overflow:visible}
.flagship-home .hero-title,.flagship-home .hero-subtitle{opacity:0;transform:translateY(26px);will-change:transform,opacity}
.flagship-home.is-loaded .hero-title{animation:v513HeroIn 1s cubic-bezier(.2,.75,.2,1) .12s forwards}
.flagship-home.is-loaded .hero-subtitle{animation:v513HeroIn 1s cubic-bezier(.2,.75,.2,1) .34s forwards}
.flagship-home .hero-rule{opacity:0;transform:scaleX(.82);transform-origin:center}
.flagship-home.is-loaded .hero-rule{animation:v513RuleIn .9s cubic-bezier(.2,.75,.2,1) .52s forwards}
@keyframes v513HeroIn{to{opacity:1;transform:translateY(0)}}
@keyframes v513RuleIn{to{opacity:1;transform:scaleX(1)}}

/* Collection contrast */
.flagship-home .v5-section-head h2 em{color:var(--virtus-gold-readable)!important;font-weight:450!important}
.flagship-home .v5-eyebrow{color:#815b1d}
.flagship-home .v5-product-card small{color:#74572b}

/* Tailoring: denser, continuous cinematic scene */
.flagship-home .v59-tailoring-scroll{height:190vh!important;background:#062c25}
.flagship-home .v59-tailoring-stage{background:linear-gradient(138deg,#052821 0%,#0a3b31 100%)}
.flagship-home .v59-tailoring-frame{height:min(74vh,690px)!important;min-height:550px!important}
.flagship-home .v59-tailoring-media img{transform:scale(var(--tailoring-scale,1.025)) translateY(var(--tailoring-y,0px));transition:none;will-change:transform,filter;filter:saturate(.88) contrast(1.04)}
.flagship-home .v59-tailoring-content{background:linear-gradient(145deg,rgba(7,45,38,.67),rgba(7,45,38,.47));backdrop-filter:blur(28px) saturate(124%);-webkit-backdrop-filter:blur(28px) saturate(124%)}
.flagship-home .v59-tailoring-scene{transition:none!important;opacity:var(--scene-opacity,0)!important;transform:translateY(var(--scene-y,52px))!important;filter:blur(var(--scene-blur,1.5px));will-change:opacity,transform,filter}
.flagship-home .v59-tailoring-scene.active{pointer-events:auto}
.flagship-home .v59-tailoring-progress i{transition:background .18s ease}

/* Concierge: make it clearly AI */
.concierge-toggle .ai-toggle-copy small{font-weight:500}
.concierge-thinking{display:inline-flex;align-items:center;gap:7px;color:#6e756f}.concierge-thinking:after{content:"";width:12px;height:12px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:v513Spin .8s linear infinite}
@keyframes v513Spin{to{transform:rotate(360deg)}}
.concierge .msg.bot{line-height:1.55}

/* Mirror instructions */
.mirror-instructions-v513{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0 8px!important;padding:0!important;list-style:none!important;color:#39413d!important;font-size:13px!important;line-height:1.45!important}
.mirror-instructions-v513 li{display:grid;grid-template-columns:32px 1fr;align-items:start;gap:10px;padding:13px 12px;border:1px solid #e4e0d7;background:#faf9f6}
.mirror-instructions-v513 li>b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#082f29;color:#fff;font-size:10px}
.mirror-instructions-v513 li span{padding-top:4px}.mirror-instructions-v513 strong{font-weight:650}

/* Checkout grid + local fast */
.checkout-card .fields.three{grid-template-columns:160px minmax(0,1fr) 76px!important}
.checkout-card .fields.three label:last-child input{text-align:center;padding-left:8px;padding-right:8px;text-transform:uppercase}
.ship-choice.ship-fast{border-color:rgba(8,47,41,.5);background:linear-gradient(90deg,#f1f7f3,#fff)}
.ship-choice.ship-fast em{display:inline-block;font-style:normal;font-size:7px;letter-spacing:.13em;color:#0b6f54;margin-bottom:5px;font-weight:700}

/* Concierge labels promoted from demo copy */
.ai-support-label{letter-spacing:.01em}

@media(max-width:1050px){
  .flagship-home .v59-tailoring-scroll{height:auto!important}
  .flagship-home .v59-tailoring-scene{opacity:1!important;transform:none!important;filter:none!important}
  .mirror-instructions-v513{grid-template-columns:1fr}
}
@media(max-width:620px){
  .checkout-card .fields.three{grid-template-columns:1fr!important}
  .flagship-home .hero-v3-copy{padding-top:16px}
}
@media(prefers-reduced-motion:reduce){.flagship-home .hero-title,.flagship-home .hero-subtitle,.flagship-home .hero-rule{animation:none!important;opacity:1!important;transform:none!important}}
/* Override legacy hero animation so only the approved V5.13 entrance runs. */
.flagship-home .hero-title,.flagship-home .hero-subtitle,.flagship-home .hero-rule{animation:none!important}
.flagship-home.is-loaded .hero-title{animation:v513HeroIn 1s cubic-bezier(.2,.75,.2,1) .12s forwards!important}
.flagship-home.is-loaded .hero-subtitle{animation:v513HeroIn 1s cubic-bezier(.2,.75,.2,1) .34s forwards!important}
.flagship-home.is-loaded .hero-rule{animation:v513RuleIn .9s cubic-bezier(.2,.75,.2,1) .52s forwards!important}
/* Non-destructive lapel cleanup: original hero image remains untouched. */
@media(min-width:1051px){
  .flagship-home .hero-scene:before{content:"";position:absolute;z-index:2;left:41.5%;top:26.6%;width:42px;height:42px;background:url('../images/hero-lapel-patch.png') center/cover no-repeat;transform:rotate(-5deg);pointer-events:none;filter:saturate(.96) brightness(.98)}
}


/* V5.16 — final QA corrections */
/* Hero entrance: visible 1s rise/fade after the page has actually painted. */
.flagship-home .hero-title,
.flagship-home .hero-subtitle{
  animation:none!important;
  opacity:0!important;
  transform:translate3d(0,30px,0)!important;
  filter:blur(3px);
  transition:opacity 1s cubic-bezier(.2,.72,.2,1),transform 1s cubic-bezier(.2,.72,.2,1),filter 1s ease!important;
}
.flagship-home .hero-subtitle{transition-delay:.16s!important}
.flagship-home.hero-motion-ready .hero-title,
.flagship-home.hero-motion-ready .hero-subtitle{
  opacity:1!important;
  transform:translate3d(0,0,0)!important;
  filter:blur(0);
}
.flagship-home .hero-rule{animation:none!important;opacity:0!important;transform:scaleX(.86)!important;transition:opacity .8s ease .32s,transform .8s cubic-bezier(.2,.72,.2,1) .32s!important}
.flagship-home.hero-motion-ready .hero-rule{opacity:1!important;transform:scaleX(1)!important}

/* Checkout: keep UF genuinely compact; inputs may not impose intrinsic min-width. */
.checkout-card .fields.three{grid-template-columns:166px minmax(0,1fr) 68px!important;align-items:end}
.checkout-card .fields.three>label,.checkout-card .fields.three input{min-width:0!important;width:100%}
.checkout-card .fields.three>label:last-child{max-width:68px;justify-self:end}
.checkout-card .fields.three>label:last-child input{padding-left:6px!important;padding-right:6px!important;text-align:center;font-weight:600}

/* Mega menu: make the hit area/transition forgiving on desktop. */
@media(min-width:981px){
  .site-header .nav a[data-mega]{padding-top:18px;padding-bottom:18px;margin-top:-18px;margin-bottom:-18px}
  .virtus-mega-panel{transform:translate3d(0,-10px,0)}
}

@media(max-width:620px){
  .checkout-card .fields.three>label:last-child{max-width:none;justify-self:stretch}
}
@media(prefers-reduced-motion:reduce){
  .flagship-home .hero-title,.flagship-home .hero-subtitle,.flagship-home .hero-rule{transition:none!important;opacity:1!important;transform:none!important;filter:none!important}
}
