/* AYI DESIGN — motion and responsive polish */
:root{--ease-out:cubic-bezier(.2,.75,.25,1);--ease-spring:cubic-bezier(.2,.8,.2,1)}
html{scroll-padding-top:92px}
body{min-width:320px}
:focus-visible{outline:2px solid #ff5b5b;outline-offset:4px}
.brand-logo{display:block;object-fit:contain;flex:none}
.brand-logo-header{width:clamp(120px,14vw,160px);height:36px}
.brand-logo-footer{width:min(130px,38vw);height:28px}
.header{transition:background .3s ease,border-color .3s ease,box-shadow .3s ease}
.header.scrolled{background:rgba(7,7,7,.97);border-color:rgba(255,255,255,.12);box-shadow:0 12px 35px rgba(0,0,0,.22)}
.hero>*:not(.hero-glow):not(.orbit){animation:hero-arrive .8s var(--ease-out) both}
.hero>*:nth-child(2){animation-delay:.08s}.hero>*:nth-child(3){animation-delay:.16s}.hero>*:nth-child(4){animation-delay:.23s}.hero>*:nth-child(5){animation-delay:.3s}
@keyframes hero-arrive{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .65s var(--ease-out),transform .65s var(--ease-out)}
.reveal.is-visible{opacity:1;transform:none}.reveal-delay-1{transition-delay:.12s}.reveal-delay-2{transition-delay:.22s}
.service-card,.benefit-grid article,.sub-card,.tpl-card{transition:transform .35s var(--ease-out),border-color .3s ease,background .3s ease}
.service-card:focus-visible,.tpl-card:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.button{transition:transform .25s var(--ease-out),background .25s ease,box-shadow .25s ease}.button:hover{box-shadow:0 14px 38px rgba(243,40,40,.3)}
.modal-panel{animation:panel-arrive .38s var(--ease-out)}
@keyframes panel-arrive{from{opacity:.6;transform:translateX(35px)}to{opacity:1;transform:translateX(0)}}
.choice,.plan{transition:transform .22s var(--ease-out),border-color .22s ease,background .22s ease}
.choice:hover,.plan:hover{transform:translateY(-2px)}
.mobile-menu{visibility:hidden;pointer-events:none;right:-100%;transition:right .34s var(--ease-out),visibility .34s}
.mobile-menu.open{right:0;visibility:visible;pointer-events:auto}
@media(min-width:901px){.mobile-menu{display:none}}
@media(max-width:900px){.mobile-menu.open{right:0!important}.mobile-menu:not(.open){right:-100%!important}}
@media(max-width:900px){
 .hero{min-height:680px;height:auto;padding-top:150px}
 .hero-glow{right:-2vw;top:20%;width:220px;height:400px}
 .service-grid{gap:12px}
 .benefit-grid article{padding:30px 22px}
 .section{padding-top:96px;padding-bottom:96px}
}
@media(max-width:580px){
 html{scroll-padding-top:74px}
 .header{height:70px;padding-inline:5vw}
 .hero{min-height:0;padding:132px 6vw 64px;background:radial-gradient(ellipse at 90% 15%,rgba(150,0,9,.22),transparent 42%)}
 h1,.hero h1{font-size:clamp(42px,12vw,62px);line-height:.98;letter-spacing:-.06em}
 .hero-copy{max-width:38ch;margin:24px 0;font-size:14px;line-height:1.7}
 .hero-stats{width:100%;gap:18px 12px;margin-top:42px}
 .hero-stats div{min-width:calc(50% - 8px)}
 .hero-stats strong{font-size:17px}
 .marquee{padding:12px 0;font-size:10px}
 .section{padding:72px 5vw}
 .section-heading{margin-bottom:30px}
 .section-heading h2,.cta h2{font-size:clamp(31px,9vw,44px);line-height:1.04}
 .service-grid{grid-template-columns:1fr}
 .service-card{padding:23px;min-height:190px}
 .benefit-grid{grid-template-columns:1fr 1fr}
 .benefit-grid article{padding:22px 16px;min-height:180px}
 .benefit-grid h3{font-size:15px;margin:26px 0 9px}
 .steps{gap:20px}
 .steps div{align-items:flex-start}
 .steps b{flex:0 0 40px;width:40px;height:40px}
 .cta{padding:84px 6vw}
 .contacts-section{padding-inline:6vw}
 .contacts-copy,.contact-visual{transition-delay:.08s}
 footer{padding:26px 5vw}
 .modal-panel{top:0;height:100%;padding:28px 20px calc(22px + env(safe-area-inset-bottom));border-left:0;border-radius:0;overscroll-behavior:contain}
 .modal-close{top:max(14px,env(safe-area-inset-top));right:14px}
 .progress{margin:20px 42px 30px 0}
 .modal h2{max-width:calc(100% - 28px)}
 .modal-actions{padding-bottom:env(safe-area-inset-bottom)}
 .field textarea{min-height:96px}
 .mobile-menu{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);width:min(380px,92vw)}
}
@media(max-width:380px){
 .hero{padding-inline:5vw}
 .hero-actions .button{padding:14px 18px;font-size:12px}
 .hero-stats{grid-template-columns:1fr 1fr}
 .benefit-grid article{padding:19px 13px}
 .modal-panel{padding-inline:16px}
 .promo-wrap{align-items:stretch}
}
@media(max-height:520px) and (orientation:landscape){
 .hero{min-height:0;padding-top:105px;padding-bottom:35px}
 .hero-stats{margin-top:28px}
 .mobile-menu{overflow-y:auto}
 .modal-panel{top:0;height:100%;padding-top:20px}
}
@media(hover:hover) and (pointer:fine){
 .service-card:hover,.sub-card:hover,.tpl-card:hover{transform:translateY(-5px)}
 .service-card:hover .icon{transform:rotate(-6deg) scale(1.06)}
 .service-card .icon{transition:transform .28s var(--ease-out)}
}
@media(hover:none){.button:hover{box-shadow:0 10px 35px rgba(243,40,40,.2)}.choice:hover,.plan:hover{transform:none}}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
 .reveal{opacity:1;transform:none}
}

