/* ACJ Quadros v2: abertura, barras de vidro com pílula, hero escuro, vitrine de nichos e galeria.
   Carrega depois de styles.css e sobrescreve só o necessário. */

:root {
  --night: #0e0f11;
  --night-2: #17181b;
  --night-ink: #f3f1ec;
  --night-ink-2: rgb(243 241 236 / .66);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --tabbar-h: 66px;
}

/* Itálico editorial nos títulos de destaque */
.display {
  font-size: clamp(38px, 5.4vw, 84px); line-height: .98; letter-spacing: -.035em; font-weight: 800;
  font-variation-settings: 'wdth' 108;
}
.display em, .stage__title em, .gsec__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-variation-settings: normal;
}
.display--xl { font-size: clamp(54px, 9vw, 150px); line-height: .9; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--tape); border-radius: 2px; }
.btn--ghost { color: inherit; border-color: currentColor; background: transparent; opacity: .92; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { opacity: 1; transform: translateY(-1px); } }

/* ---------- Abertura: a moldura se desenha e abre para o site ---------- */
.loader, .orderbar, .nav__menu, .mobile-menu { display: none !important; }
.intro {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: var(--night); color: var(--night-ink);
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 1000ms cubic-bezier(.77, 0, .175, 1), visibility 0s linear 1000ms;
}
html:not(.js) .intro, html.seen .intro { display: none; }
.intro.out { clip-path: inset(50% 50% 50% 50% round 24px); visibility: hidden; }
.intro__frame {
  position: absolute; width: min(42vw, 260px); aspect-ratio: 200 / 260; height: auto; overflow: visible;
  fill: none; stroke: var(--tape); stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.intro__frame rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1300ms cubic-bezier(.65, 0, .35, 1) 100ms forwards; }
