/* ==========================================================================
   Magalhães Advocacia — index floors (v2 · "A torre à noite")  ·  lighter pass
   Owned by the INDEX builder. Sits on top of tokens.css + shell.css + world.css.
   Every floor is transparent: the 3D world shows through. Content lives on
   glass, brushed metal, brass and black felt — objects inside the tower.

   Weight rules for this file: no backdrop-filter anywhere, no
   mix-blend-mode, no filter on moving things, no per-frame repaint — motion is
   transform/opacity only, infinite CSS animations pause when their floor is
   off screen (.is-off), glows are small and static.

   Contents
   00  Local tokens, base, floor heading
   01  T · Térreo (hero, street, scroll cue)
   02  LED marquee (dot-matrix lobby display)
   03  03 · Princípio (manifesto + facade windows)
   04  07 · Áreas (corridor, office doors)
   05  Drawer — sliding door
   06  12 · Você tem direito? (elevator control panel)
   07  16 · Como funciona (elevator call buttons, cable)
   08  20 · Documentos (mailbox wall, odometer)
   09  23 · Biblioteca (lobby directory board)
   10  25 · Dúvidas (glass rows that light)
   11  27 · Sala 272C (door plate, office, contact, form)
   12  46 · Terraço (finale)
   13  Responsive
   14  Reduced motion / fallbacks
   ========================================================================== */

/* ---------- 00 · Local tokens, base ---------- */
:root {
  --brass-grad: linear-gradient(135deg, #f1dfb6 0%, #d3b270 22%, #b58c46 48%, #e4cb91 66%, #a07c3a 100%);
  --brass-ink: #150c02;
  --metal: linear-gradient(150deg, #44454d 0%, #2a2b32 40%, #373841 62%, #1c1d23 100%);
  --metal-brush: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, rgba(0, 0, 0, .04) 1px 2px, transparent 2px 4px);
  --panel-bg: rgba(12, 14, 22, .72);
  --err: #ff9d92;
  --ease-clunk: cubic-bezier(.2, .9, .25, 1);
  --floor-pad: clamp(48px, 7vh, 100px);
  --dmx-h: clamp(62px, 5.8vw, 82px);
}

body[data-page="index"] #conteudo { overflow-x: clip; }
body[data-page="index"] .floor { position: relative; }
body[data-page="index"] .floor:not(.floor--topo) { padding-block: var(--floor-pad); }

/* off-screen floors: infinite CSS animations pause */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

.noscript-note { padding: 18px 22px; border: 1px solid var(--line-2); background: var(--glass-2); max-width: 60ch; border-radius: var(--radius-2); }
.noscript-note a { color: var(--lamp); text-decoration: underline; }

.link {
  color: var(--lamp); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-thickness .2s, color .2s;
}
.link:hover { text-decoration-thickness: 2px; color: var(--lamp-2); }
.link i { font-style: normal; display: inline-block; transition: transform .3s var(--ease-out); }
.link:hover i { transform: translate(2px, -2px); }

/* floor heading block */
.fhead { margin-bottom: clamp(24px, 3vw, 44px); }
.fhead__title {
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; max-width: 19ch; margin-top: 12px;
  text-shadow: 0 0 28px rgba(5, 6, 11, .8);
}
.floor--areas .fhead__title { max-width: 23ch; }
.fhead__title em, .hero__title em, .terrace__title em, .office__h em { font-style: italic; color: var(--lamp); }
.terrace__title em { white-space: nowrap; }
.fhead__lead { margin-top: 16px; max-width: 50ch; color: var(--text-2); text-shadow: 0 0 18px rgba(5, 6, 11, .9); }
.fhead--row { display: block; }

/* soft local scrim: type that sits straight on the world stays legible over lit windows (static gradient, no blur) */
.fhead, .how__head { position: relative; isolation: isolate; }
.docs__side, .faq__side { isolation: isolate; }
.fhead::before, .how__head::before, .docs__side::before, .faq__side::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -36px -70px -28px -80px;
  background: radial-gradient(ellipse 72% 64% at 36% 48%, rgba(7, 8, 13, .6), rgba(7, 8, 13, .3) 56%, transparent 82%);
}

/* a light sweep injected by main.js into [data-sweep] panels (plain alpha, no blend mode) */
[data-sweep] { position: relative; overflow: clip; }
.sweep {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; pointer-events: none; z-index: 3;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 226, 170, .14) 50%, transparent 100%);
  opacity: 0; will-change: transform;
}

/* ---------- 01 · T · Térreo ---------- */
.floor--topo { padding: 0; }
.hero {
  position: relative; isolation: isolate; min-height: calc(100svh - var(--dmx-h));
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(4px, 2.4vh, 28px));
  padding-bottom: clamp(60px, 9vh, 92px);
}
/* soft left-to-right night scrim keeps the type legible without hiding the tower on the right */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 14, .72) 0%, rgba(8, 9, 14, .5) 38%, rgba(8, 9, 14, .1) 66%, transparent 82%);
}
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__copy { position: relative; max-width: 780px; padding-block: clamp(6px, 2vh, 24px); }
.hero__eyebrow { margin-bottom: clamp(12px, 2vh, 22px); }
.hero__title {
  font-size: clamp(40px, min(5.6vw, 8.6vh), 92px); line-height: 1.02; letter-spacing: -.012em; font-weight: 300;
  max-width: 11.6em; margin: 0; text-shadow: 0 0 40px rgba(5, 6, 11, .8);
}
.hero__line { display: block; }
.hero__title em { --ign: 1; text-shadow: 0 0 calc(var(--ign) * 18px) rgba(242, 182, 90, calc(var(--ign) * .34)), 0 0 40px rgba(5, 6, 11, .6); }
.hx-m { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .05em .16em; margin: -.08em -.05em -.16em; }
.hx-w { display: inline-block; will-change: transform; }
.hero__title.is-done .hx-m { overflow: visible; }
.hero__lead { margin-top: clamp(14px, 2.2vh, 24px); max-width: 50ch; color: var(--text-2); text-shadow: 0 0 22px rgba(5, 6, 11, .85); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 2.8vh, 30px); }

/* brass building plaque */
.plaque {
  position: relative; display: inline-flex; align-items: center; gap: 14px; margin: clamp(16px, 3vh, 34px) 0 0;
  padding: 10px 16px; border-radius: 3px; max-width: 100%;
  background: var(--brass-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(70, 48, 12, .4), 0 10px 24px -12px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.plaque::after { /* one sheen after the intro, not a loop */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: translateX(-160%) skewX(-18deg); animation: plaque-sheen 1.3s var(--ease-io) 1.8s 1 both;
}
@keyframes plaque-sheen { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(380%) skewX(-18deg); } }
.plaque__screw { flex: none; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3d2, #8f6d2c 70%); box-shadow: inset 0 0 0 1px rgba(60, 40, 8, .5); }
.plaque__txt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; color: var(--brass-ink); font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 244, 214, .55); letter-spacing: .12em;
}
.plaque__txt i { width: 4px; height: 4px; border-radius: 50%; background: rgba(42, 28, 8, .7); }

