/* Upshift Digital shared additions. Loaded after each page's inline styles. */

:root {
  --gray: #93A3CB;
  --gold: #F5C84B;
}

/* ---------- Accessibility basics ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; outline: 3px solid #fff; outline-offset: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}
main { display: block; }
html { overflow-x: clip; }

/* ---------- Animated background ---------- */
#bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Footer additions ---------- */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal a { font-size: 12px; color: var(--gray); text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--white); text-decoration: underline; }
.footer-copy { color: rgba(240,244,255,0.62) !important; }
@media (max-width: 768px) { .footer-legal { justify-content: flex-start; } }

/* ---------- Glow that follows the cursor (shared by every card type) ---------- */
.glow { position: relative; overflow: hidden; }
.glow::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(37,99,235,0.16), transparent 60%);
}
.glow:hover::after { opacity: 1; }

/* ---------- Google reviews header ---------- */
.rhead { padding: 0 60px; margin-bottom: 8px; }
.score { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.score b { font-size: clamp(56px, 8vw, 84px); line-height: 1; font-weight: 800; color: var(--white); }
.stars { color: var(--gold); letter-spacing: 4px; font-size: 24px; line-height: 1; }
.score small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0.08em; color: var(--gray); text-transform: uppercase; }
.glink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--blue-light); font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(59,130,246,0.4); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.glink:hover { color: var(--white); border-color: var(--white); }
.testi-more { text-align: center; padding: 0 24px 90px; background: var(--navy); position: relative; z-index: 1; }
.testi-rail { padding-bottom: 36px !important; position: relative; z-index: 1; }
.testi-rail:active .testi-track { animation-play-state: paused; }

/* ---------- Founder blurb ---------- */
.founder { position: relative; z-index: 1; background: var(--navy); padding: 10px 24px 90px; text-align: center; }
.founder-inner { max-width: 640px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 48px; }
.founder h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.1; color: var(--white); margin-bottom: 12px; }
.founder h2 span { color: var(--blue-light); }
.founder p { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--gray); margin-bottom: 22px; }
.founder .li-link { display: inline-flex; align-items: center; gap: 10px; background: #0A66C2; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: 50px; transition: transform 0.2s, box-shadow 0.2s; }
.founder .li-link:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(10,102,194,0.45); }
@media (max-width: 900px) { .rhead { padding: 0 24px; } }

