/* INNOVATORIUS R47.21 — recovery stylesheet.
   Reconstructed after comparison of R47.1–R47.20. The portfolio card model
   returns to the pre-R47.5 photographed architecture; later useful typography
   and responsive fixes are consolidated here without the emergency z-index stack. */

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:clip}
img,video,svg{max-width:100%}
:where(h1,h2,h3,h4,h5,h6){overflow-wrap:normal!important;word-break:normal!important;-webkit-hyphens:none!important;hyphens:none!important}
:where(p,li,figcaption,blockquote,summary){overflow-wrap:break-word;word-break:normal}
:where(a,button,label,strong){word-break:normal}
:is(.shell,.cavh-shell,.v19-hero-inner,.v19-manifesto,.v19-explorer-grid,.v19-contact-grid,.home-film-grid,.project-hero-shell,.project-overview-grid,.project-framework-grid,.universe-focus,.universe-project-grid,.audience-grid,.cavh-grid,.cavh-name,.cavh-facts,.cavh-timeline)>*{min-width:0}
.button,.v19-btn,.v19-contact .button,.v20-watch-film{max-width:100%;height:auto;padding-block:12px;white-space:normal;line-height:1.4;text-align:center}

/* Keep large editorial copy compact without splitting words. */
.v19-hero h1{max-width:19ch!important;font-size:clamp(2.8rem,5vw,5.5rem)!important;line-height:1.03!important;letter-spacing:-.055em!important}
.v19-hero-logo{width:min(760px,72vw)!important;max-width:100%}
.v19-heading h2,.v19-manifesto h2,.v19-partner h2,.v19-contact h2{font-size:clamp(2.65rem,4.8vw,5.4rem)!important;line-height:1.04!important;letter-spacing:-.05em!important}
.home-film-copy h2{font-size:clamp(2.35rem,3.8vw,4.25rem)!important;line-height:1.08!important;letter-spacing:-.045em!important}
.r49-home-caviarum h2{font-size:clamp(3rem,6vw,6.25rem)!important;line-height:.96!important;letter-spacing:-.055em!important}
.project-hero-copy-v8 h1,.portfolio-hero h1,.project-hero h1{max-width:20ch!important;font-size:clamp(2.5rem,4.5vw,5.35rem)!important;line-height:1.04!important;letter-spacing:-.045em!important}
.project-section-head h2,.manifesto-copy h2,.heading-row h2,.process-intro h2,.global-copy h2,.partnership-copy h2,.contact-copy h2{font-size:clamp(2.35rem,4.5vw,5.15rem)!important;line-height:1.05!important;letter-spacing:-.045em!important}

/* Portfolio recovery: real photograph is always a visible layer. */
.project-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}
.project-grid .project-card,.portfolio-grid .project-card,.related-grid .project-card{position:relative!important;display:block!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;min-width:0!important;overflow:hidden!important;isolation:isolate!important;background:#111!important;border:1px solid rgba(255,255,255,.08)}
.project-grid .project-card{min-height:500px!important}
.project-grid .project-card::after,.portfolio-grid .project-card::after,.related-grid .project-card::after{display:none!important}
.project-card .project-card-click{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;width:100%!important;height:100%!important;min-height:inherit!important;color:#fff!important;overflow:hidden!important;isolation:isolate!important;text-decoration:none!important}
.project-card .project-card-click>picture{position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:100%!important;height:100%!important}
.project-card .project-card-click>picture img{position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;filter:saturate(.96) brightness(.94)!important;transform:none!important;transition:transform .55s ease,filter .35s ease!important}
.project-card .project-card-click::before{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.05) 36%,rgba(0,0,0,.42) 63%,rgba(0,0,0,.86) 100%)!important}
.project-card .project-copy{position:relative!important;inset:auto!important;z-index:2!important;width:100%!important;min-width:0!important;margin-top:auto!important;padding:24px!important;background:transparent!important}
.project-grid .project-copy p,.portfolio-grid .project-copy p,.related-grid .project-copy p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;line-clamp:4!important;overflow:hidden!important;max-height:none!important;line-height:1.48!important;color:#e1ddd5!important;margin-bottom:12px!important}
.project-card .project-copy h3{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;text-wrap:pretty;font-size:clamp(1.22rem,1.75vw,1.72rem)!important;line-height:1.08!important}
.project-card:hover .project-card-click>picture img,.project-card:focus-within .project-card-click>picture img{transform:scale(1.025)!important;filter:saturate(1.03) brightness(1)!important}
.project-card-placeholder{display:none!important}
.related-grid .project-card{min-height:420px!important}
.related-grid .project-copy{padding:20px!important}