/* fallback SVG tower: only when WebGL is missing */
.hero__tower { display: none; position: relative; height: min(70vh, 640px); min-height: 360px; }
html.no-webgl .hero__tower { display: block; }
.hero__tower .tower { position: absolute; inset: 0; width: 100%; height: 100%; }
html.no-webgl .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

/* scroll cue: a tiny elevator car climbs a shaft (one transform-only animation) */
.hero__foot { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 40px); z-index: 2; pointer-events: none; }
.hero__cue { display: inline-flex; align-items: center; gap: 14px; color: var(--text-2); min-height: 44px; transition: color .3s; pointer-events: auto; }
.hero__cue:hover { color: var(--lamp-2); }
.hero__cue-car { position: relative; width: 12px; height: 38px; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); overflow: hidden; }
.hero__cue-car i { position: absolute; left: 2px; right: 2px; bottom: 0; height: 7px; background: var(--lamp); border-radius: 1px; animation: car-up 2.4s var(--ease-io) 1.6s 3 both; will-change: transform, opacity; }
.hero__cue-car i:nth-child(n+2) { display: none; }
@keyframes car-up { 0% { transform: translateY(8px); opacity: 0; } 25%, 75% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.hero__cue-up { color: var(--lamp); display: inline-block; }

/* street-level light streaks (headlights / taillights): two, transform-only */
.hero__street { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; pointer-events: none; z-index: 1; }
.hero__street i {
  position: absolute; top: 0; height: 2px; width: 150px; left: -200px; border-radius: 2px; will-change: transform;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 150, .85), transparent);
  animation: streak 12s linear 2s 2 both; will-change: transform;
}
.hero__street i:nth-child(2) { width: 90px; background: linear-gradient(90deg, transparent, rgba(255, 92, 80, .8), transparent); animation: streak-r 14s linear 4s 2 both; }
.hero__street i:nth-child(n+3) { display: none; }
@keyframes streak { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(2800px, 0, 0); } }
@keyframes streak-r { from { transform: translate3d(2800px, 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* ---------- 02 · LED marquee (dot-matrix lobby display) ----------
   Three static/GPU layers and no repaint while it scrolls: dim LEDs (background),
   the moving text (transform only), and a static dark plate with round holes on top. */
.dmx {
  position: relative; background: #070605;
  border-block: 1px solid rgba(201, 162, 94, .28);
  box-shadow: 0 -14px 36px -24px rgba(242, 182, 90, .16);
}
.dmx__view {
  --p: 4px; position: relative; overflow: hidden; padding-block: clamp(9px, 1.2vw, 15px);
  background: radial-gradient(circle at 50% 50%, rgba(242, 182, 90, .12) 0, rgba(242, 182, 90, .12) calc(var(--p) * .27), transparent calc(var(--p) * .44)) 0 0 / var(--p) var(--p);
}
.dmx__view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent calc(var(--p) * .27), #070605 calc(var(--p) * .46)) 0 0 / var(--p) var(--p);
}
.dmx__track { display: flex; width: max-content; will-change: transform; }
.dmx__row {
  flex: none; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); padding-right: clamp(20px, 2.6vw, 40px); white-space: nowrap;
  font-family: var(--f-body); font-weight: 600; font-size: clamp(26px, 3.4vw, 46px); line-height: 1; letter-spacing: .09em; text-transform: uppercase;
  color: var(--lamp-2);
}
.dmx__row i { width: .3em; height: .3em; background: var(--lamp); transform: rotate(45deg); flex: none; }
.dmx.is-static .dmx__track { width: auto; justify-content: center; }
.dmx.is-static .dmx__row { flex: 1 1 auto; max-width: 100%; flex-wrap: wrap; white-space: normal; justify-content: center; padding-inline: var(--gutter); row-gap: 6px; }

/* ---------- 03 · 03 · Princípio ---------- */
.principio { position: relative; display: grid; align-items: center; isolation: isolate; }
.principio::before { /* night scrim: keeps the paragraph readable where the tower glows behind it */
  content: ""; position: absolute; inset: -6% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 14, .7) 0%, rgba(8, 9, 14, .55) 52%, rgba(8, 9, 14, .2) 80%, transparent 100%);
}
.principio__glow {
  position: absolute; inset: -10%; pointer-events: none; opacity: calc(var(--lit, 0) * .8); will-change: opacity;
  background: radial-gradient(48% 52% at 38% 50%, rgba(242, 182, 90, .1), rgba(142, 42, 47, .04) 60%, transparent 76%);
}
.principio__grid { position: relative; }
.principio__body { max-width: 1080px; }
.manifesto {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 4vw, 62px); line-height: 1.12; letter-spacing: -.012em;
  margin-top: clamp(14px, 2.2vw, 24px); text-wrap: pretty; text-shadow: 0 0 24px rgba(5, 6, 11, .8);
}
.manifesto__sign { margin-top: clamp(20px, 3vw, 34px); padding-top: 16px; border-top: 1px solid var(--line); max-width: 30em; color: var(--muted); }

.principio__facade { display: none; }
@media (min-width: 900px) {
  .principio__grid { padding-left: clamp(80px, 10vw, 150px); }
  .principio__facade {
    display: grid; position: absolute; left: 0; top: 2%; bottom: 2%; width: clamp(48px, 6vw, 88px);
    grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 8px; align-content: stretch;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  }
}
.principio__facade i {
  border: 1px solid rgba(240, 232, 217, .08); border-radius: 1px; background: rgba(240, 232, 217, .012);
  transition: background-color .35s var(--ease-out), border-color .35s;
}
.principio__facade i.on {
  background: linear-gradient(180deg, rgba(255, 226, 170, .42), rgba(242, 182, 90, .2));
  border-color: rgba(255, 212, 138, .38); box-shadow: 0 0 10px rgba(242, 182, 90, .25);
}
/* each window catches like an old fluorescent tube (one-shot, opacity only) */
html.has-motion .principio__facade i.on { animation: win-on .55s linear both; }
@keyframes win-on { 0% { opacity: .3; } 12% { opacity: 1; } 22% { opacity: .45; } 38% { opacity: 1; } 50% { opacity: .7; } 100% { opacity: 1; } }