/* ---------- Hero build animation (a website assembling itself) ---------- */
.hero { gap: 40px; }
.hero-content { flex: 1 1 auto; }
.hv { display: none; position: relative; z-index: 2; flex: 0 0 min(46%, 520px); }
.hv-win {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0C1224; border: 1px solid rgba(59,130,246,0.35);
  box-shadow: 0 40px 80px -30px rgba(37,99,235,0.55), 0 0 0 1px rgba(255,255,255,0.03);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.hv-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #111A33; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3B4A75; }
.hv-bar i:nth-child(1) { background: #FF5F57; } .hv-bar i:nth-child(2) { background: #FEBC2E; } .hv-bar i:nth-child(3) { background: #28C840; }
.hv-url { margin-left: 10px; flex: 1; font-size: 11px; color: var(--gray); background: rgba(255,255,255,0.05); border-radius: 20px; padding: 5px 14px; overflow: hidden; white-space: nowrap; }
.hv-load { height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; animation: hvLoad 9s ease-out infinite; }
.hv-page { padding: 18px; display: grid; gap: 16px; min-height: 320px; }
.hv-nav { display: flex; align-items: center; gap: 10px; animation: hvIn 9s ease-out infinite 0.3s both; }
.hv-nav b { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--cyan)); margin-right: auto; }
.hv-nav s { width: 38px; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.hv-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.hv-line { height: 14px; border-radius: 7px; background: rgba(240,244,255,0.85); margin-bottom: 10px; transform-origin: left; animation: hvDraw 9s ease-out infinite both; }
.hv-line.l1 { width: 92%; animation-delay: 0.9s; }
.hv-line.l2 { width: 64%; animation-delay: 1.2s; background: var(--blue-light); }
.hv-line.s { height: 7px; background: rgba(255,255,255,0.16); }
.hv-line.s1 { width: 88%; animation-delay: 1.6s; } .hv-line.s2 { width: 74%; animation-delay: 1.8s; }
.hv-btn { width: 96px; height: 28px; border-radius: 20px; background: var(--blue); margin-top: 14px; animation: hvPop 9s ease-out infinite 2.3s both; }
.hv-img { aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(135deg, #1E3A8A, #0E7490 70%, #164E63); position: relative; overflow: hidden; animation: hvIn 9s ease-out infinite 1.4s both; }
.hv-img::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-20deg); animation: hvSweep 9s ease-in-out infinite 3s; }
.hv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hv-cards div { height: 58px; border-radius: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.06); animation: hvIn 9s ease-out infinite both; }
.hv-cards div:nth-child(1) { animation-delay: 3.0s; } .hv-cards div:nth-child(2) { animation-delay: 3.3s; } .hv-cards div:nth-child(3) { animation-delay: 3.6s; }
.hv-stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; animation: hvIn 9s ease-out infinite 4.2s both; }
.hv-cursor { position: absolute; width: 18px; height: 18px; z-index: 5; top: 0; left: 0; animation: hvCursor 9s ease-in-out infinite; pointer-events: none; }
.hv-cursor svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.hv-live { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #fff; background: #059669; padding: 7px 14px; border-radius: 20px; animation: hvLive 9s ease-out infinite both; }
.hv-live span { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes hvIn { 0% { opacity: 0; transform: translateY(12px); } 7%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes hvDraw { 0% { opacity: 0; transform: scaleX(0); } 7%, 88% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes hvPop { 0% { opacity: 0; transform: scale(0.6); } 5% { opacity: 1; transform: scale(1.08); } 8%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes hvLoad { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 62%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hvSweep { 0% { left: -50%; } 18%, 100% { left: 140%; } }
@keyframes hvLive { 0%, 58% { opacity: 0; transform: translateY(10px); } 64%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes hvCursor { 0% { transform: translate(300px, 260px); } 14% { transform: translate(120px, 150px); } 28% { transform: translate(110px, 192px); } 40% { transform: translate(300px, 150px); } 60% { transform: translate(230px, 262px); } 78% { transform: translate(380px, 300px); } 100% { transform: translate(300px, 260px); } }
@media (min-width: 1000px) { .hv { display: block; } }
@media (max-width: 999px) {
  .hero { flex-wrap: wrap; }
  .hv { display: block; flex: 1 1 100%; max-width: 440px; margin-top: 10px; }
  .hv-win { transform: none; }
  .hv-cursor { display: none; }
}

/* ---------- Process as a level path ---------- */
.quest-board { margin-top: 56px; display: grid; gap: 40px; }
.quest-track { position: relative; display: flex; justify-content: space-between; padding: 0 22px; margin: 0 8px; }
.quest-track::before { content: ''; position: absolute; left: 22px; right: 22px; top: 21px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.quest-fill { position: absolute; left: 22px; top: 21px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan)); width: 0; transition: width 0.7s cubic-bezier(.4,.1,.2,1); box-shadow: 0 0 18px rgba(6,182,212,0.6); }
.quest-rocket { position: absolute; top: -2px; left: 22px; width: 52px; height: 52px; margin-left: -26px; pointer-events: none; z-index: 3; transition: left 0.7s cubic-bezier(.4,.1,.2,1); }
.quest-rocket svg { width: 100%; height: 100%; transform: rotate(90deg); filter: drop-shadow(0 6px 14px rgba(37,99,235,0.7)); animation: rocketBob 1.6s ease-in-out infinite; }
@keyframes rocketBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.quest-node { position: relative; z-index: 2; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 44px; color: var(--gray); font: inherit; }
.qn-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-light); border: 2px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; transition: all 0.35s; }
.qn-name { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); width: 110px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; transition: color 0.3s; }
.quest-node.done .qn-dot { background: var(--blue); border-color: var(--blue-light); color: #fff; }
.quest-node.done .qn-name { color: var(--white); }
.quest-node.active .qn-dot { background: var(--cyan); border-color: #fff; color: #04121c; transform: scale(1.18); box-shadow: 0 0 0 6px rgba(6,182,212,0.18), 0 0 28px rgba(6,182,212,0.6); }
.quest-node.active .qn-name { color: #fff; }
.quest-node:hover .qn-dot { border-color: var(--blue-light); }
.quest-panel { position: relative; background: var(--navy-light); border: 1px solid rgba(59,130,246,0.25); border-radius: 18px; padding: 34px 36px 30px; margin-top: 40px; overflow: hidden; }
.q-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.q-xp { flex: 1; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.08); overflow: hidden; max-width: 320px; }
.q-xp i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 8px; transition: width 0.7s cubic-bezier(.4,.1,.2,1); }
.q-body { animation: qIn 0.45s ease; }
@keyframes qIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.q-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.05; margin-bottom: 12px; color: var(--white); }
.q-desc { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--gray); max-width: 640px; }
.q-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.q-actions button { padding: 12px 26px; font-size: 14px; }
.q-actions button:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: none; }
.q-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.q-burst i { position: absolute; bottom: -10px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; }
.q-burst.go i { animation: qConf 1.6s ease-out forwards; }
@keyframes qConf { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(-260px) translateX(var(--dx)) rotate(540deg); } }
@media (max-width: 760px) {
  .qn-name { display: none; }
  .quest-track { padding: 0 6px; margin: 0; }
  .quest-track::before { left: 6px; right: 6px; }
  .quest-fill { left: 6px; }
  .quest-rocket { left: 6px; }
  .quest-node, .qn-dot { width: 38px; height: 38px; }
  .quest-track::before, .quest-fill { top: 16px; }
  .quest-rocket { top: -6px; width: 46px; height: 46px; margin-left: -23px; }
  .quest-panel { padding: 26px 22px 24px; }
}