.intro.out .intro__frame { transform: scale(1.6); opacity: 0; transition: transform 900ms cubic-bezier(.77, 0, .175, 1), opacity 500ms ease; }
.intro__in { display: grid; justify-items: center; gap: 12px; position: relative; }
.intro__mark { width: 52px; height: auto; opacity: 0; animation: introUp 900ms var(--spring) 350ms forwards; }
.intro__word { display: flex; gap: .3em; font-size: 26px; font-weight: 850; letter-spacing: -.02em; font-variation-settings: 'wdth' 118; }
.intro__word span { opacity: 0; animation: introUp 800ms var(--spring) 480ms forwards; }
.intro__word span + span { font-weight: 300; font-variation-settings: 'wdth' 100; animation-delay: 560ms; }
.intro__tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--night-ink-2); opacity: 0; animation: introUp 800ms var(--spring) 700ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes introUp { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Barra superior com pílula ---------- */
.nav__bar { transition: transform 600ms var(--spring), background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
.nav.is-hidden .nav__bar { transform: translateY(-130%); }
.nav__links { position: relative; isolation: isolate; padding: 4px; border-radius: var(--pill); }
.nav__links a { position: relative; z-index: 1; transition: color 250ms ease; }
.nav__links a:hover, .nav__links a[aria-current] { background: none; }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav__pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: var(--pill); opacity: 0; transition: opacity 200ms ease;
  background: linear-gradient(180deg, rgb(255 255 255 / .75), rgb(255 255 255 / .35));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 2px rgb(0 0 0 / .08), 0 6px 14px -8px rgb(0 0 0 / .3);
}
/* Sobre o hero escuro, a barra fica em vidro escuro */
.nav.on-dark .nav__bar { --glass-bg: rgb(20 21 24 / .42); --glass-brd: rgb(255 255 255 / .14); --glass-hi: rgb(255 255 255 / .18); color: var(--night-ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .02)), var(--glass-bg); }
.nav.on-dark .nav__links a { color: var(--night-ink-2); }
.nav.on-dark .nav__links a[aria-current="page"], .nav.on-dark .nav__links a:hover { color: #fff; }
.nav.on-dark .nav__pill { background: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / .08)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); }
.nav.on-dark .nav__order { --glass-bg: rgb(255 255 255 / .1); --glass-brd: rgb(255 255 255 / .18); --glass-hi: rgb(255 255 255 / .25); color: #fff; }
.nav.on-dark .badge { background: var(--tape); color: var(--tape-ink); }

/* ---------- Barra de abas no celular (vidro, estilo iOS) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__order { display: none; }
  .nav__bar { justify-content: center; padding: 0 14px; height: 54px; width: fit-content; min-width: 168px; }
  .tabbar {
    position: fixed; z-index: 45; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(100% - 20px, 460px); height: var(--tabbar-h); padding: 6px; border-radius: 28px;
    display: grid; grid-template-columns: repeat(5, 1fr); isolation: isolate;
    transform: translateX(-50%); transform-origin: 50% 100%;
    transition: transform 600ms var(--spring), border-radius 400ms ease;
  }
  .tabbar.is-small { transform: translateX(-50%) scale(.9) translateY(4px); }
  .tabbar__item {
    position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 2px;
    text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 650; letter-spacing: .01em;
    background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color 250ms ease, transform 400ms var(--spring);
  }
  .tabbar__item i { font-size: 23px; }
  .tabbar__item:active { transform: scale(.88); }
  .tabbar__item[aria-current="page"] { color: var(--ink); }
  .tabbar__order .badge { position: absolute; top: 3px; right: calc(50% - 24px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; background: var(--tape); color: var(--tape-ink); }
  .tabbar__pill {
    position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0));
    border-radius: 22px; opacity: 0; transition: opacity 200ms ease;
    background: linear-gradient(180deg, rgb(255 255 255 / .8), rgb(255 255 255 / .4));
    box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgb(0 0 0 / .3);
  }
  html[data-theme="dark"] .tabbar__pill { background: rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); }
  .footer { padding-bottom: calc(var(--tabbar-h) + 40px); }
  .toast { bottom: calc(var(--tabbar-h) + 26px) !important; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar__pill { background: rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); } }

/* ---------- Hero: palco escuro com parede de quadros ---------- */
.stage {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--night-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  padding: 110px 0 0 max(var(--gut), (100vw - var(--wrap)) / 2);
}
.stage__glow {
  position: absolute; inset: -20% 40% 10% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(246 180 64 / .16), transparent 70%);
}
.stage__copy { position: relative; z-index: 2; padding: 20px 0 70px; max-width: 700px; container-type: inline-size; }
.stage__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--night-ink-2); margin-bottom: 28px; }
.stage__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tape); box-shadow: 0 0 0 4px rgb(246 180 64 / .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(246 180 64 / 0); } }
.stage__title { font-size: clamp(34px, 11.6cqi, 100px); line-height: .9; letter-spacing: -.045em; font-weight: 850; font-variation-settings: 'wdth' 104; }
.stage__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.stage__title .line > span { display: inline-block; }
.stage__title em { color: var(--tape); font-size: 1.04em; letter-spacing: -.02em; }
.stage__sub { margin-top: 30px; font-size: clamp(17px, 1.4vw, 20px); color: var(--night-ink-2); max-width: 46ch; }
.stage__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.stage__ctas .btn--ghost { color: var(--night-ink); border-color: rgb(255 255 255 / .3); }
.stage__facts { display: flex; gap: clamp(22px, 3vw, 44px); margin: 52px 0 0; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / .12); }
.stage__facts div { display: grid; gap: 2px; }
.stage__facts dt { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.stage__facts dt i { color: var(--tape); font-size: .8em; }
.stage__facts dd { margin: 0; font-size: 13px; color: var(--night-ink-2); }

.stage__wall {
  position: relative; height: 100svh; margin-top: -110px; align-self: stretch;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-right: 18px;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-4deg) scale(1.12);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 18%);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.stage__col { overflow: hidden; }