/* Hero grid: a fine studio drafting surface energized by AYI's signal red. */
.hero{isolation:isolate;background-color:#080809;background-image:radial-gradient(ellipse at 76% 44%,rgba(90,13,19,.20),transparent 34%),linear-gradient(145deg,#09090a 8%,#0c090a 58%,#09090b 100%)}
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.92}
.hero-grid-wash{position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#080809 0%,rgba(8,8,9,.92) 31%,rgba(8,8,9,.2) 78%,rgba(8,8,9,.3) 100%),linear-gradient(0deg,rgba(8,8,9,.42),transparent 38%,rgba(8,8,9,.1));}
.hero-glow{z-index:0;right:13vw;top:19%;width:350px;height:490px;background:linear-gradient(155deg,rgba(243,40,40,.85),rgba(111,24,103,.55),transparent 72%);filter:blur(110px);opacity:.13;transform:rotate(36deg);animation:hero-drift 13s ease-in-out infinite alternate}
.orbit{z-index:0;border-color:rgba(255,255,255,.08)}
.orbit-one{right:-170px;top:19%;border-color:rgba(243,40,40,.18);box-shadow:0 0 60px rgba(243,40,40,.06),inset 0 0 50px rgba(243,40,40,.035)}
.orbit-two{right:-280px;top:9%;border-color:rgba(255,255,255,.09)}
.hero>*:not(.hero-glow):not(.orbit):not(.hero-canvas):not(.hero-grid-wash){z-index:1}
@keyframes hero-drift{from{transform:translate3d(-12px,-8px,0) rotate(30deg);opacity:.09}to{transform:translate3d(18px,14px,0) rotate(42deg);opacity:.17}}
@media(max-width:900px){.hero-grid-wash{background:linear-gradient(90deg,#080809 0%,rgba(8,8,9,.84) 48%,rgba(8,8,9,.38) 100%),linear-gradient(0deg,rgba(8,8,9,.45),transparent 50%)}.hero-canvas{opacity:.72}.hero-glow{filter:blur(80px);opacity:.11}}
@media(max-width:580px){.hero{background-image:radial-gradient(ellipse at 82% 26%,rgba(90,13,19,.16),transparent 36%),linear-gradient(145deg,#09090a,#0b090a 62%,#09090b)}.hero-canvas{opacity:.52}.hero-grid-wash{background:linear-gradient(90deg,rgba(8,8,9,.5),rgba(8,8,9,.12)),linear-gradient(0deg,rgba(8,8,9,.38),transparent 55%)}.hero-glow{width:210px;height:300px;right:-8vw;top:15%;filter:blur(72px);opacity:.11}.orbit-one{width:350px;height:350px;right:-210px;top:22%}.orbit-two{width:500px;height:500px;right:-290px;top:16%}.hero-stats strong{color:#f5f3f0}.hero-stats div{position:relative}.hero-stats div:before{content:"";position:absolute;left:0;top:-10px;width:24px;height:1px;background:rgba(243,40,40,.72)}}
@media(prefers-reduced-motion:reduce){.hero-glow{animation:none}}
