/* V5 — GP5 branding, readable motion, native scrolling. */
#gp5-home .v5-home-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
#gp5-home .v5-outreach-hero{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:0;height:auto;padding:110px 5vw 65px;gap:40px;overflow:hidden;background:#171916;}
#gp5-home .v5-outreach-hero .landing-copy{position:relative;width:100%;max-width:1000px;margin:0;text-align:center;padding:30px 35px;background:linear-gradient(135deg,#f0efe80a,#f0efe802);border:1px solid #f0efe819;border-radius:24px;box-shadow:inset 0 1px #ffffff15,0 24px 80px #0002;backdrop-filter:blur(24px);}
#gp5-home .v5-outreach-hero .gp5-lead{max-width:720px;margin:24px auto 28px;}
#gp5-home .v5-outreach-hero h1{font-size:clamp(48px,5.5vw,86px);}
#gp5-home .v5-hero-film{position:relative;isolation:isolate;width:min(1100px,100%);aspect-ratio:16/8.5;border-radius:30px;overflow:hidden;border:1px solid #e7f8bb24;box-shadow:0 10px 70px #d9fa520b,inset 0 1px #ffffff35;background:#20251c;}
#gp5-home .v5-hero-film::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#17191655,transparent 18%,transparent 75%,#171916bb);box-shadow:inset 0 0 70px 25px #17191688;border-radius:inherit;}
#gp5-home .v5-hero-film .v4-outreach-video{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center;}
#gp5-home.im-ready:not(.im-reduced) .v5-orb-section{height:740svh;display:block;min-height:0;padding:0;overflow:visible;}
#gp5-home.im-ready:not(.im-reduced) .v5-orb-section .v4-orb-frame{display:grid;position:sticky;top:0;height:100svh;min-height:0;grid-template-columns:1.05fr 1fr;gap:5vw;padding:55px 6vw 85px;align-items:center;}
#gp5-home .v5-chapter-copy{display:grid;position:relative;align-items:center;min-width:0;}
#gp5-home .v5-orb-chapter{grid-area:1/1;transition:opacity .4s ease,transform .5s ease;opacity:0;visibility:hidden;transform:translateY(20px);}
#gp5-home .v5-orb-chapter:first-child,#gp5-home .v5-orb-chapter.is-active{opacity:1;visibility:visible;transform:none;}
#gp5-home .v5-chapters-ready .v5-orb-chapter:not(.is-active){opacity:0;visibility:hidden;}
#gp5-home .v5-chapter-count{font:11px var(--mono)!important;letter-spacing:.18em;color:var(--acid);margin:0 0 22px;}
#gp5-home .v5-orb-chapter h2{font-size:clamp(42px,4.6vw,74px);margin-bottom:24px;overflow-wrap:normal;}
#gp5-home .v5-orb-chapter p:not(.v5-chapter-count){font-size:clamp(16px,1.4vw,20px);line-height:1.65;}
#gp5-home .v5-orb-nav{grid-area:2/1;display:flex;gap:8px;margin-top:35px;}
#gp5-home .v5-orb-nav button{border:1px solid #f0efe830;border-radius:50%;width:42px;height:42px;background:none;color:#f0efe8;font:11px var(--mono);cursor:pointer;}
#gp5-home .v5-orb-nav button[aria-pressed=true]{color:#171916;background:#d9fa52;border-color:#d9fa52;}
#gp5-home .im-orb-labels>span.is-active{border-color:#d9fa52;background:#364025;box-shadow:0 0 30px #d9fa5215;}
#gp5-home .v5-orb-section .im-orb-stage{width:100%;height:min(68svh,660px);min-height:0;}
/* The collage opens while entering the viewport, with no tall empty spacer. */
#gp5-home.im-ready:not(.im-reduced) .v5-work-reveal,#gp5-home .v5-work-reveal{height:auto;min-height:0;display:block;padding:0;}
#gp5-home.im-ready:not(.im-reduced) .v5-work-reveal .v4-work-frame,#gp5-home .v5-work-reveal .v4-work-frame{position:relative;top:auto;min-height:0;height:auto;padding:70px 5vw 80px;}
#gp5-home .v5-work-reveal .work-collage{max-height:none;min-height:0;}
#gp5-home .v5-work-reveal .v4-aperture{clip-path:circle(var(--v5-aperture,150%) at 50% 20%);}
#gp5-home .v5-language{position:relative;font:11px var(--mono);margin-left:8px;}
#gp5-home .v5-language summary{list-style:none;padding:10px 8px;cursor:pointer;opacity:.85;white-space:nowrap;}
#gp5-home .v5-language summary::-webkit-details-marker{display:none;}
#gp5-home .v5-language>div{position:absolute;right:0;top:100%;width:185px;padding:8px;background:#20251df5;border:1px solid #f0efe830;box-shadow:0 15px 40px #0006;backdrop-filter:blur(18px);z-index:50;}
#gp5-home .v5-language a{display:block;color:#f0efe8;padding:10px 12px;font:12px var(--body);text-decoration:none;}
#gp5-home .v5-language a[aria-current=page],#gp5-home .v5-language a:hover{color:#d9fa52;background:#d9fa520a;}
@media(max-width:1000px){
 #gp5-home.im-ready:not(.im-reduced) .v5-orb-section{height:670svh;}
 #gp5-home.im-ready:not(.im-reduced) .v5-orb-section .v4-orb-frame{grid-template-columns:1fr;grid-template-rows:minmax(250px,45svh) 1fr;gap:10px;padding:30px 6vw 55px;}
 #gp5-home .v5-orb-section .im-orb-stage{height:100%;max-width:540px;min-height:0;margin:auto;}
 #gp5-home .v5-orb-section .v4-orb-copy{max-width:660px;width:100%;margin:0 auto;align-self:start;}
 #gp5-home .v5-orb-chapter h2{font-size:clamp(32px,5.6vw,48px);margin:0 0 13px;}
 #gp5-home .v5-orb-chapter p:not(.v5-chapter-count){font-size:15px;line-height:1.5;}
 #gp5-home .v5-chapter-count{margin-bottom:12px;}
 #gp5-home .v5-orb-nav{margin-top:16px;}
 #gp5-home .v5-orb-nav button{width:36px;height:36px;}
 #gp5-home .v5-orb-section .im-scene-hud{bottom:15px;font-size:8px;}
 #gp5-home .v5-orb-section .im-scene-hud>a{display:none;}
 #gp5-home .v5-language{margin-left:0;}#gp5-home .v5-language>div{position:static;width:100%;display:grid;grid-template-columns:1fr 1fr;}
 /* Explicit normal flow prevents legacy absolute positions from overlapping. */
 #gp5-home.im-ready:not(.im-reduced) .v4-method{height:auto!important;}
 #gp5-home.im-ready:not(.im-reduced) .v4-method .im-method-frame{position:relative!important;top:auto;height:auto!important;min-height:0;display:flex;flex-direction:column;gap:30px;padding:60px 6vw 40px;}
 #gp5-home .v4-method .im-method-copy{order:0;width:100%;}
 #gp5-home .v4-method .im-method-visual{order:1;display:grid!important;grid-template-columns:1fr 1fr;height:auto!important;width:100%;gap:18px;transform:none!important;perspective:none;}
 #gp5-home .v4-method .im-method-core{grid-column:1/-1;position:relative!important;inset:auto!important;transform:none!important;width:100%;}
 #gp5-home .v4-method .im-build-piece{position:relative!important;inset:auto!important;width:100%!important;min-height:190px;height:auto!important;transform:none!important;rotate:none!important;margin:0;z-index:1;opacity:1!important;}
 #gp5-home .v4-method .im-method-nav{order:2;position:relative;inset:auto;width:100%;flex-wrap:wrap;}
 #gp5-home .v4-method .im-method-nav button{flex:1 1 85px;}
 #gp5-home .v4-method .im-skip{position:relative;inset:auto;order:3;align-self:flex-end;}
 #gp5-home .v4-method :is(.im-method-axis,.im-method-grid,.im-method-phase){display:none;}
 #gp5-home .v4-method .im-method-visual::after{display:none;}
}
@media(max-width:600px){
 #gp5-home .v5-outreach-hero{padding:70px 5vw 35px;gap:24px;min-height:0;}
 #gp5-home .v5-outreach-hero .landing-copy{padding:26px 20px;border-radius:18px;}
 #gp5-home .v5-outreach-hero h1{font-size:44px;}
 #gp5-home .v5-hero-film{aspect-ratio:1.35;border-radius:22px;}
 #gp5-home .v5-hero-film .v4-outreach-video{height:100%;top:0;bottom:auto;object-fit:contain;}
 #gp5-home .v4-method .im-method-visual{grid-template-columns:1fr;}
 #gp5-home .v4-method .im-build-piece{min-height:210px;}
 #gp5-home .v5-work-reveal .v4-work-frame{padding:45px 6vw 60px;}
 #gp5-home .message-showcase{width:100%;max-width:100%;min-width:0;overflow:hidden;}
 #gp5-home .v4-whatsapp-link{width:min(100%,360px);margin:auto;}
}
@media(max-height:699px),(prefers-reduced-motion:reduce){
 #gp5-home.im-ready:not(.im-reduced) .v5-orb-section,#gp5-home .v5-orb-section{height:auto;}
 #gp5-home.im-ready:not(.im-reduced) .v5-orb-section .v4-orb-frame,#gp5-home .v5-orb-section .v4-orb-frame{position:relative;height:auto;min-height:0;display:block;padding:50px 6vw;}
 #gp5-home .v5-orb-section .im-orb-stage{height:400px;max-width:550px;margin:auto;}
 #gp5-home .v5-chapter-copy{display:block;max-width:800px;margin:auto;}
 #gp5-home .v5-orb-chapter,#gp5-home .v5-chapters-ready .v5-orb-chapter:not(.is-active){display:block;opacity:1;visibility:visible;transform:none;margin-top:45px;}
 #gp5-home .v5-orb-nav,#gp5-home .v5-orb-section .im-scene-hud{display:none;}
}
@media(prefers-reduced-motion:reduce){#gp5-home .v5-work-reveal .v4-aperture{clip-path:none;}}
/* AI Solutions: GP5 typography, a connected 3D world and useful detail. */
#gp5-home .v5-ai-hero{display:flex;min-height:0;align-items:center;flex-direction:column;text-align:center;padding:clamp(145px,15vw,220px) 5vw 70px;gap:0;background:radial-gradient(ellipse at 50% 100%,rgba(217,250,82,.075),transparent 65%)}
#gp5-home .v5-ai-hero h1{max-width:1100px;font-size:clamp(58px,7.5vw,112px);line-height:.98;margin:24px auto}
#gp5-home .v5-ai-hero .gp5-lead{max-width:760px;font-size:clamp(17px,1.5vw,22px)}
#gp5-home .v5-ai-hero .v3-prompt-form{width:min(760px,100%);margin:32px auto 15px;background:rgba(255,255,255,.035);box-shadow:0 12px 70px rgba(217,250,82,.05)}
#gp5-home .v5-prompt-chips{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
#gp5-home .v5-prompt-chips button{font:inherit;font-size:12px;color:var(--cream);border:1px solid rgba(240,239,232,.18);border-radius:30px;background:transparent;padding:9px 14px;cursor:pointer}
#gp5-home .v5-prompt-chips button:hover{border-color:var(--lime);color:var(--lime)}
#gp5-home .v5-ai-support{font-size:13px;opacity:.65;margin:24px 0 12px}
#gp5-home .v5-ai-hero .gp5-actions{justify-content:center}
#gp5-home .v5-ai-universe{position:relative;display:block;min-height:860px;overflow:hidden;padding:70px 5vw 55px;background:radial-gradient(ellipse at center,rgba(217,250,82,.06),transparent 58%)}
#gp5-home .v5-universe-title{text-align:center;position:relative;z-index:2;max-width:900px;margin:auto}
#gp5-home .v5-universe-title h2{font-size:clamp(38px,4.4vw,68px);margin:16px 0}
#gp5-home .core-scene{position:relative;width:min(1050px,100%);height:650px;margin:-20px auto -80px;pointer-events:auto}
#gp5-home #intelligence-core{width:100%;height:100%;position:absolute;inset:0}
#gp5-home .v5-core-fallback{position:absolute;width:38%;aspect-ratio:1;border-radius:50%;left:31%;top:22%;display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,#a5b369,#37412b 30%,#121710 65%,#a0b359 99%);box-shadow:inset -12px -12px 22px #050704,0 0 50px #d9fa5218;border:1px solid #d9fa5260}
#gp5-home .v5-core-fallback span{font-family:Anton,sans-serif;font-size:clamp(50px,7vw,100px);color:#f0efe8}
#gp5-home .webgl-ready .v5-core-fallback{visibility:hidden}
#gp5-home .v5-orbit-links{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:1120px;margin:auto}
#gp5-home .v5-orbit-links a{padding:20px 24px;background:rgba(34,38,29,.75);backdrop-filter:blur(18px);border:1px solid #d9fa522b;border-radius:10px;color:#f0efe8;text-decoration:none;transition:transform .3s,border-color .3s}
#gp5-home .v5-orbit-links a:hover{transform:translateY(-5px);border-color:#d9fa52}
#gp5-home .v5-orbit-links strong{display:block;font-size:18px;font-weight:500;margin-bottom:8px}
#gp5-home .v5-orbit-links span{font-size:12px;opacity:.7}
#gp5-home .v5-universe-hint{text-align:center;margin:30px auto 0;font-size:10px;opacity:.65}
#gp5-home .v5-flow-visual{margin:0;border:1px solid #17191625;border-radius:16px;padding:30px;background:linear-gradient(140deg,#e7e9dd,#f9faf4);box-shadow:0 30px 70px #1719160e;color:#171916}
#gp5-home .v5-flow-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
#gp5-home .v5-live-dot{width:9px;height:9px;border-radius:50%;background:#6e8426;box-shadow:0 0 0 5px #d9fa52}
#gp5-home .v5-flow-visual ol{list-style:none;padding:0;margin:0}
#gp5-home .v5-flow-visual li{display:grid;grid-template-columns:36px 1fr 24px;gap:10px;align-items:center;background:#fff9;border:1px solid #1719161a;padding:18px;margin:12px 0;position:relative;border-radius:7px;animation:v5-flow 10s infinite;animation-delay:calc(var(--flow-index)*2s)}
#gp5-home .v5-flow-visual li:not(:last-child):after{content:'';height:13px;width:1px;background:#758c30;position:absolute;top:100%;left:35px}
#gp5-home .v5-flow-visual li strong{font-size:14px;font-weight:500}
#gp5-home .v5-flow-number{font-family:monospace;font-size:10px;color:#526223}
#gp5-home .v5-flow-exception{font-size:12px;border-left:2px solid #809b25;padding:8px 16px;margin-top:22px}
#gp5-home .v5-flow-visual figcaption{font-size:10px;margin-top:20px;opacity:.6}
@keyframes v5-flow{0%,18%{border-color:#93b02a;background:#e2f4a5;box-shadow:0 0 24px #b8d35e20}25%,100%{border-color:#1719161a;background:#fff9;box-shadow:none}}
#gp5-home .v5-three-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin:55px 0 20px}
#gp5-home .v5-three-grid article{border-top:1px solid currentColor;padding-top:26px}
#gp5-home .v5-three-grid h3{font-size:clamp(28px,2.6vw,40px);line-height:1.1;margin:16px 0 20px}
#gp5-home .v5-three-grid p{font-size:16px;line-height:1.75}
#gp5-home .v5-three-grid .gp5-mono{font-size:10px;letter-spacing:.1em}
#gp5-home .v5-art-line{font-family:Anton,sans-serif;text-transform:uppercase;font-size:clamp(36px,6vw,85px);line-height:1.05;margin:80px 0 0;max-width:950px}
#gp5-home .v5-catalog-group{display:grid;grid-template-columns:220px 1fr;gap:40px;margin-top:60px;scroll-margin-top:100px}
#gp5-home .v5-catalog-group>h3{font-size:32px;color:#d9fa52;margin:20px 0}
#gp5-home .v5-service{border-top:1px solid #f0efe830;scroll-margin-top:100px}
#gp5-home .v5-service summary{display:grid;grid-template-columns:30px 1fr 25px;gap:20px;cursor:pointer;padding:24px 0;list-style:none;align-items:center}
#gp5-home .v5-service summary::-webkit-details-marker{display:none}
#gp5-home .v5-service summary strong{display:block;font-size:22px;font-weight:500;line-height:1.3}
#gp5-home .v5-service summary span span{display:block;font-size:14px;opacity:.65;margin-top:8px}
#gp5-home .v5-service summary b{color:#d9fa52;font-size:26px;font-weight:300;transition:transform .3s}
#gp5-home .v5-service[open] summary b{transform:rotate(45deg)}
#gp5-home .v5-service-body{padding:0 40px 32px 50px;max-width:950px}
#gp5-home .v5-service-body>p{font-size:20px}
#gp5-home .v5-service dl{margin:28px 0;display:grid;grid-template-columns:1fr 1fr;gap:24px}
#gp5-home .v5-service dt{font-family:monospace;font-size:10px;color:#d9fa52;text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px}
#gp5-home .v5-service dd{margin:0;font-size:14px;line-height:1.7;opacity:.8}
#gp5-home .v5-human-note{max-width:750px;margin-top:70px;padding-top:32px;border-top:1px solid #17191633}
#gp5-home .v5-human-note h3{font-size:32px}
#gp5-home .v5-engagements article{border:1px solid #17191630;border-radius:10px;padding:30px;display:flex;flex-direction:column}
#gp5-home .v5-engagements ul{padding-left:18px;line-height:1.9;font-size:14px;flex:1}
#gp5-home .v5-engagements .gp5-button{align-self:flex-start}
#gp5-home .v5-timeline,#gp5-home .v5-scope-note{font-size:13px!important;opacity:.7}
#gp5-home .v5-scope-note{max-width:850px;margin-top:30px}
#gp5-home .v5-about-ai{max-width:1100px;margin:auto;text-align:center}
#gp5-home .v5-about-ai h2{font-size:clamp(44px,6vw,86px)}
#gp5-home .v5-about-ai .gp5-lead{font-size:20px;max-width:850px;margin:30px auto}
#gp5-home #project-brief>.gp5-actions{justify-content:center;margin:28px auto 40px}
#gp5-home .v5-work-reveal:focus-within .v4-aperture{clip-path:none}
@media(min-width:1200px){#gp5-home .v5-orbit-links{grid-template-columns:245px 245px;justify-content:space-between;position:absolute;left:5vw;right:5vw;top:310px;gap:30px}#gp5-home .v5-orbit-links a:nth-child(3),#gp5-home .v5-orbit-links a:nth-child(4){transform:translateX(-25px)}#gp5-home .v5-orbit-links a:nth-child(4){transform:translateX(25px)}#gp5-home .v5-ai-universe{min-height:890px}#gp5-home .core-scene{height:670px;margin-top:-20px;margin-bottom:-25px}}
@media(max-width:900px){#gp5-home .v5-three-grid{grid-template-columns:1fr;gap:30px;margin-top:35px}#gp5-home .v5-catalog-group{grid-template-columns:1fr;gap:0}#gp5-home .v5-orbit-links{grid-template-columns:1fr 1fr}#gp5-home .core-scene{height:440px;margin:0 auto -20px}#gp5-home .v5-ai-universe{min-height:0;padding-top:35px}#gp5-home .v5-ai-hero{padding-top:140px}#gp5-home .v5-service-body{padding:0 0 30px}#gp5-home .v5-flow-visual{padding:20px}#gp5-home .v5-ai-hero .gp5-actions{gap:24px}}
@media(max-width:550px){#gp5-home .v5-ai-hero h1{font-size:58px}#gp5-home .v5-ai-hero .v3-prompt-form input{font-size:13px;padding:18px 12px}#gp5-home .v5-prompt-chips button{font-size:10px;padding:9px 10px}#gp5-home .v5-orbit-links a{padding:15px}#gp5-home .v5-orbit-links strong{font-size:16px}#gp5-home .v5-orbit-links span{font-size:11px}#gp5-home .core-scene{height:340px;margin-top:-10px}#gp5-home .v5-service summary{grid-template-columns:22px 1fr 18px;gap:12px}#gp5-home .v5-service summary strong{font-size:20px}#gp5-home .v5-service dl{grid-template-columns:1fr}#gp5-home .v5-ai-support{line-height:1.7}#gp5-home .v5-universe-title h2{font-size:40px}#gp5-home .v5-engagements article{padding:24px}}
@media(prefers-reduced-motion:reduce){#gp5-home .v5-flow-visual li{animation:none}#gp5-home .v5-orbit-links a{transition:none}}
html:not([lang="en"]):not([lang="es"]) #gp5-home .gp5-hero h1{font-size:clamp(50px,6.5vw,105px);line-height:1.05}
html:not([lang="en"]) #gp5-home .v5-orb-chapter h2{font-size:clamp(32px,4.1vw,65px)}
@media(max-width:600px){html:not([lang="en"]) #gp5-home .v5-orb-chapter h2{font-size:clamp(29px,8vw,38px)}html:not([lang="en"]):not([lang="es"]) #gp5-home .gp5-hero h1{font-size:clamp(42px,11vw,58px)}}

/* Readable normal-flow fallback until the chapter controller is ready. */
#gp5-home.im-ready:not(.im-reduced) .v5-orb-section:not(.v5-chapters-ready),#gp5-home .v5-orb-section:not(.v5-chapters-ready){height:auto;}
#gp5-home.im-ready:not(.im-reduced) .v5-orb-section:not(.v5-chapters-ready) .v4-orb-frame,#gp5-home .v5-orb-section:not(.v5-chapters-ready) .v4-orb-frame{position:relative;height:auto;display:block;padding:55px 6vw;}
#gp5-home .v5-orb-section:not(.v5-chapters-ready) .v5-chapter-copy{display:block;}
#gp5-home .v5-orb-section:not(.v5-chapters-ready) .v5-orb-chapter{opacity:1;visibility:visible;transform:none;margin:35px 0;}
#gp5-home .v5-orb-section:not(.v5-chapters-ready) .v5-orb-nav{display:none;}