.stage__track { display: grid; gap: 18px; animation: wallUp var(--dur, 60s) linear infinite; }
.stage__col:nth-child(2) .stage__track { animation-direction: reverse; }
.stage__wall:hover .stage__track { animation-play-state: paused; }
@keyframes wallUp { to { transform: translateY(calc(-50% - 9px)); } }
.tile {
  display: block; border-radius: 6px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .06);
}
.tile img { width: 100%; height: auto; transition: transform 1200ms var(--ease-out), filter 600ms ease; filter: saturate(.92) brightness(.92); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.06); filter: none; } }
.stage__scroll { position: absolute; left: max(var(--gut), (100vw - var(--wrap)) / 2); bottom: 34px; width: 26px; height: 42px; border: 1.5px solid rgb(255 255 255 / .35); border-radius: 14px; z-index: 2; }
.stage__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--tape); animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* entrada do hero */
.js .stage__title .line > span { transform: translateY(105%); }
.js .stage__eyebrow, .js .stage__sub, .js .stage__ctas, .js .stage__facts { opacity: 0; transform: translateY(18px); }
.js .stage__wall { opacity: 0; }
.is-ready .stage__title .line > span { transform: none; transition: transform 1100ms var(--spring); }
.is-ready .stage__title .line:nth-child(2) > span { transition-delay: 70ms; }
.is-ready .stage__title .line:nth-child(3) > span { transition-delay: 140ms; }
.is-ready .stage__title .line:nth-child(4) > span { transition-delay: 210ms; }
.is-ready .stage__eyebrow, .is-ready .stage__sub, .is-ready .stage__ctas, .is-ready .stage__facts { opacity: 1; transform: none; transition: transform 1000ms var(--spring), opacity 600ms ease; }
.is-ready .stage__sub { transition-delay: 300ms; }
.is-ready .stage__ctas { transition-delay: 380ms; }
.is-ready .stage__facts { transition-delay: 460ms; }
.is-ready .stage__wall { opacity: 1; transition: opacity 1400ms ease 150ms; }

