:root {
  /* cores do logótipo Família Vidros */
  --blue: #1b6f9c;
  --blue-dark: #0f4f73;
  --blue-soft: #e8f2f8;
  --yellow: #f4a94e;
  --yellow-soft: #fdf1e1;
  --ink: #0d1114;          /* detalhes a preto */
  --white: #ffffff;
  --muted: #5b6670;
  --line: rgba(13, 17, 20, .12);
  --radius: 22px;
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px 34px;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 10px 34px;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(13,17,20,.05);
}
.nav-pills { display: flex; gap: 8px; }
.pill {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}
.pill:hover { border-color: var(--ink); transform: translateY(-2px); }
.pill.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; justify-self: center; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(27,111,156,.35); transition: transform .6s; }
.brand:hover img { transform: rotate(360deg); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 14px; font-stretch: 125%; letter-spacing: .04em; color: var(--blue); }
.brand i { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.nav-right { display: flex; gap: 28px; align-items: center; justify-self: end; }
.nav-link, .nav-cta { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta svg { width: 34px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s; }
.nav-cta:hover svg { transform: translateX(6px); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; position: relative; background: var(--white); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 23px; }
.nav.open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; background: var(--white); }
.hero-bg { position: absolute; inset: -6%; will-change: transform; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 46vw; height: 46vw; background: var(--blue); opacity: .22; top: 10%; right: -6%; animation: float1 16s ease-in-out infinite; }
.b2 { width: 34vw; height: 34vw; background: var(--yellow); opacity: .35; bottom: -8%; left: 18%; animation: float2 19s ease-in-out infinite; }
.b3 { width: 22vw; height: 22vw; background: #8fc6e6; opacity: .4; top: 6%; left: 4%; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(-6vw, 5vh) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(7vw, -6vh) scale(.92); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
  opacity: .5;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.hero-content { position: absolute; inset: 0; z-index: 4; pointer-events: none; padding: 0 5vw; }
.hero-content a, .hero-content .glass-card { pointer-events: auto; }
.hero-meta {
  position: absolute; top: 14vh; left: 7vw; right: 34vw;
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
}
.hero-meta-right b { color: var(--ink); font-weight: 600; }
.hero-title { position: absolute; top: 21vh; left: 0; right: 0; text-align: center; line-height: .8; }
.hero-title .big {
  display: inline-block;
  font-size: clamp(64px, 17vw, 300px);
  font-weight: 600; font-stretch: 112%;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero-title .big .ch { display: inline-block; animation: chIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(60%) rotateX(-70deg); } }
.hero-title .script {
  position: absolute; right: 8vw; top: 76%;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 10vw, 170px);
  color: var(--blue); letter-spacing: -.01em;
  animation: scriptIn 1.4s .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes scriptIn { from { opacity: 0; transform: translateX(60px); filter: blur(10px); } }
.hero-values { position: absolute; top: 23vh; right: 3vw; list-style: none; text-align: right; font-size: 13px; line-height: 1.8; font-weight: 500; }
.hero-values li { animation: fadeUp .8s both; }
.hero-values li:nth-child(1) { animation-delay: .9s; } .hero-values li:nth-child(2) { animation-delay: 1.05s; } .hero-values li:nth-child(3) { animation-delay: 1.2s; }
.hero-card { position: absolute; left: 6vw; bottom: 16vh; animation: fadeUp 1s 1.1s both; }
.hero-card dl { display: grid; gap: 3px; font-size: 13px; }
.hero-card dl div { display: flex; gap: 6px; }
.hero-card dt { color: var(--muted); }
.hero-card dd { font-weight: 600; }
.hero-bottom {
  position: absolute; bottom: 6vh; right: 4vw;
  display: grid; grid-template-columns: repeat(2, 250px); gap: 44px;
  font-size: 13px; color: var(--muted);
  animation: fadeUp 1s 1.3s both;
}
.hero-bottom p { border-top: 2px solid var(--ink); padding-top: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.scroll-hint {
  position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--ink); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--blue); border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- VIDRO (cartões) ---------- */
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  border: 1px solid rgba(13,17,20,.1);
  border-radius: var(--radius);
  padding: 22px 26px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 60px rgba(15,79,115,.12), inset 0 1px 0 #fff;
}

/* ---------- MARQUEE (faixa preta) ---------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--ink); color: var(--white); transform: rotate(-1.2deg) scale(1.02); margin: 10px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-size: 34px; font-stretch: 120%; font-weight: 500; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-stretch: 100%; color: #8fc6e6; }
.marquee i { color: var(--yellow); font-style: normal; font-size: 26px; align-self: center; display: inline-block; animation: spinStar 6s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spinStar { to { transform: rotate(360deg); } }

/* ---------- SECÇÕES ---------- */
.section { padding: 130px 5vw; position: relative; overflow: clip; }
.section-dark { background: var(--blue-soft); }
.section-head { max-width: 760px; margin-bottom: 64px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 700;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.section-head h2, .quote-text h2 {
  font-size: clamp(38px, 5.4vw, 78px); line-height: 1; font-weight: 600; font-stretch: 108%;
  letter-spacing: -.025em; margin: 16px 0 20px;
}
.section-head p { color: var(--muted); font-size: 16px; max-width: 540px; }

/* formas decorativas a flutuar */
.floater { position: absolute; pointer-events: none; z-index: 0; will-change: translate; }
.floater.c { border-radius: 50%; border: 2px solid var(--blue); opacity: .25; }
.floater.s { background: var(--yellow); opacity: .5; border-radius: 6px; }
.floater.g { background: linear-gradient(135deg, rgba(27,111,156,.18), rgba(255,255,255,.2)); border: 1px solid rgba(27,111,156,.25); border-radius: 14px; backdrop-filter: blur(4px); }

.reveal { opacity: 0; transform: translateY(50px) scale(.98); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- CARTÕES DE SERVIÇO ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; position: relative; z-index: 1; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; color: var(--white);
  background: var(--ink);
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px rgba(13,17,20,.12);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s, opacity 1s;
}
.card:hover { box-shadow: 0 40px 80px rgba(15,79,115,.3); }
.card-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform .8s, filter .5s;
}
.card:hover .card-img { transform: scale(1.16); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,17,20,.92) 8%, rgba(13,17,20,.2) 55%, transparent 75%); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.3), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; transform: translateZ(50px); }
.card-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 13px;
}
.card h3 { font-size: 26px; font-weight: 600; font-stretch: 110%; margin: 14px 0 8px; }
.card p { font-size: 14px; color: rgba(255,255,255,.82); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s, opacity .5s; }
.card:hover p, .card:focus-within p { max-height: 120px; opacity: 1; }
@media (hover: none) { .card p { max-height: none; opacity: 1; } }

