/* Fluid surfaces and choreography. Geometry stays stable around readable copy. */
.header { border-bottom: 0; }
.header nav { padding: 12px 25px; border: 1px solid var(--line); border-radius: 100px; background: #0b11245c; }
.header nav a { position: relative; }
.header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--nexus-blue-light); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.header nav a:hover::after, .header nav a:focus-visible::after { transform: scaleX(1); }
.button { border-radius: 100px; padding: 15px 18px 15px 26px; position: relative; isolation: isolate; transform: translate(var(--mag-x, 0px), var(--mag-y, 0px)); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s, box-shadow .3s; }
.button > span:last-child { border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; background: #03071114; transition: rotate .4s, background .4s; }
.button:hover { transform: translate(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 3px)); box-shadow: 0 12px 45px #268bff38; }
.button:hover > span:last-child { rotate: 45deg; background: #03071126; }
.button:active { scale: .97; }
.button.outline > span:last-child { background: #83c5ff18; }
.hero { perspective: 1200px; }
.hero-copy { z-index: 4; }
.title-line:nth-child(3) > em { background-size: 220% 100%; animation: headline-in 1.15s .28s both, gradient-flow 7s 1.5s ease-in-out infinite; }
.hero-footer { border: 0; }
.hero-footer > a > span { animation: scroll-nudge 2s ease-in-out infinite; }
.hero .ambient-ribbon { position: absolute; width: 760px; height: 620px; top: 7%; right: -130px; border-radius: 43% 57% 62% 38% / 55% 40% 60% 45%; background: radial-gradient(ellipse at 60% 35%, #7545e82e, transparent 65%), radial-gradient(ellipse at 35% 75%, #268bff25, transparent 60%); animation: ribbon-drift 14s ease-in-out infinite alternate; pointer-events: none; z-index: 0; }
.connection-art { perspective: 1000px; }
.art-plane { transform: translate3d(var(--mx,0px),var(--my,0px),0) rotateX(var(--art-rx,0deg)) rotateY(var(--art-ry,0deg)); transition: none; transform-style: preserve-3d; }
.light-trails { animation: orbit-sway 12s ease-in-out infinite; filter: drop-shadow(0 0 5px #268bff48); }
.trail-running { stroke-width: 4px; stroke-dasharray: 100 1565; animation-duration: 4s; }
.trail-packet { stroke-dasharray: 8 1657; stroke-linecap: round; stroke-width: 7; animation: orbit-travel 5s linear infinite; }
.trail-packet.violet { stroke: var(--nexus-violet-light); animation-delay: -2.5s; animation-direction: reverse; }
.connection-node { border-radius: 32px; background: linear-gradient(145deg,#142540dd,#090d20f2); box-shadow: 0 28px 70px #0007, inset 0 1px 1px #83c5ff36; animation: node-drift 5s ease-in-out infinite; transform: translateZ(30px); }
.node-web { border-radius: 48px 24px 48px 24px; }
.node-system { border-radius: 32px 52px 32px 52px; animation-delay: -1.7s; }
.node-auto { border-radius: 45px; animation-delay: -3.4s; }
.web-sketch b { border-radius: 10px 4px 10px 4px; animation: interface-breathe 3.5s ease-in-out infinite; }
.system-sketch i { transform-origin: bottom; animation: signal-wave 2.6s ease-in-out infinite alternate; border-radius: 8px 8px 3px 3px; }
.system-sketch i:nth-child(2) { animation-delay: -.5s; }
.system-sketch i:nth-child(3) { animation-delay: -1.2s; }
.system-sketch i:nth-child(4) { animation-delay: -.8s; }
.system-sketch i:nth-child(5) { animation-delay: -1.8s; }
.flow-sketch i { border-radius: 50%; animation: node-pulse 2.4s ease-in-out infinite; }
.flow-sketch i:nth-of-type(2) { animation-delay: -.8s; }
.flow-sketch i:nth-of-type(3) { animation-delay: -1.6s; }
.flow-sketch span { background: linear-gradient(90deg, transparent, var(--nexus-blue-light), var(--nexus-violet), transparent); background-size: 200% 100%; animation: gradient-flow 1.8s linear infinite; }
.art-point { animation: beacon 3s ease-in-out infinite; }
.point-b { animation-delay: -1.5s; }
.pointer-light { position: absolute; left: 0; top: 0; width: 440px; height: 440px; margin: -220px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle,#268bff20, #7545e80e 40%, transparent 69%); transform: translate3d(var(--spot-x,0px),var(--spot-y,0px),0); opacity: 0; transition: opacity .6s; z-index: 1; }
.pointer-inside > .pointer-light { opacity: 1; }
.marquee { position: relative; border: 0; background: transparent; padding: 32px 0; }
.marquee::before { content: ''; position: absolute; inset: 8px -2%; background: linear-gradient(90deg,#0b1830,#17102f,#0b1830); border-block: 1px solid #83c5ff29; transform: rotate(-1.5deg); z-index: -1; }
.marquee-track { animation-duration: 24s; }
.marquee-track b { display: inline-block; animation: symbol-spin 14s linear infinite; }
.services { overflow: clip; }
.service-list { align-self: center; }
.service-item { border-top: 0; border-bottom: 1px solid var(--line); position: relative; border-radius: 28px; transition: background .4s, box-shadow .4s; }
.service-item:last-child { border-bottom-color: transparent; }
.service-item:hover, .service-item:focus-within { background: #268bff09; box-shadow: inset 1px 0 #83c5ff40; }
.service-item h3 button { padding-inline: 20px; }
.service-item h3 button > span:nth-child(2) { transition: translate .4s; }
.service-item:hover h3 button > span:nth-child(2) { translate: 8px 0; }
.service-sign { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 50%; border: 1px solid #b38aff38; transition: rotate .5s, background .4s; }
.service-item:hover .service-sign { rotate: 90deg; background: #7545e826; }
.service-detail { padding-left: 75px; }
.service-visual { transform: rotate(var(--service-angle,0deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.visual-window { border-radius: 24px; }
.visual-orbit { animation: visual-orbit 12s linear infinite; }
.visual-orbit::after { content: ''; position: absolute; width: 7px; height: 7px; top: 50%; left: -3px; border-radius: 50%; background: var(--nexus-violet-light); box-shadow: 0 0 16px var(--nexus-violet); }
.projects { border: 0; margin-inline: 18px; border-radius: 80px 80px 32px 32px; position: relative; overflow: clip; }
.project-stage { border-radius: 45px 140px 45px 45px; isolation: isolate; perspective: 1200px; }
.project-stage::before { content: ''; position: absolute; width: 75%; height: 130%; left: 25%; top: -20%; border-radius: 50%; background: conic-gradient(from 0deg,transparent,#7545e825,transparent,#268bff22,transparent); animation: symbol-spin 20s linear infinite; z-index: -1; }
.project-stage .project-art { transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translate3d(var(--pan-x,0px),var(--pan-y,0px),0); transition: none; }
.media-frame { border-radius: 30px; }
.frame-front { animation: media-bob 6s ease-in-out infinite; }
.frame-middle { animation: media-bob 6s -2s ease-in-out infinite; }
.frame-back { animation: media-bob 6s -4s ease-in-out infinite; }
.media-halo { animation: halo-breathe 8s ease-in-out infinite; border-width: 2px; }
.stage-label { background: #03071166; border: 1px solid #83c5ff20; padding: 8px 14px; border-radius: 50px; }
.stage-discover { background: #83c5ff16; padding: 12px 20px; border-radius: 50px; border: 1px solid #83c5ff30; }
.image-switch { border-radius: 50px; }
.next-project { border-radius: 38px; padding: 35px 25px; border: 1px solid #83c5ff20; background: radial-gradient(ellipse at 95% 100%,#7545e81a,transparent 70%); }
.next-arrow { border-radius: 50%; width: 88px; height: 88px; display: grid; place-items: center; background: #7545e817; border: 1px solid #b38aff30; font-size: 43px; }
.process-list { position: relative; }
.process-list::before { content: ''; position: absolute; top: 12px; bottom: 25px; left: 9px; width: 1px; background: linear-gradient(var(--nexus-blue),var(--nexus-violet),transparent); opacity: .4; }
.process-list li { border-bottom: 0; position: relative; padding-left: 28px; }
.process-list li::before { content: ''; position: absolute; left: 5px; top: 35px; width: 9px; height: 9px; border-radius: 50%; background: var(--nexus-surface); border: 1px solid var(--nexus-blue-light); transition: box-shadow .5s, background .5s; }
.process-list li:first-child::before { top: 10px; }
.process-list li:hover::before { background: var(--nexus-blue-light); box-shadow: 0 0 25px var(--nexus-blue); }
.process-list li > div { transition: translate .35s; }
.process-list li:hover > div { translate: 7px 0; }
.about { margin-inline: 18px; border: 0; border-radius: 32px 110px 32px 110px; position: relative; overflow: clip; }
.portrait { border-radius: 170px 170px 35px 35px; transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: border-radius .8s; }
.founder:last-child .portrait { border-radius: 35px 35px 170px 170px; }
.portrait img { transform: scale(1.025) translate3d(var(--pan-x,0px),var(--pan-y,0px),0); transition: transform .4s; }
.portrait:hover img { transform: scale(1.055) translate3d(var(--pan-x,0px),var(--pan-y,0px),0); }
.founder-connector { color: var(--nexus-violet-light); animation: connector-breathe 5s ease-in-out infinite; }
.post-image { border-radius: 35px; }
.contact { margin: 0 18px 18px; border: 0; border-radius: 100px 35px 100px 35px; }
.contact > h2, .contact > .eyebrow, .contact-bottom { position: relative; z-index: 2; }
.contact-glow { width: 1050px; height: 650px; bottom: -370px; right: -250px; border-width: 2px; animation: contact-orbit 11s ease-in-out infinite alternate; }
.contact-glow::before, .contact-glow::after { content: ''; position: absolute; inset: 35px; border-radius: inherit; border: 1px solid #268bff70; }
.contact-glow::after { inset: -45px; border-color: #7545e86b; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 30px; height: 30px; margin: -15px; border: 1px solid #83c5ff99; border-radius: 50%; pointer-events: none; z-index: 80; opacity: 0; transition: width .25s,height .25s,margin .25s,opacity .25s,background .25s; }
.cursor-ring.is-visible { opacity: .7; }
.cursor-ring.is-interactive { width: 52px; height: 52px; margin: -26px; background: #7545e812; border-color: var(--nexus-violet-light); }
.click-wave { position: fixed; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 1px solid var(--nexus-blue-light); pointer-events: none; z-index: 81; animation: click-wave .65s ease-out forwards; }
.motion-offscreen *, .motion-offscreen::before, .motion-offscreen::after { animation-play-state: paused !important; }
@keyframes gradient-flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ribbon-drift { to { transform: translate(-35px,30px) rotate(35deg) scale(1.13); border-radius: 62% 38% 42% 58% / 40% 60% 40% 60%; } }
@keyframes orbit-sway { 0%,100% { transform: rotate(-25deg) scale(.97); } 50% { transform: rotate(-14deg) scale(1.035); } }
@keyframes node-drift { 0%,100% { translate: 0 0; transform: translateZ(30px) rotate(-2deg); } 50% { translate: 5px -23px; transform: translateZ(45px) rotate(3deg); } }
@keyframes signal-wave { from { transform: scaleY(.45); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }
@keyframes interface-breathe { 50% { opacity: .6; transform: scale(.92); } }
@keyframes node-pulse { 50% { box-shadow: 0 0 15px #268bff65; background: #268bff24; } }
@keyframes beacon { 50% { opacity: .4; scale: .6; } }
@keyframes symbol-spin { to { rotate: 360deg; } }
@keyframes visual-orbit { to { rotate: 338deg; } }
@keyframes media-bob { 50% { transform: rotateY(-17deg) rotateX(7deg) rotate(-5deg) translateY(-17px); } }
@keyframes halo-breathe { 50% { transform: rotate(-12deg) scale(1.07); opacity: .4; } }
@keyframes connector-breathe { 50% { transform: scale(1.2) rotate(-8deg); text-shadow: 0 0 30px #7545e899; } }
@keyframes contact-orbit { to { transform: translate(-60px,-30px) rotate(15deg); } }
@keyframes scroll-nudge { 50% { translate: 0 6px; } }
@keyframes click-wave { to { transform: scale(6); opacity: 0; } }
@media (min-width:761px) and (max-width:1100px) { .header nav { padding: 10px 15px; gap: 16px; } .header-contact span { margin-left: 12px; } .art-plane { transform: translate3d(var(--mx,0px),var(--my,0px),0); } }
@media (max-width:760px) {
  .header nav { border-radius: 0 0 26px 26px; padding: 18px 24px; }
  .button { padding-left: 22px; }
  .hero .ambient-ribbon { width: 500px; height: 440px; top: auto; bottom: 80px; right: -100px; }
  .connection-node { border-radius: 25px; }
  .node-web { border-radius: 30px 18px 30px 18px; }
  .node-auto { border-radius: 35px; }
  .node-system { border-radius: 24px 35px 24px 35px; }
  .service-item h3 button { padding-inline: 10px; grid-template-columns: 20px 1fr 30px; }
  .service-item h3 button > span:nth-child(2) { font-size: 27px; }
  .service-sign { width: 28px; height: 28px; font-size: 21px; }
  .service-detail { padding-left: 45px; }
  .service-item:hover h3 button > span:nth-child(2) { translate: 0; }
  .projects { margin-inline: 8px; padding-inline: 20px; border-radius: 45px 45px 24px 24px; }
  .project-stage { border-radius: 26px 65px 26px 26px; margin-inline: -8px; }
  .media-frame { border-radius: 19px; }
  .stage-label { left: 14px; font-size: 6px; padding: 6px 10px; }
  .next-project { padding: 25px 17px; border-radius: 28px; grid-template-columns: 1fr 45px; gap: 13px; }
  .next-project strong { font-size: 26px; }
  .next-arrow { width: 43px; height: 43px; font-size: 28px; }
  .process-list { padding-left: 0; border-left: 0; }
  .process-list li { padding-left: 25px; gap: 15px; }
  .about { margin-inline: 8px; border-radius: 28px 60px 28px 60px; padding-inline: 20px; }
  .portrait { border-radius: 75px 75px 20px 20px; }
  .founder:last-child .portrait { border-radius: 20px 20px 75px 75px; }
  .contact { margin-inline: 8px; padding-inline: 20px; border-radius: 55px 24px 55px 24px; }
  .contact h2 { font-size: clamp(40px,9.4vw,68px); }
  .cursor-ring, .pointer-light { display: none; }
}
body.motion-paused .cursor-ring, body.motion-paused .pointer-light, body.motion-paused .click-wave { display: none; }
body.motion-paused .portrait, body.motion-paused .project-stage .project-art, body.motion-paused .button { transform: none; }
body.has-mouse .cursor-ring, body.has-mouse .pointer-light { display: block; }
body.motion-paused .cursor-ring, body.motion-paused .pointer-light { display: none; }
@media (prefers-reduced-motion:reduce) {
  html:not(.motion-allowed) .cursor-ring, html:not(.motion-allowed) .pointer-light, html:not(.motion-allowed) .click-wave { display: none; }
  html:not(.motion-allowed) .portrait, html:not(.motion-allowed) .project-stage .project-art, html:not(.motion-allowed) .button { transform: none !important; }
}
