/* ThinqShift: Home page styles. Tokens in tokens.css, shared nav/footer/layout in base.css.
   This file holds only sections unique to the homepage. */

/* ─── HERO (Vision Arc) ───
   ts-brain-bg: the split analytical/creative brain illustration, processed
   (darkened, purple color-graded, top vignette) to sit as a ThinqShift
   background rather than a standalone image. The existing .hero-bg::after
   gradient still does the left-to-right text-legibility wash on top of this;
   the image itself is only pre-toned for cohesion, not for contrast. Plus a
   slow Ken Burns drift for a bit of "fizz." */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 90px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-base);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg picture, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% center;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: hero-kenburns 26s ease-in-out infinite alternate; transform-origin: 50% 50%; }
}
@keyframes hero-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,8,24,0.94) 0%, rgba(18,8,24,0.72) 42%, rgba(53,0,105,0.38) 72%, rgba(136,39,171,0.22) 100%),
    linear-gradient(0deg, var(--bg-base) 0%, rgba(18,8,24,0.35) 30%, transparent 58%);
}
@media (max-width: 820px) {
  .hero-bg::after { background:
    linear-gradient(180deg, rgba(18,8,24,0.88) 0%, rgba(18,8,24,0.68) 40%, rgba(18,8,24,0.82) 78%, var(--bg-base) 100%); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(136,39,171,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136,39,171,0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 20% 25%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 20% 25%, black 10%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.hero-glow.g1 { width: 620px; height: 620px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(136,39,171,0.55), transparent 70%); animation: drift1 22s ease-in-out infinite; }
.hero-glow.g2 { width: 440px; height: 440px; bottom: -160px; left: -80px; background: radial-gradient(circle, rgba(197,138,16,0.22), transparent 70%); animation: drift2 26s ease-in-out infinite; }
.hero-glow.g3 { width: 360px; height: 360px; top: 30%; left: 10%; background: radial-gradient(circle, rgba(95,7,141,0.5), transparent 70%); animation: drift1 30s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(30px, -24px); } }
@media (prefers-reduced-motion: reduce) { .hero-glow, .hero-bg img { animation: none; } }

.hero-inner { max-width: 640px; }
.hero .eyebrow { margin-bottom: 20px; display: block; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.18; margin-bottom: 24px; color: var(--white);
  text-shadow: 0 2px 24px rgba(18,8,24,0.6);
}
.hero .lede { margin-bottom: 16px; max-width: 560px; text-shadow: 0 1px 14px rgba(18,8,24,0.7); }
.hero .lede:last-of-type { margin-bottom: 0; }

@media (max-width: 640px) { .hero .lede { color: var(--lilac); } }
@media (max-width: 640px) { .hero { min-height: 0; padding: 112px 0 60px; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 40px; border: 1px solid var(--border2); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--amber-soft); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ─── ARE YOU FABULOUS ─── */
.fabulous { border-top: 1px solid var(--border); }
.fabulous-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.fabulous h2 { margin-bottom: 0; }
.fabulous p { color: var(--muted); font-size: 0.98rem; line-height: 1.85; margin-bottom: 20px; }
@media (max-width: 760px) { .fabulous-grid { grid-template-columns: 1fr; } }

/* Fabulous DNA: icon + label, then the two grouped trait sets underneath */
.dna-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dna-icon { width: 30px; height: 30px; flex-shrink: 0; }
.dna-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.dna-groups { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.dna-group-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 10px; }
.dna-groups .tag-row { margin-bottom: 0; }

/* ─── THREE TRACKS ─── */
.tracks { border-top: 1px solid var(--border); }
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.track { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .25s ease; }
.track:hover { transform: translateY(-4px); border-color: var(--border2); background: rgba(136,39,171,0.13); box-shadow: 0 14px 44px rgba(136,39,171,0.16); }
.track .mark { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 0 14px rgba(136,39,171,0.35); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.track .mark svg { width: 18px; height: 18px; }
.track:hover .mark { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 22px rgba(136,39,171,0.55); }
.track.academy .mark { background: linear-gradient(135deg, var(--purple-100), var(--purple-300)); }
.track.rewire .mark { background: linear-gradient(135deg, var(--purple-200), var(--purple-400)); }
.track.orchestrate .mark { background: linear-gradient(135deg, var(--purple-400), var(--violet-deep)); }
.track h3 { margin-bottom: 12px; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.1; color: var(--white); text-shadow: 0 0 26px color-mix(in srgb, var(--set) 55%, transparent); }
.track p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 14px; }
.track .tag-row { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
.track .track-go { font-size: 0.82rem; font-weight: 600; color: var(--lilac); display: inline-flex; gap: 6px; align-items: center; margin-top: auto; }
.track:hover .track-go span { transform: translateX(3px); }
.track .track-go span { transition: transform .2s; }
@media (max-width: 800px) { .tracks-grid { grid-template-columns: 1fr; } }

/* Track cards wear the same branded treatment as the service-page tiles (accent bar, icon + tag, watermark) */
.track.rewire { --set: #a94fce; --watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3'/%3E%3Cpath d='M18 3v4h-4M6 21v-4h4'/%3E%3C/svg%3E"); }
.track.academy { --set: #e0ab3f; --watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l7-7 7 7M5 19l7-7 7 7'/%3E%3C/svg%3E"); }
.track.orchestrate { --set: #f2761a; --watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='5' cy='19' r='2'/%3E%3Ccircle cx='19' cy='19' r='2'/%3E%3Cpath d='M12 7v5M12 12l-6 5.5M12 12l6 5.5'/%3E%3C/svg%3E"); }
.track .tile-head .mark { margin-bottom: 0; flex: none; }
/* the card is one big link, so the CTA is a span dressed as the primary button */
.track .track-go.btn-primary { align-self: flex-start; color: #fff; font-size: 0.86rem; font-weight: 600; padding: 10px 22px; }
.track:hover .track-go.btn-primary { box-shadow: 0 8px 26px rgba(136,39,171,0.44); }
.tracks-note { color: var(--muted); font-size: 0.85rem; margin-top: 22px; max-width: 640px; }

/* ─── TRIFECTA VENN (Academy / Rewire / Orchestrate → Fabulous Leadership) ─── */
.trifecta-intro { max-width: 640px; margin: 56px auto 0; text-align: center; }
.trifecta-intro .eyebrow { display: block; margin-bottom: 12px; }
.trifecta-intro h3 { margin-bottom: 12px; }
.trifecta-intro p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ─── DISCRETION ─── */
.discretion { border-top: 1px solid var(--border); }
.discretion-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  border: 1px solid var(--border2); border-radius: var(--radius);
  background: var(--card-solid); padding: clamp(32px, 5vw, 52px); box-shadow: var(--shadow);
}
.discretion h2 { margin-bottom: 18px; line-height: 1.4; }
.discretion p { color: var(--muted); font-size: 0.98rem; line-height: 1.85; margin-bottom: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }
.discretion .hero-actions { justify-content: center; margin-top: 26px; }

/* ─── CLOSING ─── */
.closing { border-top: 1px solid var(--border); }

/* ─── CUBE TEASER: the same inline cube art the Rewire decoder uses ─── */
.cube-teaser { width: 100%; max-width: 380px; margin: 0 auto; }
.cube-teaser-art { width: 100%; height: auto; filter: drop-shadow(0 0 36px rgba(136,39,171,0.5)); }
.split-copy .text-link { display: inline-block; margin-top: 18px; }