/* Four capability gateways are navigation groups, not empty black placeholders. */
.r47-capability-grid>a{position:relative;isolation:isolate;min-height:285px;padding:24px!important;overflow:hidden;border:1px solid rgba(255,255,255,.1)!important;border-radius:12px!important;display:flex;flex-direction:column;justify-content:flex-end;background-color:#111!important;color:#fff!important}
.r47-capability-grid>a::before{content:"";position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center;transition:transform .5s ease,filter .35s ease;filter:saturate(.9) brightness(.78)}
.r47-capability-grid>a::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.24) 45%,rgba(0,0,0,.88))}
.r47-capability-grid>a:nth-child(1)::before{background-image:url("../assets/images/project-seafood.webp")}
.r47-capability-grid>a:nth-child(2)::before{background-image:url("../assets/images/r47-18/imitation-caviar-equipment.webp")}
.r47-capability-grid>a:nth-child(3)::before{background-image:url("../assets/images/project-circular-packaging-refill.webp")}
.r47-capability-grid>a:nth-child(4)::before{background-image:url("../assets/images/r47-9/software-development.webp")}
.r47-capability-grid>a:hover::before,.r47-capability-grid>a:focus-visible::before{transform:scale(1.035);filter:saturate(1) brightness(.9)}
.r47-capability-grid>a .r47-number{position:absolute;top:20px;left:22px;color:#e1bd63;font-weight:800}
.r47-capability-grid>a h3{font-size:clamp(1.35rem,2vw,1.8rem)!important;line-height:1.08!important;margin:0 0 10px!important;text-shadow:0 2px 14px #000}
.r47-capability-grid>a p{color:#eee!important;line-height:1.5!important;margin:0 0 12px!important;text-shadow:0 2px 12px #000}

/* World of Innovatorius: keep group photography visible and the brand unbroken. */
.universe-core strong{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;font-size:clamp(15px,1.45vw,20px)!important;letter-spacing:.08em!important}
.universe-node{overflow:hidden!important;background-image:linear-gradient(180deg,rgba(7,7,7,.18),rgba(7,7,7,.84)),var(--universe-image)!important;background-position:center!important;background-size:cover!important}
.universe-node span,.universe-node b{position:relative;z-index:1;text-shadow:0 2px 12px #000}
.universe-project-card{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;grid-template-rows:auto auto 1fr!important;column-gap:16px!important;overflow:hidden!important;padding:0!important}
.universe-project-card>img{grid-column:1!important;grid-row:1/4!important;width:112px!important;height:100%!important;min-height:138px!important;object-fit:cover!important}
.universe-project-card>span,.universe-project-card>strong,.universe-project-card>.tags{grid-column:2!important;margin-right:16px!important}
.universe-project-card>span{margin-top:16px!important}.universe-project-card>.tags{margin-bottom:16px!important}

/* Useful flow fixes retained from the good parts of R47.5. */
@media(min-width:1181px){.v19-hero-inner{grid-template-columns:minmax(0,1fr) minmax(200px,.28fr);gap:40px}.v19-hero-side{position:relative;inset:auto;width:auto;max-width:none;align-self:end}.v19-hero-side strong{line-height:1.2;overflow-wrap:normal}}
.v19-feature{display:flex;align-items:flex-end}.v19-feature-copy{position:relative;inset:auto;width:100%;min-width:0;margin:0;padding:180px 34px 34px}.v19-worlds-grid{height:auto}.v19-world{display:flex;align-items:flex-end}.v19-world-copy{position:relative;inset:auto;width:100%;min-width:0;padding:170px 26px 28px}.v19-world-copy h3{overflow-wrap:normal!important}.v19-world-copy p{overflow-wrap:break-word}
.site-contact-form{grid-template-columns:repeat(2,minmax(0,1fr))}.site-contact-form :is(input,textarea,select){min-width:0;max-width:100%;font-size:16px;line-height:1.5}.site-contact-form fieldset,.site-contact-form label,.archive-compare-selects label{min-width:0}.site-contact-form .r47-capabilities,.site-contact-form .r47-mail-fallback{grid-column:1/-1}
.project-media-toolbar,.project-media-navigation{flex-wrap:wrap}.project-media-toolbar>*,.project-media-navigation>*,.archive-compare-captions>*,.portfolio-deep-links>a{min-width:0;overflow-wrap:break-word}.archive-compare button,.archive-timeline button,.project-media-dialog button,.universe-chip-row button{max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.4}.archive-compare-captions{flex-wrap:wrap}.archive-compare-captions span{flex:1 1 160px}.archive-timeline-view figcaption{line-height:1.5}
.portfolio-cta,.cta-row,.deep-switch{flex-wrap:wrap;gap:16px}.universe-chip-row,.universe-route-tags,.project-market-tags{min-width:0}.universe-project-card,.audience-grid article,.cavh-proof,.cavh-fact,.cavh-timeline article{min-width:0;overflow-wrap:break-word}

@media(min-width:1500px){.project-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.project-grid .project-card{min-height:510px!important}}
@media(max-width:1000px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r47-capability-grid>a{min-height:260px}}
@media(max-width:950px){.home-film-grid{grid-template-columns:minmax(0,1fr)!important}.r49-home-caviarum-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:760px){.v19-hero{min-height:max(700px,100svh)}.v19-hero-inner{padding:104px 0 42px!important}.v19-hero-logo{width:min(100%,560px)!important}.v19-hero h1{max-width:100%!important;font-size:clamp(2.15rem,10.5vw,3.5rem)!important;line-height:1.04!important}.v19-heading h2,.v19-manifesto h2,.v19-partner h2,.v19-contact h2,.home-film-copy h2{font-size:clamp(2rem,9.7vw,3.15rem)!important;line-height:1.07!important}.project-hero-copy-v8 h1,.portfolio-hero h1,.project-hero h1{max-width:100%!important;font-size:clamp(2rem,9.5vw,3.2rem)!important;line-height:1.08!important}.v19-feature-copy{padding:160px 22px 24px}.portfolio-tools{position:static}.universe-project-card{grid-template-columns:88px minmax(0,1fr)!important}.universe-project-card>img{width:88px!important}.universe-core strong{font-size:14px!important;letter-spacing:.05em!important}}
@media(max-width:640px){.project-grid{grid-template-columns:minmax(0,1fr)!important}.project-grid .project-card{min-height:460px!important}.project-card .project-copy{padding:20px!important}.project-grid .project-copy p{-webkit-line-clamp:5!important;line-clamp:5!important}.site-contact-form{grid-template-columns:minmax(0,1fr)}.home-film-grid{grid-template-columns:minmax(0,1fr)}.v19-header .v19-links{left:10px;right:10px;padding:16px}.v19-world-copy{padding:160px 22px 24px}.r47-capability-grid>a{min-height:250px;padding:20px!important}}
@media(max-width:420px){.site-header .nav-shell{gap:8px}.site-header .brand-image{width:clamp(86px,29vw,122px)}.site-header .lang-switch{flex:0 0 auto;gap:4px}.v19-header .v19-lang a{min-width:30px}.v19-header .v19-menu{padding-inline:8px}.v19-feature-copy h3{font-size:clamp(1.7rem,8vw,2.2rem)}}
@media(prefers-reduced-motion:reduce){.project-card:hover .project-card-click>picture img,.project-card:focus-within .project-card-click>picture img,.r47-capability-grid>a::before{transition:none!important;transform:none!important}}
