/* EKKO Engenharia · Soluções BIM
   Seções escuras de ponta a ponta (sem moldura nem cantos arredondados), tipografia estendida. */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --panel: #1b2226;
  --panel-2: #151b1f;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --ink: #f3f5f6;
  --muted: #a7b3ba;
  --navy: #1c3a60;
  --navy-deep: #10213a;
  --accent: #f07f1c;
  --accent-hi: #ff9638;
  --accent-ink: #1a1206;
  --pad: clamp(20px, 4vw, 60px);
  --pad-y: clamp(40px, 5.6vw, 84px);
  --wrap: 1336px;
  --radius: 10px;
  --radius-s: 6px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.55 var(--body);
  background: var(--panel);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

/* A marca se revela no centro e pousa no menu; sem dependências de animação. */
html.preload-active { overflow: hidden; }
.preload-active .preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #10213a; }
.preloader__brand { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); max-width: calc(100vw - 40px); }
.preloader__mark { position: relative; display: grid; place-items: center; flex: none; width: clamp(80px, 9vw, 112px); aspect-ratio: 1; }
.preloader__logo { position: relative; z-index: 1; width: 78.57%; height: auto; opacity: 0; transform-origin: center; }
.preloader__orbit { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); transform: rotate(-90deg); }
.preloader__orbit circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.preloader__frame { position: absolute; inset: 0; opacity: 0; border: 1px solid rgba(240, 127, 28, 0.45); }
.preloader__frame::before, .preloader__frame::after { content: ""; position: absolute; width: 5px; height: 5px; background: var(--accent); }
.preloader__frame::before { top: -3px; left: -3px; }
.preloader__frame::after { bottom: -3px; right: -3px; }
.preloader__word { opacity: 0; color: #f3f5f6; font: 500 clamp(13px, 2.4vw, 30px)/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.preload-active .nav__brand, .preload-active .skip { visibility: hidden; }
.preload-active .hero__foot { opacity: 0; }
.preload-active .hero__img img, .preload-active .hero__foot, .preload-active .nav, .preloader-complete .nav { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .preload-active .preloader { display: none; }
  html.preload-active { overflow: visible; }
  .preload-active .nav__brand { visibility: visible; }
  .preload-active .hero__foot { opacity: 1; }
}

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: #111; padding: 12px 16px; border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { top: 16px; }

.page { display: grid; }
main { display: grid; }
/* cada seção vai de ponta a ponta; o conteúdo fica limitado a --wrap pelas margens internas */
.panel { --edge: max(var(--pad), calc((100% - var(--wrap)) / 2)); position: relative; background: var(--panel); padding: var(--pad-y) var(--edge); overflow: hidden; }

/* Transições inspiradas nas linhas de referência de uma prancha. */
.section-divider { --divider-ink: var(--accent); --divider-line: rgba(240, 127, 28, 0.38); position: absolute; z-index: 2; top: 0; left: var(--edge); right: var(--edge); height: 26px; border-top: 1px solid var(--divider-line); pointer-events: none; }
.section-divider::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 15px; background: var(--divider-ink); }
.section-divider::after { content: ""; position: absolute; top: 13px; left: calc(50% - 3px); width: 7px; height: 7px; background: var(--divider-ink); transform: rotate(45deg); }
.section-divider span { position: absolute; top: 0; width: 24px; height: 7px; border-bottom: 1px solid var(--divider-line); }
.section-divider span:first-child { left: 0; border-left: 1px solid var(--divider-line); }
.section-divider span:last-child { right: 0; border-right: 1px solid var(--divider-line); }
.panel--accent .section-divider { --divider-ink: var(--navy-deep); --divider-line: rgba(16, 33, 58, 0.4); }

/* ---------- tipografia */
.title { font: 400 clamp(22px, 2.6vw, 36px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -0.012em; }
.title::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 16px; background: var(--accent); }

/* ---------- cores por seção: azul-marinho e laranja do logo, um fundo claro e um quase preto, para a página mudar de tom ao rolar.
   Cada variação só troca as variáveis; os componentes dentro dela se adaptam sozinhos. */
