/* Freela motion layer. Everything here respects prefers-reduced-motion (see bottom). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fx-page-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: fx-page-in .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes fx-page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes fx-page-in { from { opacity: 0; transform: translateY(18px); } }

:root { --fx-ease: cubic-bezier(.22,1,.36,1); }

/* scroll progress */
.fx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg,#C9F31D,#14833A); z-index: 60; pointer-events: none; }

/* sticky compact header */
.fx-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); font-family: "Bricolage Grotesque", system-ui, sans-serif; color: #F4F4F5; background: rgba(10,10,11,.9); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-110%); transition: transform .45s var(--fx-ease); }
.fx-bar.on { transform: translateY(0); }
.fx-bar header { max-width: 1232px; margin: 0 auto; padding: 12px 0 !important; }
.fx-bar header img { height: 28px !important; }

/* nav underline */
header nav a { position: relative; transition: color .2s; }
header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,#C9F31D,#3BAF4B); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--fx-ease); }
header nav a:hover { color: #FFFFFF !important; }
header nav a:hover::after, header nav a[aria-current]::after { transform: scaleX(1); }

/* mobile menu */
.fx-burger { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: #F4F4F5; cursor: pointer; align-items: center; justify-content: center; }
.fx-burger span, .fx-burger span::before, .fx-burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .3s var(--fx-ease), background .2s; }
.fx-burger span::before, .fx-burger span::after { content: ""; position: absolute; left: 0; }
.fx-burger span::before { top: -6px; } .fx-burger span::after { top: 6px; }
.fx-open .fx-burger span { background: transparent; }
.fx-open .fx-burger span::before { transform: translateY(6px) rotate(45deg); }
.fx-open .fx-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.fx-menu { position: fixed; inset: 0; z-index: 70; background: #0A0A0B; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 96px max(24px, env(safe-area-inset-left, 0px)) 48px; clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .6s var(--fx-ease); font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.fx-open .fx-menu { clip-path: circle(150% at calc(100% - 44px) 44px); }
.fx-menu a { color: #F4F4F5; text-decoration: none; font-size: clamp(34px, 9vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--fx-ease), color .2s; }
.fx-menu a:hover { color: #C9F31D; }
.fx-open .fx-menu a { opacity: 1; transform: none; }
.fx-menu .fx-close { position: absolute; top: max(20px, env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); }
.fx-menu .fx-menu-foot { margin-top: 28px; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: #A1A1AA; display: flex; flex-direction: column; gap: 8px; }
.fx-menu .fx-menu-foot a { font-size: 16px; font-weight: 400; letter-spacing: 0; font-family: inherit; color: #C9F31D; }
@media (max-width: 860px) {
  header nav[aria-label="Main"] { display: none !important; }
  header > a[href*="contact"] { display: none !important; }
  .fx-burger { display: inline-flex; }
}

/* hero entrance */
.fx-hero-in > * { animation: fx-rise .9s var(--fx-ease) both; }
.fx-hero-in > *:nth-child(2) { animation-delay: .08s; }
.fx-hero-in > *:nth-child(3) { animation-delay: .2s; }
.fx-hero-in > *:nth-child(4) { animation-delay: .32s; }
.fx-hero-in > *:nth-child(5) { animation-delay: .44s; }
.fx-hero-in h1 .grad-text { display: inline-block; animation: fx-rise 1s var(--fx-ease) .3s both, fx-shimmer 7s ease-in-out 1.4s infinite alternate; background-size: 220% 100%; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fx-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.fx-hero-media { animation: fx-zoomin 1.2s var(--fx-ease) .25s both; }
@keyframes fx-zoomin { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* cursor glow in dark heroes */
.fx-glow { position: absolute; width: 520px; height: 520px; left: 0; top: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(201,243,29,.16), rgba(20,131,58,.08) 55%, transparent 100%); transform: translate(-50%,-50%); opacity: 0; transition: opacity .5s; z-index: 0; }
.fx-glow.on { opacity: 1; }

/* scroll reveal */
.fx .fx-r { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--fx-ease), transform .9s var(--fx-ease); transition-delay: var(--fx-d, 0s); }
.fx .fx-r.in { opacity: 1; transform: none; }

/* buttons */
.fx-btn { transition: transform .3s var(--fx-ease), box-shadow .3s, background-color .2s, color .2s !important; will-change: transform; }
.fx-btn:hover { transform: translateY(-2px); }
.fx-btn.fx-primary:hover { box-shadow: 0 10px 30px rgba(201,243,29,.28); }
.fx-btn .fx-arrow { display: inline-block; margin-left: 8px; transition: transform .3s var(--fx-ease); }
.fx-btn:hover .fx-arrow { transform: translateX(4px); }
.fx-btn:active { transform: translateY(0) scale(.98); }

/* cards: lift, tilt, spotlight */
.fx-card { position: relative; transition: transform .45s var(--fx-ease), box-shadow .45s var(--fx-ease), border-color .3s; transform-style: preserve-3d; }
.fx-card:hover { box-shadow: 0 2px 4px rgba(10,10,11,.05), 0 24px 48px rgba(10,10,11,.12); }
.fx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(201,243,29,.18), transparent 45%); }
.fx-card:hover::after { opacity: 1; }
.glass.fx-card:hover { border-color: rgba(201,243,29,.35) !important; }

/* work + insights images */
.fx-zoom { overflow: hidden; }
.fx-zoom img { transition: transform 1s var(--fx-ease), filter .6s; }
.fx-zoom:hover img { transform: scale(1.06); }
.fx-tag { position: absolute; right: 16px; top: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(10,10,11,.8); color: #C9F31D; font: 500 12px 'JetBrains Mono', monospace; opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .45s var(--fx-ease); backdrop-filter: blur(8px); }
.fx-zoom:hover .fx-tag { opacity: 1; transform: none; }

/* how-it-works sequence */
.fx-steps li { transition: transform .4s var(--fx-ease), border-color .3s, background .3s; }
.fx-steps li:hover { transform: translateY(-6px); border-color: rgba(201,243,29,.4) !important; background: rgba(201,243,29,.05) !important; }
.fx-steps-line { height: 2px; margin-top: 28px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.fx-steps-line i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg,#C9F31D,#3BAF4B); transition: transform 1.8s var(--fx-ease) .3s; }
.fx-steps-line.in i { transform: scaleX(1); }

/* stars */
.fx-stars svg { transform: scale(0); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.fx-stars.in svg { transform: scale(1); }
.fx-stars.in svg:nth-child(2) { transition-delay: .08s; } .fx-stars.in svg:nth-child(3) { transition-delay: .16s; }
.fx-stars.in svg:nth-child(4) { transition-delay: .24s; } .fx-stars.in svg:nth-child(5) { transition-delay: .32s; }

/* insights filter */
.fx-pop { animation: fx-pop .5s var(--fx-ease) both; }
@keyframes fx-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chip { transition: background .25s, color .25s, border-color .25s, transform .2s; }
.chip:hover { transform: translateY(-1px); border-color: #0A0A0B !important; }

/* forms */
.inp { transition: border-color .2s, box-shadow .25s; }
.inp:focus { box-shadow: 0 0 0 4px rgba(201,243,29,.25); }
.pill { transition: border-color .2s, background .2s, transform .2s; }
.pill:active { transform: scale(.97); }
.fx-sent { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #F1F8E4; color: #14532D; font-size: 15px; animation: fx-pop .5s var(--fx-ease) both; }
.fx-sent svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: fx-draw .6s .2s var(--fx-ease) forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }

/* back to top */
.fx-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 999px; border: none; background: linear-gradient(135deg,#C9F31D,#3BAF4B); color: #0A0A0B; cursor: pointer; z-index: 40; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(10,10,11,.25); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--fx-ease); }
.fx-top.on { opacity: 1; transform: none; pointer-events: auto; }
.fx-top:hover { transform: translateY(-3px); }

:focus-visible { outline: 2px solid #C9F31D; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fx .fx-r { opacity: 1; transform: none; }
  .fx-glow { display: none; }
}
.fx-menu[hidden]{display:none}

/* audit fixes 2026-10-24: bigger footer tap targets, focus for skip target */
footer nav a, footer nav + div a { display: inline-flex; align-items: center; min-height: 28px; }
#content:focus { outline: none; }
