/* RS Planejados v2 — técnica de site imersivo (entrada, marquee, caixa que cresce, montagem 3D pelo scroll) */
:root { --nav-h: 60px; --sp-s: clamp(32px, 4.5vw, 64px); --sp-m: clamp(48px, 7vw, 96px);
  --ink: #141311;
  --ink-2: #1b1916;
  --ivory: #efe8da;
  --paper: #ece4d4;
  --mute: #8f877a;
  --gold: #d6ab32;
  --gold-hi: #f0cd5f;
  --line: rgba(239, 232, 218, .16);
  --line-ink: rgba(20, 19, 17, .16);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 2.8vw, 40px);
  --out: cubic-bezier(.22, 1, .36, 1);
  --io: cubic-bezier(.76, 0, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kick{ font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
em { font-style: italic; }

/* texto que rola no hover (cópia do próprio texto entra por baixo) */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll span { position: relative; display: block; transition: transform .55s var(--out); }
.roll span::after { content: attr(data-t) / ""; position: absolute; left: 0; top: 100%; }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 26px; background: var(--gold); color: #1a1508; font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; border-radius: 999px; transition: background .3s var(--out), transform .3s var(--out); }
.btn:hover { background: var(--gold-hi); }
.btn i { font-style: normal; transition: transform .35s var(--out); }
.btn:hover i { transform: translateX(5px); }

/* ---------------- entrada */
.loader { display: none; }
.intro .loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #fbf5ea 0%, #efe8da 58%, #e2d4bb 100%); color: #221c16; clip-path: inset(0 0 0 0); }
.ld-marquee { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; white-space: nowrap; font: 500 clamp(80px, 17vw, 300px)/.9 var(--sans); letter-spacing: -.07em; color: rgba(239, 232, 218, .07); animation: mq 18s linear infinite; }
.ld-logo { position: relative; width: clamp(76px, 9vw, 112px); height: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(214, 171, 50, .45); opacity: 0; transform: scale(.86); animation: ldlogo 1s var(--out) .15s forwards; }
.ld-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: flex-end; }
.ld-foot span { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.ld-count { font: 400 clamp(34px, 3vw, 44px)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.intro.leaving .loader { clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--io); }
.intro.leaving .ld-logo, .intro.leaving .ld-foot { opacity: 0; transition: opacity .35s ease; }
@keyframes ldlogo { to { opacity: 1; transform: none; } }
@keyframes mq { to { transform: translate(-50%, -50%); } }
@keyframes mqx { to { transform: translateX(-50%); } }

/* ---------------- navegação (texto em "diferença": lê em fundo claro e escuro) */
.nav-bg { position: fixed; z-index: 59; inset: 0 0 auto 0; height: var(--nav-h); background: rgba(236, 228, 214, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(20, 19, 17, .06); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.nav-light .nav-bg { opacity: 1; }
.nav-dark .nav-bg { opacity: 1; background: linear-gradient(180deg, rgba(14, 13, 11, .9), rgba(14, 13, 11, .72)); box-shadow: none; }
.nav { position: fixed; z-index: 60; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 16px var(--pad); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.nav a, .nav button { pointer-events: auto; }
.nav-logo { position: fixed; z-index: 61; left: var(--pad); top: 10px; display: block; border-radius: 50%; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(214, 171, 50, .35); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-left: 46px; margin-top: -6px; font: 600 13px/1 var(--sans); letter-spacing: .2em; }
.nav-right { position: relative; display: flex; align-items: center; gap: 28px; }
.nav-cta { display: none; font: 600 12px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; min-height: 32px; }
.menu-btn i { display: grid; grid-template-columns: 4px 4px; gap: 3px; transition: gap .5s var(--out), transform .5s var(--out); }
.menu-btn b { width: 4px; height: 4px; background: currentColor; border-radius: 1px; }
.menu-btn[aria-expanded="true"] i { gap: 6px; transform: rotate(45deg); }
.menu { position: absolute; right: 0; top: calc(100% + 12px); display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.menu a { font: 600 13px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .5s var(--out); pointer-events: none; }
.menu.open a { opacity: 1; transform: none; pointer-events: auto; }
.menu.open a:nth-child(2) { transition-delay: .05s; } .menu.open a:nth-child(3) { transition-delay: .1s; } .menu.open a:nth-child(4) { transition-delay: .15s; }

/* ---------------- 1. primeira tela: cozinha grafite em tela cheia; véu só onde está o texto */
.hero { position: sticky; top: 0; z-index: 0; height: 100svh; min-height: 560px; overflow: hidden; background: #0c0b0a; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 64% 26%; transform: scale(1.05); animation: kb 2.2s var(--out) forwards; }
.intro .hero-media img { animation-play-state: paused; }
.intro.ready .hero-media img { animation-play-state: running; }
@keyframes kb { to { transform: scale(1); } }
/* celular e tablet em pé: a foto é quadrada; em vez de cortar a cozinha para encher a tela em pé,
   ela aparece INTEIRA na largura toda, logo abaixo do menu, e o título fica embaixo, no grafite (sem véu sobre a foto) */
/* a foto do hero aparece SEMPRE inteira (nativa 1199 px, sem ampliar além do necessário);
   o resto da tela é a própria foto desfocada e escura — nunca faixa preta vazia */
@media (max-width: 899px) and (orientation: portrait) {
  /* celular em pé: a cozinha enche a tela (cover). Altura da foto limitada a 800 px para o arquivo nativo de 1199 px
     ficar com ≥ 1,5 px por px CSS; enquadramento com os dois pendentes, os armários e a bancada (geladeira e janela
     ficam de fora). Título e botões sobre o piso, com degradê forte (contraste medido ≥ 4,5:1). */
  .hero { height: 100svh; min-height: 0; }
  .hero .hero-media { inset: 0 0 auto; height: min(100svh, 800px); overflow: hidden; }
  .hero .hero-media picture { position: absolute; inset: 0; height: 100%; }
  .hero .hero-pic { object-fit: cover; object-position: 78% 50%; }
  .hero .hero-shade { background: linear-gradient(180deg, rgba(8, 7, 6, .82) 0, rgba(8, 7, 6, .5) 70px, rgba(8, 7, 6, 0) 130px), linear-gradient(0deg, rgba(8, 7, 6, .96) 0, rgba(8, 7, 6, .9) 30%, rgba(8, 7, 6, .55) 46%, rgba(8, 7, 6, 0) 60%); }
  .hero .hero-copy { left: var(--pad); right: var(--pad); top: auto; bottom: calc(44px + env(safe-area-inset-bottom)); }
  .hero .hero-copy h1 { font-size: clamp(42px, 13.2vw, 64px); }
  .hero .hero-scroll { left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); text-align: center; }
}
/* celular deitado: foto cheia, véu à esquerda só atrás do título */
@media (max-width: 899px) and (orientation: landscape) {
  .hero .hero-pic { inset: 0 0 0 auto; width: auto; height: 100%; aspect-ratio: 1; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
  .hero .hero-shade { background: linear-gradient(180deg, rgba(10, 9, 8, .6) 0, rgba(10, 9, 8, 0) 90px), linear-gradient(90deg, rgba(10, 9, 8, .82) 0, rgba(10, 9, 8, .5) 40%, rgba(10, 9, 8, 0) 65%); }
  .hero .hero-copy { right: auto; max-width: 60vw; bottom: 28px; }
}
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 8, .72) 0, rgba(10, 9, 8, .38) 58px, rgba(10, 9, 8, 0) 104px); }
.hero-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(56px + env(safe-area-inset-bottom)); }
.hero-kick { color: rgba(239, 232, 218, .78); font-size: 10.5px; letter-spacing: .2em; line-height: 1.4; }
.hero h1 { margin-top: 12px; font: 400 clamp(42px, 12.4vw, 66px)/.94 var(--serif); letter-spacing: -.01em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w { display: inline-block; white-space: nowrap; }
.split .c { display: inline-block; transform: translateY(112%); animation: rise .9s var(--out) forwards; animation-delay: calc(.08s + var(--i) * 16ms); }
.intro .split .c { animation-play-state: paused; }
.intro.ready .split .c { animation-play-state: running; }
@keyframes rise { to { transform: none; } }
.ul { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 14px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
.ul::after { content: ''; position: absolute; left: 0; right: 26px; bottom: 8px; height: 1px; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); animation: draw .9s var(--out) .95s forwards; }
.ul:hover::after { animation: redraw .7s var(--out); }
.ul i { font-style: normal; transition: transform .35s var(--out); }
.ul:hover i { transform: translateX(5px); }
.intro .ul::after { animation-play-state: paused; }
.intro.ready .ul::after { animation-play-state: running; }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes redraw { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; } 46% { transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }
.hero-scroll { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; color: #efe8da; }
.hero-kick, .hero-scroll { opacity: 0; transform: translateY(10px); animation: up .9s var(--out) 1.05s forwards; }
.hero-scroll { opacity: 1; animation-name: scroll-up; }
@keyframes scroll-up { to { transform: none; } }
.intro .hero-kick, .intro .hero-scroll { animation-play-state: paused; }
.intro.ready .hero-kick, .intro.ready .hero-scroll { animation-play-state: running; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------------- 2. marquee + janela que cresce + 3D */
.mont { position: relative; z-index: 2; background: var(--paper); }
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: var(--paper); color: var(--ink); --e: 0; --mq: 1; --hud: 0; --ph: 1; --warm: 0; }
.mq { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden; opacity: var(--mq); }
.mq-row { display: flex; width: max-content; white-space: nowrap; font: 500 clamp(56px, 14vw, 64px)/1 var(--sans); letter-spacing: -.07em; animation: mqx 16s linear infinite; }
.win { --bw: min(70vw, 18rem); --bh: 28svh; --r: calc(6px * (1 - var(--e)));
  position: absolute; inset: 0; z-index: 2; overflow: hidden; color: var(--ivory);
  clip-path: inset(calc((100% - var(--bh)) / 2 * (1 - var(--e))) calc((100% - var(--bw)) / 2 * (1 - var(--e))) round var(--r));
  background: radial-gradient(120% 90% at 50% 38%, #2a241c 0%, #15130f 55%, #0d0c0a 100%); }
.win::before { content: ''; position: absolute; inset: 0; background: radial-gradient(110% 80% at 50% 35%, #3a2d1d 0%, #1b1610 55%, #0f0d0a 100%); opacity: var(--warm); }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.gl:active { cursor: grabbing; }
/* cartaz do desenho (até o 3D carregar) e a foto final emoldurada, inteira, no quadro calculado pelo JS */
.poster { position: absolute; inset: 0; pointer-events: none; opacity: var(--pst, 1); transition: opacity .4s ease; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.final { position: absolute; left: var(--fx, 16px); top: var(--fy, 76px); width: var(--fs, 300px); height: var(--fs, 300px); margin: 0; opacity: var(--ph, 0); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(239, 232, 218, .28), 0 0 0 200vmax rgba(10, 9, 8, calc(var(--ph, 0) * .5)), 0 30px 80px rgba(0, 0, 0, .55); border-radius: 3px; }
.final picture, .final img { display: block; width: 100%; height: 100%; }
.final img { object-fit: contain; border-radius: 3px; }
.final figcaption { position: absolute; left: 0; top: calc(100% + 10px); font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(239, 232, 218, .75); }
.win-shade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(0deg, rgba(10, 9, 8, .82), rgba(10, 9, 8, 0)); opacity: calc(var(--hud) * (1 - var(--hout, 0))); pointer-events: none; }
.enter { position: absolute; left: 0; right: 0; bottom: calc(30px + env(safe-area-inset-bottom)); text-align: center; font: 500 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(20, 19, 17, .6); opacity: calc(1 - var(--e) * 6); }

.hud { position: absolute; inset: 0; z-index: 3; color: var(--ivory); opacity: calc(var(--hud) * (1 - var(--hout, 0))); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-hint { display: none; position: absolute; left: 0; right: 0; bottom: 84px; text-align: center; font: 500 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(239, 232, 218, .55); pointer-events: none; }
.hud-step { position: absolute; left: var(--pad); bottom: 74px; max-width: 62vw; }
.hud-kick { display: flex; align-items: center; gap: 12px; font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(239, 232, 218, .75); }
.hud-kick::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.hud-title { margin-top: 14px; font: 500 clamp(28px, 7.6vw, 58px)/1 var(--sans); letter-spacing: -.035em; overflow: hidden; }
.hud-sub { margin-top: 12px; font: 500 11.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; overflow: hidden; }
.hud-title span, .hud-sub span { display: block; }
/* o botão fica fora do fluxo (não ocupa a área do 3D nos passos 1-6); no fim, o bloco sobe para abrir espaço */
.hud-step { transition: transform .5s var(--out); }
.stage.done .hud-step { transform: translateY(-70px); }
.hud-cta { position: absolute; left: 0; top: 100%; margin-top: 18px; white-space: nowrap; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .5s var(--out), transform .5s var(--out); }
.stage.done .hud-cta { opacity: 1; transform: none; pointer-events: auto; }
.stage.done .hud-hint { opacity: 0; }
@media (max-width: 899px) { .hud-dots { transition: opacity .4s; } .stage.done .hud-dots { opacity: 0; pointer-events: none; } }
.hud-count { position: absolute; right: var(--pad); bottom: 74px; display: grid; justify-items: end; gap: 6px; }
.hud-count b { font: 400 clamp(44px, 11vw, 96px)/.86 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow: hidden; display: block; height: .86em; }
.hud-count b span { display: block; }
.hud-count > span { font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.hud-arrows { display: flex; gap: 8px; margin-top: 10px; }
.hud-arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(239, 232, 218, .3); transition: border-color .25s, background .25s, color .25s; }
.hud-arrows button:hover { border-color: var(--gold); color: var(--gold); }
.hud-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(34px + env(safe-area-inset-bottom)); height: 1px; background: rgba(239, 232, 218, .28); display: flex; justify-content: space-between; pointer-events: none; }
.hud-bar span { width: 1px; height: 9px; margin-top: -4px; background: rgba(239, 232, 218, .45); }
.hud-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.hud-dot { position: absolute; top: -5px; left: calc(var(--prog, 0) * 100% - 5px); width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(214, 171, 50, .2); }
.hud-dots { position: absolute; right: calc(var(--pad) - 14px); top: 50%; transform: translateY(-50%); display: grid; gap: 0; }
.hud-dots li { position: relative; }
.hud-dots li + li::before { content: ''; position: absolute; left: 50%; top: -14px; height: 14px; width: 1px; background: rgba(239, 232, 218, .3); }
.hud-dots button { width: 36px; height: 36px; display: grid; place-items: center; }
.hud-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(239, 232, 218, .7); transition: all .4s var(--out); }
.hud-dots button.past::before { background: rgba(239, 232, 218, .85); border-color: transparent; }
.hud-dots button.on::before { width: 13px; height: 13px; background: var(--ivory); border-color: var(--ivory); box-shadow: 0 0 0 4px rgba(239, 232, 218, .18); }
.lite-steps { display: none; }

/* ---------------- 3. obras */

/* altura fixa do trilho e largura pela proporção do arquivo: nada é cortado; nunca mais largo que 84vw nem mais alto que ~62vh */


/* celular deitado: HUD compacto para sobrar altura para o móvel */
@media (max-height: 500px) and (max-width: 1100px) {
  .stage, .hero, .tko-stage { min-height: 0; }
  .hud-step { bottom: 40px; }
  .hud-title { margin-top: 8px; font-size: 24px; }
  .hud-sub { margin-top: 6px; font-size: 10px; }
  .hud-count { bottom: 36px; }
  .hud-count b { font-size: 40px; }
  .hud-arrows, .hud-dots, .hud-hint { display: none; }
  .hud-bar { bottom: 16px; }
  .stage.done .hud-step { transform: translateY(-58px); }
}

/* ---------------- destaques e entrada das obras: uma janela que abre em tela cheia ("Scroll to enter").
   A foto fica sempre INTEIRA (contain) sobre a própria foto desfocada; a janela pequena mostra o miolo da composição. */
.dest { position: relative; z-index: 2; background: #0e0d0b; color: var(--ivory); }
.dw-stage, .ow-stage { position: relative; background: #0e0d0b; color: var(--ivory); }
.dw { position: relative; height: 82svh; min-height: 460px; }
.dw + .dw { margin-top: 2px; }
.dw-clip { position: absolute; inset: 0; overflow: hidden; background: #14120f; }
.dw-ph { position: absolute; inset: 0; margin: 0; opacity: 0; background: #14120f; overflow: hidden; }
.dw-ph.is-on { opacity: 1; }
.dw-ph picture, .dw-ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dw-ph picture img { object-fit: contain; object-position: 50% 42%; }
.dw-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 72px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(10, 9, 8, .86) 0, rgba(10, 9, 8, .6) 45%, rgba(10, 9, 8, 0) 100%); }
.dw-cap .kick { color: rgba(239, 232, 218, .72); }
.dw-title { font: 400 clamp(34px, 9vw, 72px)/1 var(--serif); }
.dw-sub { font: 500 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.dw-more { font: 500 13px/1.3 var(--sans); color: rgba(239, 232, 218, .72); }
.dw-open { position: absolute; inset: 0; z-index: 2; width: 100%; cursor: zoom-in; }
.dw-open:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.dw-label, .dw-hint { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* com movimento: as janelas ficam presas e abrem pelo JS */
.motion .dw-stage, .motion .ow-stage { height: 100svh; min-height: 520px; overflow: hidden; }
.motion .dw { position: absolute; inset: 0; height: auto; min-height: 0; margin: 0; }
.motion .dw-label { display: grid; justify-items: center; gap: 8px; position: absolute; left: 0; right: 0; top: var(--lt, 70%); text-align: center; pointer-events: none; }
.motion .dw-label .kick { color: rgba(239, 232, 218, .7); }
.motion .dw-label b { font: 400 clamp(26px, 6.6vw, 44px)/1.05 var(--serif); }
.motion .dw-hint { display: block; position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font: 500 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(239, 232, 218, .55); }
.motion .ow-stage .dw-hint { display: none; }
.ow-stage { margin: 24px 0 var(--sp-s); }
.motion .ow-stage { margin-bottom: var(--sp-s); }

/* ---------------- fim do carrossel: a obra toma a tela (foto inteira; o resto da tela é a própria foto desfocada e escura) */
.tko { position: relative; z-index: 2; background: var(--paper); }
.tko-stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.tko-frame { position: absolute; inset: 0; background: #14120f; overflow: hidden; }
.tko-pic, .tko-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tko-pic img { object-fit: contain; object-position: 50% 28%; }
.tko-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10, 9, 8, .88) 0, rgba(10, 9, 8, .6) 18%, rgba(10, 9, 8, 0) 34%); }
.tko-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(30px + env(safe-area-inset-bottom)); color: var(--ivory); }
.tko-copy .kick { color: rgba(239, 232, 218, .78); }
.tko-line { margin-top: 10px; font: 400 clamp(36px, 10vw, 104px)/.96 var(--serif); letter-spacing: -.012em; }
.tko-line .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.tko-line .ln > * { display: block; }
.tko-line em { color: var(--gold-hi); }

@media (max-width: 899px) and (orientation: portrait) {
  .tko-pic img { object-position: 50% 34%; }
}

/* ---------------- o ofício: a foto começa grande e inteira e, com o scroll, vira a pílula do texto (efeito mantido).
   Texto maior; as palavras já nascem legíveis (tinta a 58 %) e acendem até 100 %. */
.oficio { position: relative; z-index: 2; background: var(--paper); color: var(--ink); }
.of-stage { position: relative; padding: calc(var(--nav-h) + 12px) var(--pad) var(--sp-m); }
.of-kick { color: #6c6457; }
.of-title { margin-top: 14px; font: 400 clamp(54px, 15.4vw, 132px)/.92 var(--serif); letter-spacing: -.015em; }
.of-title em { color: #8d6d16; }
.of-text { position: relative; margin-top: 26px; font: 500 clamp(27px, 7.3vw, 56px)/1.1 var(--sans); letter-spacing: -.03em; max-width: 21em; color: var(--ink); }
.of-slot { display: inline-block; width: 2.2em; height: .86em; vertical-align: -.08em; border-radius: .16em; background: #2a2622 64% 24% / cover; }
.lite .of-slot { background-image: url(assets/img/marceneiro-480.webp); }
.motion .of-slot { background: none; }
.of-photo { position: relative; margin: 32px 0 0; max-width: 520px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #1b1916; }
.of-photo picture, .of-photo img { display: block; width: 100%; height: 100%; }
.of-photo img { object-fit: cover; object-position: 64% 24%; }
.of-cap { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(14, 13, 11, .66); color: var(--ivory); font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.motion .of-photo { position: absolute; margin: 0; max-width: none; aspect-ratio: auto; z-index: 2; will-change: left, top, width, height; box-shadow: 0 30px 70px rgba(20, 19, 17, .28); }
.lite .of-photo, .js:not(.motion) .of-photo { position: relative; }

.btn-xl { min-height: 58px; padding: 0 28px; font-size: 12.5px; }
.close-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
/* WhatsApp e Instagram no mesmo formato: ícone fino dourado + rótulo com o fio das outras ligações */
.ic-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ivory); }
.ic-link svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.ic-link svg .dot { fill: var(--gold); stroke: none; transition: fill .25s; }
.ic-link span { position: relative; padding-bottom: 6px; font: 500 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.ic-link span::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: 0 50%; }
.ic-link:hover { color: var(--gold-hi); }
.ic-link:hover svg { stroke: var(--gold-hi); }
.ic-link:hover svg .dot { fill: var(--gold-hi); }
.ic-link:hover span::after { animation: redraw .7s var(--out); }

/* ---------------- galeria em tela cheia */


/* ---------------- telas maiores */
@media (min-width: 700px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 900px) {
  /* a foto quadrada inteira na altura toda, encostada à direita; a borda esquerda se dissolve no grafite, atrás do título */
  .hero-media .hero-pic { inset: 0 0 0 auto; width: auto; height: 100%; aspect-ratio: 1; max-width: 100%; object-fit: cover; transform-origin: 70% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 9, 8, .62) 0, rgba(10, 9, 8, 0) 120px), linear-gradient(90deg, rgba(10, 9, 8, .82) 0, rgba(10, 9, 8, .55) 30%, rgba(10, 9, 8, 0) 56%); }
  .hero-copy { left: var(--pad); right: auto; top: 50%; bottom: auto; transform: translateY(-46%); max-width: 46vw; }
  .hero h1 { font-size: clamp(64px, 6.8vw, 124px); margin-top: 20px; }
  .hero-kick { font-size: 11.5px; letter-spacing: .26em; }
  .ul { font-size: 16px; }
  .hero-scroll { left: var(--pad); right: auto; text-align: left; bottom: 30px; }
  .mq-row { font-size: clamp(80px, 7.4vw, 140px); }
  .win { --bw: min(72vw, 24rem); --bh: 38svh; }
  .hud-step { bottom: 80px; }
  .hud-hint { display: block; }
  .hud-count { bottom: 66px; }
  .hud-dots { right: calc(var(--pad) + 8px); }
  .tko-pic img { object-position: 64% 50%; }
  .tko-shade { background: linear-gradient(90deg, rgba(10, 9, 8, .72) 0, rgba(10, 9, 8, 0) 46%); }
  .tko-copy { right: auto; max-width: 36vw; bottom: 64px; }
  .tko-line { font-size: clamp(44px, 4.1vw, 78px); }
  .of-stage { padding-block: calc(var(--nav-h) + 24px) var(--sp-m); }
  .of-copy { max-width: calc(100% - 64.5svh - 4vw); }
  .of-title { font-size: clamp(64px, 6.6vw, 132px); }
  .of-text { font-size: clamp(30px, 2.9vw, 54px); }
}

/* ---------------- modo leve: sem 3D e sem cenas presas; tudo legível, foto real com os passos */
.lite .stage { height: auto; min-height: 0; padding: 88px 0 0; }
.lite .mq, .lite .enter, .lite .hud, .lite .gl, .lite .win-shade, .lite .poster { display: none; }
.lite .win { position: relative; inset: auto; clip-path: none; background: var(--ink); padding: 16px; }
.lite .final { position: relative; left: auto; top: auto; width: min(100%, 86svh); height: auto; aspect-ratio: 1; margin: 0 auto 28px; opacity: 1; box-shadow: none; }
.lite .lite-steps { display: grid; gap: 10px; padding: 28px var(--pad) 56px; background: var(--ink); color: var(--ivory); counter-reset: s; }
.lite .lite-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; font: 500 20px/1.15 var(--sans); letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lite .lite-steps b { grid-row: span 2; font: 400 13px/1.6 var(--sans); color: var(--gold); }
.lite .lite-steps span { font: 500 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.lite .lite-steps span { color: #a49b8d; }
@media (min-width: 900px) { .lite .lite-steps { grid-template-columns: repeat(4, 1fr); column-gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .split .c, .hero-media img { transform: none; }
  .hero-kick, .hero-scroll { opacity: 1; transform: none; }
  .mq-row, .ld-marquee { animation: none; }
}

/* se o 3D falhar ao carregar: fica a foto real com o HUD dos passos */
.no3d .gl { display: none; }

.wa-w { display: none; }
@media (min-width: 500px) { .wa-w { display: inline; } }

section[id] { scroll-margin-top: var(--nav-h); }

/* ---------------- visor da obra (destaques): abre crescendo a partir da foto tocada */
.jv { position: fixed; inset: 0; z-index: 90; background: #0e0d0b; color: var(--ivory); display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; touch-action: pan-y; }
.jv[hidden] { display: none; }
.jv-media { position: relative; display: grid; place-items: center; padding: 64px 12px 10px; min-height: 0; }
.jv-media > * { grid-area: 1 / 1; max-width: 100%; max-height: 100%; }
.jv-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(62svh - 74px); object-fit: contain; border-radius: 12px; }
.jv-info { position: relative; padding: 14px var(--pad) calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; align-content: start; }
.jv-kick { color: rgba(239, 232, 218, .7); }
.jv-title { font: 400 clamp(30px, 8.4vw, 48px)/1 var(--serif); }
.jv-text { font: 500 15px/1.45 var(--sans); color: rgba(239, 232, 218, .86); max-width: 34em; }
.jv-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 2px 0 0; }
.jv-tags li { font: 500 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.jv-tags li + li::before { content: '·'; margin-right: 14px; color: rgba(239, 232, 218, .4); }
.jv-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.jv-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(239, 232, 218, .3); }
.jv-nav button:hover { border-color: var(--gold); color: var(--gold); }
.jv-nav button[disabled] { opacity: .3; pointer-events: none; }
.jv-dots { display: flex; gap: 6px; }
.jv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(239, 232, 218, .35); }
.jv-dots i.on { background: var(--gold); }
.jv-close { position: absolute; top: 12px; right: var(--pad); min-height: 44px; padding: 0 4px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; z-index: 2; }
.jv.single .jv-nav { display: none; }
@media (min-width: 900px) {
  .jv { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 380px; }
  .jv-media { padding: 64px 24px 40px 40px; }
  .jv-media img { max-height: calc(100svh - 110px); }
  .jv-info { align-content: center; padding: 64px 48px 40px 8px; }
}
.jv-info > * { margin: 0; }
/* visor em tela baixa (ex.: 360×640): foto um pouco menor para não encostar no título */
@media (max-width: 899px) and (max-height: 700px) { .jv-media img { max-height: calc(54svh - 70px); } }

/* ================= revisão 7 ================= */
/* marca no hero: selo com anel dourado + nome em serifa, revelado em máscara antes do título */

@media (max-width: 899px) and (orientation: portrait) {
  .hero .hero-copy h1 { font-size: clamp(38px, 12vw, 58px); margin-top: 8px; }
  .hero .hero-shade { background: linear-gradient(180deg, rgba(8, 7, 6, .82) 0, rgba(8, 7, 6, .5) 70px, rgba(8, 7, 6, 0) 130px), linear-gradient(0deg, rgba(8, 7, 6, .96) 0, rgba(8, 7, 6, .9) 34%, rgba(8, 7, 6, .6) 52%, rgba(8, 7, 6, 0) 68%); }
}

/* linha de entrada da montagem: na tela de entrada, some junto com o letreiro quando a janela cresce */
.mont-lead { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: calc(var(--nav-h) + 22px); display: grid; gap: 4px; opacity: var(--mq); color: var(--ink); pointer-events: none; }
.mont-lead .kick { color: #6c6457; margin-bottom: 8px; }
.mont-lead .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; font: 400 clamp(32px, 9.4vw, 72px)/1 var(--serif); letter-spacing: -.01em; }
.mont-lead .ln > * { display: block; }
.mont-lead em { color: #8d6d16; }
.lite .mont-lead { position: static; opacity: 1; padding: 0 0 22px; }

/* passo 7 como o hero: foto grande e inteira sobre a própria foto desfocada (sem moldura), texto do HUD sobre degradê */
.final { box-shadow: none; border-radius: 0; z-index: 1; }
.final img { border-radius: 0; }
.final figcaption { top: auto; bottom: 10px; left: 12px; color: rgba(239, 232, 218, .8); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.final-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(var(--ph, 0) * (1 - var(--hout, 0))); background: linear-gradient(0deg, rgba(10, 9, 8, .92) 0, rgba(10, 9, 8, .6) 26%, rgba(10, 9, 8, 0) 42%); }
@media (min-width: 900px) { .final-shade { background: linear-gradient(90deg, rgba(10, 9, 8, .86) 0, rgba(10, 9, 8, .5) 24%, rgba(10, 9, 8, 0) 42%), linear-gradient(0deg, rgba(10, 9, 8, .7) 0, rgba(10, 9, 8, 0) 26%); } }
.lite .final-shade { display: none; }

/* destaques: o fundo desfocado da janela fica SEMPRE na tela (nunca quadro preto); as fotos não têm fundo próprio escuro */
.dw-ph { background: transparent; }
.motion .dw-label b, .motion .dw-label .kick { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }

/* quarto: foto INTEIRA desde o começo; uma luz quente passa pelo painel de LED; aproximação de no máximo 2,5 % */
.tko-pic img { object-fit: cover; }
.tko-sweep { position: absolute; overflow: hidden; pointer-events: none; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 32%, #000 46%, transparent 54%); mask-image: linear-gradient(180deg, transparent 22%, #000 32%, #000 46%, transparent 54%); }
.tko-sweep i { position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; background: linear-gradient(90deg, rgba(255, 186, 104, 0), rgba(255, 196, 120, .5) 50%, rgba(255, 186, 104, 0)); }
.tko-shade { background: linear-gradient(0deg, rgba(10, 9, 8, .82) 0, rgba(10, 9, 8, .5) 20%, rgba(10, 9, 8, 0) 32%); }
@media (min-width: 900px) { .tko-shade { background: linear-gradient(90deg, rgba(10, 9, 8, .78) 0, rgba(10, 9, 8, .4) 32%, rgba(10, 9, 8, 0) 50%); } .tko-copy { max-width: 42vw; bottom: 72px; } }

/* tela baixa em pé (ex.: 360×640): o bloco da marca sobe mais na foto — degradê mais alto para manter AA */
@media (max-width: 899px) and (orientation: portrait) and (max-height: 720px) {
  .hero .hero-shade { background: linear-gradient(180deg, rgba(8, 7, 6, .82) 0, rgba(8, 7, 6, .5) 70px, rgba(8, 7, 6, 0) 130px), linear-gradient(0deg, rgba(8, 7, 6, .96) 0, rgba(8, 7, 6, .9) 40%, rgba(8, 7, 6, .66) 60%, rgba(8, 7, 6, 0) 78%); }
}

/* ================= revisão 8 ================= */
/* celular em pé: a foto da janela ocupa toda a largura (inteira, sem corte) e o título vem logo abaixo;
   foto + título ficam centrados juntos entre o menu e a base — o desfoque sobra no máximo ~15 % de cada lado */
@media (max-width: 899px) and (orientation: portrait) {
  .dw .dw-ph { display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .dw .dw-ph picture { position: relative; inset: auto; width: 100%; height: auto; flex: none; }
  .dw .dw-ph picture img { position: relative; inset: auto; display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - var(--nav-h) - 200px); margin: 0 auto; }
  .dw .dw-cap { position: relative; padding: 30px var(--pad) 0; background: none; }
  .dw .dw-cap > * { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
}

/* ================= revisão 9: a cozinha INTEIRA, nada por cima dos móveis ================= */
/* celular/tablet em pé: a foto quadrada inteira na largura toda, logo abaixo do menu; o título vem embaixo, no grafite.
   A primeira tela fica mais baixa que 100svh e a entrada da montagem já aparece embaixo. Arquivo nativo 1199 px. */
@media (max-width: 899px) and (orientation: portrait) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: var(--nav-h); }
  .hero .hero-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; flex: none; overflow: hidden; }
  .hero .hero-media picture { position: absolute; inset: 0; height: 100%; }
  .hero .hero-media .hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: none; transform: none; -webkit-mask-image: none; mask-image: none; }
  .hero .hero-shade { display: none; }
  .hero .hero-copy { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; padding: 22px var(--pad) 0; }
  .hero .hero-scroll { position: relative; inset: auto; left: auto; right: auto; bottom: auto; margin: 0; padding: 18px 0 22px; text-align: center; }
}
/* desktop e celular deitado: a foto inteira à direita (contain, sem degradê por cima), o título ao lado, no fundo desfocado */
@media (min-width: 900px), (max-width: 899px) and (orientation: landscape) {
  .hero .hero-media .hero-pic { position: absolute; inset: auto; top: calc(50% + var(--nav-h) / 2); right: max(24px, 3vw); left: auto; bottom: auto;
    width: auto; height: min(calc(100% - var(--nav-h) - 32px), 62vw); aspect-ratio: 1; max-width: none; object-fit: contain;
    transform: translateY(-50%); animation: none; -webkit-mask-image: none; mask-image: none; }
  .hero .hero-shade { display: none; }
  .hero .hero-copy { max-width: calc(100vw - min(100svh - var(--nav-h) - 32px, 62vw) - 2 * var(--pad) - 4vw); }
  .hero h1 { font-size: clamp(40px, 4.6vw, 96px); }
}

/* passo 7: foto inteira (sem corte), HUD logo abaixo dela no celular; no desktop a foto fica à direita do HUD */
.final figcaption { left: 10px; bottom: 8px; }
@media (max-width: 899px) {
  .stage.done .hud-step { transform: translateY(calc(-1 * var(--hup, 70px))); }
  .final-shade { background: linear-gradient(0deg, rgba(10, 9, 8, .9) 0, rgba(10, 9, 8, .55) calc((100% - var(--fy, 0px) - var(--fs, 0px)) * .6), rgba(10, 9, 8, 0) calc(100% - var(--fy, 0px) - var(--fs, 0px))); }
}
@media (min-width: 900px) { .final-shade { background: linear-gradient(90deg, rgba(10, 9, 8, .86) 0, rgba(10, 9, 8, .45) calc(var(--fx, 0px) * .7), rgba(10, 9, 8, 0) var(--fx, 0px)); } }

/* ================= revisão 10: tons quentes no lugar do quase-preto (nenhum momento de tela cheia escura) ================= */
.hero { background: #2a241e; }
.win { background: radial-gradient(120% 90% at 50% 38%, #5c4b39 0%, #3d3228 55%, #2b241d 100%); }
.win::before { background: radial-gradient(110% 80% at 50% 35%, #6e5538 0%, #46382a 55%, #2f271f 100%); }
.win-shade { background: linear-gradient(0deg, rgba(34, 28, 22, .8), rgba(34, 28, 22, 0)); }
.dest, .dw-stage { background: #2a241e; }
.dw-cap { background: linear-gradient(0deg, rgba(34, 28, 22, .84) 0, rgba(34, 28, 22, .55) 45%, rgba(34, 28, 22, 0) 100%); }
.tko-frame { background-color: #2a241e; }
.tko-shade { background: linear-gradient(0deg, rgba(34, 28, 22, .84) 0, rgba(34, 28, 22, .5) 20%, rgba(34, 28, 22, 0) 32%); }
@media (min-width: 900px) { .tko-shade { background: linear-gradient(90deg, rgba(34, 28, 22, .8) 0, rgba(34, 28, 22, .4) 32%, rgba(34, 28, 22, 0) 50%); } }
.nav-dark .nav-bg { background: linear-gradient(180deg, rgba(42, 36, 30, .94), rgba(42, 36, 30, .8)); }
.jv { background: #2a241e; }
@media (max-width: 899px) {
  .final-shade { background: linear-gradient(0deg, rgba(34, 28, 22, .9) 0, rgba(34, 28, 22, .55) calc((100% - var(--fy, 0px) - var(--fs, 0px)) * .6), rgba(34, 28, 22, 0) calc(100% - var(--fy, 0px) - var(--fs, 0px))); }
  /* passo 7: rótulo com folga embaixo da foto; o contador fica na mesma linha do botão (sem vão) */
  .stage .hud-count { transition: transform .5s var(--out); }
  .stage.done .hud-count { transform: translateY(calc(-1 * var(--cup, 0px))); }
}
@media (min-width: 900px) { .final-shade { background: linear-gradient(90deg, rgba(34, 28, 22, .86) 0, rgba(34, 28, 22, .45) calc(var(--fx, 0px) * .7), rgba(34, 28, 22, 0) var(--fx, 0px)); } }

/* ================= revisão 11 (QA final) ================= */
/* A2: nada vaza na horizontal em modo nenhum (fundos desfocados com scale ficam presos no próprio quadro) */
html, body { overflow-x: clip; }
.dw, .dw-clip, .dw-ph, .tko-frame, .tko-stage, .hero-media, .win, .jv { overflow: clip; }

/* M4: cabeçalho sempre legível — sem "diferença"; uma placa quente fixa atrás, clara nas seções claras */
.nav { mix-blend-mode: normal; color: var(--ivory); }
.nav-bg { opacity: 1; background: linear-gradient(180deg, rgba(42, 36, 30, .96), rgba(42, 36, 30, .86)); box-shadow: none; }
.nav-light .nav-bg { background: rgba(236, 228, 214, .95); box-shadow: 0 1px 0 rgba(20, 19, 17, .08); }
.nav-light .nav { color: var(--ink); }
.menu.open { padding: 10px 16px; border-radius: 14px; background: rgba(42, 36, 30, .96); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.nav-light .menu.open { background: rgba(236, 228, 214, .98); }
/* M6: menu fechado e HUD apagado fora do foco; alvos de toque ≥ 44 px */
.menu { visibility: hidden; transition: visibility 0s .5s; }
.menu.open { visibility: visible; transition-delay: 0s; }
.menu a { min-height: 44px; align-items: center; }
.menu-btn, .nav-cta { min-height: 44px; align-items: center; }
.nav { padding-top: 8px; }
.nav-logo { top: 5px; padding: 5px; margin-left: -5px; }
.brand { margin-top: 2px; }
.hud-dots button { width: 44px; height: 44px; }
.hud-arrows button { width: 44px; height: 44px; }
.hud-cta { visibility: hidden; transition: opacity .5s var(--out), transform .5s var(--out), visibility 0s .5s; }
.stage.done .hud-cta { visibility: visible; transition-delay: 0s; }
.jv-tags li + li::before { content: none; }
.jv-tags li:not(:last-child)::after { content: '·'; margin-left: 14px; color: rgba(239, 232, 218, .4); }

/* M5: rótulos sobre foto com fundo local (≥ 4,5:1 medido) */
.motion .dw-label { left: 50%; right: auto; width: max-content; max-width: 88vw; transform: translateX(-50%); padding: 14px 20px; border-radius: 14px; background: rgba(34, 28, 22, .84); }
.motion .dw-label .kick { color: rgba(239, 232, 218, .86); }
.motion .dw-hint { left: 50%; right: auto; width: max-content; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(34, 28, 22, .84); color: rgba(239, 232, 218, .9); }
.final figcaption { padding: 6px 10px; border-radius: 999px; background: rgba(34, 28, 22, .82); color: rgba(239, 232, 218, .92); text-shadow: none; }
.enter { color: rgba(20, 19, 17, .74); }

/* M2: modo leve / movimento reduzido — nada escondido */
.lite .dw { height: auto; min-height: 0; }
.lite .dw-clip { position: relative; inset: auto; }
.lite .dw-ph { position: relative; inset: auto; opacity: 1; display: block; padding: 0 0 28px; cursor: zoom-in; }
.lite .dw-ph picture { position: relative; inset: auto; height: auto; }
.lite .dw-ph picture img { position: relative; inset: auto; width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.lite .dw-cap { position: relative; background: none; padding: 14px var(--pad) 0; }
.lite .dw-open { display: none; }
.lite .dw-ph:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.lite .tko-pic img, .js:not(.motion) .tko-pic img { object-fit: contain; }
.lite .win { background: #2a241e; }
.lite .lite-steps { background: #2a241e; }

/* M3: celular deitado — quarto, ofício e visor com foto ao lado do texto */
@media (orientation: landscape) and (max-height: 500px) {
  .tko-stage { min-height: 0; }
  .tko-copy { right: auto; max-width: 46vw; bottom: 20px; }
  .tko-line { font-size: clamp(24px, 4.2vw, 40px); }
  .tko-shade { background: linear-gradient(90deg, rgba(34, 28, 22, .82) 0, rgba(34, 28, 22, .4) 40%, rgba(34, 28, 22, 0) 58%); }
  .of-stage { display: flex; align-items: center; padding-block: calc(var(--nav-h) + 8px) 24px; }
  .of-copy { max-width: calc(100% - 64.5vh - 4vw); }
  .of-title { font-size: clamp(34px, 6vw, 60px); }
  .of-text { font-size: clamp(18px, 2.6vw, 26px); }
  .jv { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 44vw; }
  .jv-media { padding: 54px 12px 12px 16px; }
  .jv-media img { max-height: calc(100vh - 70px); }
  .jv-info { align-content: center; padding: 54px 20px 16px 8px; gap: 6px; }
  .jv-title { font-size: clamp(24px, 4vw, 36px); }
  .jv-text { font-size: 13px; }
}

/* sem JavaScript: as janelas viram uma lista (como no modo leve) e as cópias em <noscript> aparecem */
html:not(.js) .dw { height: auto; min-height: 0; }
html:not(.js) .dw-clip { position: relative; inset: auto; }
html:not(.js) .dw-ph { position: relative; inset: auto; opacity: 1; display: block; padding: 0 0 28px; }
html:not(.js) .dw-ph picture { position: relative; inset: auto; height: auto; }
html:not(.js) .dw-ph picture img { position: relative; inset: auto; width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
html:not(.js) .dw-open, html:not(.js) img[data-src] { display: none; }
html:not(.js) .dw-cap { position: relative; background: none; padding: 14px var(--pad) 0; }
html:not(.js) .tko-pic img { object-fit: contain; }
/* M5: legenda das janelas com fundo local mais forte (texto pequeno ≥ 4,5:1 também sobre foto clara) */
.dw-cap { background: linear-gradient(0deg, rgba(34, 28, 22, .92) 0, rgba(34, 28, 22, .74) 48%, rgba(34, 28, 22, 0) 100%); }
.dw-cap .kick, .dw-more { color: rgba(239, 232, 218, .92); }

@media (max-width: 899px) and (orientation: portrait) { .hero .hero-scroll { padding: 12px 0 14px; } }
/* alvos de 44 px nos textos que rolam no hover: a cópia fica mais abaixo, fora da área (só aparece no hover) */
.roll span::after { top: calc(100% + 18px); }
.roll:hover span, .roll:focus-visible span { transform: translateY(calc(-100% - 18px)); }
.lite .mont-lead { padding: 0 var(--pad) 22px; }
@media (orientation: landscape) and (max-height: 500px) {
  .mont-lead { top: calc(var(--nav-h) + 6px); }
  .mont-lead .ln { font-size: clamp(22px, 3.6vw, 32px); }
  .mont-lead .kick { margin-bottom: 4px; }
}

/* revisão 12 · M1 em celular alto (ex.: 430×932): a frase de entrada cresce com a altura para não sobrar faixa creme lisa embaixo dela */
@media (max-width: 899px) and (orientation: portrait) and (min-height: 900px) {
  .js:not(.lite) .mont-lead .ln { font-size: min(12vw, 5.6svh); }
}

/* ================= revisão 13 ================= */
/* 1) nenhuma foto vira bloco escuro: o que fica por baixo enquanto ela chega (ou se falhar) é quente e claro,
      os fundos desfocados das fotos deixam de ser escurecidos, e uma imagem que falha duas vezes some e mostra a miniatura embutida */
.dw-stage { background: #6f5b47; }
.dw-clip { background: #7a6450; }
.dw, .dw-ph, .tko-frame, .final, .of-photo { background-color: #7a6450 !important; }
img.img-falhou { opacity: 0 !important; }
/* legenda das janelas: com o fundo desfocado mais claro, o degradê atrás dela fica mais firme (AA) */
.dw-cap { background: linear-gradient(0deg, rgba(34, 28, 22, .93) 0, rgba(34, 28, 22, .8) 52%, rgba(34, 28, 22, 0) 100%); }
/* no celular em pé a legenda fica embaixo da foto, direto sobre o desfoque: uma faixa quente translúcida, com bordas suaves, atrás dela */
@media (max-width: 899px) and (orientation: portrait) {
  .dw .dw-cap { padding-bottom: 22px; background: linear-gradient(180deg, rgba(34, 28, 22, 0) 0, rgba(34, 28, 22, .62) 26px, rgba(34, 28, 22, .62) calc(100% - 16px), rgba(34, 28, 22, 0) 100%); }
}
/* fundo da raiz e do corpo: o que aparece em qualquer área ainda não pintada (rolagem rápida, camada nova) — madeira média, nunca preto */
html, body { background-color: #8a7259; }
/* entrada em papel claro (era marrom-grafite de tela cheia) */
.ld-marquee { color: rgba(122, 92, 15, .08); }
.ld-foot span { color: #5e5446; }
.ld-count { color: #221c16; }

/* 2) fecho: um cartão de papel sobre madeira clara que cresce até a tela inteira; só marca, frase, WhatsApp e região.
      Fundo: papel com grão, a cozinha desenhada em traço dourado (se desenha enquanto cresce) e uma faixa de luz quente. */
.close { position: relative; z-index: 2; height: 100svh; min-height: 560px; color: #221c16; background: #b89a74 url(assets/img/textura-madeira.webp); overflow: clip; isolation: isolate; }
.close-card { position: absolute; inset: 0; display: grid; place-items: center; background: #efe8da url(assets/img/textura-papel.webp); overflow: hidden; box-shadow: 0 30px 80px rgba(74, 52, 24, .28); }
.close-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 248, 232, .85) 0, rgba(255, 248, 232, 0) 62%), radial-gradient(140% 90% at 50% 112%, rgba(190, 146, 74, .2) 0, rgba(190, 146, 74, 0) 62%); }
.close-bg::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 60%; background: linear-gradient(100deg, rgba(255, 233, 186, 0) 0, rgba(255, 233, 186, .6) 50%, rgba(255, 233, 186, 0) 100%); transform: translateX(0) skewX(-12deg); opacity: 0; }
.motion .close.on .close-bg::after { animation: luz-dourada 9s ease-in-out infinite; }
@keyframes luz-dourada { 0% { transform: translateX(0) skewX(-12deg); opacity: 0; } 12% { opacity: 1; } 62% { transform: translateX(340%) skewX(-12deg); opacity: 1; } 72%, 100% { transform: translateX(340%) skewX(-12deg); opacity: 0; } }
.close-draw { position: absolute; left: 50%; top: 50%; width: min(160vw, 1200px); max-width: none; height: auto; transform: translate(-50%, -46%); fill: none; stroke: #a8822f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .3; }
.close-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 22px; width: 100%; max-width: 980px; padding: calc(var(--nav-h) + 20px) var(--pad) calc(26px + env(safe-area-inset-bottom)); }
.close-brand { display: grid; justify-items: center; gap: 12px; }
.close-brand img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(176, 138, 58, .55), 0 12px 30px rgba(74, 52, 24, .22); }
.close-word { font: 400 clamp(28px, 7.4vw, 46px)/1 var(--serif); color: #7a5c0f; letter-spacing: .01em; }
.close-title { font: 400 clamp(40px, 11vw, 104px)/.98 var(--serif); letter-spacing: -.015em; max-width: 11em; color: #221c16; }
.close-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.close-title .ln > * { display: block; }
.close-title em { color: #7a5c0f; }
.close-links { justify-content: center; gap: 4px 28px; }
.close .ic-link { color: #221c16; }
.close .ic-link svg { stroke: #8d6d16; }
.close .ic-link svg .dot { fill: #8d6d16; }
.close .ic-link:hover { color: #7a5c0f; }
.close .ic-link:hover svg { stroke: #7a5c0f; }
.close .btn { transition: background .3s var(--out); }   /* sem transição de transform: quem move o botão aqui é a animação */
.close-foot { font: 500 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #5e5446; }
@media (min-width: 900px) {
  .close-in { gap: 26px; }
  .close-brand img { width: 84px; height: 84px; }
  .close-draw { width: min(92vw, 1300px); opacity: .26; stroke-width: .75; }
}
/* celular deitado: marca em linha e tipos menores para caber em ~390 px de altura */
@media (orientation: landscape) and (max-height: 500px) {
  .close { min-height: 0; }
  .close-in { gap: 12px; padding: calc(var(--nav-h) + 6px) var(--pad) 12px; }
  .close-brand { display: flex; align-items: center; gap: 12px; }
  .close-brand img { width: 44px; height: 44px; }
  .close-word { font-size: 26px; }
  .close-title { font-size: clamp(28px, 5.2vw, 46px); max-width: none; }
  .btn-xl { min-height: 50px; }
  .close-draw { width: 100vw; }
}
/* deitado bem baixo (ex.: 568×320): mais apertado, alvos de toque continuam com 44 px */
@media (orientation: landscape) and (max-height: 360px) {
  .close-in { gap: 8px; padding: calc(var(--nav-h) + 4px) var(--pad) 8px; }
  .close-brand img { width: 36px; height: 36px; }
  .close-word { font-size: 22px; }
  .close-title { font-size: 24px; }
  .btn-xl { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .close-bg::after { display: none; } }

/* ================= revisão 15 ================= */
/* nenhuma cópia desfocada de foto em lugar nenhum: onde a foto não ocupa a tela, o fundo é liso
   (papel creme nas janelas dos destaques; grafite quente no quarto, no passo 7, no visor e na lateral do hero) */
.dw, .dw-ph, .dw-clip, .tko-frame, .final { background-image: none !important; }
.dw-stage { background: #efe8da; color: #221c16; }
/* rótulo e dica das janelas fechadas: pílula escura com texto claro (o palco agora é claro) */
.motion .dw-label, .motion .dw-label b, .motion .dw-hint { color: #efe8da; }
.dw, .dw-ph, .dw-clip { background-color: #efe8da !important; }
.tko-stage, .tko-frame { background-color: #2a241e !important; }
.final { background-color: transparent !important; }
.jv { background: #2a241e; }
.hero { background: #2a241e; }

/* legenda das janelas: sempre sobre o papel → texto escuro, sem faixa nem sombra */
.dw-cap, .dw .dw-cap { background: none !important; color: #221c16; }
.dw-cap > *, .dw .dw-cap > * { text-shadow: none !important; }
.dw-cap .kick { color: #5e5446 !important; }
.dw-title { color: #221c16; }
.dw-sub { color: #7a5c0f; }
.dw-more { color: #221c16 !important; }

/* celular em pé: a foto vai de lado a lado (largura toda) e a altura segue a proporção; só se faltar altura ela encolhe
   (com papel dos lados, nunca desfoque). O retrato da cozinha em L (1410×1896) fica com 390×524 a 390 px */
@media (max-width: 899px) and (orientation: portrait) {
  .dw .dw-ph picture img { width: 100%; height: auto; max-width: 100%; max-height: calc(100svh - var(--nav-h) - 170px); object-fit: contain; }
  .dw .dw-cap { padding: 22px var(--pad) 0; }
}
/* computador: a foto inteira ocupa os 68 % da direita (encostada à esquerda dessa área); a legenda fica na coluna lisa à esquerda */
@media (min-width: 900px) {
  /* revisão 18: a caixa da foto é só a área à direita da coluna da legenda (32 % → borda), nunca mais larga que a tela */
  .dw .dw-ph picture { left: 32%; right: 0; width: auto; }
  .dw .dw-ph picture img { object-position: 50% 50%; }
  .dw .dw-cap { left: var(--pad); right: auto; bottom: 64px; width: calc(32% - 2 * var(--pad)); padding: 0; }
  .dw-title { font-size: clamp(34px, 3.6vw, 60px); }
}

/* ================= revisão 16 ================= */
/* computador: a foto da janela começa abaixo do menu (não passa por trás dele) */
@media (min-width: 900px) { .dw .dw-ph picture { top: var(--nav-h); bottom: 0; height: auto; } }
/* celular deitado / tela baixa: o palco tem a altura da tela (sem o mínimo de 520 px); a foto fica INTEIRA pela altura,
   à direita, e a legenda numa coluna lisa ao lado — nunca por cima da foto nem fora da tela */
@media (orientation: landscape) and (max-height: 500px) {
  .motion .dw-stage, .motion .ow-stage { height: 100svh; min-height: 0; }
  .motion .dw .dw-ph { display: block; padding: 0; }
  .motion .dw .dw-ph picture { position: absolute; inset: var(--nav-h) 0 0 40%; width: auto; height: auto; }
  .motion .dw .dw-ph picture img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: 0% 50%; }
  .motion .dw .dw-cap { position: absolute; left: var(--pad); right: auto; top: var(--nav-h); bottom: 0; width: calc(40% - 2 * var(--pad)); padding: 0; display: grid; align-content: center; gap: 6px; }
  .motion .dw-title { font-size: clamp(22px, 4vw, 34px); }
  .motion .dw-label { padding: 8px 14px; gap: 4px; }
  .motion .dw-label b { font-size: clamp(18px, 3.4vw, 26px); }
  .motion .dw-hint { display: none; }
}
/* foto que falhou em todos os formatos: um aviso curto no lugar dela (a legenda continua), nunca um palco vazio */
.foto-falhou::after { content: 'Foto indisponível'; position: absolute; left: 50%; top: 40%; z-index: 3; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: rgba(34, 28, 22, .84); color: #efe8da; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
img.img-falhou { min-height: 200px; }
/* quarto: o "Obra em destaque" pode passar sobre a parte clara da foto (tablet) — pílula escura atrás, como os outros rótulos */
.tko-copy .kick { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(34, 28, 22, .84); color: rgba(239, 232, 218, .9); }

/* ================= revisão 17 ================= */
/* rótulo "O ofício" maior e mais presente: ~1,45× (11 → 16 px; 18 px no computador), versal espaçado, linha dourada antes; #5e5446 = 6,1:1 no papel */
.of-kick { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; letter-spacing: .28em; color: #5e5446; }
.of-kick::before { content: ''; width: 34px; height: 2px; background: var(--gold); flex: none; }
@media (min-width: 900px) { .of-kick { font-size: 18px; } .of-kick::before { width: 44px; } }
@media (orientation: landscape) and (max-height: 500px) { .of-kick { font-size: 14px; gap: 10px; } .of-kick::before { width: 26px; } }
/* a frase nova é mais curta: menos papel liso entre o fim do ofício e o fecho (era --sp-m, até 96 px) */
.of-stage { padding-bottom: clamp(24px, 3.5vw, 48px); }
@media (orientation: landscape) and (max-height: 500px) { .of-stage { padding-bottom: 12px; } }
