/*
 * Camada de consolidação visual.
 * Desktop é reestruturado somente a partir de 901 px.
 * As microinterações globais preservam a geometria mobile existente.
 */

:root{
 --desktop-container:1180px;
 --desktop-section-space:clamp(88px,8vw,126px);
 --ease-premium:cubic-bezier(.2,.72,.2,1);
 --shadow-premium:0 28px 70px rgba(5,22,34,.12);
}

/* Interações compartilhadas */
.button,.path-button,.project-cta,.story-contact,.book-nav,.gallery-nav button{
 position:relative;
 overflow:hidden;
 isolation:isolate;
 transition:transform .28s var(--ease-premium),box-shadow .28s ease,border-color .28s ease,background-color .28s ease!important;
}
.button::after,.path-button::after,.project-cta::after,.story-contact::after{
 content:"";
 position:absolute;
 inset:-60% auto -60% -45%;
 width:34%;
 z-index:-1;
 background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
 transform:skewX(-18deg) translateX(-260%);
 transition:transform .72s var(--ease-premium);
}
.button:hover::after,.path-button:hover::after,.project-cta:hover::after,.story-contact:hover::after{transform:skewX(-18deg) translateX(620%)}
.button:hover,.path-button:hover,.project-cta:hover,.story-contact:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(5,32,47,.2)}

.path-card,.project,.manifesto,.reels-grid>a,.entrepreneur-art{
 --tilt-x:0deg;
 --tilt-y:0deg;
 --pointer-x:50%;
 --pointer-y:50%;
 transform:perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
 transform-style:preserve-3d;
 transition:transform .42s var(--ease-premium),box-shadow .42s ease,border-color .42s ease;
 will-change:transform;
}
.project,.manifesto{position:relative;isolation:isolate}
.path-card::before,.project::before,.manifesto::before,.reels-grid>a::before,.entrepreneur-art::after{
 content:"";
 position:absolute;
 inset:0;
 z-index:0;
 border-radius:inherit;
 pointer-events:none;
 opacity:0;
 background:radial-gradient(440px circle at var(--pointer-x) var(--pointer-y),rgba(70,196,237,.16),transparent 55%);
 transition:opacity .35s ease;
}
.path-card:hover::before,.project:hover::before,.manifesto:hover::before,.reels-grid>a:hover::before,.entrepreneur-art:hover::after{opacity:1}
.path-card>* ,.project>* ,.manifesto>* ,.reels-grid>a>* ,.entrepreneur-art>*{position:relative;z-index:1}
.path-card:hover,.project:hover,.manifesto:hover,.reels-grid>a:hover,.entrepreneur-art:hover{box-shadow:0 28px 68px rgba(2,19,30,.18)}