/* ---------- 04 · 07 · Áreas — doors on a corridor ---------- */
.corridor {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px);
  padding: 38px 0 26px; margin: 0; list-style: none;
}
.corridor::before { /* ceiling track */
  content: ""; position: absolute; left: -3%; right: -3%; top: 10px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 94, .6) 10%, rgba(224, 192, 132, .7) 50%, rgba(201, 162, 94, .6) 90%, transparent);
}
.corridor::after { /* polished floor edge */
  content: ""; position: absolute; left: -3%; right: -3%; bottom: 0; height: 30px; pointer-events: none;
  background: linear-gradient(180deg, rgba(240, 214, 160, .06), transparent 90%);
  border-top: 1px solid rgba(240, 214, 160, .14);
}
.slot { position: relative; min-width: 0; }
.slot::before { /* ceiling spot */
  content: ""; position: absolute; left: 50%; top: -34px; width: 22px; height: 6px; margin-left: -11px; border-radius: 2px 2px 7px 7px;
  background: linear-gradient(180deg, #8a6a30, #d3b270);
}
.slot::after { /* cone of light — subtle until its door wakes up */
  content: ""; position: absolute; left: 50%; top: -28px; width: 110%; height: 96px; margin-left: -55%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 220, 160, .14), transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); opacity: .3; transition: opacity .4s var(--ease-out);
}
.slot:has(.door:is(:focus-within, .is-lit))::after { opacity: .85; }
@media (hover: hover) { .slot:has(.door:hover)::after { opacity: .85; } }

.door {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: clamp(400px, 52vh, 520px); height: 100%;
  padding: 10px 12px 12px; border-radius: 6px 6px 3px 3px; overflow: clip;
  transition: border-color .4s, box-shadow .4s;
}
.door__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.door__lamp { width: 7px; height: 7px; border-radius: 50%; background: #3a2c14; transition: background-color .3s; }

/* brass nameplate */
.door__plate {
  position: relative; display: grid; gap: 6px; padding: 12px 12px 11px; border-radius: 3px;
  background: var(--brass-grad); color: var(--brass-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(70, 48, 12, .35), 0 8px 18px -12px rgba(0, 0, 0, .8);
}
.door__plate .door__num { color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 214, .5); }
.door__title {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.12; letter-spacing: -.004em;
  text-shadow: 0 1px 0 rgba(255, 244, 214, .5);
}
.door__title em { font-style: italic; font-weight: 400; color: inherit; }
.door__plate .cite { color: var(--brass-ink); font-size: 11px; line-height: 1.4; text-shadow: 0 1px 0 rgba(255, 244, 214, .45); }

/* frosted pane — a light switches on behind it (no blur: a milky wash + fine lines) */
.door__pane {
  position: relative; flex: 1 1 110px; min-height: 110px; border-radius: 3px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(240, 214, 160, .12);
  background: linear-gradient(180deg, rgba(240, 232, 217, .09), rgba(240, 232, 217, .03)), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .3);
}
.door__pane::before { /* the lamp light */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(75% 65% at 50% 40%, rgba(255, 226, 170, .8) 0%, rgba(242, 182, 90, .42) 44%, rgba(142, 42, 47, .08) 80%, transparent 100%);
  transition: opacity .45s var(--ease-out);
}
.door__pane::after { /* blinds slats */
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(8, 8, 12, .5) 0 var(--slat, 5px), transparent var(--slat, 5px) 15px);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 96%);
  transition: opacity .4s;
}
.door__pane--b { --slat: 3px; } .door__pane--c { --slat: 7px; } .door__pane--d { --slat: 4px; }
.door__sil {
  position: absolute; left: var(--sx, 50%); bottom: 8%; width: min(58%, 108px);
  fill: rgba(8, 8, 12, .82); stroke: rgba(8, 8, 12, .82); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round;
  opacity: 0; transform: translate(-50%, 6px) scaleX(var(--fl, 1)); transition: opacity .4s .05s, transform .5s var(--ease-out);
}
.door__pane--b { --fl: -1; } .door__pane--c { --sx: 32%; } .door__pane--d { --fl: -1; --sx: 66%; }

.door__sum { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }

.door__enter {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px;
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px;
}
.door__handle { flex: none; width: 5px; height: 30px; border-radius: 3px; background: var(--brass-grad); transition: transform .35s var(--ease-out); }
.door__enter-txt { flex: 1; }
.door__enter-ico { transition: transform .3s var(--ease-out); color: var(--lamp); }
.door__sill { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--lamp-2), transparent); opacity: 0; transition: opacity .4s; }
/* entering: a blade of warm light opens down the middle of the door (injected by main.js; transform/opacity only) */
.door__gap {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transform: scaleX(.02);
  background: linear-gradient(90deg, transparent 0%, rgba(242, 182, 90, .3) 24%, rgba(255, 220, 160, .78) 43%, #fff4de 50%, rgba(255, 220, 160, .78) 57%, rgba(242, 182, 90, .3) 76%, transparent 100%);
}
.door.is-opening .door__gap { animation: door-gap .8s linear both; }
@keyframes door-gap {
  0% { opacity: 0; transform: scaleX(.02); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  28% { opacity: .95; transform: scaleX(.16); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  100% { opacity: 0; transform: scaleX(1.2); }
}

/* light ON: hover, keyboard focus, motion-sensor sequence (.is-lit) */
.door.is-opening .door__pane::before { opacity: 1; }
.door.is-opening .door__sil { opacity: 1; transform: translate(-50%, 0) scaleX(var(--fl, 1)); }
.door:is(:focus-within, .is-lit, .is-opening) { border-color: rgba(255, 212, 138, .45); box-shadow: 0 0 36px -14px rgba(242, 182, 90, .3); }
.door:is(:focus-within, .is-lit) .door__pane::before { opacity: 1; }
.door:is(:focus-within, .is-lit) .door__pane::after { opacity: .75; }
.door:is(:focus-within, .is-lit) .door__sil { opacity: 1; transform: translate(-50%, 0) scaleX(var(--fl, 1)); }
.door:is(:focus-within, .is-lit) .door__sill { opacity: 1; }
.door:is(:focus-within, .is-lit) .door__lamp { background: var(--lamp); }
.door:is(:focus-within, .is-lit) .door__enter-ico { transform: translateX(4px); }
.door:is(:focus-within, .is-lit) .door__handle { transform: translateY(-2px); }
@media (hover: hover) {
  .door:hover { border-color: rgba(255, 212, 138, .45); box-shadow: 0 0 36px -14px rgba(242, 182, 90, .3); }
  .door:hover .door__pane::before { opacity: 1; }
  .door:hover .door__pane::after { opacity: .75; }
  .door:hover .door__sil { opacity: 1; transform: translate(-50%, 0) scaleX(var(--fl, 1)); }
  .door:hover .door__sill { opacity: 1; }
  .door:hover .door__lamp { background: var(--lamp); }
  .door:hover .door__enter-ico { transform: translateX(4px); }
  .door:hover .door__handle { transform: translateY(-2px); }
}
.door { cursor: pointer; }

/* ---------- 05 · Drawer — sliding door ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s .6s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(4, 5, 9, .7); opacity: 0; transition: opacity .45s var(--ease-out); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__door {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(660px, 100%); display: flex; flex-direction: column; outline: none;
  background: linear-gradient(180deg, #14161f, #0d0f16);
  border-left: 1px solid rgba(240, 214, 160, .18);
  transform: translate3d(104%, 0, 0); transition: transform .55s var(--ease-door);
  box-shadow: -30px 0 60px -24px rgba(0, 0, 0, .8);
}
.drawer.is-open .drawer__door { transform: none; }
.drawer__edge { /* brass door edge with a door pull */
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px; pointer-events: none;
  background: linear-gradient(90deg, #5d4620 0%, #d3b270 34%, #f1dfb6 48%, #b58c46 70%, #3c2d12 100%);
}
.drawer__edge::after { content: ""; position: absolute; top: 50%; height: 140px; margin-top: -70px; right: -20px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #f1dfb6, #8a6a30); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(24px, 3vw, 40px) 16px calc(clamp(24px, 3vw, 40px) + 10px); border-bottom: 1px solid var(--line); }
.drawer__num { display: inline-flex; align-items: center; gap: 12px; color: var(--brass-2); }
.drawer__num i { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }
.drawer__close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--text); transition: color .25s; }
.drawer__close i { font-style: normal; font-size: 26px; line-height: 1; transition: transform .3s var(--ease-out); }
.drawer__close:hover { color: var(--lamp-2); }
.drawer__close:hover i { transform: rotate(90deg); }
.drawer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 3.4vw, 40px) clamp(24px, 3vw, 40px) 32px calc(clamp(24px, 3vw, 40px) + 10px); }
.drawer__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.01em; }
.drawer__title em { color: var(--lamp); font-style: italic; }
.drawer__cite { margin-top: 14px; }
.drawer__body { margin-top: 24px; color: var(--text-2); }
.drawer__body .dpane > * + * { margin-top: 12px; }
.drawer__body .dlead { font-family: var(--f-display); font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; color: var(--text); font-weight: 300; }
.drawer__body .dh { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.drawer__body ul { display: grid; gap: 8px; }
.drawer__body li { position: relative; padding-left: 22px; }
.drawer__body li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--brass); }
.drawer__body strong { font-weight: 600; color: var(--text); }
.drawer__body .dnote { margin-top: 24px; padding: 12px 14px; background: rgba(240, 232, 217, .05); border-left: 2px solid var(--lamp); font-size: 14.5px; color: var(--text-2); }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px clamp(24px, 3vw, 40px) calc(16px + env(safe-area-inset-bottom)) calc(clamp(24px, 3vw, 40px) + 10px); border-top: 1px solid var(--line); background: #0a0b11; }
.drawer__foot .btn { flex: 1 1 auto; white-space: normal; text-align: center; justify-content: center; }
/* contents glide in right after the door has slid */
.drawer__scroll > *, .drawer__head > * { transition: opacity .35s var(--ease-out) .12s, transform .45s var(--ease-out) .12s; }
.drawer:not(.is-open) .drawer__scroll > *, .drawer:not(.is-open) .drawer__head > * { opacity: 0; transform: translateX(18px); transition-delay: 0s; }