/* ---------- TODOS OS TRABALHOS ---------- */
.all-work { padding-top: 40px; }
.work-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.work-grid li {
  position: relative; padding: 26px 24px 24px; border-radius: 18px; background: var(--white);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, background .4s, color .4s, opacity 1s;
}
.work-grid li::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--yellow); opacity: .18; transition: transform .5s, opacity .5s;
}
.work-grid li:hover { transform: translateY(-8px) !important; background: var(--blue); color: var(--white); box-shadow: 0 26px 50px rgba(27,111,156,.3); }
.work-grid li:hover::after { transform: scale(2.6); opacity: .25; }
.work-grid li:hover p { color: rgba(255,255,255,.85); }
.work-grid li:hover .wi { background: var(--yellow); color: var(--ink); }
.wi {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 13px; transition: background .3s, color .3s;
}
.work-grid h3 { font-size: 18px; font-weight: 600; font-stretch: 108%; margin: 16px 0 6px; line-height: 1.2; }
.work-grid p { font-size: 13.5px; color: var(--muted); transition: color .3s; }
.work-cta {
  margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius); background: var(--ink); color: var(--white); position: relative; z-index: 1;
}
.work-cta b { font-size: 24px; font-stretch: 110%; }
.work-cta p { color: rgba(255,255,255,.7); margin-top: 4px; }
.work-cta .btn { margin-top: 0; border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- TIPOS DE VIDRO ---------- */
.gt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 1; }
.gt {
  position: relative; padding: 22px 22px 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, opacity 1s;
}
.gt:hover { transform: translateY(-6px) !important; box-shadow: 0 24px 48px rgba(27,111,156,.18); }
.gt h3 { font-size: 18px; font-weight: 600; font-stretch: 108%; line-height: 1.2; }
.gt p { font-size: 13.5px; color: var(--muted); flex: 1; }
.gt-sample {
  height: 130px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2)); border: 1px solid rgba(0,0,0,.06);
}
.gt-sample::after { /* reflexo que passa pelo vidro */
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg);
  transition: left .9s cubic-bezier(.2,.7,.2,1);
}
.gt:hover .gt-sample::after { left: 130%; }
.gt-sample.frost { background: linear-gradient(135deg, var(--g1), var(--g2)); filter: saturate(.6); box-shadow: inset 0 0 40px rgba(255,255,255,.9); }
.gt-sample.lam::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: rgba(255,255,255,.7); }
.gt-sample.clear { background: linear-gradient(135deg, #ffffff, #eef6fa); }
.gt-sample.mirror { background: linear-gradient(160deg, #f4f6f8 0%, #9aa6ae 45%, #e9edf0 55%, #6c7a85 100%); }
.gt-sample.ar { background: radial-gradient(circle at 30% 40%, #fff 0, var(--g1) 40%, var(--g2) 100%); }
.gt-btn {
  align-self: flex-start; margin-top: 6px; font-weight: 700; font-size: 13px; color: var(--blue-dark);
  border-bottom: 2px solid var(--yellow); padding: 2px 0; transition: color .25s;
}
.gt-btn:hover { color: var(--ink); }
@media (max-width: 1100px) { .gt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .gt-grid { grid-template-columns: 1fr; } }

/* ---------- SERVIÇOS REALIZADOS (ÁLBUNS) ---------- */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.album { border-radius: 22px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, opacity 1s; }
.album:hover { transform: translateY(-6px) !important; box-shadow: 0 26px 50px rgba(27,111,156,.18); }
.album-view { position: relative; aspect-ratio: 4 / 3.4; background: var(--blue-soft); }
.album-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.album-track::-webkit-scrollbar { display: none; }
.album-track.drag { cursor: grabbing; scroll-snap-type: none; }
.album-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; user-select: none; }
.album-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 26px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; transition: opacity .3s, background .25s, color .25s;
}
.album-nav.prev { left: 12px; } .album-nav.next { right: 12px; }
.album:hover .album-nav { opacity: 1; }
.album-nav:hover { background: var(--blue); color: var(--white); }
.album-badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--yellow); color: var(--ink); pointer-events: none; }
.album-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(13,17,20,.65); color: #fff; }
.album-dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 0; }
.album-dots i { width: 7px; height: 7px; border-radius: 99px; background: #cfd8de; cursor: pointer; transition: width .3s, background .3s; }
.album-dots i.on { width: 22px; background: var(--yellow); }
.album-body { padding: 10px 22px 22px; }
.album-body h3 { font-size: 19px; font-weight: 600; font-stretch: 108%; }
.album-body p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@media (hover: none) { .album-nav { opacity: 1; } }
@media (max-width: 1100px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .albums { grid-template-columns: 1fr; } }

/* ---------- INTERRUPTOR DA PERSIANA ---------- */
.wall-switch {
  position: absolute; left: 18px; top: 18px; z-index: 3; width: 92px; padding: 12px 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(160deg, #ffffff, #eceff1); border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.06);
}
.wall-switch[hidden] { display: none; }
.ws-label { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wall-switch button {
  width: 64px; height: 46px; border-radius: 10px; font-size: 18px; color: var(--ink);
  background: linear-gradient(180deg, #fafbfc, #e3e7ea); border: 1px solid #d3d8dc;
  box-shadow: 0 3px 0 #c9cfd4; transition: transform .1s, box-shadow .1s, background .2s, color .2s;
}
.wall-switch button[data-ps=stop] { height: 30px; font-size: 12px; }
.wall-switch button:active { transform: translateY(3px); box-shadow: 0 0 0 #c9cfd4; }
.wall-switch button.on { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 3px 0 var(--blue-dark), 0 0 18px rgba(27,111,156,.5); }
.ws-led { width: 8px; height: 8px; border-radius: 50%; background: #c5cbd0; transition: background .2s, box-shadow .2s; }
.wall-switch.moving .ws-led { background: #34d07a; box-shadow: 0 0 10px #34d07a; }

/* ---------- CARROSSEL 3D ---------- */
.carousel-stage { height: 520px; perspective: 1600px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; position: relative; z-index: 1; }
.carousel-stage.dragging { cursor: grabbing; }
.carousel { position: relative; width: 300px; height: 420px; transform-style: preserve-3d; }
.carousel figure {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 30px 60px rgba(15,79,115,.25);
  backface-visibility: hidden;
  -webkit-box-reflect: below 12px linear-gradient(transparent 70%, rgba(255,255,255,.35));
}
.carousel img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel figcaption {
  position: absolute; left: 14px; bottom: 14px; font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; color: var(--white);
  background: rgba(13,17,20,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.carousel-controls { display: flex; justify-content: center; gap: 14px; margin-top: 80px; position: relative; z-index: 1; }
.carousel-controls button {
  width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 20px; background: var(--white);
  transition: background .25s, color .25s, transform .25s;
}
.carousel-controls button:hover { background: var(--ink); color: var(--white); transform: scale(1.08); }

/* ---------- CONFIGURADOR ---------- */
.config-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; position: relative; z-index: 1; }
.config-view {
  position: sticky; top: 90px; border-radius: var(--radius); overflow: hidden; height: min(80vh, 700px); min-height: 460px;
  background: radial-gradient(ellipse at 50% 25%, #ffffff, #dbe8f1 80%);
  box-shadow: 0 30px 70px rgba(15,79,115,.18);
  isolation: isolate;
}
/* borda animada azul/amarelo à volta do 3D */
.config-view::before {
  content: ""; position: absolute; inset: -50%; z-index: -2;
  background: conic-gradient(from 0deg, var(--blue), var(--yellow), #8fc6e6, var(--blue));
  animation: spinBorder 6s linear infinite;
}
.config-view::after {
  content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: calc(var(--radius) - 3px);
  background: radial-gradient(ellipse at 50% 25%, #ffffff, #dbe8f1 80%);
}
@keyframes spinBorder { to { transform: rotate(360deg); } }
#addToProject { position: relative; overflow: hidden; }
#addToProject::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
#config3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.config-hint { position: absolute; left: 20px; bottom: 16px; font-size: 12px; color: var(--muted); pointer-events: none; }
.config-panel { display: flex; flex-direction: column; gap: 22px; }
.config-panel fieldset { border: 0; }
.config-panel legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 700; width: 100%; display: flex; justify-content: space-between; }
.config-panel output { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: var(--white);
  transition: all .25s;
}
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 6px 16px rgba(27,111,156,.3); }
.chips-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips-big button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; font-size: 13px; font-weight: 700; text-align: left; border-radius: 16px; line-height: 1.2;
  border-width: 1.5px;
}
.chips-big button i { font-style: normal; font-size: 24px; line-height: 1; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.chips-big button:hover i { transform: scale(1.25) rotate(-8deg); }
.chips-big button.on { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 24px rgba(13,17,20,.25); }
.chips-big button.on i { transform: scale(1.15); }
.chips-big button:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; align-items: center; }

/* botões de LED com bolinha da cor da luz */
.chips-led button { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--d); box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 10px var(--d); }
.dot.rgb { background: conic-gradient(#ff3b3b, #ffd93b, #3bff6a, #3bd5ff, #b03bff, #ff3b3b); box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 10px #b03bff; animation: spinStar 3s linear infinite; }
/* formato da sacada com desenho */
.chips-shape button { display: inline-flex; align-items: center; gap: 8px; }
.chips-shape svg { width: 30px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* confettis ao adicionar ao projeto */
.confetti { position: fixed; z-index: 200; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }
.opts { display: flex; flex-direction: column; gap: 22px; animation: fadeUp .5s both; }
.opts[hidden] { display: none; }
.note { display: block; margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); padding: 10px 12px; border-left: 3px solid var(--yellow); background: var(--yellow-soft); border-radius: 0 10px 10px 0; }
.note b { color: var(--ink); }
.exact-quote { padding: 16px 18px; border-radius: 14px; background: var(--blue-soft); border: 1.5px solid var(--blue); }
.exact-quote > b { display: block; color: var(--blue); font-size: 15px; margin-bottom: 6px; }
.exact-quote p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.exact-quote p b { color: var(--ink); }
.exact-quote a { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; color: var(--blue-dark); border-bottom: 2px solid var(--yellow); }
.exact-quote a:hover { color: var(--ink); }
.swatches { display: flex; gap: 12px; }
.swatches button {
  width: 42px; height: 42px; border-radius: 50%; background: var(--c);
  border: 2px solid var(--white); outline: 1px solid var(--line); outline-offset: 2px; transition: outline-color .25s, transform .25s;
}
.swatches button:hover { transform: scale(1.1); }
.swatches button.on { outline: 2px solid var(--blue); }
.swatch-label { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--blue); }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 16px 26px; border-radius: 999px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s, box-shadow .2s, background .2s;
  margin-top: auto;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: #ffb85f; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.door-btn {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--ink); color: var(--white); transition: transform .25s, background .25s;
}
.door-btn:hover:not(:disabled) { background: var(--blue); transform: translateY(-2px); }
.door-btn:disabled { cursor: default; }
.price-tag { position: absolute; top: 18px; right: 18px; z-index: 2; padding: 14px 20px; text-align: right; pointer-events: none; }
.price-tag span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.price-tag b { display: block; font-size: 26px; font-weight: 700; font-stretch: 112%; line-height: 1.1; color: var(--blue); }
.price-tag small { font-size: 11px; color: var(--muted); }
.price-tag.bump b { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.1); color: var(--yellow); } }

/* ---------- MEU PROJETO ---------- */
.project { margin-top: 26px; padding: 30px 34px; position: relative; z-index: 1; }
.project-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.project-head h3 { font-size: 30px; font-weight: 600; font-stretch: 110%; margin-top: 6px; }
.project-total { text-align: right; }
.project-total span { display: block; font-size: 12px; color: var(--muted); }
.project-total b { font-size: 40px; font-weight: 700; font-stretch: 112%; color: var(--blue); }
.project-list { list-style: none; }
.project-list li {
  display: grid; grid-template-columns: 44px 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); animation: itemIn .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes itemIn { from { opacity: 0; transform: translateX(-30px); } }
.project-list .n { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--blue); }
.project-list .d b { display: block; font-weight: 600; }
.project-list .d span { font-size: 13px; color: var(--muted); }
.project-list .p { font-weight: 700; font-size: 18px; }
.project-list .x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: all .2s; }
.project-list .x:hover { background: var(--ink); color: var(--white); }
.project-empty { padding: 26px 0; color: var(--muted); }
.project-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; flex-wrap: wrap; }
.project-actions small { color: var(--muted); max-width: 520px; }
.project-actions .btn { margin-top: 0; }

/* ---------- PROCESSO ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.steps li {
  padding: 30px 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .4s, box-shadow .4s, opacity 1s;
}
.steps li:hover { transform: translateY(-10px) !important; box-shadow: 0 30px 60px rgba(15,79,115,.15); }
.steps span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--serif); font-style: italic; font-size: 26px; }
.steps h3 { font-size: 22px; font-weight: 600; font-stretch: 110%; margin: 18px 0 10px; }
.steps p { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; position: relative; z-index: 1; }
.stats div { border-radius: var(--radius); padding: 30px; background: var(--blue); color: var(--white); }
.stats div:nth-child(2) { background: var(--yellow); color: var(--ink); }
.stats div:nth-child(3) { background: var(--ink); }
.stats div:nth-child(4) { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.stats b { display: block; font-size: 64px; font-weight: 600; font-stretch: 115%; line-height: 1; }
.stats span { font-size: 14px; opacity: .8; }

/* ---------- ORÇAMENTO ---------- */
.quote { background: var(--white); }
.quote-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background-size: cover; background-position: center; border-radius: 40px 0 0 40px; opacity: .9; }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.2) 40%, transparent); border-radius: inherit; }
.quote-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; z-index: 1; }
.quote-text p { color: var(--muted); max-width: 440px; font-size: 16px; }
.contact-list { list-style: none; margin-top: 40px; border-top: 2px solid var(--ink); }
.contact-list li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.contact-list span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.quote-form { display: flex; flex-direction: column; gap: 16px; padding: 34px; background: rgba(255,255,255,.92); }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); font-weight: 400;
  background: var(--white); border: 1px solid rgba(13,17,20,.18); border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,111,156,.12); }
