/* Photographic hero and scroll-linked depth */
.hero {
  --scene-depth: 0px;
  --scene-rise: 0px;
  background: #15281d;
}
.hero-track {
  overflow: hidden;
  background: #15281d;
}
.hero-track::before, .hero-track::after { content: none; }
.hero-track .hero-plate {
  position: absolute;
  width: 100%;
  height: 114%;
  top: -7%;
  object-fit: cover;
  object-position: 62% 51%;
  transform: translate3d(0,var(--scene-depth),0) scale(1.025);
}
.hero-track .hero-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg,#15281d 0%,transparent 25%),
    linear-gradient(90deg,#15281d 0%,#15281dee 19%,#15281dab 43%,#15281d35 72%,#15281d60 100%);
}
.hero-track span {
  inset: -20% -25%;
  mask-image: none;
  background: linear-gradient(116deg,transparent 39%,#74c3ff11 48%,#c0efff36 50%,transparent 55%);
}
.hero.ready .hero-track span { animation: cinematic-sweep 3s var(--curve) both; }
@keyframes cinematic-sweep {
  from { transform: translateX(-24%); opacity: 0; }
  23% { opacity: .8; }
  to { transform: translateX(32%); opacity: 0; }
}
.hero-grid { min-height: clamp(620px,calc(91svh - 64px),830px); }
.hero-copy { transform: translate3d(0,var(--scene-rise),0); }
.hero h1 { text-wrap: balance; }
.hero-portrait::before {
  inset: 8% -8% 2%;
  background: radial-gradient(ellipse at 55% 44%,#6cc3ff29,transparent 63%);
}
.hero-portrait img {
  transform: translate3d(0,var(--scene-depth),0);
  filter: drop-shadow(0 18px 36px #0207119e);
}
.hero-portrait figcaption {
  background: #15281ddb;
  backdrop-filter: blur(12px);
}
@media (prefers-reduced-motion:no-preference) {
  .hero.ready .hero-track .hero-plate { animation: plate-open 1.35s var(--curve) both; }
  .hero.ready .hero-copy > * { animation: hero-open .88s var(--curve) both; }
  .hero.ready .hero-copy > h1 { animation-delay: .09s; }
  .hero.ready .hero-copy > h1 + p { animation-delay: .16s; }
  .hero.ready .hero-copy > .actions { animation-delay: .23s; }
  .hero.ready .hero-copy > .hero-platforms { animation-delay: .3s; }
  .hero.ready .hero-portrait { animation: portrait-open 1.03s .09s var(--curve) both; }
}
@keyframes plate-open { from { opacity: .18; } to { opacity: 1; } }
@keyframes hero-open {
  from { opacity: 0; transform: translateY(23px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes portrait-open {
  from { opacity: 0; transform: translate3d(16px,27px,0) scale(1.025); }
  to { opacity: 1; transform: none; }
}

/* Room for the phone, with light concentrated around the device */
.maya {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 73% 48%,#40664d29,transparent 56%),var(--surface);
}
.maya::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(420px,55vw,780px);
  aspect-ratio: 1;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-23deg) scaleY(.67);
  border: 1px solid color-mix(in srgb,var(--accent) 22%,transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 25px color-mix(in srgb,var(--accent) 5%,transparent),
              0 0 0 67px color-mix(in srgb,var(--accent) 4%,transparent),
              0 0 58px color-mix(in srgb,var(--accent) 11%,transparent);
  mask-image: linear-gradient(105deg,transparent 8%,#000 63%,transparent);
  pointer-events: none;
}
[data-theme="light"] .maya { background: radial-gradient(ellipse at 73% 48%,#99ac9436,transparent 58%),var(--surface); }

@property --scene-color { syntax: "<color>"; inherits: true; initial-value: #536956; }
/* Segment gallery: each selection gets its own grade and photograph */
.segment-options:not([hidden]) {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px,1fr);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 4px 4px 10px;
  margin: -4px -4px 10px;
}
.segment-options button {
  scroll-snap-align: start;
  min-height: 54px;
  padding: 9px;
  transition: background .3s,border-color .3s,color .3s;
}
.segment-panel {
  --scene-color: #536956;
  isolation: isolate;
  position: relative;
  min-height: clamp(315px,36vw,510px);
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  border-radius: 18px;
  background: var(--surface);
  transition: --scene-color .55s ease;
}
.segment-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 55%,var(--scene-color),transparent 70%);
  opacity: .64;
  transition: background-color .5s, opacity .5s;
}
.segment-panel[data-segment="estetica"] { --scene-color: #2a4160; }
.segment-panel[data-segment="oficinas"] { --scene-color: #213e49; }
.segment-panel[data-segment="funilaria"] { --scene-color: #453846; }
.segment-panel[data-segment="motos"] { --scene-color: #503139; }
.segment-panel[data-segment="pneus"] { --scene-color: #353f52; }
.segment-panel[data-segment="pecas"] { --scene-color: #374344; }
.segment-panel[data-segment="outros"] { --scene-color: #303956; }
[data-theme="light"] .segment-panel::before { opacity: .10; }
.segment-visual {
  display: block;
  min-height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  isolation: isolate;
}
.segment-visual img {
  inset: 0;
  object-position: center;
}
.segment-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent 63%,#06121d23);
  pointer-events: none;
}
.segment-visual figcaption {
  z-index: 2;
  inset: auto auto 14px 14px;
  letter-spacing: .01em;
}
.segment-copy { padding: clamp(21px,4.4vw,65px); }
.segment-copy h3 {
  font-size: clamp(1.55rem,3.2vw,3.05rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.segment-copy > p:not(.eyebrow) { line-height: 1.65; }
.segment-copy .text-link { width: fit-content; }

/* Chapter accents follow a single, quiet rhythm down the page. */
.section-head { position: relative; }
.cinema-frame { position: relative; }
.cinema-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--accent),transparent);
  opacity: .25;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-grid { min-height: 0; }
  .hero-track .hero-plate { height: 72%; top: 28%; object-position: 67% 65%; }
  .hero-track .hero-grade {
    background: linear-gradient(180deg,#15281d 7%,#15281df5 26%,#15281d81 65%,#15281d32 85%,#15281d 100%);
  }
  .hero h1 { text-wrap: initial; }
  .hero-portrait { max-height: 350px; }
  .hero-portrait img { height: 350px; }
  .maya::before { right: 50%; top: 70%; transform: translate(50%,-50%) rotate(-23deg) scaleY(.67); }
  .segment-options:not([hidden]) { grid-auto-columns: minmax(118px,33%); }
  .segment-panel { grid-template-columns: 1fr; min-height: 0; border-radius: 14px; }
  .segment-visual { min-height: 0; aspect-ratio: 1.65; }
  .segment-copy { gap: 10px; padding: 22px; }
}

.segment-options button {
  display: grid;
  grid-template-rows: 48px 1fr;
  align-items: center;
  min-height: 92px;
  padding: 4px;
  background: var(--surface);
  text-align: left;
}
.segment-options button img {
  width: 100%;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  opacity: .72;
  transition: opacity .3s;
}
.segment-options button span {
  display: block;
  padding: 5px 4px;
  font-size: .73rem;
}
.segment-options button[aria-pressed="true"] {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--accent) 38%,transparent);
}
.segment-options button:hover img,
.segment-options button:focus-visible img,
.segment-options button[aria-pressed="true"] img { opacity: 1; }

.brand-intro[open] .brand-intro-lights::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(113deg,transparent 44%,#3e90d120 48%,#a1e3ff63 51%,transparent 55%);
  mask-image: radial-gradient(ellipse at center,#000 9%,transparent 62%);
  animation: cinematic-sweep 1.63s var(--curve) both;
}

.journey-film{background:#15281d;color:#fff}
.journey-screen{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:clip}
.journey-shot{position:relative;isolation:isolate;display:flex;align-items:end;min-height:clamp(270px,32vw,460px);padding:clamp(20px,3vw,52px);overflow:hidden;color:white;background:#101f31}
.journey-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.journey-shot::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#15281d08,#15281d48 32%,#071421ee 96%)}
.journey-shot span{display:grid;gap:10px;max-width:30ch}
.journey-shot small{color:#cdf1ff;font-size:.76rem;font-weight:650}
.journey-shot strong{font-size:clamp(1.5rem,2.8vw,3.15rem);letter-spacing:-.055em;line-height:1.04;text-wrap:balance}
.journey-shot u{font-size:.85rem;text-underline-offset:5px}
.journey-shot:focus-visible{outline:3px solid #8ae8ff;outline-offset:-5px}
@media(max-width:760px){.journey-screen{grid-template-columns:1fr}.journey-shot{min-height:225px}.journey-shot img{object-position:50% 43%}.journey-shot span{max-width:27ch}}
@media(prefers-reduced-motion:no-preference){
.brand-intro[open][data-leaving]{opacity:1;animation:open-shutter .34s cubic-bezier(.7,0,.3,1) both}
@keyframes open-shutter{to{clip-path:inset(0 0 100% 0)}}
.hero-portrait img{transform:translate3d(0,calc(var(--scene-depth)*.4),0)}
@supports(animation-timeline:view()){
.journey-shot img,.segment-visual #segment-image,.about-portrait img{animation:lens-travel linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
@keyframes lens-travel{from{scale:1.11;translate:0 -2%}to{scale:1.045;translate:0 1.6%}}
.section-head,.proof-grid,.maya-copy,.about-grid>div,.contact-intro{animation:chapter-passage linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
@keyframes chapter-passage{0%{opacity:.58;translate:0 14px}20%,78%{opacity:1;translate:0 0}100%{opacity:.65;translate:0 -12px}}
.journey-shot span{animation:caption-travel linear both;animation-timeline:view();animation-range:entry 0% cover 58%}
@keyframes caption-travel{from{opacity:.5;translate:0 20px}to{opacity:1;translate:0 0}}
}
@media(hover:hover){.journey-shot img{transition:filter .55s}.journey-shot:hover img,.journey-shot:focus-visible img{filter:brightness(1.14)}}
}
@media(min-width:900px) and (hover:hover) and (prefers-reduced-motion:no-preference){
  .journey-screen{grid-template-columns:1fr 1fr 1fr;transition:grid-template-columns .72s cubic-bezier(.22,.72,.22,1)}
  .journey-screen:has(.journey-shot:nth-child(1):is(:hover,:focus-visible)){grid-template-columns:1.3fr .85fr .85fr}
  .journey-screen:has(.journey-shot:nth-child(2):is(:hover,:focus-visible)){grid-template-columns:.85fr 1.3fr .85fr}
  .journey-screen:has(.journey-shot:nth-child(3):is(:hover,:focus-visible)){grid-template-columns:.85fr .85fr 1.3fr}
}
@media(max-width:760px) and (min-height:600px) and (prefers-reduced-motion:no-preference){
  .journey-screen{display:block}
  .journey-shot{position:sticky;top:64px;height:clamp(245px,43svh,390px);box-shadow:0 -12px 32px #06112038}
  .journey-shot:focus-visible{z-index:1}
}

/* Keep the viewport anchored to the visitor's gesture during live chat updates. */
html { overflow-anchor:none; scroll-behavior:auto; }
.messages { contain:layout paint; }
@media(max-width:760px){
  .journey-shot {position:relative;top:auto}
  #maya .demo-status strong {min-height:4.5em}
}
.site-main {isolation:isolate;background-image:repeating-linear-gradient(132deg,transparent 0 3px,color-mix(in srgb,var(--ink) 2%,transparent) 3px 4px)}
.cinema-frame::after {background:linear-gradient(100deg,transparent 8%,var(--accent) 49%,transparent 85%);background-size:260% 100%}
@media(prefers-reduced-motion:no-preference){
  .cinema-frame::after {animation:panel-light 13s ease-in-out infinite}
  .about.cinema-frame::after {animation-delay:-4s}
  .contact.cinema-frame::after {animation-delay:-8s}
  @keyframes panel-light{0%,70%,100%{background-position:115% 50%;opacity:.13}83%{opacity:.8}96%{background-position:-12% 50%;opacity:.17}}
  .hero.ready .accent-heading,h2 .accent-heading,.service-package .accent-heading,.stat .accent-heading,.method-proof-stat .accent-heading{animation-duration:5.4s;background-size:270% 100%}
  .journey-shot img {animation:none}
}

/* Light on the edges of the studio walls; the central reading area stays quiet. */
.maya.cinema-frame::after,.about.cinema-frame::after,.contact.cinema-frame::after{
  inset:0;z-index:-1;height:auto;
  background:radial-gradient(ellipse 30% 95% at 0% 65%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 80%);
  opacity:.26;
}
.about.cinema-frame,.contact.cinema-frame{position:relative;isolation:isolate;overflow:clip}
@media(prefers-reduced-motion:no-preference){
  .maya.cinema-frame::after,.about.cinema-frame::after,.contact.cinema-frame::after{animation:studio-reflection 16s ease-in-out infinite}
  .about.cinema-frame::after{animation-delay:-6s}
  .contact.cinema-frame::after{animation-delay:-11s}
  @keyframes studio-reflection{0%,62%,100%{opacity:.12;transform:translateX(-8%)}75%{opacity:.58}93%{opacity:.12;transform:translateX(52%)}}
}

/* A fixed-height lens inside a naturally scrolling sequence. */
.journey-film.film-active { position:relative; height:210svh; }
.film-active .journey-screen { position:sticky; top:70px; display:block; height:calc(84svh - 70px); min-height:385px; }
.film-active .journey-shot { position:absolute; inset:0; min-height:0; padding:clamp(40px,7vw,125px); align-items:center; }
.film-active .journey-shot::before { background:linear-gradient(90deg,#06101bf7 2%,#071320cb 30%,#15281d59 62%,transparent),linear-gradient(0deg,#061320a1,transparent 34%); }
.film-active .journey-shot img { object-position:50% 54%; }
.film-active .journey-shot span { max-width:37rem; gap:18px; animation:none; }
.film-active .journey-shot strong { font-size:clamp(3rem,5.5vw,6rem); line-height:.98; }
.film-active .journey-shot small { font-size:.88rem; }
.film-navigation { position:absolute; bottom:24px; left:7vw; right:7vw; display:flex; gap:8px; z-index:4; }
.film-navigation button { min-height:44px; position:relative; color:#d2e3ef; border:0; background:#071321db; padding:8px 14px; cursor:pointer; border-radius:3px; font:inherit; font-size:.82rem; }
.film-navigation button[aria-current="step"] { color:white; box-shadow:inset 0 -3px #38d6ff; }
@media(max-width:759px) {
  .journey-shot { min-height:clamp(260px,48svh,420px); }
  .journey-shot:first-child img { object-position:52% 43%; }
  .journey-shot strong { max-width:16ch; font-size:clamp(1.85rem,8vw,3rem); }
}
@media(prefers-reduced-motion:no-preference){
  .hero.ready h1 { animation:headline-cut .95s cubic-bezier(.16,1,.3,1) both; }
  @keyframes headline-cut { from {clip-path:inset(0 0 95% 0);translate:0 16px} to {clip-path:inset(0);translate:0 0} }
}

/* Studio lighting stays behind the demonstration in either theme. */
#maya .phone-scene { animation:none; perspective:1200px; }
#maya .phone { transform-origin:center center; }
#maya::before { opacity:.65; }