/* ---------- Contact wizard ---------- */
.wiz-count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 20px; }
.wiz-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  background: var(--navy-mid); border: 1.5px solid rgba(255,255,255,0.1); color: var(--white); border-radius: 14px; padding: 20px 18px;
  cursor: pointer; font: inherit; transition: border-color 0.2s, transform 0.2s, background 0.2s; min-height: 150px;
}
.pick:hover { border-color: var(--blue-light); transform: translateY(-3px); background: rgba(37,99,235,0.08); }
.pick.on { border-color: var(--cyan); background: rgba(6,182,212,0.1); }
.pick svg { width: 38px; height: 38px; color: var(--blue-light); }
.pick b { font-size: 16px; font-weight: 700; }
.pick span { font-size: 13px; font-weight: 300; color: var(--gray); line-height: 1.5; }
.wiz-note { font-size: 13px; color: #FCA5A5; margin: 0 0 10px; }
.btn-primary, .btn-outline, .form-submit { -webkit-tap-highlight-color: transparent; }
.contact-call { margin-top: 36px; }
@media (max-width: 760px) { .wiz-picks { grid-template-columns: 1fr; } .pick { min-height: 0; flex-direction: row; align-items: center; } }

button.btn-outline { background: transparent; font-family: inherit; cursor: pointer; }
button.btn-primary { font-family: inherit; }

/* ---------- Work page: featured card spotlight ---------- */
.featured-card.glow { overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 70px 24px 100px; position: relative; z-index: 1; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; color: var(--white); }
.legal h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; color: var(--white); }
.legal p, .legal li { font-size: 16px; line-height: 1.85; color: rgba(240,244,255,0.82); font-weight: 300; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-light); }
.legal .updated { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 28px; }
.legal .box { background: var(--navy-light); border: 1px solid rgba(59,130,246,0.25); border-radius: 14px; padding: 22px 24px; margin: 24px 0; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .testi-track, .marquee-track, .fw-col { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hv-nav, .hv-line, .hv-btn, .hv-img, .hv-cards div, .hv-stars, .hv-live, .hv-load { opacity: 1 !important; transform: none !important; }
  #bgfx { display: none; }
}