/* ---------- 06 · 12 · Você tem direito? — elevator control panel ---------- */
.ctrl-wrap { max-width: 940px; }
.ctrl {
  position: relative; padding: clamp(12px, 1.6vw, 18px); border-radius: 12px;
  background: var(--metal-brush), var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(0, 0, 0, .5), 0 24px 50px -28px rgba(0, 0, 0, .8);
}
.ctrl__screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #cfd1d7, #666872 62%, #2c2d33); z-index: 2; }
.ctrl__screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); transform: rotate(35deg); }
.ctrl__screw--tl { top: 8px; left: 8px; } .ctrl__screw--tr { top: 8px; right: 8px; }
.ctrl__screw--bl { bottom: 8px; left: 8px; } .ctrl__screw--br { bottom: 8px; right: 8px; }
.ctrl__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 20px 12px; }
.ctrl__led {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border-radius: 3px;
  background: #0a0605; color: var(--lamp-2); letter-spacing: .2em; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 2px 6px rgba(0, 0, 0, .8);
}
.ctrl__led i { width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); }
/* hall lantern: ▲ / ▼ blink as the checker moves forward or back (main.js watches its progress) */
.ctrl__arrows {
  display: inline-flex; gap: 6px; padding: 5px 8px; border-radius: 3px; background: #0a0605;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 2px 6px rgba(0, 0, 0, .8);
}
.ctrl__arrows i { font-style: normal; font-size: 11px; line-height: 1; color: #3a2c14; transition: color .3s, text-shadow .3s; }
.ctrl__arrows.is-up .ctrl__up, .ctrl__arrows.is-dn .ctrl__dn { color: var(--lamp-2); text-shadow: 0 0 8px rgba(242, 182, 90, .8); }
html.has-motion .ctrl__arrows.is-up .ctrl__up, html.has-motion .ctrl__arrows.is-dn .ctrl__dn { animation: lantern .9s steps(1) both; }
@keyframes lantern { 0%, 30%, 60% { opacity: 1; } 15%, 45% { opacity: .35; } }
.ctrl__recess {
  position: relative; border-radius: 8px; padding: clamp(6px, 1.2vw, 12px);
  background: rgba(8, 9, 14, .8);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .6);
}

/* ---------- 07 · 16 · Como funciona — call buttons & cable ---------- */
.floor--como { padding-block: 0 !important; }
.how { --btn: 64px; --gap: 24px; }
.how__pin { padding-block: var(--floor-pad); }
.how__head { margin-bottom: clamp(20px, 3vw, 36px); }
.how__viewport { position: relative; }
.how__rig { position: relative; }
.how__track { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0 var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.step { position: relative; display: grid; grid-template-columns: var(--btn) minmax(0, 1fr); gap: 16px; align-items: start; --f: 1; }
.step::before, .step::after { /* cable segment: this button's centre to the next one's */
  content: ""; position: absolute; left: calc(var(--btn) / 2 - 1px); top: calc(var(--btn) / 2); bottom: calc(-1 * var(--gap) - var(--btn) / 2); width: 2px; z-index: 0;
}
.step::before { background: var(--line-2); }
.step::after { background: var(--lamp); transform-origin: top; transform: scaleY(var(--f)); }
.step:last-child::before, .step:last-child::after { display: none; }

/* round brass elevator call button */
.step__btn {
  position: relative; z-index: 1; width: var(--btn); height: var(--btn); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #f3e2b8 0%, #d3b270 30%, #a07c3a 68%, #5d4620 100%);
  box-shadow: 0 0 0 4px #15161c, 0 0 0 5px rgba(240, 214, 160, .22), inset 0 -3px 6px rgba(60, 40, 8, .5), 0 10px 18px -8px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease-clunk), filter .35s;
}
.step__ring { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(60, 40, 8, .4); transition: border-color .35s, box-shadow .35s; }
.step__num { position: relative; font-family: var(--f-display); font-weight: 500; font-size: calc(var(--btn) * .46); line-height: 1; color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 214, .55); }
.step__card {
  position: relative; z-index: 1; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-2);
  background-color: rgba(12, 14, 22, .76);
  transition: border-color .35s;
}
.step__kicker { color: var(--brass-2); margin-bottom: 8px; }
.how:not(.is-hscroll) .step__card { max-width: 680px; }
.step__title { transition: color .35s; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -.004em; }
.step__card p:not(.step__kicker) { margin-top: 10px; color: var(--text-2); max-width: 46ch; font-size: 16px; line-height: 1.55; }