.hero-purpose img,.follow-icon,.book-nav,.gallery-nav button{transition:transform .38s var(--ease-premium),filter .38s ease}
.hero-purpose>div:hover img{transform:translateY(-6px) scale(1.07);filter:invert(53%) sepia(78%) saturate(1250%) hue-rotate(151deg) brightness(110%) contrast(95%) drop-shadow(0 10px 18px rgba(25,179,225,.25))}
.hero-purpose>div:hover span{color:#6dd9f3}
.hero-purpose span{transition:color .3s ease}
.reel-cover{transition:transform .65s var(--ease-premium),filter .5s ease!important}
.reels-grid>a:hover .reel-cover{transform:scale(1.055)!important;filter:saturate(1.08) contrast(1.03)}

.reveal{transform:translateY(26px);opacity:0;transition:opacity .85s ease,transform .85s var(--ease-premium)}
.reveal.visible{transform:none;opacity:1}
.path-grid>.reveal:nth-child(2),.project-list>.reveal:nth-child(2),.reels-grid>a:nth-child(2){transition-delay:.09s}
.path-grid>.reveal:nth-child(3),.project-list>.reveal:nth-child(3),.reels-grid>a:nth-child(3){transition-delay:.18s}

/* Capas editoriais reais — válidas em desktop e mobile. */
.book-card.has-real-cover{padding:0;overflow:hidden;background:#06131e}
.book-card.has-real-cover::before{display:block;content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(1,11,20,.08) 22%,rgba(1,10,18,.9) 100%);border-radius:inherit;pointer-events:none}
.book-card.has-real-cover img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.book-card.has-real-cover>span,.book-card.has-real-cover>strong,.book-card.has-real-cover>em,.book-card.has-real-cover>small{position:relative;z-index:2;text-shadow:0 3px 18px rgba(0,0,0,.72)}
.book-card.has-real-cover>span{margin-top:auto}

@media(min-width:901px){
 .container{width:min(var(--desktop-container),calc(100% - 64px))}
 .section{padding:var(--desktop-section-space) 0}

 /* Cabeçalho */
 .site-header{top:18px;left:50%;right:auto;width:min(1240px,calc(100% - 64px));height:74px;transform:translateX(-50%);border:1px solid rgba(13,51,68,.1);border-radius:20px;background:rgba(250,249,245,.94);box-shadow:0 16px 46px rgba(2,20,31,.14);overflow:visible}
 .header-inner{width:100%;padding:0 14px 0 10px;gap:22px}
 .brand{width:190px;height:62px;overflow:hidden}
 .brand img{transform:translate(5px,1px) scale(1.12);transform-origin:left center}
 .main-nav{gap:clamp(15px,1.5vw,24px);font-size:13px;color:#263b46}
 .main-nav a{white-space:nowrap}
 .nav-cta{padding:11px 18px;border:0;background:#1185aa;color:#fff!important;box-shadow:0 9px 22px rgba(13,126,165,.2)}

 /* Hero: fluxo vertical real, sem colisão entre pilares e texto */
 .hero{min-height:max(860px,100svh);padding-top:110px;display:flex;flex-direction:column;overflow:hidden}
 .hero-bg{inset:0;background-position:62% center}
 .hero-title-overlay{top:clamp(190px,20vh,255px);left:clamp(190px,20vw,370px);font-size:clamp(72px,6.2vw,104px);line-height:.61;letter-spacing:-.072em}
 .hero-purpose{order:2;position:relative;left:auto;bottom:auto;transform:none;width:min(820px,calc(100% - 64px));margin:0 auto 54px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:0;background:rgba(3,22,34,.42);border-radius:22px;backdrop-filter:blur(8px)}
 .hero-purpose>div{min-height:94px;padding:9px clamp(16px,2vw,28px);gap:15px;justify-content:center}
 .hero-purpose>div+div{border-left:1px solid rgba(104,200,222,.42)}
 .hero-purpose img{width:64px;height:64px;flex-basis:64px}
 .hero-purpose span{font-size:17px;white-space:nowrap}
 .hero-inner{order:1;flex:1 1 auto;align-items:flex-end;padding:20px 0 18px}
 .hero-copy{width:min(690px,62%)}
 .hero-copy .hero-lead{margin:0 0 13px;font-size:clamp(27px,2.15vw,34px);line-height:1.15;letter-spacing:-.025em}
 .hero-copy .hero-text{max-width:650px;margin:0;font-size:16px;line-height:1.6}
 .hero .actions{margin-top:25px}

 .brand-divider{height:84px}

 /* História */
 .story .two-col{grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr);gap:clamp(60px,7vw,100px);align-items:start}
 .story .section-heading{position:sticky;top:125px}
 .story .section-heading h2{font-size:clamp(62px,5.6vw,84px);line-height:.9}
 .story .section-heading h2>span,.story .section-heading h2>em{display:block}
 .story .section-heading h2>em{font-size:1.17em;font-weight:800;margin-top:7px}
 .story-copy{max-width:690px}
 .story-copy blockquote{margin-top:3px;font-size:clamp(22px,1.7vw,27px);line-height:1.42}
 .story-transformation{margin:25px 0 27px;box-shadow:var(--shadow-premium)}
 .story-transformation img{width:100%;aspect-ratio:16/8.7;object-fit:cover}

 /* Caminhos */
 .section-intro{max-width:860px;margin-bottom:42px}
 .section-intro h2{font-size:clamp(52px,5.3vw,76px);line-height:.96}
 .path-grid{grid-template-columns:minmax(0,1.18fr) minmax(0,.91fr) minmax(0,.91fr);gap:22px;align-items:stretch}
 .path-card{min-height:520px;padding:30px 27px;border-radius:24px}
 .path-head{grid-template-columns:58px minmax(0,1fr);gap:15px;margin-bottom:22px}
 .path-head .number{font-size:58px}
 .path-head h3{font-size:clamp(23px,1.8vw,29px);overflow-wrap:normal}
 .path-grid>.path-card:first-child .path-head h3{white-space:nowrap}
 .path-card p{line-height:1.55}
 .path-music .clip-player{margin:18px 0}

 /* Biblioteca */
 .library-copy{max-width:1120px}
 .library-copy h2{font-size:clamp(50px,4.65vw,67px);line-height:.95}
 .library-copy h2>span,.library-copy h2>em{display:block}
 .library-copy>p:not(.eyebrow){max-width:760px;margin-left:auto;margin-right:auto}
 .book-carousel{height:520px;margin-top:38px}
 .book-card:hover{filter:saturate(1.06);box-shadow:0 34px 74px rgba(5,19,29,.34)}

 /* Empreendedor do Alto */
 .entrepreneur-grid{grid-template-columns:1fr;max-width:1180px;gap:0;align-items:center;text-align:center}
 .entrepreneur-art{display:none}
 .entrepreneur .eyebrow{font-size:17px;margin-bottom:20px}
 .entrepreneur h2{font-size:clamp(54px,5vw,72px);line-height:.95;max-width:1000px;margin-inline:auto}
 .entrepreneur h2+p{margin:18px auto 22px;max-width:820px}
 .entrepreneur .principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:25px 0 30px}
 .entrepreneur .principles>div{grid-template-columns:62px 1fr;gap:15px;padding:23px 20px;text-align:left;border:1px solid rgba(113,205,229,.23);border-radius:20px;background:rgba(255,255,255,.035)}
 .entrepreneur .principles b{font-size:48px;font-weight:300;line-height:1}
 .entrepreneur .principles strong{font-size:20px;line-height:1.15;margin-bottom:3px}
 .entrepreneur .button{margin-inline:auto}

 /* Projetos */
 .projects .section-intro{max-width:1180px}
 .projects .section-intro h2{font-size:clamp(43px,4vw,58px);line-height:.98}
 .project-list{gap:56px}
 .project{padding:clamp(38px,4vw,56px);border-radius:32px;overflow:hidden}
 .project header{grid-template-columns:82px minmax(0,1fr);column-gap:21px;row-gap:18px;align-items:center}
 .project header>span{font-size:76px;line-height:.82}
 .project h3{font-size:clamp(39px,4vw,54px);line-height:.96;max-width:900px}
 .project header small{padding:10px 18px;border:1px solid currentColor;border-radius:999px;font-size:11px;line-height:1.2}
 .gallery-3d{height:clamp(390px,38vw,500px);margin:34px 0 30px}
 .project-lead{max-width:820px;font-size:24px;line-height:1.2}
 .project>p:not(.project-lead){max-width:900px;font-size:17px;line-height:1.7}
 .project-pillars{gap:13px;margin:26px 0}
 .project-pillars span{min-height:76px;display:flex;align-items:center;gap:13px;padding:18px 20px}
 .project-pillars span::before{position:static!important;inset:auto!important;flex:0 0 10px;width:10px!important;height:10px!important;margin:0!important}
 .project blockquote{max-width:920px;line-height:1.38}
 .project-cta{display:flex;width:max-content;margin:30px auto 0}
 .project-love h3{white-space:nowrap}
 .manifesto{grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:center}
 .manifesto h3{white-space:nowrap;font-size:clamp(48px,5vw,68px)}

 /* Palavra e música */
 .word .section-intro{max-width:920px}
 .reels-grid{gap:24px}
 .reels-grid>a{min-height:520px;border-radius:25px}
 .reels-grid>a:hover{transform:perspective(1100px) translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))}
 .music-grid{gap:clamp(55px,7vw,90px);align-items:center}
 .music h2{font-size:clamp(52px,5vw,74px);line-height:.95}
 .music-library{box-shadow:var(--shadow-premium)}

 /* Rodapé */
 .site-footer .container{width:min(var(--desktop-container),calc(100% - 64px))}
}

@media(min-width:901px) and (max-height:820px){
 .hero{min-height:820px}
 .hero-title-overlay{top:155px;font-size:72px}
 .hero-purpose>div{min-height:78px}
 .hero-purpose img{width:54px;height:54px;flex-basis:54px}
 .hero-inner{padding:14px 0 28px}
 .hero-copy .hero-lead{font-size:27px}
 .hero .actions{margin-top:18px}
}

@media(prefers-reduced-motion:reduce){
 .reveal{opacity:1;transform:none;transition:none}
 .path-card,.project,.manifesto,.reels-grid>a,.entrepreneur-art{transform:none!important;transition:none}
 .button::after,.path-button::after,.project-cta::after,.story-contact::after{display:none}
}