/* ---------- Home: vitrine de nichos ---------- */
.niches { padding: clamp(90px, 11vw, 160px) 0 clamp(70px, 8vw, 120px); }
.niches__head { max-width: 860px; }
.niches__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 360px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 50px max(var(--gut), (100vw - var(--wrap)) / 2) 24px; scroll-padding-inline: max(var(--gut), (100vw - var(--wrap)) / 2);
  cursor: grab;
}
.niches__rail::-webkit-scrollbar { display: none; }
.niches__rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.niches__rail.dragging .ncard { pointer-events: none; }
.ncard {
  position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: 18px; overflow: hidden; scroll-snap-align: start;
  color: #fff; text-decoration: none; background: var(--night-2); isolation: isolate;
  box-shadow: 0 30px 50px -30px hsl(var(--shadow-tint) / .6);
  transition: transform 600ms var(--spring);
}
.ncard__img { position: absolute; inset: 0; z-index: -1; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); user-select: none; -webkit-user-drag: none; }
.ncard::after { content: ''; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(180deg, transparent, rgb(0 0 0 / .78)); }
.ncard__num { position: absolute; top: 16px; left: 18px; font-size: 13px; font-weight: 800; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; background: var(--tape); color: var(--tape-ink); }
.ncard__body { position: absolute; left: 20px; right: 70px; bottom: 20px; display: grid; gap: 2px; }
.ncard__body strong { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ncard__body span { font-size: 14px; opacity: .78; }
.ncard__go { position: absolute; right: 16px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff;
  --glass-bg: rgb(255 255 255 / .16); --glass-brd: rgb(255 255 255 / .3); --glass-hi: rgb(255 255 255 / .4); transition: transform 500ms var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .ncard:hover { transform: translateY(-8px); }
  .ncard:hover .ncard__img img { transform: scale(1.07); }
  .ncard:hover .ncard__go { transform: rotate(45deg) scale(1.08); }
}
.ncard:active { transform: scale(.97); }
.niches__foot { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- Home: chamada de serviços ---------- */
.finishes { padding: clamp(70px, 9vw, 140px) 0; background: var(--wall-2); border-block: 1px solid var(--line); }
.finishes__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.finishes__list { list-style: none; padding: 0; margin: 34px 0 34px; border-top: 1px solid var(--line); }
.finishes__list li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.01em; }
.finishes__list span { font-size: 12px; font-weight: 800; color: var(--tape-deep); font-variant-numeric: tabular-nums; }
.finishes__media { position: relative; aspect-ratio: 1 / 1.05; }
.finishes__media img { position: absolute; border-radius: 10px; object-fit: cover; box-shadow: 0 40px 70px -35px hsl(var(--shadow-tint) / .7); }
.finishes__media img:first-child { inset: 0 18% 8% 0; width: 82%; height: 92%; }
.finishes__media img:last-child { right: 0; bottom: 0; width: 38%; height: 58%; border: 6px solid var(--wall-2); transform: rotate(3deg); }

/* ---------- Cabeçalho das páginas internas ---------- */
.phead { padding: clamp(130px, 16vw, 210px) 0 clamp(40px, 5vw, 70px); }
.phead .lede { margin-top: 26px; }
.chapter { padding-top: clamp(120px, 14vw, 190px); }
.chapter-group + .chapter-group .chapter, .chapter-group .chapter { border-top: 0; }

/* ---------- Galeria: barra de temas (vidro) ---------- */
.gbar { position: sticky; top: 88px; z-index: 30; padding: 10px 0; pointer-events: none; }
.gbar__track {
  pointer-events: auto; position: relative; isolation: isolate; width: fit-content; max-width: min(100% - 2 * var(--gut), var(--wrap));
  margin-inline: auto; display: flex; gap: 2px; padding: 6px; border-radius: var(--pill);
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.gbar__track::-webkit-scrollbar { display: none; }
.gbar__chip {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: var(--pill); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: color 250ms ease, transform 400ms var(--spring);
}
.gbar__chip span { font-size: 12px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; }
.gbar__chip[aria-current] { color: var(--wall); }
.gbar__chip:active { transform: scale(.94); }
.gbar__pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: var(--pill); background: var(--ink); opacity: 0; transition: opacity 200ms ease;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 6px 16px -8px rgb(0 0 0 / .5);
}

/* ---------- Galeria: seções por tema ---------- */
.gsec { padding: clamp(60px, 7vw, 110px) 0; scroll-margin-top: 150px; }
.gsec + .gsec { border-top: 1px solid var(--line); }
.gsec__in { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 70px); align-items: start; }
.gsec__head { position: sticky; top: 170px; display: grid; gap: 14px; }
.gsec__num { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--tape-deep); }
.gsec__title { font-size: clamp(40px, 4.6vw, 72px); line-height: .95; letter-spacing: -.035em; font-weight: 850; font-variation-settings: 'wdth' 106; }
.gsec__intro { color: var(--ink-2); font-size: 17px; max-width: 32ch; }
.gsec__count { font-size: 14px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line); }
.gsec__grid { columns: 3 220px; column-gap: 16px; }
.gitem {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--wall-3); cursor: zoom-in;
  break-inside: avoid; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: var(--r);
  box-shadow: 0 1px 2px hsl(var(--shadow-tint) / .14), 0 20px 40px -26px hsl(var(--shadow-tint) / .6);
  transition: transform 600ms var(--spring), box-shadow 400ms ease;
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.gitem__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 650; color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / .18), rgb(255 255 255 / .05)), rgb(20 20 22 / .35);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgb(255 255 255 / .22); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
  opacity: 0; transform: translateY(10px); transition: opacity 250ms ease, transform 500ms var(--spring);
}
@media (hover: hover) and (pointer: fine) {
  .gitem:hover { transform: translateY(-5px); box-shadow: 0 1px 2px hsl(var(--shadow-tint) / .14), 0 34px 60px -30px hsl(var(--shadow-tint) / .75); }
  .gitem:hover img { transform: scale(1.05); }
  .gitem:hover .gitem__cap { opacity: 1; transform: none; }
}
.gitem:active { transform: scale(.97); }
.js .gitem { opacity: 0; transform: translateY(30px) scale(.98); }
.js .gitem.in { opacity: 1; transform: none; transition: transform 900ms var(--spring) var(--d, 0ms), opacity 500ms ease var(--d, 0ms), box-shadow 400ms ease; }
.gal__more { padding: clamp(80px, 10vw, 150px) 0; background: var(--night); color: var(--night-ink); }
.gal__more-in { display: grid; justify-items: start; gap: 24px; max-width: 900px; }
.gal__more .lede { color: var(--night-ink-2); margin: 0; }
.gal__more .display em { color: var(--tape); }

