/* Homepage-only layout. Heights follow content at every viewport. */
.skip-link{position:fixed;inset-block-start:8px;inset-inline-start:12px;z-index:100;background:var(--yellow);color:#102c43;padding:12px 18px;transform:translateY(-160%);text-decoration:none;border-radius:4px}
.skip-link:focus{transform:none}
#site:focus{outline:none}
#site,#home-intro,#technology,#discover,#applications,#technical-support,#about-rida,#cooperation,#journal,#news,#contact{scroll-margin-top:120px}
.topbar-item{color:inherit;text-decoration:none;min-height:32px;padding:3px 0}
.topbar-item:hover{text-decoration:underline;text-underline-offset:4px}
.topbar-item:focus-visible,.home-button:focus-visible,.home-product-card a:focus-visible,.service-inquiry:focus-visible,.home-showcase-toggle:focus-visible,.home-application-card a:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
.home-intro{color:var(--on-blue);background:var(--section-deep);padding:44px 5vw;border-bottom:1px solid var(--blue-divider)}
.home-intro-inner{max-width:1440px;margin:auto;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.65fr);gap:40px;align-items:center}
.home-eyebrow{font-size:12px;letter-spacing:.08em;color:var(--yellow);margin:0 0 12px}
.home-intro h1{font-size:clamp(32px,3.5vw,52px);line-height:1.15;margin:0 0 16px;font-weight:600;max-width:900px}
.home-lead{font-size:18px;line-height:1.65;color:var(--on-blue-muted);margin:0;max-width:780px}
.home-intro-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.home-button{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 20px;min-height:48px;border:1px solid var(--yellow);border-radius:4px;background:var(--yellow);color:#0b2942;text-decoration:none;font:inherit;font-weight:500;line-height:1.45;cursor:pointer;text-align:start}
.home-button-outline{background:transparent;color:var(--yellow)}
.categories{height:auto;min-height:0;max-height:none;padding:60px 5vw;overflow:visible}
.categories .category-container{max-width:1440px;height:auto;display:block;margin:auto}
.category-grid.real-categories{flex:none;min-height:0;grid-template-rows:none;grid-auto-rows:auto;gap:22px;margin-top:28px;padding:0;align-items:stretch}
.categories .category-intro{display:block;max-width:800px;margin:12px 0 0;font-size:16px}
.real-category{height:auto;min-height:0;overflow:visible}
.real-category-image{height:220px;flex:0 0 auto;padding:16px}
.real-category>div:last-child{padding:22px;flex:1}
.real-category h3{font-size:22px;margin:10px 0 16px}
.real-category span{display:inline-block;line-height:1.5}
.real-category:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
.core-technology,.about-rida,.services-section,.journal,.news-section,.contact-section{padding-block:60px}
.home-showcase{padding:60px 5vw}
.home-showcase .resource-container{max-width:1440px}
.home-section-heading{max-width:850px;margin-bottom:30px}
.home-section-heading h2{font-size:clamp(30px,3vw,44px);line-height:1.2;margin:0 0 16px}
.home-section-heading p{color:var(--on-blue-muted);font-size:17px;line-height:1.7;margin:0}
.home-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.home-product-card{min-width:0;background:#123b5c;border:1px solid #416079;border-radius:4px;overflow:visible}
.home-product-card>a{display:flex;flex-direction:column;color:inherit;text-decoration:none;height:100%;border-radius:4px}
.home-product-image{background:white;padding:16px;border-radius:3px 3px 0 0}
.home-product-image img{width:100%;height:210px;display:block;object-fit:contain}
.home-product-copy{display:flex;flex-direction:column;flex:1;padding:22px}
.home-product-copy small{font-size:13px;color:var(--on-blue-muted)}
.home-product-copy h3{font-size:25px;line-height:1.25;margin:10px 0 12px;text-align:start}
.home-product-copy p{font-size:16px;line-height:1.6;margin:0 0 20px;color:var(--on-blue-muted)}
.home-product-detail{display:flex;justify-content:space-between;gap:12px;color:var(--yellow);margin-top:auto;font-size:14px}
.home-showcase-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px;flex-wrap:wrap}
.home-showcase-toggle{display:none;border:1px solid var(--blue-divider);background:none;color:var(--on-blue);font:inherit;padding:10px 16px;min-height:44px;cursor:pointer;border-radius:4px}
.guidance-home .application-container{padding:60px 5vw;max-width:1584px}
.guidance-home .application-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-application-card{border:1px solid #416079;background:#123b5c;min-width:0}
.home-application-card>a{display:flex;align-items:flex-start;gap:18px;padding:20px;color:inherit;text-decoration:none;height:100%}
.home-application-card img{width:90px;height:110px;flex:0 0 90px;object-fit:contain;background:white;padding:6px}
.home-application-card h3{font-size:20px;line-height:1.3;margin:0 0 10px}
.home-application-card p{font-size:14px;line-height:1.65;color:var(--on-blue-muted);margin:0 0 12px}
.home-application-card span{color:var(--yellow);font-size:14px}
.homepage-support{padding:52px 5vw;max-width:1440px;color:var(--on-blue,#f4f7fa)}
.homepage-support h2,.homepage-support .guide-read-card h3{color:var(--on-blue,#f4f7fa)}
.homepage-support .guide-read-card>a{padding:20px 0;gap:16px}
.homepage-support .guide-read-card h3{font-size:21px;margin:0 0 8px;line-height:1.35}
.homepage-support .guide-read-card p{font-size:15px;line-height:1.6}
.service-item{display:flex;flex-direction:column;min-width:0}
.service-inquiry{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;border:0;border-top:1px solid var(--blue-divider);background:none;color:var(--yellow);font:inherit;font-size:15px;text-align:start;cursor:pointer;margin-top:auto;padding:18px 0 4px;min-height:48px}
.service-item>p{margin-bottom:24px}
.home-draft-notice{font-size:13px;line-height:1.6;color:var(--on-blue-muted);margin:24px 0 0;text-align:center}
.search-icon{color:inherit;text-decoration:none;min-width:32px;min-height:44px;display:grid;place-items:center}
@media(max-width:1100px){
 .home-intro-inner{grid-template-columns:minmax(0,1.3fr) minmax(230px,.7fr);gap:26px}
 .real-category-image{height:190px}
 .home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .guidance-home .application-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-application-card>a{gap:14px;padding:16px}
}
@media(max-width:760px){
 .home-intro-inner{grid-template-columns:1fr;gap:24px}
 .home-intro-actions{flex-direction:row;flex-wrap:wrap}
 .home-intro-actions>*{flex:1 1 220px}
 .home-lead{font-size:16px}
 .home-intro{padding:32px 5vw}
 .categories,.home-showcase,.core-technology,.about-rida,.services-section,.journal,.news-section,.contact-section{padding:44px 5vw}
 .guidance-home .application-container{padding:44px 5vw}
 .home-application-card>a{gap:16px}
 .home-application-card img{width:80px;height:100px;flex-basis:80px}
 .homepage-support{padding:40px 5vw}
}
@media(max-width:600px){
 .topbar-message{display:none}
 .topbar-inner{padding:5px 4vw;min-height:38px}
 .topbar-links{gap:6px 18px;font-size:12px}
 .topbar-item{white-space:normal;text-align:center}
 .category-grid.real-categories{grid-template-columns:1fr;gap:14px}
 .real-category{flex-direction:row;align-items:stretch}
 .real-category-image{width:118px;height:auto;min-height:166px;flex:0 0 118px;display:flex;align-items:center;padding:8px}
 .real-category-image img{height:146px;width:100%;object-fit:contain}
 .real-category>div:last-child{padding:18px 16px;min-width:0;display:flex;flex-direction:column;justify-content:center}
 .real-category small{font-size:12px}
 .real-category h3{font-size:20px;line-height:1.35;margin:8px 0 12px}
 .real-category span{font-size:14px}
 .home-products-grid{grid-template-columns:1fr;gap:15px}
 .home-product-card>a{display:grid;grid-template-columns:112px minmax(0,1fr)}
 .home-product-image{padding:8px;display:flex;align-items:center;border-radius:3px 0 0 3px}
 .home-product-image img{height:150px}
 .home-product-copy{padding:18px 15px}
 .home-product-copy h3{font-size:22px;margin:8px 0}
 .home-product-copy p{font-size:14px;margin-bottom:14px;line-height:1.55}
 .home-product-copy small{font-size:12px}
 .home-showcase:not(.show-all-products) .home-product-card:nth-child(n+4){display:none}
 .home-showcase-toggle{display:inline-block}
 .home-showcase-actions{gap:10px}
 .home-showcase-actions .guide-inline-link{font-size:14px}
 .guidance-home .application-grid{grid-template-columns:1fr}
 .home-application-card img{width:90px;height:110px;flex-basis:90px}
 .home-application-card h3{font-size:20px}
 .journal-archive .journal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .journal-archive .journal-copy{padding:14px}
 .journal-archive .journal-copy h3{font-size:19px;line-height:1.35;margin:12px 0 16px;overflow-wrap:anywhere}
 .journal-archive .journal-copy>p{display:none}
 .journal-archive .journal-tag{font-size:11px;padding:4px 6px}
 .journal-archive .journal-read{font-size:12px;gap:8px;flex-wrap:wrap}
 .journal-archive .journal-read span{width:26px;height:26px}
 .contact-main{display:none}
 .contact-header{margin-bottom:25px}
 .contact-grid{display:block}
 .contact-path{padding:24px 20px}
 .contact-path h3{font-size:23px}
 .contact-path p{font-size:15px}
 .service-title h3{font-size:23px}
 .news-header{margin-bottom:28px}
}
@media(max-width:359px){
 .real-category-image{width:96px;flex-basis:96px;padding:6px}
 .real-category>div:last-child{padding:14px 12px}
 .real-category h3{font-size:18px}
 .home-product-card>a{grid-template-columns:92px minmax(0,1fr)}
 .home-application-card>a{gap:12px;padding:14px}
 .home-application-card img{width:70px;flex-basis:70px}
 .home-application-card h3{font-size:18px}
 .journal-archive .journal-grid{grid-template-columns:1fr}
}
/* Keep the menu button fully visible on narrow screens, including RTL scrollbars. */
@media(max-width:380px){.search-icon{display:none}}

/* Split product / portrait-film banner. Other homepage photography stays unchanged. */
.home-hero.hero{
 --hero-room:max(540px,calc(100svh - var(--site-topbar-height,48px) - var(--site-nav-height,100px)));
 --hero-video-width:48vw;
 --hero-video-inset:4vw;
 height:auto;min-height:calc(100svh - var(--site-topbar-height,48px));
 padding:calc(var(--site-nav-height,100px) + 24px) 5vw 24px;
 background:radial-gradient(ellipse at 22% 100%,#174e73 0%,transparent 64%),linear-gradient(118deg,#081c30 10%,#103c5a 66%,#0a263e 100%);
 border-bottom:1px solid #294355;overflow:visible;isolation:isolate;
}
.home-hero.hero::after{display:none}
.hero-layout{display:block;padding-right:calc(var(--hero-video-width) + var(--hero-video-inset) - 5vw + 24px);height:calc(var(--hero-room) - 48px);max-width:1800px;margin-inline:auto;direction:ltr}
.hero-main{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;justify-content:space-between}
.hero-copy{position:relative;z-index:1;direction:inherit}
.home-hero h1{font-size:clamp(40px,4.3vw,72px);font-weight:500;line-height:1.06;letter-spacing:-.025em;max-width:none;margin:0 0 20px;text-wrap:balance}
.home-hero h1 span{display:block}
.hero-title-term{white-space:nowrap}
.home-hero h1 span:first-child{color:var(--yellow)}
.home-hero .home-lead{max-width:49ch;font-size:clamp(16px,1.3vw,20px);line-height:1.5;color:#c3d3df}
.home-hero .home-intro-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:12px;margin-top:24px}
.home-hero .home-button{flex:none;justify-content:center;gap:24px;min-height:48px;padding:11px 18px;border-radius:0;font-size:16px}
.home-hero svg{width:20px;height:20px;flex-shrink:0}
.home-hero .home-button:hover{background:#ffdc6a;color:#09263d;border-color:#ffdc6a}
.hero-product-picture{display:block;flex:1;min-height:0;height:0;margin-top:16px}
.hero-product-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.hero-film{position:absolute;top:var(--site-nav-height,100px);right:var(--hero-video-inset);bottom:0;width:var(--hero-video-width);margin:0;direction:ltr}
.hero-film-media{position:absolute;inset:0;overflow:hidden;background:#0a263e;clip-path:polygon(24% 0,100% 0,100% 100%,0 100%)}
.hero-film-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,rgba(7,36,62,.52),rgba(10,48,77,.24) 55%,rgba(7,31,52,.3));mix-blend-mode:multiply}
.hero-film-poster,.hero-video{position:absolute;inset:0;display:block;width:100%;height:100%}
.hero-film-poster img,.hero-video{width:100%;height:100%;object-fit:cover;object-position:55% center;filter:saturate(.58) contrast(1.06) brightness(.82)}
.hero-video:not(.is-ready){opacity:0}
.hero-video-toggle{position:absolute;right:24px;bottom:24px;z-index:1;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #9bb8ce;border-radius:50%;background:#0a263e;color:#f4f7fa;cursor:pointer}
.hero-video-toggle[hidden]{display:none}
.hero-video-toggle:hover{background:#174e73}
.hero-video-toggle:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
.hero-video-toggle svg{width:20px;height:20px}
html[lang=pt] .home-hero h1{font-size:clamp(36px,3.8vw,64px)}
html[dir=rtl] .hero-copy{direction:rtl;text-align:right}
html[dir=rtl] .home-hero h1{letter-spacing:0;line-height:1.28;font-size:clamp(36px,3.7vw,64px)}
html[dir=rtl] .home-hero .home-button svg{transform:scaleX(-1)}
@media(max-width:1100px) and (min-width:901px){
 .home-hero h1{font-size:42px}
 .home-hero .home-button{font-size:14px;padding-inline:14px;gap:14px}
 .home-hero .home-intro-actions{margin-top:18px}
}
@media(max-width:900px){
 body:not(.site-interior) .topbar{display:none}
 body:not(.site-interior) #site-header:empty{height:0}
 body:not(.site-interior) .main-nav:not(.is-scrolled):not(.menu-open):not(.has-mega){background:transparent}
 body:not(.site-interior) .main-nav:not(.is-scrolled) .nav-inner{border-bottom:1px solid #c3d3df40}
 .home-hero.hero{min-height:100svh;padding:calc(var(--site-nav-height,84px) + 24px) 24px max(76px,calc(env(safe-area-inset-bottom) + 64px));background:#0a263e}
 .hero-layout{height:calc(100svh - var(--site-nav-height,84px) - 100px);min-height:380px;padding:0;display:block}
 .hero-main{position:relative;z-index:2;height:100%}
 .hero-copy{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto auto minmax(24px,1fr) auto;text-align:center}
 .home-hero h1{grid-row:2;font-size:clamp(38px,10.8vw,64px);font-weight:600;line-height:1.08;max-width:14ch;margin:0 auto 20px;text-wrap:balance}
 html[lang=pt] .home-hero h1{font-size:clamp(34px,9.8vw,60px)}
 html[dir=rtl] .home-hero h1{font-size:clamp(36px,10vw,60px);line-height:1.25}
 html[dir=rtl] .hero-copy{text-align:center}
 .home-hero .home-lead{grid-row:3;font-size:16px;line-height:1.5;max-width:34ch;margin:0 auto;color:#e2edf5;text-wrap:pretty}
 .home-hero .home-intro-actions{grid-row:5;flex-direction:column;align-items:stretch;gap:12px;margin:0 auto;width:100%;max-width:460px}
 .home-hero .home-button{width:100%;min-height:52px;justify-content:space-between;padding:12px 18px;font-size:16px}
 .home-hero .home-button-outline{background:#0a263e80;color:#f4f7fa;border-color:#c3d3df}
 .hero-product-picture{display:none}
 .hero-film{position:absolute;inset:0;width:100%;max-width:none;aspect-ratio:auto;z-index:0}
 .hero-film-media{clip-path:none}
 .hero-film-media::after{background:linear-gradient(180deg,rgba(5,28,45,.58),rgba(5,28,45,.64) 46%,rgba(5,28,45,.76));mix-blend-mode:normal}
 .hero-film-poster img,.hero-video{object-position:50% center}
 .hero-video-toggle{right:20px;bottom:max(16px,env(safe-area-inset-bottom));z-index:3}
}
@media(max-width:900px) and (max-height:650px){
 .home-hero.hero{padding-top:calc(var(--site-nav-height,80px) + 16px);padding-bottom:64px}
 .hero-layout{height:calc(100svh - var(--site-nav-height,80px) - 80px);min-height:350px}
 .home-hero h1{font-size:36px;margin-bottom:12px}
 html[lang=pt] .home-hero h1,html[dir=rtl] .home-hero h1{font-size:32px}
 .home-hero .home-lead{font-size:15px}
 .home-hero .home-intro-actions{gap:8px}
 .home-hero .home-button{min-height:48px;padding-block:10px}
 .hero-video-toggle{bottom:10px}
}

/* Mobile browsing density: retain full content on the dedicated pages. */
.mobile-archive-link,.home-showcase-intro-mobile{display:none}
@media(max-width:600px){
 #site :is(.categories,.home-showcase,.core-technology,.about-rida,.services-section,.journal,.news-section){padding:32px 5vw}
 #site .guidance-home .application-container{padding:32px 5vw}
 #site .homepage-support{padding:32px 5vw}
 #site :is(.home-section-heading,.application-header,.service-header,.news-header,.tech-header){margin-bottom:22px}
 #site .category-grid.real-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
 #site .real-category{flex-direction:column}
 #site .real-category-image{width:100%;height:136px;min-height:0;flex:0 0 auto;padding:10px}
 #site .real-category-image img{height:100%}
 #site .real-category>div:last-child{padding:12px;justify-content:flex-start}
 #site .real-category h3{font-size:18px;line-height:1.35;margin:8px 0 12px;overflow-wrap:anywhere}
 #site .real-category span{margin-top:auto;min-height:32px;display:flex;align-items:center}
 #site .home-showcase-intro-wide{display:none}
 #site .home-showcase-intro-mobile{display:inline}
 #site .home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #site .home-product-card>a{display:flex;flex-direction:column}
 #site .home-product-image{padding:10px;border-radius:3px 3px 0 0}
 #site .home-product-image img{height:136px}
 #site .home-product-copy{padding:12px}
 #site .home-product-copy h3{font-size:20px;overflow-wrap:anywhere}
 #site .home-product-copy p{display:none}
 #site .home-product-detail{min-height:44px;align-items:center;gap:6px;line-height:1.5}
 #site .home-showcase:not(.show-all-products) .home-product-card:nth-child(4){display:block}
 #site .home-showcase:not(.show-all-products) .home-product-card:nth-child(n+5){display:none}
 #site .home-showcase-toggle{display:none}
 #site .home-showcase-actions{margin-top:16px}
 #site .guidance-home .application-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #site .home-application-card>a{flex-direction:column;padding:14px;gap:12px}
 #site .home-application-card img{width:64px;height:76px;flex:0 0 76px}
 #site .home-application-card>a>div{flex:1;display:flex;flex-direction:column;min-width:0}
 #site .home-application-card h3{font-size:18px;overflow-wrap:anywhere;line-height:1.4}
 #site .home-application-card p{display:none}
 #site .home-application-card span{margin-top:auto;min-height:32px;display:flex;align-items:center}
 #site .homepage-support .guide-read-card>a{padding:14px 0}
 #site .homepage-support .guide-read-card h3{font-size:19px;margin-bottom:0}
 #site .homepage-support .guide-read-card p{display:none}
 #site .service-grid{gap:16px}
 #site .service-item,#site .service-item:first-child,#site .service-item:last-child{padding:16px 0 0}
 #site .service-title{margin-bottom:8px}
 #site .service-title h3{font-size:20px}
 #site .service-title svg{width:30px;height:30px}
 #site .service-item>p{display:none}
 #site .service-inquiry{border-top:0;padding:8px 0;min-height:44px}
 #site .tech-visual{padding:12px}
 #site .tech-asset{height:128px}
 #site .tech-photo-note{margin-top:10px}
 #site .tech-panel h3{font-size:24px;margin-bottom:12px}
 #site .tech-panel>p{margin-bottom:12px}
 #site .tech-panel ul{display:none}
 #site .tech-panel .legacy-more{margin-top:0;min-height:44px}
 #site .about-rida .about-media img{max-height:240px;object-fit:contain}
 #site .journal-real.journal-archive .journal-grid{grid-template-columns:1fr;gap:14px}
 #site .journal-heading{padding-bottom:0}
 #site .journal-heading small{display:none}
 #site .journal-card:nth-of-type(n+3){display:none}
 #site .journal-open{display:grid;grid-template-columns:88px minmax(0,1fr);height:100%}
 #site .journal-real .journal-photo{height:100%;aspect-ratio:auto;min-height:128px}
 #site .journal-real .journal-photo img{height:100%;object-fit:contain}
 #site .journal-real .journal-copy{padding:12px;min-width:0}
 #site .journal-real .journal-copy h3{font-size:18px;line-height:1.45;margin:8px 0}
 #site .journal-real .journal-copy>p{display:none}
 #site .journal-read{font-size:13px;min-height:32px}
 #site .journal-tag{font-size:11px;align-self:flex-start}
 #site .mobile-archive-link{display:inline-flex;align-items:center;min-height:44px;color:var(--yellow);text-underline-offset:5px;margin-top:16px}
 #site .news-grid{grid-template-columns:1fr;gap:14px}
 #site .news-open{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:stretch}
 #site .news-photo{height:100%;aspect-ratio:auto;min-height:128px}
 #site .news-photo img{height:100%;object-fit:contain}
 #site .news-card-copy{width:100%;margin:0;padding:12px;border:0;min-width:0}
 #site .news-card h3{font-size:18px;line-height:1.45;margin:8px 0}
 #site .news-tag,#site .news-card time{font-size:12px}
 #site .news-filters{margin-bottom:18px}
 #site .news-journal-link{display:none}
 #site .news-card.mobile-news-extra{display:none}
}