/* live mode (JS + motion): unlit buttons are dull brass, lit ones glow amber */
.how.is-live .step:not(.is-lit) .step__btn { filter: saturate(.25) brightness(.62); }
.how.is-live .step:not(.is-lit) .step__card :is(h3, p) { color: var(--muted); }
.how.is-live .step:not(.is-lit) .step__kicker { color: var(--brass); }
.how .step.is-lit .step__ring { border-color: var(--lamp); box-shadow: 0 0 10px rgba(242, 182, 90, .55), inset 0 0 10px rgba(255, 212, 138, .55); }
.how .step.is-lit .step__btn { box-shadow: 0 0 0 4px #15161c, 0 0 0 5px rgba(255, 212, 138, .45), 0 0 22px rgba(242, 182, 90, .35), inset 0 -3px 6px rgba(60, 40, 8, .5), 0 10px 18px -8px rgba(0, 0, 0, .7); }
.how .step.is-active .step__btn { transform: scale(.96); }
.how .step.is-active .step__card { border-color: rgba(255, 212, 138, .34); }
.how__foot { display: none; }
.how__car { display: none; }

/* horizontal travel (desktop, pinned — class added by main.js) */
.how.is-hscroll { --btn: 84px; --gap: clamp(30px, 3.4vw, 56px); }
.how.is-hscroll .how__pin { height: 100svh; min-height: 560px; padding-block: calc(var(--header-h) + 4px) 20px; display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.how.is-hscroll .how__head { margin-bottom: clamp(10px, 2.4vh, 28px); }
.how.is-hscroll .how__head .fhead__title { font-size: clamp(30px, 3.8vw, 54px); margin-top: 10px; max-width: 24ch; }
.how.is-hscroll .how__viewport { position: relative; flex: none; width: 100%; overflow: hidden; overflow: clip; contain: paint; padding-block: 24px 4px; }
.how.is-hscroll .how__viewport { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
@media (min-width: 1100px) {
  .how.is-hscroll .how__viewport { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - var(--rail-w) - 60px), transparent calc(100% - var(--rail-w) + 4px)); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - var(--rail-w) - 60px), transparent calc(100% - var(--rail-w) + 4px)); }
}
.how.is-hscroll .how__rig { width: max-content; padding-left: var(--edge, var(--gutter)); padding-right: var(--edge, var(--gutter)); will-change: transform; }
.how.is-hscroll .how__track { display: flex; max-width: none; padding: 0; margin: 0; gap: 0; }
.how.is-hscroll .step { display: block; flex: none; width: clamp(330px, 27vw, 420px); margin-right: var(--gap); }
.how.is-hscroll .step:last-child { margin-right: 0; }
.how.is-hscroll .step__btn { margin-bottom: 20px; }
.how.is-hscroll .step::before, .how.is-hscroll .step::after {
  left: calc(var(--btn) / 2); right: auto; top: calc(var(--btn) / 2 - 1px); bottom: auto; height: 2px; width: calc(100% + var(--gap));
}
.how.is-hscroll .step::after { transform-origin: left; transform: scaleX(var(--f)); }
.how.is-hscroll .step__card { max-width: 100%; }
.how.is-hscroll .step__card p:not(.step__kicker) { font-size: 15.5px; }
.how.is-hscroll .how__car { /* floor indicator: glides along the cable while the building slides past */
  display: block; position: absolute; z-index: 3; top: 4px; left: 0; width: 18px; height: 12px; margin-left: -9px; pointer-events: none; will-change: transform;
  background: var(--lamp-2); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.how.is-hscroll .how__foot { display: block; margin-top: clamp(8px, 2vh, 20px); }
.how__hint { color: var(--muted); white-space: nowrap; }
.how__hint b { font-weight: 500; color: var(--lamp-2); }

/* ---------- 08 · 20 · Documentos — mailboxes & odometer ---------- */
.docs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.docs__side { position: sticky; top: calc(var(--header-h) + 20px); will-change: transform; }
.docs__lead { margin-top: 16px; max-width: 44ch; color: var(--text-2); text-shadow: 0 0 18px rgba(5, 6, 11, .8); }
.docs__meter { margin-top: clamp(18px, 2.6vw, 28px); display: grid; gap: 14px; }
.cnt { display: flex; align-items: flex-end; gap: 16px; }
.cnt__win {
  position: relative; display: block; overflow: hidden; height: 1em; font-size: clamp(64px, 7vw, 100px); line-height: 1; padding: .05em .16em; box-sizing: content-box;
  font-family: var(--f-display); font-weight: 300; color: var(--lamp-2); border-radius: 8px;
  background: linear-gradient(180deg, #050406, #14110c 50%, #050406);
  box-shadow: inset 0 0 0 1px rgba(240, 214, 160, .18), inset 0 4px 12px rgba(0, 0, 0, .6);
}
.cnt__strip { display: flex; flex-direction: column; transform: translate3d(0, calc(var(--n, 0) * -1em), 0); transition: transform .6s var(--ease-door); will-change: transform; }
.cnt__strip i { display: block; height: 1em; line-height: 1; font-style: normal; text-align: center; font-variant-numeric: tabular-nums; }
.cnt__of { color: var(--muted); padding-bottom: .9em; }
.cnt__of b { color: var(--text); font-weight: 500; }
.docs__lamps { display: flex; gap: 8px; flex-wrap: wrap; }
.docs__lamps i { width: 10px; height: 10px; border-radius: 50%; background: #2a2118; transition: background-color .3s; }
.docs__lamps i.on { background: var(--lamp); box-shadow: 0 0 8px rgba(242, 182, 90, .6); }
/* 9 of 9: the lamps run once left to right and a small "complete" plate lights */
.docs__meter.is-chase .docs__lamps i { animation: lamp-chase .5s var(--ease-out) calc(var(--i, 0) * 60ms) both; }
@keyframes lamp-chase { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.7); } }
.docs__done { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); opacity: .35; transition: opacity .4s, color .4s; }
.docs__done i { width: 7px; height: 7px; border-radius: 50%; background: #2a2118; transition: background-color .4s, box-shadow .4s; }
.docs__meter.is-complete .docs__done { opacity: 1; color: var(--lamp-2); }
.docs__meter.is-complete .docs__done i { background: var(--lamp); box-shadow: 0 0 8px rgba(242, 182, 90, .7); }
.docs__meter.is-complete .cnt__win { box-shadow: inset 0 0 0 1px rgba(255, 212, 138, .5), inset 0 4px 12px rgba(0, 0, 0, .6), 0 0 26px -6px rgba(242, 182, 90, .45); }
.cnt__win { transition: box-shadow .5s; }
.docs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: clamp(18px, 2.4vw, 26px); }
.docs__clear { color: var(--text-2); border-bottom: 1px solid var(--line-2); padding: 12px 0 2px; min-height: 44px; transition: color .25s, border-color .25s; }
.docs__clear:hover { color: var(--lamp-2); border-color: var(--lamp); }