.quote-form small { color: var(--muted); text-align: center; }
.wa-send { background: #25d366; color: #fff; }

/* ---------- RODAPÉ (preto) ---------- */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 44px 5vw; background: var(--ink); color: rgba(255,255,255,.65); font-size: 13px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; }
.footer-brand b { font-stretch: 120%; letter-spacing: .04em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; display: grid; place-items: center; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--blue); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 14px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes waPulse { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
@media (max-width: 680px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); display: grid; place-items: center; padding: 5vh 5vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: 16px; box-shadow: 0 40px 80px rgba(15,79,115,.3); animation: lbIn .5s cubic-bezier(.2,.7,.2,1); }
.lightbox p { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 26px; }
.lb-close { position: absolute; top: 24px; right: 30px; font-size: 40px; line-height: 1; }
@keyframes lbIn { from { opacity: 0; transform: scale(.92) rotateX(10deg); } }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1100px) {
  .nav { grid-template-columns: auto 1fr; }
  .brand { justify-self: start; grid-row: 1; grid-column: 1; }
  .nav-right { grid-column: 2; }
  .nav-pills {
    position: fixed; top: 0; left: 0; right: 0; padding: 100px 34px 34px; flex-direction: column;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px); box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transform: translateY(-100%); transition: transform .5s cubic-bezier(.2,.7,.2,1); z-index: -1;
  }
  .nav.open .nav-pills { transform: none; }
  .pill { font-size: 15px; text-align: center; padding: 16px; }
  .burger { display: block; }
  .nav-link { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .config-wrap { grid-template-columns: 1fr; }
  .config-view { position: relative; top: 0; height: 60vh; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom { grid-template-columns: 1fr; gap: 12px; left: auto; right: 5vw; width: 320px; bottom: 7vh; }
  .hero-bottom p:last-child { display: none; }
  .quote-bg { width: 100%; opacity: .15; border-radius: 0; }
}
@media (max-width: 680px) {
  .nav, .nav.scrolled { padding: 12px 18px; }
  .nav-cta { display: none; }
  .hero-meta { left: 5vw; right: 5vw; top: 14vh; }
  .hero-meta-right { display: none; }
  .hero-title { top: 20vh; }
  .hero-title .script { right: 6vw; }
  .hero-values { display: none; }
  .hero-card { left: 5vw; right: 5vw; bottom: 5vh; padding: 16px 20px; }
  .hero-card dl { font-size: 12px; grid-template-columns: 1fr 1fr; }
  .hero-bottom { display: none; }
  .section { padding: 90px 6vw; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 380px; }
  .carousel { width: 220px; height: 310px; }
  .carousel-stage { height: 400px; }
  .steps, .stats { grid-template-columns: 1fr; }
  .quote-inner { grid-template-columns: 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .config-view { min-height: 440px; }
  .price-tag b { font-size: 24px; }
  .price-tag small { display: none; }
  .project { padding: 22px; }
  .project-list li { grid-template-columns: 30px 1fr auto; }
  .project-list .p { grid-column: 2; font-size: 15px; }
  .marquee span { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