/* ---------- Visualizador ---------- */
.lb {
  --dim: 1;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.lb::backdrop { background: rgb(8 8 10 / calc(.92 * var(--dim))); opacity: 0; transition: opacity 350ms ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb.on::backdrop { opacity: 1; }
.lb__stage { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.lb__stage:active { cursor: grabbing; }
.lb__img { position: absolute; object-fit: contain; border-radius: 8px; transform-origin: 50% 50%; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; box-shadow: 0 40px 100px -30px rgb(0 0 0 / .8); }
.lb__top, .lb__bar, .lb__nav { transition: opacity 300ms ease, transform 500ms var(--spring); }
.lb:not(.on) .lb__top, .lb:not(.on) .lb__bar, .lb:not(.on) .lb__nav { opacity: 0; }
.lb:not(.on) .lb__bar { transform: translate(-50%, 20px); }
.lb__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.lb__top > * { pointer-events: auto; }
.lb .btn--glass { --glass-bg: rgb(30 30 34 / .45); --glass-brd: rgb(255 255 255 / .16); --glass-hi: rgb(255 255 255 / .22); color: #fff; }
.lb__where { margin: 0; padding: 10px 16px; border-radius: var(--pill); font-weight: 700; font-size: 15px;
  --glass-bg: rgb(30 30 34 / .45); --glass-brd: rgb(255 255 255 / .16); --glass-hi: rgb(255 255 255 / .22); }
.lb__n { font-weight: 500; opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }
.lb__nav { position: absolute; top: 50%; margin-top: -24px; --h: 50px; font-size: 22px; }
.lb__nav--prev { left: 20px; } .lb__nav--next { right: 20px; }
.lb__bar {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 26px; width: max-content; max-width: calc(100% - 24px);
  --glass-bg: rgb(30 30 34 / .5); --glass-brd: rgb(255 255 255 / .16); --glass-hi: rgb(255 255 255 / .22);
}
.lb__info { display: grid; margin-right: 10px; line-height: 1.25; }
.lb__info strong { font-size: 16px; }
.lb__info span { font-size: 13px; opacity: .65; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding: 0; align-items: start; min-height: auto; }
  .stage__copy { padding: 120px var(--gut) 40px; }
  .stage__wall { height: 440px; margin: 0; transform: rotate(-4deg) scale(1.15); padding: 0; grid-template-columns: repeat(3, 1fr); }
  .stage__scroll { display: none; }
  .finishes__grid { grid-template-columns: 1fr; }
  .gsec__in { grid-template-columns: 1fr; }
  .gsec__head { position: static; }
  .gsec__intro { max-width: 48ch; }
}
@media (max-width: 860px) {
  .gbar { top: 68px; }
  .gbar__track { max-width: calc(100% - 20px); }
  .lb__nav { display: none; }
  .lb__bar { padding-left: 16px; gap: 8px; }
  .lb__info strong { font-size: 15px; }
  .lb__wa-l { display: none; }
  .lb__bar .btn { --h: 46px; padding: 0 16px; font-size: 15px; }
  .lb__bar .btn--glass { width: 46px; padding: 0; }
}
@media (max-width: 560px) {

  .stage__ctas { flex-direction: column; }
  .stage__ctas .btn { flex: none; }
  .stage__facts { gap: 18px; justify-content: space-between; }
  .stage__wall { height: 360px; gap: 10px; }
  .stage__track { gap: 10px; }
  .gsec__grid { columns: 2; column-gap: 10px; }
  .gitem { margin-bottom: 10px; border-radius: 8px; }
  .gsec { scroll-margin-top: 130px; }
  .lb__info span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage__track { animation: none; }
  .js .stage__title .line > span, .js .gitem { transform: none; }
  .js .gitem { opacity: 1; }
}

/* ---------- Logo: versão clara e escura (cores originais, sem filtro) ---------- */
.logo-l { display: none; }
.nav.on-dark .nav__logo .logo-d { display: none; }
.nav.on-dark .nav__logo .logo-l { display: block; }
html[data-theme="dark"] .logo-d { display: none; }
html[data-theme="dark"] .logo-l { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-d { display: none; }
  :root:not([data-theme="light"]) .logo-l { display: block; }
}
.nav__logo img { height: 34px; width: auto; }

/* ---------- Cabeçalho das páginas (sem fita) ---------- */
.phead__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(30px, 6vw, 100px); align-items: end; }
.phead__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.phead__art { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px hsl(var(--shadow-tint) / .7); transform: rotate(2deg); }
.phead__art img { width: 100%; height: 100%; object-fit: cover; }
.chapter__rule { display: none; }
.models { padding-top: clamp(40px, 5vw, 70px); border-top: 1px solid var(--line); }

/* ---------- Como funciona (sem fita) ---------- */
.steps__list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps__list li { padding: 26px 24px 28px; border-radius: 18px; background: var(--wall-3); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps__n { font-family: var(--serif); font-style: italic; font-size: 56px; line-height: .9; color: var(--tape-deep); margin-bottom: 10px; }
.steps__list h3 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.steps__list p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 1000px) { .steps__list { grid-template-columns: 1fr 1fr; } .phead__grid { grid-template-columns: 1fr; } .phead__art { display: none; } }
@media (max-width: 560px) {
  .steps__list { grid-template-columns: 1fr; }
  .steps__list li { grid-template-columns: auto 1fr; column-gap: 16px; }
  .steps__n { grid-row: span 2; font-size: 44px; margin: 0; }
}

/* ---------- Configurador (página de produto) ---------- */
.btn--dark { background: var(--ink); color: var(--wall); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 14px 26px -14px rgb(0 0 0 / .6); }
@media (hover: hover) and (pointer: fine) { .btn--dark:hover { transform: translateY(-1px); } }
.btn--lg { --h: 58px; font-size: 17px; }
.configurator { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); --fc: #151517; }
.configurator[data-color="amadeirada"] { --fc: #7a4f2c; }
.configurator[data-color="branca"] { --fc: #ecebe6; }
.cfg__stage { display: grid; gap: 12px; }
.cfg__view { position: relative; border-radius: 18px; overflow: hidden; background: var(--wall-3); aspect-ratio: 1 / 1.02; box-shadow: inset 0 0 0 1px var(--line); }
.cfg__photo, .cfg__view .wallview { position: absolute; inset: 0; transition: opacity 350ms ease, transform 600ms var(--spring); }
.cfg__view .wallview { aspect-ratio: auto; border-radius: 0; border: 0; height: auto; }
.cfg__photo img { width: 100%; height: 100%; object-fit: cover; }
.cfg__view[data-view="photo"] .wallview, .cfg__view[data-view="wall"] .cfg__photo { opacity: 0; transform: scale(1.03); pointer-events: none; }
.cfg__tabs { display: flex; gap: 10px; }
.cfg__tabs button {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; cursor: pointer;
  background: var(--wall-3); border: 1.5px solid var(--line); font-weight: 650; font-size: 14px; color: var(--ink-2);
  transition: border-color 200ms ease, color 200ms ease, transform 400ms var(--spring);
}
.cfg__tabs button:active { transform: scale(.96); }
.cfg__tabs button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.cfg__tab-img, .cfg__tab-ico { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; background: var(--wall-2); display: grid; place-items: center; font-size: 22px; }

.cfg__panel { gap: 26px; }
.cfg__art-code { font-size: 13px; color: var(--ink-3); margin: 0 0 6px; letter-spacing: .02em; }
.cfg__art-name { font-size: clamp(28px, 2.6vw, 38px); }
.cfg__label { font-size: 15px; font-weight: 750; color: var(--ink); align-items: center; }
.cfg__label small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.cfg__desc { font-size: 15px; color: var(--ink-2); }

.fins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fin {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; text-align: left; cursor: pointer;
  border-radius: 14px; background: var(--wall-3); border: 1.5px solid var(--line); color: inherit;
  transition: border-color 200ms ease, transform 400ms var(--spring), box-shadow 300ms ease;
}
.fin:active { transform: scale(.97); }
.fin[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 10px 24px -16px rgb(0 0 0 / .5); }
.fin__txt { display: grid; gap: 1px; min-width: 0; }
.fin__txt strong { font-size: 15px; line-height: 1.2; }
.fin__txt small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fin__check { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--wall); display: grid; place-items: center; font-size: 13px; transform: scale(0); transition: transform 450ms var(--spring); }
.fin[aria-checked="true"] .fin__check { transform: scale(1); }
.fin__sw { flex: none; width: 58px; height: 46px; display: grid; place-items: center; }
.fin__sw > span { display: block; width: 44px; height: 34px; background: var(--art) center / cover, #888; }
.fin__sw--borda > span { box-shadow: 3px 3px 0 rgb(0 0 0 / .28), 0 6px 10px -4px rgb(0 0 0 / .4); }
.fin__sw--flutuante > span { outline: 3px solid var(--fc); outline-offset: 2px; box-shadow: 0 0 0 2px #0b0b0c, 0 8px 12px -4px rgb(0 0 0 / .45); }
.fin__sw--vidro > span { border: 5px solid var(--fc); box-shadow: 0 8px 12px -4px rgb(0 0 0 / .45); background: linear-gradient(125deg, rgb(255 255 255 / .55) 0 18%, transparent 30%), var(--art) center / cover; }
.fin__sw--premium > span { border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 8px 12px -4px rgb(0 0 0 / .5); background: linear-gradient(135deg, rgb(255 255 255 / .6), transparent 40%, transparent 70%, rgb(255 255 255 / .25)), var(--art) center / cover; }

[data-colors][hidden] { display: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 8px; border-radius: var(--pill); cursor: pointer; background: var(--wall-3); border: 1.5px solid var(--line); font-weight: 650; font-size: 14px; color: inherit; transition: border-color 200ms ease, transform 400ms var(--spring); }
.swatch:active { transform: scale(.95); }
.swatch[aria-checked="true"] { border-color: var(--ink); }
.swatch__dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.swatch__dot--preta { background: #151517; }
.swatch__dot--amadeirada, .configurator[data-color="amadeirada"] .wallview__piece[data-model="flutuante"] .frame, .configurator[data-color="amadeirada"] .wallview__piece[data-model="vidro"] .frame {
  background: repeating-linear-gradient(100deg, #8a5a33 0 3px, #6e4424 3px 5px, #93633a 5px 8px);
}
.swatch__dot--branca { background: #ecebe6; }
.configurator .wallview__piece[data-model="flutuante"] .frame, .configurator .wallview__piece[data-model="vidro"] .frame { background-color: var(--fc); }

.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.size {
  display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; cursor: pointer; color: inherit;
  background: var(--wall-3); border: 1.5px solid var(--line); transition: border-color 200ms ease, transform 400ms var(--spring);
}
.size:active { transform: scale(.96); }
.size[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 10px 24px -16px rgb(0 0 0 / .5); }
.size__fig { position: relative; height: 62px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-bottom: 6px; color: var(--ink-3); font-size: 24px; }
.size--custom .size__fig { align-items: center; }
.size__person { height: 46px; width: auto; fill: var(--ink-3); opacity: .55; flex: none; }
.size__rect { position: relative; flex: none; background: var(--ink); border-radius: 1.5px; transition: width 500ms var(--spring), height 500ms var(--spring), bottom 500ms var(--spring); }
.size[aria-checked="true"] .size__rect { background: var(--tape-deep); }
.size strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.size small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.cfg__price-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.cfg__trust { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.cfg__trust li { display: flex; align-items: center; gap: 10px; }
.cfg__trust i { font-size: 18px; color: var(--tape-deep); }
.cfg__picker { scrollbar-width: none; }
.cfg__picker::-webkit-scrollbar { display: none; }

@media (max-width: 1100px) { .cfg__view { aspect-ratio: 4 / 3.4; } }
@media (max-width: 560px) {
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fins { grid-template-columns: 1fr; }
  .cfg__view { aspect-ratio: 1 / 1; }
  .cfg__tabs button { flex: 1; font-size: 13px; }
}
.cfg__label > span:first-child:not(:only-child) { color: var(--ink); font-weight: 750; }
@media (min-width: 1101px) { .configurator:not(.configurator--sheet) .cfg__stage { position: sticky; top: 100px; } }
.stage__scroll { display: none; }
@media (max-width: 1100px) { .configurator { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rodada 5: foto inteira, mais molduras, tamanhos com sofá, logo maior ---------- */

/* Foto: mostra a imagem inteira (sem cortar), com fundo desfocado da própria arte */
.cfg__photo { background: var(--night-2); overflow: hidden; }
.cfg__photo::before { content: ''; position: absolute; inset: -40px; background: var(--art) center / cover; filter: blur(30px) saturate(1.1) brightness(.8); }
.cfg__photo img { position: relative; object-fit: contain; }

/* Molduras: cada cor tem cor sólida (--fc) e textura (--fcb) */
.fc--preta, .configurator[data-color="preta"] { --fc: #151517; --fcb: #151517; }
.fc--branca, .configurator[data-color="branca"] { --fc: #efede7; --fcb: linear-gradient(135deg, #fbfaf6, #e4e1d8); }
.fc--carvalho, .configurator[data-color="carvalho"] { --fc: #b8875a; --fcb: repeating-linear-gradient(100deg, #c39465 0 3px, #a8784b 3px 5px, #cfa070 5px 8px); }
.fc--freijo, .configurator[data-color="freijo"] { --fc: #a87a4a; --fcb: repeating-linear-gradient(100deg, #b4855a 0 2px, #946538 2px 4px, #c09165 4px 7px, #9c6e40 7px 9px); }
.fc--dourada, .configurator[data-color="dourada"] { --fc: #c9a24a; --fcb: linear-gradient(135deg, #f3dc94, #b8892f 45%, #e8c972 70%, #9c7426); }
.fc--marfim, .configurator[data-color="marfim"] { --fc: #ece3cf; --fcb: linear-gradient(135deg, #f7f1e3, #e3d7bd 55%, #f1e8d4); }
.configurator .wallview__piece[data-model="flutuante"] .frame,
.configurator .wallview__piece[data-model="vidro"] .frame { background: var(--fcb, var(--fc)); }

/* Seletor de moldura: canto de moldura com a arte dentro */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.swatch { height: 48px; padding: 0 12px 0 6px; border-radius: 12px; justify-content: flex-start; text-decoration: none; }
.swatch__corner { position: relative; width: 36px; height: 36px; border-radius: 5px; flex: none; background: var(--fcb, var(--fc)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18), 0 2px 4px rgb(0 0 0 / .18); }
.swatch__corner::after { content: ''; position: absolute; inset: 7px 0 0 7px; border-radius: 1px 0 0 0; background: var(--art) center / cover, #999; box-shadow: inset 1px 1px 2px rgb(0 0 0 / .35); }
.swatch--more { border-style: dashed; color: var(--ink-2); gap: 8px; padding-left: 12px; }
.swatch--more i { font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .swatch--more:hover { border-color: var(--ink); color: var(--ink); } }
.cfg__hint { font-size: 13px; color: var(--ink-3); }
.swatch__dot { display: none; }

/* Tamanhos: o quadro (com a arte e a moldura escolhida) acima de um sofá de 2,10 m, na mesma escala */
.size__person { display: none; }
.size__fig { height: 104px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; margin-bottom: 8px; }
.size__rect {
  position: static; background: var(--art) center / cover, var(--ink); border-radius: 1px;
  box-shadow: 0 0 0 2px var(--fc), 0 4px 8px -2px rgb(0 0 0 / .35);
}
.configurator:not([data-has-frame]) .size__rect { box-shadow: 0 4px 8px -2px rgb(0 0 0 / .35); }
.size[aria-checked="true"] .size__rect { background: var(--art) center / cover, var(--ink); }
.size__sofa { color: var(--ink-3); opacity: .6; flex: none; transition: width 500ms var(--spring), height 500ms var(--spring); }
.size[aria-checked="true"] { background: var(--wall); }

/* Logo maior */
.nav__logo img { height: 44px; }
.nav__bar { height: 70px; }
.footer img { height: 58px; }
@media (max-width: 860px) { .nav__logo img { height: 38px; } .nav__bar { height: 60px; } }
.swatch--more { white-space: nowrap; font-size: 13px; }
.size__fig { gap: 7px; }
@media (max-width: 560px) { .cfg__label { flex-wrap: wrap; } .cfg__label small { display: none; } .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sofá de referência com cota de 2,10 m */
.wallview__sofa { overflow: visible; }
.wallview__sofa-dim { position: absolute; left: 0; right: 0; top: calc(100% + 8px); height: 14px; border-inline: 1.5px solid var(--ink-3); display: grid; place-items: center; }
.wallview__sofa-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink-3); }
.wallview__sofa-dim span { position: relative; background: var(--ink); color: var(--wall); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 4px; white-space: nowrap; }
.wallview__sofa { color: var(--ink-2); opacity: .8; }
.wallview__scale { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cfg__photo::before { background-image: var(--photo); }