.mbx-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: clamp(10px, 1.3vw, 14px); margin: 0; list-style: none;
  border-radius: 10px; background: var(--metal-brush), var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(0, 0, 0, .5), 0 24px 50px -28px rgba(0, 0, 0, .8);
}
.mbx { min-width: 0; perspective: 700px; }
.mbx__in {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 150px; cursor: pointer; overflow: hidden; border-radius: 4px;
  background: linear-gradient(180deg, #16171d, #101116); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.mbx__in input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mbx__flap { /* the little brushed-metal door; swings up when the item is ticked */
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 10px;
  background: var(--metal-brush), linear-gradient(180deg, #55565f, #3a3b43 55%, #2a2b32);
  border-radius: 4px 4px 2px 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 10px -6px rgba(0, 0, 0, .7);
  transform-origin: 50% 0; transition: transform .45s var(--ease-clunk);
}
.mbx__no { color: #d7d1c2; letter-spacing: .1em; }
.mbx__slot { flex: 0 0 46%; height: 4px; border-radius: 3px; background: #0b0b0e; }
.mbx__light {
  position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; border-radius: 4px;
  background: radial-gradient(70% 55% at 50% 0%, rgba(255, 226, 170, .4), rgba(242, 182, 90, .1) 60%, transparent 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 138, .45);
  transition: opacity .4s var(--ease-out);
}
.mbx__txt { position: relative; z-index: 1; display: grid; gap: 4px; padding: 10px 12px 6px; align-content: start; flex: 1; }
.mbx__txt b { font-weight: 500; font-size: 16px; line-height: 1.25; color: var(--text); transition: color .3s; }
.mbx__txt b em { font-style: normal; font-weight: 400; color: var(--muted); }
.mbx__txt small { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.mbx__state { position: relative; z-index: 1; display: flex; align-items: center; padding: 0 12px 10px; }
.mbx__state i { width: 9px; height: 9px; border-radius: 50%; background: #2a2118; transition: background-color .3s; }
.mbx__state::after { content: "Falta"; margin-left: 9px; color: var(--muted); }
input:checked ~ .mbx__flap { transform: rotateX(-74deg); }
input:checked ~ .mbx__light { opacity: 1; }
input:checked ~ .mbx__txt b { color: var(--lamp-2); }
input:checked ~ .mbx__state i { background: var(--lamp); box-shadow: 0 0 8px rgba(242, 182, 90, .6); }
input:checked ~ .mbx__state::after { content: "Tenho"; color: var(--lamp-2); }
.mbx__in input:focus-visible ~ .mbx__txt { outline: 2px solid var(--lamp); outline-offset: -2px; border-radius: 4px; }
@media (hover: hover) { .mbx__in:hover { box-shadow: inset 0 0 0 1px rgba(255, 212, 138, .3); } }

/* ---------- 09 · 23 · Biblioteca — lobby directory board ---------- */
.board { position: relative; max-width: 1060px; }
.board__lamp { display: none; }
.board__frame {
  position: relative; padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2.2vw, 28px) clamp(6px, 1vw, 12px); border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    #0b0b0e;
  border: 5px solid transparent;
  border-image: linear-gradient(135deg, #e4cb91, #a98340 40%, #6b5226 60%, #c9a45e) 1;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .7), 0 24px 50px -28px rgba(0, 0, 0, .8);
}
.board__screw { display: none; }
.board__head { display: flex; justify-content: space-between; gap: 16px; padding: 2px 2px 10px; color: var(--brass-2); letter-spacing: .22em; font-size: 11px; border-bottom: 1px solid rgba(240, 232, 217, .1); }
.board__rows { list-style: none; margin: 0; padding: 0; }
.board__rows > li { border-bottom: 1px solid rgba(240, 232, 217, .06); }
.board__rows > li:last-child { border-bottom: 0; }

.brow {
  position: relative; display: grid; grid-template-columns: clamp(72px, 8vw, 100px) minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2.6vw, 32px);
  padding: clamp(9px, 1.1vw, 14px) 4px; color: var(--text); isolation: isolate;
}
.brow::before { /* the spotlight that lands on the row */
  content: ""; position: absolute; inset: 0 -6px; z-index: -1; opacity: 0; transition: opacity .3s var(--ease-out);
  background: linear-gradient(90deg, rgba(242, 182, 90, .12), transparent 75%);
}
.brow__room { font-size: clamp(17px, 1.8vw, 23px); letter-spacing: .14em; color: var(--lamp); font-weight: 500; }
.brow__main { display: grid; gap: 5px; min-width: 0; }
.brow__title {
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(14px, 1.35vw, 18px); line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  text-wrap: balance; transition: color .25s;
}
.brow__dek { font-size: 14px; line-height: 1.4; color: var(--muted); max-width: 62ch; }
.brow__meta { display: inline-flex; align-items: center; gap: 14px; color: var(--text-2); white-space: nowrap; }
.brow__meta i { font-style: normal; font-size: 19px; color: var(--lamp); transition: transform .3s var(--ease-out); }
.brow:is(:hover, :focus-visible)::before { opacity: 1; }
.brow:is(:hover, :focus-visible) .brow__title { color: var(--lamp-2); }
.brow:is(:hover, :focus-visible) .brow__meta i { transform: translateX(6px); }
/* split-flap cells (built by main.js when motion is allowed) */
.fl-w { display: inline-block; white-space: nowrap; }
.fl-c {
  display: inline-block; min-width: .72em; text-align: center; border-radius: 2px; margin: 1px 1px; padding: 0 .08em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0 49%, rgba(0, 0, 0, .5) 49% 51%, rgba(255, 255, 255, .03) 51% 100%);
  backface-visibility: hidden;
}
.fl-c.flip { animation: flap .22s var(--ease-out); }
.fl-c.flop { animation: flap2 .22s var(--ease-out); }
@keyframes flap { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
@keyframes flap2 { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
.brow__room .fl-c { min-width: .8em; }

/* ---------- 10 · 25 · Dúvidas ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 20px); will-change: transform; }
.faq__lead { margin: 16px 0 22px; max-width: 40ch; color: var(--text-2); text-shadow: 0 0 18px rgba(5, 6, 11, .8); }
.faq__list { display: grid; gap: 8px; }
.qa { position: relative; overflow: clip; background-color: var(--panel-bg); transition: border-color .35s, background-color .35s; }
.qa__light { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--lamp); transform: scaleY(0); transform-origin: center; transition: transform .4s var(--ease-out); }
.qa.is-open { border-color: rgba(255, 212, 138, .3); background-color: rgba(24, 22, 24, .76); }
.qa.is-open .qa__light { transform: scaleY(1); }
.qa__q button { width: 100%; display: grid; grid-template-columns: 3em minmax(0, 1fr) 24px; align-items: start; gap: 8px; text-align: left; padding: 15px clamp(14px, 1.8vw, 22px); min-height: 52px; }
.qa__n { color: var(--brass); padding-top: .5em; transition: color .25s; }
.qa__t { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.22; letter-spacing: -.004em; transition: color .25s; }
.qa.is-open .qa__n { color: var(--lamp); }
.qa.is-open .qa__t { color: var(--lamp-2); }
.qa__q button:hover .qa__t { color: var(--lamp-2); }
.qa__ic { position: relative; width: 18px; height: 18px; margin-top: .5em; justify-self: end; }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; background: var(--text); transition: transform .35s var(--ease-out), background-color .25s; }
.qa__ic::after { transform: rotate(90deg); }
.qa.is-open .qa__ic::after { transform: rotate(0); }
.qa.is-open .qa__ic::before, .qa.is-open .qa__ic::after { background: var(--lamp); }
.qa__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease-door), visibility 0s .4s; }
.qa.is-open .qa__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.qa__a-in { overflow: hidden; padding-left: calc(3em + 8px + clamp(14px, 1.8vw, 22px)); padding-right: clamp(14px, 1.8vw, 32px); }
.qa__a-in p { padding-bottom: 18px; color: var(--text-2); max-width: 62ch; font-size: 16.5px; line-height: 1.6; }
html:not(.js) .qa__a { grid-template-rows: 1fr; visibility: visible; }
/* the answer rises in just after its row opens */
html.has-motion .qa__a-in p { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
html.has-motion .qa.is-open .qa__a-in p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---------- 11 · 27 · Sala 272C ---------- */
.fhead--arrive .fhead__title { font-size: clamp(46px, 6.6vw, 98px); max-width: none; line-height: .98; }
.office { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.doorplate { margin: 0; justify-self: center; width: min(100%, 340px); align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.doorplate__plate {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: clamp(26px, 3.6vw, 40px) 18px clamp(20px, 3vw, 30px); border-radius: 4px;
  background: var(--brass-grad); color: var(--brass-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(70, 48, 12, .4), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.doorplate__plate::before { content: ""; position: absolute; inset: 10px; border-radius: 2px; border: 1px solid rgba(70, 48, 12, .35); pointer-events: none; }
.doorplate__screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3d2, #8f6d2c 70%); box-shadow: inset 0 0 0 1px rgba(60, 40, 8, .5); }
.doorplate__screw--tl { top: 18px; left: 18px; } .doorplate__screw--tr { top: 18px; right: 18px; }
.doorplate__screw--bl { bottom: 18px; left: 18px; } .doorplate__screw--br { bottom: 18px; right: 18px; }
.doorplate__top { letter-spacing: .24em; color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 214, .5); }
.doorplate__no { /* engraved numerals */
  font-family: var(--f-display); font-weight: 600; font-size: clamp(64px, 8vw, 100px); line-height: 1; letter-spacing: .02em; color: #2a1a05;
  text-shadow: 0 2px 0 rgba(255, 244, 214, .55), 0 -1px 0 rgba(30, 18, 2, .45);
}
.doorplate__rule { width: 60%; height: 2px; border-radius: 1px; background: rgba(70, 48, 12, .45); }
.doorplate__name { /* engraved name, same ink as the numerals */
  font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.2; text-align: center; color: #2a1a05;
  text-shadow: 0 1px 0 rgba(255, 244, 214, .55); max-width: 18ch; text-wrap: balance;
}
.doorplate__sub { text-align: center; font-size: 11px; line-height: 1.5; color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 244, 214, .45); max-width: 22ch; }
.doorplate__cap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--text-2); }
.doorplate__beacon { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--oxblood-2); }
.doorplate__beacon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--oxblood-2); animation: dp-beacon 2.8s var(--ease-out) infinite; will-change: transform, opacity; }
@keyframes dp-beacon { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3); opacity: 0; } }

.office__text { padding: clamp(18px, 2.2vw, 28px); background-color: rgba(12, 14, 22, .8); border-radius: var(--radius-2); }
.office__h { font-family: var(--f-display); font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.office__lead { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--text); max-width: 60ch; }
.office__text > p + p { margin-top: 12px; color: var(--text-2); max-width: 60ch; }
.values { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
.values li { display: grid; gap: 6px; padding: 12px 0 0; border-top: 1px solid var(--line); align-content: start; }
.values b { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: -.004em; color: var(--text); }
.values span { color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 12px 16px 0 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { color: var(--text-2); }
.facts dd { margin: 8px 0 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; color: var(--text); }
.facts dd small { display: block; color: var(--brass-2); margin-bottom: 2px; }
.facts__n { font-size: clamp(26px, 2.6vw, 36px); font-variant-numeric: tabular-nums; color: var(--lamp-2); }

.contato__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: clamp(24px, 3.4vw, 44px); }
.contato__addr { font-size: 18px; line-height: 1.5; display: grid; gap: 8px; justify-items: start; text-shadow: 0 0 18px rgba(5, 6, 11, .8); }
.contato__label { color: var(--brass-2); display: block; margin-bottom: 4px; }
.contato__list { list-style: none; margin: 20px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.contato__list li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: center; padding: 0; border-top: 1px solid var(--line); }
.contato__list .contato__label { margin: 0; }
.contato__list li > span:not(.contato__label) { display: inline-flex; align-items: center; min-height: 44px; }
.contato__addr a.link { display: inline-flex; align-items: center; min-height: 44px; }
.contato__list a { position: relative; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 17.5px; word-break: break-word; transition: color .25s; }
.contato__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--lamp); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.contato__list a:hover { color: var(--lamp-2); }
.contato__list a:hover::after { transform: scaleX(1); transform-origin: left; }

.form { padding: clamp(20px, 2.6vw, 34px); background-color: rgba(12, 14, 22, .8); border-radius: var(--radius-2); }
.form__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.01em; line-height: 1.1; }
.form__lead { margin: 6px 0 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 52ch; }
.field { position: relative; margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; padding: 24px 0 8px; outline: none; appearance: none; -webkit-appearance: none; transition: border-color .25s;
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px #151722 inset; caret-color: var(--text); }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field select { padding-right: 28px; cursor: pointer; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23f0e8d9' stroke-width='1.5'/></svg>") no-repeat right 4px center; }
.field select option { background: #10121b; color: #f0e8d9; }
.field input + label, .field select + label, .field textarea + label { position: absolute; left: 0; top: 22px; max-width: 100%; font-size: 16px; color: var(--text-2); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease-out), color .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-20px) scale(.76); color: var(--brass-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lamp); box-shadow: 0 1px 0 0 var(--lamp); }
.field__err { display: none; margin-top: 5px; font-size: 13.5px; color: var(--err); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); box-shadow: 0 1px 0 0 var(--err); }
.field.is-invalid .field__err { display: block; }
.field--check { margin: 8px 0 14px; }
.fcheck { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.fcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fcheck__box { flex: none; width: 24px; height: 24px; margin-top: 1px; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; background: rgba(8, 9, 14, .5); transition: background-color .25s, border-color .25s; }
.fcheck__box::after { content: ""; width: 12px; height: 6px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease-out); }
.fcheck input:checked + .fcheck__box { background: var(--lamp); border-color: var(--lamp); }
.fcheck input:checked + .fcheck__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.fcheck input:focus-visible + .fcheck__box { outline: 2px solid var(--lamp); outline-offset: 3px; }
.fcheck__txt { font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.field--check.is-invalid .fcheck__box { border-color: var(--err); }
.form__submit { width: 100%; }
.form__status { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.form__status:empty { margin: 0; }
@media (min-width: 1001px) {
  .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .form > * { grid-column: 1 / -1; }
  .form > .field:nth-of-type(1), .form > .field:nth-of-type(2) { grid-column: span 1; }
}
.form__status.is-error { color: var(--err); }

/* ---------- 12 · 46 · Terraço ---------- */
.floor--terraco { padding-block: 0 !important; }
.terrace__stage { position: relative; min-height: 60svh; display: grid; align-items: center; padding-block: clamp(36px, 6vh, 64px) clamp(84px, 12vh, 118px); overflow: clip; }
.terrace__in { position: relative; z-index: 2; }
.terrace__title {
  font-size: clamp(42px, 7vw, 112px); line-height: 1; letter-spacing: -.014em; font-weight: 300; max-width: 11.5em; margin-top: 14px;
  text-shadow: 0 0 36px rgba(5, 6, 11, .8); transform-origin: 0 0;
}
.terrace__lead { margin-top: clamp(14px, 2.4vh, 24px); max-width: 46ch; color: var(--text-2); text-shadow: 0 0 22px rgba(5, 6, 11, .9); }
.terrace__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3vh, 28px); }
.terrace__railing { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.6vh, 28px); height: 46px; z-index: 1; pointer-events: none; }
.terrace__rail { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass-grad); transform-origin: left; }
.terrace__posts { position: absolute; left: 0; right: 0; top: 2px; bottom: 0; background: repeating-linear-gradient(90deg, rgba(201, 162, 94, .45) 0 1px, transparent 1px 48px); -webkit-mask-image: linear-gradient(180deg, #000, transparent 100%); mask-image: linear-gradient(180deg, #000, transparent 100%); }
/* railing bulbs (built by main.js on every second post): they switch on as the rail draws, a few breathe */
.terrace__bulbs { position: absolute; left: 0; right: 0; top: -3px; height: 8px; }
.terrace__bulbs b {
  position: absolute; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: #3a2c14; transition: background-color .25s, box-shadow .35s;
}
.terrace__bulbs b.on { background: var(--lamp-2); box-shadow: 0 0 6px rgba(255, 212, 138, .9), 0 0 16px rgba(242, 182, 90, .45); }
html.has-motion .terrace__bulbs b.on:nth-child(4n+2) { animation: bulb-breathe 3.8s ease-in-out 1.2s infinite; }
html.has-motion .terrace__bulbs b.on:nth-child(5n+4) { animation: bulb-breathe 4.6s ease-in-out 2.4s infinite; }
@keyframes bulb-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.terrace .foot { position: relative; z-index: 2; }

/* ---------- 13 · Responsive ---------- */
@media (max-width: 1179px) {
  .corridor { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .door { min-height: 480px; }
}
@media (max-width: 1000px) {
  .docs__grid, .faq__grid, .office, .contato__grid { grid-template-columns: minmax(0, 1fr); }
  .docs__side, .faq__side { position: static; will-change: auto; }
  .doorplate { justify-self: start; width: min(100%, 320px); position: static; }
}
@media (max-width: 768px) {
  :root { --floor-pad: clamp(44px, 7vh, 72px); }
  .hero { padding-top: calc(var(--header-h) + 8px); padding-bottom: 84px; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 9, 14, .5), rgba(8, 9, 14, .74) 60%, rgba(8, 9, 14, .46)); }
  .hero__copy { max-width: none; }
  .hero__ctas .btn { width: 100%; }
  .hero__foot { bottom: 22px; }
  .plaque { padding: 9px 12px; }
  .plaque__txt { font-size: 10.5px; letter-spacing: .09em; }
  .dmx__view { --p: 3.5px; }
  .dmx__row { font-size: clamp(24px, 7vw, 34px); }
  .mbx-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .brow__room { grid-column: 1; grid-row: 1; }
  .brow__meta { grid-column: 2; grid-row: 1; }
  .brow__main { grid-column: 1 / -1; grid-row: 2; }
  .board__head { font-size: 10px; letter-spacing: .16em; }
  .terrace__ctas .btn, .form__submit { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .facts > div, .facts > div + div { padding: 0; border: 0; }
  .values { grid-template-columns: 1fr; gap: 0; }
  .terrace__stage { min-height: 0; }
}
@media (max-width: 700px) {
  .corridor { grid-template-columns: minmax(0, 1fr); row-gap: 50px; padding-top: 40px; }
  .door { min-height: 0; }
  .door__pane { min-height: 104px; flex-basis: 104px; }
  .contato__list li { grid-template-columns: 1fr; gap: 2px; }
  .drawer__door { width: 100%; }
}
@media (max-width: 480px) {
  .mbx-wall { gap: 6px; padding: 8px; }
  .mbx__in { min-height: 0; }
  .mbx__flap { height: 30px; padding: 0 8px; }
  .mbx__txt { padding: 8px 9px 4px; }
  .mbx__txt b { font-size: 15px; }
  .mbx__txt small { font-size: 13px; }
  .mbx__state { padding: 0 9px 8px; }
  .qa__q button { grid-template-columns: 2.4em minmax(0, 1fr) 22px; padding-inline: 12px; }
  .qa__a-in { padding-left: calc(2.4em + 8px + 12px); padding-right: 12px; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .hero__title { font-size: clamp(38px, 5vw, 76px); }
}

/* ---------- 14 · Reduced motion / fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  .plaque::after, .hero__street i, .hero__cue-car i, .doorplate__beacon::after { animation: none !important; }
  .hero__street { display: none; }
  .cnt__strip, .drawer__door, .drawer__scrim { transition-duration: .01ms !important; }
  .hero__cue-car i { opacity: 1; transform: translateY(-14px); }
}
html:not(.js) .hero__cue { display: none; }

/* The shell's button "ping" (.btn__dot::after) lives inside overflow:hidden + isolate buttons: while it loops, the compositor
   re-layerizes every frame even when the page is idle. On the index it pings three times, then rests. */
.btn__dot::after { animation-iteration-count: 3; }
html:not(.js) #contato-form > *:not(noscript) { display: none; }
