/* Homepage-only additions — loaded after /styles.css */

.hex-float { position: absolute; width: 90px; opacity: 0.5; animation: hexFloat 8s ease-in-out infinite; }
.hf1 { top: 12%; left: 8%; width: 70px; animation-delay: 0s; }
.hf2 { top: 60%; right: 10%; width: 100px; animation-delay: 1.2s; }
.hf3 { top: 25%; right: 22%; width: 50px; animation-delay: 2.4s; }
@keyframes hexFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.trust { text-align: center; }
.trust-h2 { font-size: 22px; font-weight: 800; color: var(--deep); letter-spacing: 0.5px; margin-bottom: 34px; }

.rec-label { margin-top: 48px; font-size: 11px; letter-spacing: 0.24em; color: #999; font-weight: 700; }
.rec-bar {
  display: flex; justify-content: center; align-items: center; gap: 36px; flex-wrap: wrap;
  margin: 22px auto 0 auto; max-width: 1100px; padding: 22px 40px; border-radius: 999px;
  background: #fff; border: 2px solid transparent;
  background-image: linear-gradient(#fff,#fff), linear-gradient(90deg, var(--innovation), var(--tail-end), var(--pink));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 20px 50px rgba(43,30,143,0.14);
}
.rec-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rec-card img { max-height: 42px; width: auto; max-width: 110px; }
.rec-card span { font-size: 11px; font-weight: 700; color: var(--deep); text-align: center; }
@media (max-width: 700px) { .rec-bar { border-radius: 24px; gap: 24px; padding: 24px; } }

.needs {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(48px, 7vw, 84px);
  background-image: linear-gradient(160deg, rgba(11,8,48,0.88) 0%, rgba(43,30,143,0.82) 100%), url('/assets/hero-bg.png');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.needs .sec-head h2 { color: #fff; }
.needs .flipnote { color: rgba(255,255,255,0.65); font-size: 12.5px; margin-top: 8px; font-style: italic; }

.need-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 980px) { .need-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .need-grid { grid-template-columns: 1fr; } }
.flip-card { height: 172px; perspective: 1200px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; padding: 18px 18px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08); }
.flip-front { background: #fff; border: 1px solid var(--line); justify-content: space-between; }
.flip-back { background: var(--deep); color: #fff; transform: rotateY(180deg); justify-content: space-between; }
.flip-front .card-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.flip-front .card-icon svg { width: 16px; height: 16px; }
.flip-front h3 { font-size: 15px; color: var(--ink); margin-top: 8px; line-height: 1.25; }
.flip-back p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.92); }
.flip-back a { font-size: 12.5px; font-weight: 700; color: var(--innovation); align-self: flex-start; }
.tag { align-self: flex-start; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; color: #fff; border-radius: 20px; padding: 4px 10px; }
.spar .tag, .spar .flip-back { background: var(--tail-end); }
.arrive .tag, .arrive .flip-back { background: var(--pink); }
.rehearse .tag, .rehearse .flip-back { background: var(--deep); }
.core .tag, .core .flip-back { background: var(--innovation); }
.spar .card-icon { background: rgba(175,35,255,0.12); color: var(--tail-end); }
.arrive .card-icon { background: rgba(254,34,133,0.12); color: var(--pink); }
.rehearse .card-icon { background: rgba(43,30,143,0.12); color: var(--deep); }
.core .card-icon { background: rgba(35,182,255,0.12); color: var(--innovation); }
.spar .flip-back a, .arrive .flip-back a, .rehearse .flip-back a, .core .flip-back a { color: #fff; text-decoration: underline; }

.result-cards { display: flex; gap: 24px; justify-content: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.rcard-img { flex: 1; min-width: 320px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(43,30,143,0.15); }

.wp-row { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.wp-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10,8,34,0.7); backdrop-filter: blur(4px); padding: 20px; }
.wp-modal.is-open { display: flex; }
.wp-modal-inner { position: relative; background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 440px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: 0 40px 100px rgba(0,0,0,0.4); }
.wp-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; color: var(--slate); }
.wp-modal-close:hover { background: var(--soft); }
#wpGateTitle { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.wp-gate-sub { font-size: 13px; color: var(--slate); margin-bottom: 20px; }
.wp-unlock-step { text-align: center; padding: 20px 0; }
.wp-unlock-step h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.wp-unlock-step p { color: var(--slate); margin-bottom: 22px; }

/* "Practice Looks Different Here" — light variant, overriding dark-band */
.practice-light { background: #fff !important; border-top: 1px solid var(--line); }
.practice-light .sec-head h2, .practice-light .sec-head p { color: var(--darktext); }
.practice-light .eyebrow { color: var(--innovation); }
.practice-light .eyebrow::before { background: var(--innovation); }
.practice-light .core-tab { background: var(--soft); border-color: var(--line); color: var(--slate); }
.practice-light .core-tab:hover { background: #eceaf8; color: var(--darktext); }
.practice-light .core-tab.is-active { background: linear-gradient(90deg, var(--innovation), var(--tail-end)); color: #fff; border-color: transparent; }
.practice-light .core-panel-shot { border-color: var(--line); box-shadow: 0 20px 50px rgba(43,30,143,0.14); }
.practice-light .core-panel-text h3 { color: var(--darktext); }
.practice-light .core-panel-text a { color: var(--royal); }

/* Multi-image gallery within each tab (shot-group) */
.shot-group { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.shot-group.is-active { opacity: 1; pointer-events: auto; }
.shot-group img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.shot-group img.is-active { opacity: 1; }
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10,8,34,0.55); color: #fff; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.shot-nav:hover { background: rgba(10,8,34,0.8); }
.shot-prev { left: 12px; }
.shot-next { right: 12px; }
.shot-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 7px; }
.shot-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background .2s ease; }
.shot-dots span.is-active { background: #fff; }

/* Before/After drag slider (320 slides -> 5 VR modules) */
.ba-slider { position: relative; width: 100%; height: 100%; cursor: ew-resize; user-select: none; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; }
.ba-after img, .ba-before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before img { object-position: center top; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--deep); pointer-events: none; z-index: 3; }
.ba-handle::before { content: ""; position: absolute; top: -1000px; bottom: -1000px; width: 2px; background: #fff; left: 50%; transform: translateX(-50%); }
.ba-label { position: absolute; bottom: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(10,8,34,0.55); padding: 6px 12px; border-radius: 999px; pointer-events: none; z-index: 2; }
.ba-label-left { left: 16px; }
.ba-label-right { right: 16px; }

/* ── Case Studies: equal-weight side-by-side cards ───────────── */
.case-study-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 32px auto 0 auto; align-items: stretch; }
.case-study-card {
  display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 20px 50px rgba(43,30,143,0.12); padding-bottom: 20px;
}
.case-study-visual { width: 100%; aspect-ratio: 4/3; position: relative; }
.case-study-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ACECO's composition is much wider than the shared 4:3 frame — cover would crop meaningful
   content off the sides, so this specific card shows the complete graphic instead, letterboxed
   on a soft neutral background rather than cropped. Olen's slider is untouched (different class). */
.case-study-visual-contain { background: var(--soft); }
.case-study-visual-contain img { object-fit: contain; }
.case-study-card .btn { margin-top: 18px; }
@media (max-width: 720px) { .case-study-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* Homepage-only variant: watermark biased right instead of centered, for an intentionally asymmetric composition */
.final-cta-right::after {
  left: auto; right: -4%; top: 50%; transform: translateY(-50%);
  width: min(50%, 420px);
}
@media (max-width: 900px) { .final-cta-right::after { right: -10%; width: 60%; opacity: 0.07; } }
@media (max-width: 560px) { .final-cta-right::after { right: -14%; width: 62%; top: 38%; } }
