/* Adapted from Hero08 (felipemenezes098) and Gallery Modal Accordion
   (uilayout.contact), retrieved from 21st.dev on 2026-09-15.
   Original references and adaptation notes: .21st/README.md. */
.hero.hero21{display:block;padding-top:55px}.hero21 .hero-top{grid-template-columns:1.1fr 1fr;align-items:center;gap:10%;margin-bottom:40px}.hero21 .hero-top h1{font-family:Georgia,serif;font-size:clamp(48px,6.1vw,86px);letter-spacing:-.055em}.hero21 .hero-top p{margin:0 0 22px;max-width:420px}.hero21 .hero-top .eyebrow{margin-bottom:20px}.hero21-cards{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hero21-card{position:relative;isolation:isolate;min-width:0;min-height:350px;overflow:hidden;border-radius:12px;background:var(--soft);border:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;padding:30px}.hero21-card>img{position:absolute;inset:0;height:100%;width:100%;z-index:-2;transition:transform .6s ease}.hero21-card:hover>img{transform:scale(1.04)}.hero21-card.photo{color:white}.hero21-card.photo:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,rgba(13,24,19,.75),rgba(13,24,19,.2))}.hero21-card h2{font-size:clamp(32px,3.4vw,46px);max-width:350px}.hero21-card p{font-size:14px;max-width:340px;margin:12px 0 0!important;color:inherit!important}.hero21-card .eyebrow{color:inherit;margin-bottom:20px}.hero21-card .card-action{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:45px}.hero21-card .card-action>span{font-size:11px;max-width:140px}.hero21-card .btn{border-color:white;background:white;color:#27342b;min-width:150px}.hero21-card.color{background:#e4c5ac;color:#452c22}.hero21-card.color:before{content:'';position:absolute;width:250px;height:400px;right:-70px;bottom:-130px;transform:rotate(28deg);border:45px solid #bd8964;border-radius:50%;z-index:-1}.hero21-card.color:after{content:'';position:absolute;width:180px;height:350px;right:30px;bottom:-220px;transform:rotate(28deg);border:35px solid #83523b;border-radius:50%;z-index:-1}.lina .hero21-card.photo>img{object-position:center 60%}.lina .hero21-cards{grid-template-columns:1.2fr 1fr}.hero21 .strip{margin-top:0}.gallery21{display:flex;gap:16px;height:510px;align-items:stretch}.gallery21 .project,.gallery21 .project:nth-child(2),.gallery21 .project:nth-child(3){position:relative;display:block;flex:1;min-width:0;padding:0;overflow:hidden;border-radius:16px;transition:flex .45s cubic-bezier(.22,1,.36,1);isolation:isolate;background:var(--ink)}.gallery21 .project.active{flex:2.2}.gallery21 .project .picture{position:absolute;inset:0;z-index:-2}.gallery21 .project img{height:100%;width:100%;object-fit:cover}.gallery21 .project:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(15,26,19,.94),rgba(15,26,19,.02) 85%)}.gallery21 .project>div:last-child{height:100%;padding:25px;display:flex;flex-direction:column;justify-content:end;color:white}.gallery21 .project h3{font:clamp(25px,2.7vw,39px)/1.08 Georgia,serif;letter-spacing:-.03em}.gallery21 .project p,.gallery21 .project .eyebrow{color:#fff}.gallery21 .project .eyebrow{font-size:10px;margin-bottom:20px}.gallery21 .project button{color:white;border-color:#ffffff88;white-space:normal;font-size:14px}.gallery21 .project button:focus-visible{outline-color:white}.gallery21.filtered{display:flex;height:440px}.gallery21.filtered .project{display:block;padding:0}.gallery21.filtered .project img{height:100%}.gallery21.filtered .project>div:last-child{max-width:600px}.gallery-help{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted);padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:18px}.modal.is-project{width:min(1050px,calc(100% - 28px));padding:0;overflow:auto}.modal.is-project .close{z-index:2;background:var(--paper)}.modal.is-project #dialog-content{display:grid;grid-template-columns:1.2fr 1fr;min-height:560px}.project-modal-image{width:100%;height:100%;min-height:560px;object-fit:cover;margin:0!important;max-height:none!important}.project-modal-copy{padding:60px 35px 35px}.project-modal-copy h2{font-family:Georgia,serif;font-size:42px}.project-modal-copy .btn{margin-top:18px}.project-modal-nav{display:flex;justify-content:space-between;gap:15px;margin-top:20px}.project-modal-nav button{background:transparent;border:1px solid var(--line);padding:10px 16px;min-height:44px}
@media(min-width:701px) and (prefers-reduced-motion:no-preference){.hero21 .hero-top{animation:hero21-reveal .5s both}.hero21-cards{animation:hero21-reveal .6s .1s both}@keyframes hero21-reveal{from{opacity:.5;transform:translateY(18px)}to{opacity:1;transform:none}}}
@media(max-width:950px){.hero21-card{padding:24px;min-height:330px}.hero21-card .card-action{align-items:start;flex-direction:column}.gallery21{gap:10px;height:460px}.gallery21 .project>div:last-child{padding:18px}}
@media(max-width:700px){.hero.hero21{padding-top:35px}.hero21 .hero-top{display:block;margin-bottom:30px}.hero21 .hero-top>div:last-child{margin-top:25px}.hero21 .hero-top h1{font-size:52px}.hero21-cards,.lina .hero21-cards{grid-template-columns:1fr;gap:16px}.hero21-card{min-height:320px;padding:25px}.hero21-card .card-action{flex-direction:row;align-items:center}.hero21-card .card-action>span{max-width:90px}.hero21-card .btn{min-width:0;gap:10px;padding:12px 15px}.hero21-card h2{font-size:36px}.gallery21,.gallery21.filtered{display:grid;height:auto;grid-template-columns:1fr;gap:18px}.gallery21 .project,.gallery21.filtered .project{height:340px}.gallery21 .project>div:last-child{padding:25px}.gallery21 .project h3{font-size:34px}.gallery-help>span:last-child{display:none}.modal.is-project #dialog-content{display:block}.project-modal-image{min-height:0;height:240px!important}.project-modal-copy{padding:28px 22px}.project-modal-copy h2{font-size:34px}.modal.is-project .close{position:sticky;top:10px;float:right;margin-right:10px;margin-bottom:-54px}}
