/* The approved concept is the composition contract: compact rail, open hero, luminous Earth. */
@media (min-width:901px) {
  html:root { --rail: 64px; --top: 60px; }
  .desktop-rail { padding: 80px 10px 20px; background: rgba(9,8,25,.88); }
  .desktop-rail>.brand,.desktop-rail>.rail-label,.desktop-rail>.rail-contact { display: none; }
  .rail-nav { gap: 16px; }
  .desktop-rail .rail-btn { display: flex; justify-content: center; width: 44px; min-height: 44px; padding: 5px; border: 0; border-radius: 10px; }
  .desktop-rail .rail-btn.is-active { background: rgba(34,211,238,.045); box-shadow: none; }
  .desktop-rail .rail-btn::before { left: 1px; top: 8px; bottom: 8px; width: 2px; }
  .desktop-rail .rail-icon { color: #8a91b0; }
  .desktop-rail .rail-btn.is-active .rail-icon { color: var(--ice); }
  .desktop-rail .rail-btn>span:last-child { position: absolute; left: 54px; width: max-content; max-width: 220px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #090616; font: 500 .8rem/1.4 'Inter',sans-serif; text-transform: none; letter-spacing: 0; opacity: 0; pointer-events: none; }
  .desktop-rail .rail-btn:hover>span:last-child,.desktop-rail .rail-btn:focus-visible>span:last-child { opacity: 1; }
  .topbar { justify-content: flex-start; gap: 72px; padding: 0 32px; background: linear-gradient(180deg,rgba(9,6,22,.94),rgba(9,6,22,.88)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(174,181,202,.08); }
  .topbar .brand { flex-shrink: 0; text-transform: none; letter-spacing: -.04em; font-size: 1.2rem; }
  .topbar .brand img { width: 24px; height: 28px; }
  .topbar .brand-text { display: flex; gap: 4px; }
  .topbar .brand-text b { letter-spacing: inherit; color: inherit; }
  .top-nav { flex: 1; gap: 32px; }
  .top-nav a { font: 400 .78rem/1.4 'Inter',sans-serif; text-transform: none; letter-spacing: 0; }
  .top-nav a.is-active { position: relative; color: var(--ice); }
  .top-nav a.is-active::after { content: ''; position: absolute; inset: auto 0 -10px; height: 2px; background: var(--ice); }
  .top-nav a[href='/diagnostico-digital/'] { margin-left: auto; }
  .top-nav .top-contact { min-height: 36px; padding-inline: 14px; font-size: .73rem; }
}
#inicio {
  --cosmic-line: rgba(103,232,249,.24);
  --cosmic-control: 14px;
}
html.has-immersive-universe #inicio.hero {
  min-height: 0;
  padding: var(--top) 48px 56px;
  overflow: clip;
}
html.has-immersive-universe #inicio .hero-grid {
  min-height: clamp(480px,37.5vw,550px);
  grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr);
  gap: 40px; position: relative; top: auto; align-items: start;
}
html.has-immersive-universe #inicio .hero-copy { padding: 32px 0 0; }
#inicio .hero-brandline {
  padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--muted); font: 600 clamp(.8rem,1.15vw,1rem)/1.5 'Inter',sans-serif;
  letter-spacing: 0; text-transform: none; backdrop-filter: none; margin-bottom: 16px;
}
#inicio .hero-brandline::before { display: none; }
#inicio h1 { font-family: 'Inter',sans-serif; font-weight: 800; text-transform: none; font-size: clamp(3.25rem,7.15vw,6.25rem); line-height: .74; letter-spacing: -.06em; }
#inicio h1>span+span { margin-top: 0; }
#inicio h1>span.gradient-text {
  margin-top: 0; padding-top: .06em; line-height: .92; width: fit-content; max-width: 100%;
  background-image: linear-gradient(110deg,#22d3ee 8%,#5ba5fa 48%,#a855f7 96%);
}
#inicio .hero-sub { margin-top: 16px; max-width: 465px; font-size: 1.08rem; line-height: 1.4; }
#inicio .hero-actions { margin-top: 20px; gap: 12px; }
#inicio .btn,#projetos .btn { border-radius: 14px; min-height: 48px; padding: 12px 20px; line-height: 1.3; }
#inicio .btn { padding-inline: 24px; font-size: .9rem; }
#inicio .btn-primary,#projetos .btn-primary {
  color: #03121d; background: #3bdcf3; box-shadow: 0 6px 28px rgba(34,211,238,.16);
}
#inicio .btn-primary:hover,#projetos .btn-primary:hover { background: #67e8f9; box-shadow: 0 10px 32px rgba(34,211,238,.23); }
#inicio .btn-ghost,#projetos .btn-ghost { border-color: rgba(174,181,202,.45); background: rgba(5,0,8,.6); }
#inicio .hero-proof { gap: 6px 12px; margin-top: 16px; }
#inicio .hero-proof span { padding: 0; border: 0; background: none; color: var(--muted); font-size: .72rem; font-weight: 500; }
#inicio .hero-proof span::before { width: 3px; height: 3px; background: var(--muted); box-shadow: none; }
#inicio .hero-proof span:first-child::before { display: none; }
#inicio .hero-selection { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
html.has-immersive-universe #inicio .hero-visual { min-height: clamp(480px,37.5vw,550px); }
@media (min-width:901px) { #inicio .hero-proof { width: max-content; max-width: 660px; } }
.cosmic-scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Put the luminous ribbon above the reading veil; it remains below native content. */
.cosmic-scene { z-index: 2; }
.earth-journey::before,.earth-journey__orbits { z-index: 1; }
html.has-immersive-universe .ot-proof-strip { margin-top: 0; }
.earth-journey { background: linear-gradient(90deg,#050008 0%,rgba(5,0,8,.85) 38%,rgba(5,0,8,.25) 72%),url('/assets/img/orbit/ot-cosmic-stardust-v1.webp') center/cover no-repeat; }
.earth-journey__globe>img { mask-image: none; filter: none; }
.earth-journey::before {
  /* Fixed layout box; only the painted background size and origin change.
     Reproduces the original globe aura without moving this pseudo-element. */
  content: ''; position: absolute; inset: 0;
  width: 100%; height: 100%; transform: none;
  background-image: radial-gradient(circle,transparent 58%,rgba(80,200,255,.08) 61%,rgba(115,230,255,.6) 64%,rgba(0,164,255,.25) 66%,transparent 71%);
  background-repeat: no-repeat;
  background-size: calc(var(--earth-size,540px) * 1.1) calc(var(--earth-size,540px) * 1.1);
  background-position: calc(var(--earth-left,78vw) - var(--earth-size,540px) * .55) calc(var(--earth-top,50vh) - var(--earth-size,540px) * .55);
  opacity: var(--earth-photo,1); pointer-events: none;
}
.earth-journey__orbits {
  position: absolute; left: var(--earth-left,78vw); top: var(--earth-top,50vh);
  width: calc(var(--earth-size,540px) * 1.24); height: calc(var(--earth-size,540px) * .42);
  border: 1px solid rgba(103,232,249,.3); border-radius: 50%;
  transform: translate(-50%,-50%) rotate(-24deg);
  opacity: calc(var(--earth-photo,1) * .8);
}
.earth-journey__orbits::after {
  content: ''; position: absolute; inset: -30% 7%; border: 1px solid rgba(139,92,246,.24);
  border-radius: 50%; transform: rotate(42deg);
}
/* The panel gives imagery room; the text remains stable during pointer depth. */
html.has-immersive-universe #projetos { padding: 0 32px 96px; }
#projetos .section-title { font-size: clamp(2rem,3.7vw,3.6rem); line-height: 1.08; margin-top: 0; }
#projetos .section-title .accent { background-image: linear-gradient(110deg,#8b5cf6,#a855f7); }
.mobile-header .mobile-audio-toggle { display: grid !important; flex-shrink: 0; min-width: 44px; min-height: 44px; }
.mobile-header .mobile-actions { gap: 8px; }
@media (min-width:901px) and (max-width:1240px) {
  .topbar { gap: 32px; padding-inline: 28px; }
  .top-nav { gap: 20px; }
  .top-nav a { font-size: .72rem; }
  html.has-immersive-universe #inicio.hero { padding-inline: 28px; }
  #inicio h1 { font-size: clamp(3.3rem,7vw,5.5rem); }
  #inicio .hero-actions { flex-direction: column; align-items: start; }
  #inicio .btn { padding-inline: 16px; font-size: .78rem; }
}
@media (min-width:901px) and (max-height:700px) {
  html.has-immersive-universe #inicio .hero-grid { min-height: 450px; }
  html.has-immersive-universe #inicio .hero-visual { min-height: 450px; }
  #inicio h1 { font-size: clamp(3.3rem,6.4vw,5.5rem); }
  html.has-immersive-universe #inicio .hero-copy { padding-top: 24px; }
  #inicio .hero-brandline { margin-bottom: 12px; }
  #inicio .hero-sub { margin-top: 16px; font-size: .94rem; }
  #inicio .hero-actions { margin-top: 16px; }
  #inicio .hero-selection { margin-top: 10px; }
}
@media (max-width:900px) {
  html.has-immersive-universe #inicio.hero { min-height: auto; padding: 28px 20px 48px; }
  html.has-immersive-universe #inicio .hero-grid { display: flex; flex-direction: column; gap: 0; min-height: 0; position: relative; }
  html.has-immersive-universe #inicio .hero-copy { width: 100%; padding: 0; }
  #inicio .hero-brandline { font-size: .78rem; margin-bottom: 16px; }
  #inicio h1 { font-size: clamp(3.2rem,12.8vw,6rem); line-height: .94; }
  #inicio .hero-sub { font-size: .96rem; max-width: 580px; }
  #inicio .hero-actions { display: grid; grid-template-columns: 1fr; }
  #inicio .hero-actions .btn { width: 100%; }
  #inicio .hero-proof { gap: 8px 12px; }
  #inicio .hero-proof span { font-size: .7rem; }
  html.has-immersive-universe #inicio .hero-visual { position: relative; inset: auto; width: 100%; min-height: 310px; height: clamp(310px,65vw,460px); margin-top: 8px; display: block; flex-shrink: 0; }
  .earth-journey { opacity: var(--earth-opacity,1); }
  .earth-journey::after { background: none; }
  .earth-journey__orbits { width: calc(var(--earth-size,300px) * 1.12); border-color: rgba(103,232,249,.2); }
  html.has-immersive-universe #projetos { padding: 56px 20px 72px; }
  #projetos .section-title { font-size: clamp(2rem,8.5vw,3.25rem); }
}
@media (max-width:380px) {
  .mobile-header .brand { gap: 6px; font-size: .72rem; }
  .mobile-header .brand img { width: 28px; }
  .mobile-header .mobile-cta { padding-inline: 8px; font-size: .64rem; }
}
@media (prefers-reduced-motion:reduce) {
  html.has-immersive-universe #inicio.hero { min-height: auto; }
  html.has-immersive-universe #inicio .hero-grid { position: relative; }
  #inicio .btn,#projetos .btn{ transition: none; }
  .earth-journey__orbits { display: none; }
}

/* Cross-device contracts: safe reading zones and targeted inter-section rhythm. */
:root { --ot-header-height: var(--top); --ot-nav-height: 0px; }
html { scroll-padding-top: var(--ot-header-height); scroll-padding-bottom: calc(var(--ot-nav-height) + 16px); }
body[data-page="home"] .section,body[data-page="home"] #solutionStage { scroll-margin-top: 16px; }
body[data-page="home"] :is(a,button):focus-visible { scroll-margin-block: calc(var(--ot-header-height) + 16px) calc(var(--ot-nav-height) + 16px); }
@media (min-width:901px) {
  html.has-immersive-universe #projetos { padding-bottom: 64px; }
  html.has-immersive-universe #solucoes { padding-top: 56px; padding-bottom: 64px; }
  html.has-immersive-universe .delivery-section { padding-block: 54px; }
  html.has-immersive-universe #metodo,html.has-immersive-universe #sobre,html.has-immersive-universe #faq { padding-block: 64px; }
}
@media (max-width:900px) {
  :root { --ot-safe-top: env(safe-area-inset-top,0px); --ot-safe-bottom: env(safe-area-inset-bottom,0px); --ot-nav-height: calc(66px + var(--ot-safe-bottom)); --ot-carousel-gap: 12px; }
  body[data-page="home"] { padding-bottom: 0; }
  body[data-page="home"] .mobile-header { height: calc(var(--top) + var(--ot-safe-top)); padding-top: var(--ot-safe-top); transition: height .22s ease; }
  body[data-page="home"] .mobile-header.is-compact { height: calc(60px + var(--ot-safe-top)); }
  body[data-page="home"] .mobile-header .brand img { transition: width .22s ease,height .22s ease; }
  body[data-page="home"] .mobile-header.is-compact .brand img { width: 28px; height: 32px; }
  body[data-page="home"] .mobile-header .brand { min-height: 44px; }
  body[data-page="home"] .mobile-header .mobile-cta { min-height: 44px; }
  body[data-page="home"] .mobile-audio-toggle { flex-basis: 44px; width: 44px; height: 44px; }
  body[data-page="home"] .mobile-nav { height: var(--ot-nav-height); min-height: var(--ot-nav-height); padding: 7px 8px calc(7px + var(--ot-safe-bottom)); }
  html body[data-page="home"] .footer { padding-bottom: calc(var(--ot-nav-height) + 24px); }
  html.has-immersive-universe #projetos { padding-bottom: 44px; }
  html.has-immersive-universe #solucoes { padding-top: 34px; padding-bottom: 44px; }
  html.has-immersive-universe .delivery-section { padding-block: 44px; }
  html.has-immersive-universe #metodo,html.has-immersive-universe #sobre,html.has-immersive-universe #faq { padding-block: 44px; }
  /* One full card plus 32px of the next. Category labels remain above their rail. */body[data-page="home"] .choice-tabs,body[data-page="home"] .products-rail,body[data-page="home"] .ot-proof-strip__cases{
    gap: var(--ot-carousel-gap); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; overscroll-behavior-x: contain; padding: 4px 4px 12px; scrollbar-width: none;
  }
  body[data-page="home"] .choice-tab,body[data-page="home"] .product,body[data-page="home"] .ot-proof-strip__cases>a { flex: 0 0 calc(100% - 44px); scroll-snap-align: start; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] .mobile-header,body[data-page="home"] .mobile-header .brand img { transition: none; transition-duration: 0s !important; }
}

@media (min-width:901px) and (max-height:800px) {
  html.has-immersive-universe #metodo,html.has-immersive-universe #sobre,html.has-immersive-universe #faq { padding-block: 48px; }
}
@media (min-width:901px) and (max-height:680px) {
  html.has-immersive-universe #metodo,html.has-immersive-universe #sobre,html.has-immersive-universe #faq { padding-block: 40px; }
}
@media (max-width:900px) {
  html.has-immersive-universe #contato { padding-top: 44px; }
  #metodo .ot-method-build { min-height: 0; }
  #metodo .ot-method-build svg { min-height: 0; max-height: 100%; }
}
@media (max-width:900px) {
  body[data-page="home"] .page { padding-top: calc(var(--top) + var(--ot-safe-top)); }
}
#projetos .section-title .accent { -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fit the complete headline to its reading column, including the accent and period. */
#inicio .hero-copy { min-width: 0; container-type: inline-size; }
#inicio h1 { max-width: 100%; font-size: clamp(2.5rem,6.3vw,6.25rem); line-height: .94; }
#inicio h1>span { overflow: visible; }
#inicio h1>span.gradient-text { max-width: none; padding-block: .12em .1em; line-height: 1.1; }
@supports (font-size: 1cqi) {
  #inicio h1 { font-size: clamp(2.5rem,18cqi,6.25rem); }
}

/* Five visual entry points share the case data; no automatic carousel. */
body[data-page="home"] .ot-proof-strip { padding: 0 32px 48px; }
body[data-page="home"] .ot-proof-strip__inner { display: block; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body[data-page="home"] .ot-proof-strip__lead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding: 0 0 20px; }
body[data-page="home"] .ot-proof-strip__lead strong { max-width: 480px; font-size: .96rem; color: var(--muted); }
body[data-page="home"] .ot-proof-strip__cases { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
body[data-page="home"] .ot-proof-strip__cases>a { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(174,181,202,.18); border-radius: 14px; background: rgba(9,10,24,.8); transition: border-color .12s ease-out,background-color .12s ease-out; }
body[data-page="home"] .ot-proof-strip__cases>a:hover,body[data-page="home"] .ot-proof-strip__cases>a:focus-visible { transform: none; border-color: rgba(103,232,249,.5); background: rgba(15,24,37,.92); }
body[data-page="home"] .ot-proof-strip__cases>a:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.ot-proof-case__media { overflow: hidden; aspect-ratio: 16/11; display: grid; place-items: center; background: #090616; }
.ot-proof-case__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease-out; }
body[data-page="home"] .ot-proof-strip__cases>a[data-project="kl"] img { object-fit: cover; }
.ot-proof-case__copy { display: grid; gap: 6px; padding: 14px; }
body[data-page="home"] .ot-proof-strip__cases .ot-proof-case__status { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--ice); font: 500 .58rem/1.4 'Share Tech Mono',monospace; text-transform: uppercase; letter-spacing: .04em; }
body[data-page="home"] .ot-proof-strip__cases .ot-proof-case__rating { color: #e7bf80; font-size: .65rem; letter-spacing: .04em; }
body[data-page="home"] .ot-proof-strip__cases b { font-size: .85rem; line-height: 1.3; }
body[data-page="home"] .ot-proof-strip__cases .ot-proof-case__segment { font-size: .68rem; }
body[data-page="home"] .ot-proof-strip__cases .ot-proof-case__link { color: var(--ice); margin-top: 6px; font-size: .67rem; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .ot-proof-strip__cases>a:hover .ot-proof-case__media img { transform: scale(1.025); }
}
@media (min-width:901px) and (max-width:1240px) {
  body[data-page="home"] .ot-proof-strip__cases { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; }
  body[data-page="home"] .ot-proof-strip__cases>a { flex: 0 0 240px; scroll-snap-align: start; }
}
@media (max-width:900px) {
  #inicio h1 { font-size: clamp(2.5rem,12.6vw,6rem); }
  @supports (font-size: 1cqi) { #inicio h1 { font-size: clamp(2.5rem,18cqi,6rem); } }
  body[data-page="home"] .ot-proof-strip { padding: 0 20px 44px; }
  body[data-page="home"] .ot-proof-strip__lead { display: grid; gap: 9px; padding-bottom: 16px; }
  body[data-page="home"] .ot-proof-strip__cases { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; padding: 4px 4px 12px; }
  body[data-page="home"] .ot-proof-strip__cases>a { flex: 0 0 calc(100% - 44px); scroll-snap-align: start; }
}
@media (prefers-reduced-motion:reduce) {
  .ot-proof-case__media img,body[data-page="home"] .ot-proof-strip__cases>a { transition: none; }
}