.panel--navy { background: linear-gradient(160deg, #1d3b62 0, #10233e 100%); --muted: #b6c4d6; --line: rgba(255, 255, 255, 0.17); }
.panel--deep { background: #0d1215; }
.panel--light { background: #eef1f4; color: #14202b; --ink: #14202b; --muted: #55626e; --line: rgba(20, 32, 43, 0.14); --line-strong: rgba(20, 32, 43, 0.36); --panel-2: #ffffff; }
.panel--accent { background: linear-gradient(150deg, #f48a22 0, #dd6d0c 100%); color: var(--navy-deep); --ink: #10213a; --muted: rgba(16, 33, 58, 0.86); --line: rgba(16, 33, 58, 0.26); --line-strong: rgba(16, 33, 58, 0.55); }
.panel--accent .title::before { background: var(--navy-deep); }
.panel--accent .btn--solid { background: var(--navy-deep); color: #fff; }
.panel--accent .btn--solid:hover { background: var(--navy); }
.panel--accent :focus-visible { outline-color: var(--navy-deep); }
.kicker { font: 300 clamp(14px, 1.45vw, 19px)/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.label { font: 400 12px/1.35 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.muted { color: var(--muted); }

/* ---------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-s);
  font: 500 12px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.2s var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--accent-hi); }
.btn--line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* ---------- hero */
.hero { height: max(580px, 100svh); padding: clamp(18px, 2.4vw, 34px) var(--edge) var(--pad); display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr); isolation: isolate; container-type: inline-size; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 28, 33, 0.5) 0, rgba(20, 28, 33, 0) 26%, rgba(15, 21, 25, 0) 58%, rgba(15, 21, 25, 0.5) 100%); }

/* vidro: fundo escuro translúcido com desfoque, para o texto ser lido sobre qualquer foto. Usado no menu e na caixa de informações */
.nav, .hero__card, .hero__detail, .closing__glass { border-radius: 14px;
  background: rgba(16, 22, 26, 0.56); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 10px 34px rgba(8, 12, 15, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav, .hero__card, .hero__detail, .closing__glass { background: rgba(16, 22, 26, 0.86); } }
.nav { display: flex; align-items: center; gap: 28px; min-height: 60px; padding: 8px 10px 8px 16px; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__name { font: 500 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
.nav__brand img { width: 40px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 400 11px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.92); transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { min-height: 40px; padding: 0 16px; font-size: 11px; }
.nav__toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); font: 400 11px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }

.hero__foot { grid-row: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__card { width: min(100%, 500px); padding: clamp(18px, 2vw, 26px); }
.hero__loc { display: flex; align-items: center; gap: 10px; font: 400 11px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.78); }
.hero__loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__card h1 { margin-top: 12px; font: 400 clamp(15px, 1.55vw, 23px)/1.28 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.hero__detail { flex: 0 0 180px; padding: 15px 18px; }
.hero__detail span { display: block; color: #ffad64; font: 400 9px/1.4 var(--display); letter-spacing: 0.07em; text-transform: uppercase; }
.hero__detail p { margin-top: 6px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 1.6vw, 22px); }

@media (prefers-reduced-motion: no-preference) {
  .hero__img img { animation: hero-zoom 2.2s var(--ease) both; }
  .nav, .hero__foot { animation: fade-up 0.9s var(--ease) 0.35s both; }
}
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- menu (celular) */
.menu { position: fixed; inset: 0; z-index: 40; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: rgba(14, 19, 22, 0.8); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); padding: 20px; display: grid; grid-template-rows: auto minmax(min-content, 1fr) auto; gap: 16px; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { width: 44px; height: auto; }
.menu__close { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); font: 400 11px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.menu__links { align-self: center; display: grid; }
.menu__links a { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); font: 400 22px/1 var(--display); text-transform: uppercase; }

/* ---------- serviços */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.2vw, 44px); }
.head p { max-width: 46ch; color: var(--muted); font-size: 15px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.svc__img { aspect-ratio: 8 / 9; overflow: hidden; border-radius: var(--radius-s); background: var(--panel-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.03); }
.svc__n { margin-top: clamp(16px, 1.8vw, 26px); font: 300 clamp(24px, 2.6vw, 36px)/1 var(--display); color: var(--accent); }
.svc h3 { margin-top: 14px; font: 400 12px/1.35 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.svc p:last-child { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 30ch; }

/* ---------- planta */
.plan { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.plan__info .kicker { margin-top: clamp(18px, 2vw, 28px); }
.tabs { display: inline-flex; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; gap: 3px; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 4px; font: 400 11px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #12181b; }
.areas { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.areas th, .areas td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.areas td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.areas tfoot th, .areas tfoot td { border-bottom: 0; padding-top: 14px; font: 400 12px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.plan__floors { display: grid; gap: 14px; }
.plan__view { position: relative; display: block; width: 100%; border-radius: var(--radius-s); background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 2200 / 867; opacity: 0.4; transition: opacity 0.45s var(--ease), border-color 0.3s; }
.plan__view[aria-pressed="true"] { opacity: 1; border-color: var(--line-strong); }
.plan__view:hover { opacity: 1; }
.plan__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.5%; transition: transform 0.8s var(--ease); }
.plan__view:hover img { transform: scale(1.015); }
.plan__tag { position: absolute; left: 14px; top: 12px; font: 400 10px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.plan__more { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.plan__more p { color: var(--muted); font-size: 14px; max-width: 52ch; }

/* ---------- projetos */
.boxes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.box { grid-column: span 6; display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.3s; }
.box:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.box:active { transform: none; }
.box__img { display: block; overflow: hidden; background: #fff; aspect-ratio: 3 / 2; flex: 1 1 auto; }
.box__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.box--fit .box__img img { object-fit: contain; padding: 14px; }
.box:hover .box__img img { transform: scale(1.03); }
.box__body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.box__n { font: 300 22px/1 var(--display); color: var(--muted); grid-row: span 2; align-self: start; padding-top: 1px; }
.box__t { font: 400 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.box__m { grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.4; }
.box__go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.box__go svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.box:hover .box__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.box:hover .box__go svg { transform: translate(2px, -2px); }

/* ---------- casas prontas: carrossel com rolagem nativa (arrasta com o dedo no celular, setas no desktop).
   Os slides têm a mesma altura e a largura de cada foto (--ar), então fotos em pé e deitadas convivem sem recorte. */
.works__track { display: flex; gap: clamp(10px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius-s); }
.works__track::-webkit-scrollbar { display: none; }
.work { flex: 0 0 auto; height: clamp(300px, 42vw, 560px); aspect-ratio: var(--ar); max-width: 100%; margin: 0; overflow: hidden; scroll-snap-align: start; border-radius: var(--radius-s); background: var(--panel-2); }
.work img { width: 100%; height: 100%; object-fit: cover; }
.works__nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.works__bar { flex: 1; height: 2px; margin: 0 clamp(8px, 2vw, 24px); background: var(--line); border-radius: 2px; overflow: hidden; }
.works__bar span { display: block; height: 100%; width: var(--size, 40%); margin-left: var(--at, 0%); background: var(--accent); border-radius: 2px; }
.note { font: 400 10px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* antes e depois */
.ba-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(36px, 5vw, 72px); }
.ba { position: relative; width: 100%; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: var(--radius-s); background: var(--panel-2); user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(12, 18, 22, 0.25); pointer-events: none; }
.ba__knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #12181b; box-shadow: 0 6px 22px rgba(8, 12, 15, 0.35); }
.ba__knob svg { width: 18px; height: 18px; }
.ba__tag { position: absolute; top: 14px; padding: 8px 12px; border-radius: 999px; font: 400 10px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: rgba(16, 22, 26, 0.56); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none; transition: opacity 0.25s; }
.ba__tag--antes { left: 14px; }
.ba__tag--depois { right: 14px; }
.ba[data-side="depois"] .ba__tag--antes, .ba[data-side="antes"] .ba__tag--depois { opacity: 0; }
/* o controle de verdade é um range invisível por cima: funciona com mouse, dedo e teclado */
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* encerramento: a casa em largura total, com a chamada sobre a base sombreada */
.closing { display: flex; align-items: flex-end; min-height: clamp(420px, 36vw, 560px); padding-top: 220px; padding-bottom: 24px; background: var(--navy-deep); }
.closing__photo { display: block; position: absolute; inset: 0; }
.closing__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.closing::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8, 21, 36, 0.6), rgba(8, 21, 36, 0.12) 50%, transparent 75%); }
.closing__content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; gap: 20px; width: 100%; }
.closing__glass { padding: 14px 18px; }
.closing__next { grid-column: 2; display: flex; align-items: center; gap: 16px; }
.closing__next p { flex: 1; min-width: 0; color: #e1e7ee; font-size: 14px; line-height: 1.4; }
.closing__next .btn { flex: none; min-height: 44px; padding: 0 12px; font-size: 9px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .closing__next { display: block; }
  .closing__next .btn { margin-top: 10px; }
}
@media (max-width: 760px) {
  .closing { display: block; min-height: 0; padding: 0 0 24px; }
  .closing__photo { position: relative; inset: auto; width: 100%; aspect-ratio: 2 / 1; }
  .closing::after { display: none; }
  .closing__content { grid-template-columns: 1fr; width: auto; margin: 20px var(--edge) 0; gap: 12px; }
  .closing__glass { padding: 14px; }
  .closing__next { grid-column: 1; display: block; }
  .closing__next p { max-width: 40ch; font-size: 14px; }
  .closing__next .btn { width: 100%; margin-top: 10px; }
}

.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__lead p { margin-top: 20px; max-width: 44ch; color: var(--muted); font-size: 17px; }
.contact__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.contact__phone { display: inline-flex; align-items: center; min-height: 44px; font: 400 14px/1 var(--display); letter-spacing: 0.02em; border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s; }
.contact__phone:hover { border-color: var(--ink); }
.facts { display: grid; margin-top: clamp(28px, 3.4vw, 46px); }

/* formulário: cartão azul-marinho sobre a seção laranja (volta para o tema escuro dentro dele) */
.form { display: grid; gap: 14px; padding: clamp(20px, 2.6vw, 34px); border-radius: var(--radius); background: var(--navy-deep); color: #f3f5f6; box-shadow: 0 24px 60px rgba(70, 28, 0, 0.3);
  --ink: #f3f5f6; --muted: #a9b8cc; --line: rgba(255, 255, 255, 0.18); --line-strong: rgba(255, 255, 255, 0.36); }
.form__title { font: 400 clamp(16px, 1.5vw, 20px)/1.2 var(--display); text-transform: uppercase; }
.form__hint { margin-top: -6px; color: var(--muted); font-size: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font: 400 11px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: 400 16px/1.4 var(--body); transition: border-color 0.2s, background-color 0.2s; }
.field textarea { min-height: 104px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a9b8cc' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select option { color: #14202b; }
.field ::placeholder { color: rgba(255, 255, 255, 0.42); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 1px; border-color: transparent; background-color: rgba(255, 255, 255, 0.1); }
.panel--accent .form .btn--solid { width: 100%; margin-top: 4px; background: var(--accent); color: var(--accent-ink); }
.panel--accent .form .btn--solid:hover { background: var(--accent-hi); }
.form__status { min-height: 1.5em; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__status[data-kind="ok"] { color: #a6e6b8; }
.form__status[data-kind="erro"] { color: #ffb9ad; }
.form[data-submitted] { min-height: 220px; align-content: center; }
.form[data-submitted] .form__status { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { font: 400 11px/1.5 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 20px max(var(--pad), calc((100% - var(--wrap)) / 2)) 24px; background: #0b1626; color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 34px; }
.footer nav { display: flex; flex: 1; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; transition: color 0.2s; }
.footer nav a:hover { color: #fff; }
.footer__credit { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 44px; white-space: nowrap; }
.footer__credit span { color: rgba(255, 255, 255, 0.58); font-size: 13px; line-height: 1.4; transition: color 0.2s; }
.footer__credit img { display: block; width: 148px; height: auto; mix-blend-mode: lighten; transition: transform 0.2s; }
.footer__credit:hover span, .footer__credit:focus-visible span { color: #fff; }
.footer__credit:hover img { transform: translateY(-1px); }

/* ---------- entrada dos títulos ao rolar */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { clip-path: inset(0 0 100% 0); transform: translateY(0.25em); transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { clip-path: inset(0 0 -10% 0); transform: none; }
}

/* ---------- visualizador (pranchas e 3D) */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0e1316; color: var(--ink); overflow: hidden; }
.viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: #0e1316; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(12px, 2vw, 24px); border-bottom: 1px solid var(--line); min-height: 64px; }
.viewer__id { min-width: 0; }
.viewer__proj { font: 400 12px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.viewer__sheet { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.viewer__count { font: 400 11px/1 var(--display); letter-spacing: 0.05em; color: var(--muted); margin-right: 8px; white-space: nowrap; }
.tool { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); transition: background-color 0.2s, border-color 0.2s, transform 0.15s; }
.tool:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.tool:active { transform: scale(0.95); }
.tool svg { width: 18px; height: 18px; }
.tool--text { width: auto; padding: 0 14px; font: 400 11px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
.tool[aria-pressed="true"] { background: var(--ink); color: #12181b; border-color: var(--ink); }
.tool[aria-pressed="false"] { color: var(--muted); }
.viewer__stage { --inset: clamp(8px, 1.5vw, 20px); position: relative; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.viewer__stage.is-drag { cursor: grabbing; }
.viewer__img { position: absolute; left: var(--inset); top: var(--inset); width: calc(100% - 2 * var(--inset)); height: calc(100% - 2 * var(--inset)); max-width: none; object-fit: contain; will-change: transform; transform-origin: 50% 50%; -webkit-user-drag: none; }
.viewer__img:not([src]) { visibility: hidden; }
.viewer__stage > .nav-arrow { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(14, 19, 22, 0.82); border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color 0.2s, transform 0.2s var(--ease); z-index: 2; }
.viewer__stage > .nav-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.viewer__stage > .nav-arrow:active { transform: scale(0.94); }
.nav-arrow svg { width: 18px; height: 18px; }
.nav-arrow--prev { left: clamp(8px, 1.5vw, 20px); }
.nav-arrow--next { right: clamp(8px, 1.5vw, 20px); }
.nav-arrow--prev svg { transform: rotate(180deg); }
.viewer__thumbs { display: flex; gap: 8px; padding: 10px clamp(12px, 2vw, 24px); overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #3a474f transparent; }
.thumb { flex: none; width: 92px; height: 66px; border-radius: 4px; overflow: hidden; background: #fff; border: 2px solid transparent; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb:hover { opacity: 0.9; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }

.viewer__layers { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- modelo 3D: bloco interativo dentro da seção. Na tela cheia o bloco .m3d vai inteiro para o dialog .viewer--3d */
.m3d { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.m3d__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.m3d__tools { display: flex; gap: 8px; }
/* laranja da marca apenas nos controles; modelo e área de renderização preservados */
.m3d .tool { color: #ffad64; background: rgba(240, 127, 28, 0.08); border-color: rgba(240, 127, 28, 0.4); }
.m3d .tool[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.m3d .tool:hover:not(:disabled) { color: var(--accent-ink); background: var(--accent-hi); border-color: var(--accent-hi); }
.m3d .tool:disabled { color: rgba(255, 173, 100, 0.4); background: rgba(240, 127, 28, 0.03); border-color: rgba(240, 127, 28, 0.16); }
.tool:disabled { opacity: 0.4; cursor: default; }
.m3d__stage { position: relative; height: clamp(380px, 70svh, 720px); overflow: hidden; border-radius: var(--radius-s); background: radial-gradient(120% 90% at 50% 20%, #2b3840 0, #141a1e 60%, #0e1316 100%); user-select: none; -webkit-user-select: none; }
.m3d__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; border: 1px solid var(--accent); border-radius: inherit; pointer-events: none; }
.m3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.6s var(--ease); }
.m3d[data-state="ready"] .m3d__poster { opacity: 0; }
.m3d[data-state="error"] .m3d__poster { opacity: 1; }
/* o canvas só recebe mouse e toque quando o bloco está "vivo" (.is-live): no celular, antes do toque, o dedo rola a página */
.m3d__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; cursor: grab; transition: opacity 0.6s var(--ease); }
.m3d__stage canvas:active { cursor: grabbing; }
.m3d[data-state="ready"] canvas { opacity: 1; }
.m3d.is-live canvas { pointer-events: auto; }
.m3d__start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.m3d__start:active { transform: translate(-50%, -50%) scale(0.98); }
.m3d__stage .viewer__status { bottom: 18px; z-index: 1; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.viewer--3d[open] { display: block; }
.viewer--3d .m3d { height: 100dvh; gap: 0; }
.viewer--3d .m3d__bar { padding: 10px clamp(12px, 2vw, 24px); min-height: 64px; border-bottom: 1px solid var(--line); }
.viewer--3d .m3d__stage { height: auto; border-radius: 0; }
.viewer__status { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(14, 19, 22, 0.82); border: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; pointer-events: none; transition: opacity 0.5s; }
.viewer__status[data-done] { opacity: 0; }
.viewer__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- responsivo */
@media (max-width: 1100px) {
  .plan { grid-template-columns: 1fr; }
  .plan__info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 48px); align-items: start; }
  .plan__tables { grid-column: 2; grid-row: 1 / span 4; }
  .plan__tables .areas { margin-top: 0; }
  .contact { grid-template-columns: 1fr; align-items: start; }
}
@media (min-width: 901px) and (max-width: 1260px) { .nav__name { display: none; } }   /* não cabe ao lado dos sete links */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 700px) {
  /* Informações de apresentação centralizadas; tabelas e campos mantêm sua leitura em colunas. */
  .head { justify-content: center; text-align: center; }
  .head > .title { width: 100%; }
  .head p { margin-inline: auto; }
  .title::before { margin-inline: auto; }
  .hero__card, .svc, .contact__lead { text-align: center; }
  .hero__loc, .contact__actions { justify-content: center; }
  .svc p:last-child, .contact__lead > p { margin-inline: auto; }
  .plan__info > .title, .plan__info > .kicker { text-align: center; }
  .tabs { display: flex; }
  .tabs button { flex: 1; text-align: center; }
  .plan__more { justify-content: center; text-align: center; }
  .box__t, .box__m, .closing__next p { text-align: center; }
  .m3d__bar, .m3d__bar .viewer__layers, .m3d__tools { justify-content: center; }
  .form__title, .form__hint, .form__status { text-align: center; }
  .footer, .footer__brand, .footer nav { justify-content: center; }
  .footer { text-align: center; }
  .footer nav { width: 100%; flex-basis: 100%; }
  .hero { height: clamp(560px, 100svh, 940px); }
  .hero__img img { object-position: 50% 0; }
  .hero__card { width: 100%; }
  .hero__detail { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn--line { display: none; }   /* no celular fica só o botão principal, para a caixa não crescer */
  .plan__info { display: block; }
  .plan__tables .areas { margin-top: 18px; }
  .plan__view { aspect-ratio: 16 / 10; }
  .plan__view[aria-pressed="false"] { display: none; }
  .plan__view img { object-fit: cover; object-position: 30% 50%; padding: 0; }
  .plan__more .btn { width: 100%; }
  .box { grid-column: span 12; }
  .m3d__stage { height: clamp(340px, 62svh, 560px); }
  .m3d__start { max-width: calc(100% - 24px); padding: 10px 14px; white-space: normal; font-size: 10px; line-height: 1.4; }
  .contact__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .work { height: clamp(280px, 92vw, 440px); }
  .ba-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .viewer__bar { flex-wrap: wrap; row-gap: 10px; }
  .viewer__id { flex: 1 1 100%; }
  .viewer__tools { width: 100%; justify-content: flex-end; }
  .viewer__count { margin-right: auto; }
  .viewer__stage > .nav-arrow { top: auto; bottom: 12px; margin: 0; }
  .thumb { width: 72px; height: 52px; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .svc__img { aspect-ratio: 16 / 11; }
  .svc p:last-child { max-width: none; }
  .tabs { display: flex; }
  .tabs button { flex: 1; justify-content: center; text-align: center; padding: 0 8px; }
  .tool--text { padding: 0 10px; font-size: 10px; }
}
