/* ==========================================================================
   Vanadium, Lda — estilos
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f2ee;
  --surface: #e8e5df;
  --line: #d6d1c8;
  --ink: #161513;
  --muted: #5c5953;
  --accent: #e85d2a;
  --accent-ink: #b3441b;
  --accent-deep: #c94d1f;
  --on-accent: #161513;
  --on-ink-muted: #b4afa6;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --gap: 16px;
  --section: clamp(96px, 13vw, 200px);
  --header-h: 72px;
  --radius: 6px;
  --radius-lg: 14px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --fs-display: clamp(2.5rem, 7vw, 6.25rem);
  --fs-h2: clamp(1.875rem, 4vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.1vw + .9rem, 1.5rem);
  --fs-body: clamp(1rem, .25vw + .92rem, 1.125rem);
  --fs-small: .9375rem;
  --fs-mono: .78rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.hero :focus-visible, .quote :focus-visible, .cut :focus-visible, .site-header.is-over :focus-visible { outline-color: currentColor; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

.mono { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; }
.section { padding-block: var(--section); }

/* ---------- Tipografia ---------- */
.display { font-size: var(--fs-display); font-weight: 500; line-height: .88; letter-spacing: -.05em; }
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.display em, .h2 em { font-style: normal; color: var(--accent); }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: clamp(20px, 2.5vw, 36px);
}
.tag .mono { color: var(--muted); }
.tag--inv { color: var(--accent); }
.tag--inv .mono { color: var(--on-ink-muted); }
.tag--dark, .tag--dark .mono { color: var(--on-accent); }
.tag--light, .tag--light .mono { color: #fff; }

/* Máscara de linhas e letras */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }
.ch { display: inline-block; will-change: transform; }
.wd { display: inline-block; white-space: nowrap; }
.sl { display: block; overflow: hidden; }
.sl > span { display: block; }

/* ---------- Links e botões ---------- */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  transition: background-size .4s var(--ease-out);
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-position-x: left; background-size: 100% 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: var(--fs-small); font-weight: 500; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn--sm { min-height: 40px; padding: 8px 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #f06a39; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(22, 21, 19, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #2b2925; }
.btn__arrow { position: relative; width: 1em; height: 1em; overflow: hidden; flex: none; }
.btn__arrow::before, .btn__arrow::after {
  content: "→"; position: absolute; inset: 0; line-height: 1;
  transition: transform .45s var(--ease-out);
}
.btn__arrow::after { transform: translateX(-120%); }
.btn:hover .btn__arrow::before { transform: translateX(120%); }
.btn:hover .btn__arrow::after { transform: translateX(0); }

/* Link de texto com seta num círculo */
.text-cta { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-small); font-weight: 500; text-decoration: none; }
.text-cta__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%;
  transition: background-color .3s, color .3s, transform .45s var(--ease-out);
}
.text-cta:hover .text-cta__icon { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }

/* Selo "imagem ilustrativa" */
.badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 4px 7px; border-radius: 4px; font-size: .6rem; line-height: 1.2;
  background: rgba(22, 21, 19, .66); color: #fff; pointer-events: none;
}
.badge--real { background: var(--accent); color: var(--on-accent); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js:not(.no-loader) .loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  animation: loader-out .8s var(--ease-io) 1.15s forwards;
}
.loader__inner { display: grid; gap: 14px; justify-items: start; padding-inline: var(--gutter); }
.loader__word {
  font-size: clamp(3.25rem, 15vw, 13rem); font-weight: 500; letter-spacing: -.05em; line-height: .9;
  clip-path: inset(0 100% 0 0);
  animation: loader-word 1s var(--ease-io) .05s forwards;
}
.loader__bar {
  display: block; width: 100%; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  animation: loader-bar 1.05s var(--ease-io) forwards;
}
.loader__meta { opacity: .85; }
@keyframes loader-word { to { clip-path: inset(0 0 0 0); } }
@keyframes loader-bar { to { transform: scaleX(1); } }
@keyframes loader-out { to { transform: translateY(-101%); visibility: hidden; } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: transform .45s var(--ease-out), background-color .35s, border-color .35s, color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-over { color: #fff; }
.site-header.is-solid {
  color: var(--ink);
  background: rgba(244, 242, 238, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand {
  font-size: 1.375rem; font-weight: 600; letter-spacing: -.04em; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 6px; margin-right: auto;
}
.brand__lda { opacity: .7; font-size: .66rem; }
.nav__list { display: flex; gap: clamp(16px, 2vw, 32px); list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); }
.menu-btn {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 10px; border: 0; background: none; cursor: pointer;
  font-size: var(--fs-small); color: inherit;
}
.menu-btn__lines { position: relative; width: 22px; height: 10px; }
.menu-btn__lines span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-btn__lines span:first-child { top: 0; }
.menu-btn__lines span:last-child { top: 8.5px; }
.menu-btn.is-open .menu-btn__lines span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn.is-open .menu-btn__lines span:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav, .site-header__cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Menu móvel ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__nav { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; padding-bottom: 32px; min-height: calc(100svh - var(--header-h)); }
.menu__list { margin: 0; }
.menu__list li { border-top: 1px solid var(--line); }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05;
  text-decoration: none;
}
.menu__list .mono { color: var(--accent-ink); min-width: 2.2em; }
.menu__actions { display: grid; gap: 10px; margin-top: auto; }
@media (prefers-reduced-motion: no-preference) {
  .menu { opacity: 0; transition: opacity .3s; }
  .menu.is-open { opacity: 1; }
  .menu__list li, .menu__actions { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out); }
  .menu.is-open .menu__list li, .menu.is-open .menu__actions { opacity: 1; transform: none; }
  .menu.is-open .menu__list li:nth-child(1) { transition-delay: .06s; }
  .menu.is-open .menu__list li:nth-child(2) { transition-delay: .1s; }
  .menu.is-open .menu__list li:nth-child(3) { transition-delay: .14s; }
  .menu.is-open .menu__list li:nth-child(4) { transition-delay: .18s; }
  .menu.is-open .menu__list li:nth-child(5) { transition-delay: .22s; }
  .menu.is-open .menu__list li:nth-child(6) { transition-delay: .26s; }
  .menu.is-open .menu__actions { transition-delay: .32s; }
}
html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(100svh, 620px);
  display: flex; align-items: flex-end;
  color: #fff; background: #2a2723;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 9, 8, .55) 0%, rgba(10, 9, 8, 0) 26%),
    linear-gradient(to top, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .3) 45%, rgba(10, 9, 8, .1) 70%);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media .badge { bottom: auto; top: calc(var(--header-h) + 12px); }
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero__title { margin-bottom: clamp(28px, 4vw, 48px); max-width: 12ch; }
.hero__bottom {
  display: grid; gap: 24px; align-items: end;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3);
}
.hero__lead { max-width: 40ch; font-size: clamp(1rem, .4vw + .9rem, 1.25rem); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__scroll { display: none; align-items: center; gap: 12px; text-decoration: none; justify-self: end; }
.hero__scroll-line { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff;
  animation: scroll-line 2.2s var(--ease-io) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto auto; gap: 40px; }
  .hero__scroll { display: inline-flex; }
}

/* ---------- Cabeça de secção ---------- */
.section__head { margin-bottom: clamp(40px, 6vw, 96px); }
.section__intro { max-width: 46ch; color: var(--muted); margin-top: 24px; display: grid; gap: 16px; justify-items: start; }
@media (min-width: 1024px) {
  .section__head .h2 { grid-column: 1 / 9; }
  .section__intro { grid-column: 9 / -1; align-self: end; margin-top: 0; }
}

/* ---------- Sobre ---------- */
.about__text { display: grid; gap: 1.1em; max-width: 52ch; margin-top: clamp(32px, 4vw, 64px); align-content: start; }
.about__lead { font-size: clamp(1.125rem, .6vw + .95rem, 1.5rem); line-height: 1.35; letter-spacing: -.01em; }
.about__text .text-cta { margin-top: 12px; }
/* Desenho do canto: ladrilhos que se assentam ao scroll */
.about__art { margin-top: clamp(40px, 6vw, 72px); max-width: 560px; }
.canto-svg { width: 100%; height: auto; overflow: visible; }
.canto-svg .tile { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.canto-svg .tile--wall { fill: var(--bg); }
.canto-svg .tile--floor { fill: var(--surface); }
.canto-svg .tile--accent { fill: var(--accent); }
.canto-svg .win { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.fach-svg .fach-wall { fill: #d9cfc2; }
.fach-svg .fach-brick { fill: none; stroke: #b9ab99; stroke-width: .7; }
.fach-svg .tile { fill: #fbfaf7; stroke: var(--ink); stroke-width: .9; }
.fach-svg .fach-mesh { fill: none; stroke: var(--accent); stroke-width: .7; opacity: .55; }
.fach-svg .fach-finish { fill: #efe7db; }
.fach-svg .fach-edge { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .4s; }
.fach-svg.is-done .fach-edge { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .fach-svg .fach-edge { opacity: .7; } }
.no-js .fach-svg .fach-edge, .anim-fallback .fach-svg .fach-edge { opacity: .7; }
.fach-svg .win-l { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.fach-svg .fach-out { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fach-steps { display: flex; gap: 6px 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; counter-reset: fs; }
.fach-steps li { counter-increment: fs; color: var(--muted); opacity: .45; transition: opacity .3s, color .3s; }
.fach-steps li::before { content: "0" counter(fs) " "; }
.fach-steps li.is-on { opacity: 1; }
.fach-steps li.is-now { color: var(--accent-ink); }
.canto-svg .arranque { stroke: var(--accent); stroke-width: 4; }
.canto-svg .tile-frame { fill: none; stroke: var(--ink); stroke-width: .8; stroke-dasharray: 3 5; opacity: .45; }
.about__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
@media (min-width: 1024px) {
  .about__title { grid-column: 1 / 9; }
  .about__art { grid-column: 1 / 7; grid-row: 3; align-self: start; }
  .about__text { grid-column: 8 / -1; grid-row: 3; }
}
@media (max-width: 1023px) { .about__art { order: 3; } }

/* ---------- Materiais: faixa arrastável ---------- */
.materials { overflow: hidden; }
.pause-btn {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px;
  cursor: pointer; color: var(--ink); min-height: 36px;
}
.pause-btn:hover { border-color: var(--ink); }
.pause-btn[hidden] { display: none; }
.marquee-ctrl { display: flex; gap: 8px; align-items: center; }
.marquee-ctrl[hidden] { display: none; }
.ctrl-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent;
  color: var(--ink); cursor: pointer; font-size: 1.05rem; transition: background-color .3s, color .3s, border-color .3s;
}
.ctrl-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pause-btn { min-height: 44px; }
.marquee { position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.marquee img { -webkit-user-drag: none; user-select: none; }
.mcard { flex: none; width: clamp(240px, 27vw, 440px); }
.mcard__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface);
}
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.mcard__kind { color: var(--muted); margin-top: 16px; }
.mcard__name { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; margin-top: 4px; }
.mcard__name a { text-decoration: none; display: inline-flex; gap: 10px; align-items: baseline; }
.mcard__go { display: inline-block; font-size: .85em; transition: transform .45s var(--ease-out); }
.mcard__name a:hover .mcard__go, .mcard__name a:focus-visible .mcard__go { transform: translateX(6px); }
.mcard__text { color: var(--muted); font-size: var(--fs-small); max-width: 34ch; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .mcard:hover .mcard__media img { transform: scale(1.06); }
}
/* Sem JS ou com reduced-motion: faixa com scroll horizontal nativo */
.no-js .marquee, .marquee.is-static { overflow-x: auto; cursor: auto; scroll-snap-type: x mandatory; }
.marquee.is-static .mcard { scroll-snap-align: start; }

/* ---------- Serviços (fichas) ---------- */
.services { padding-top: 0; }
.services__cols { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .services__cols { grid-template-columns: 1fr 1fr; gap: var(--gap); } }
.spec__title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; margin-bottom: 16px; }
.spec__row {
  display: grid; gap: 4px; padding: 18px 0 20px;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left top / 100% 1px;
}
.spec__row:last-child { box-shadow: inset 0 -1px var(--line); }
.spec__row dt { font-weight: 500; }
.spec__row dd { color: var(--muted); font-size: var(--fs-small); max-width: 44ch; }
@media (min-width: 600px) { .spec__row { grid-template-columns: 1fr 1.4fr; gap: 24px; } }

/* ---------- Faixa de fotografia ---------- */
.band { position: relative; height: clamp(420px, 90svh, 980px); overflow: hidden; color: #fff; background: #2a2723; isolation: isolate; }
.band__media { position: absolute; inset: -12% 0; z-index: -1; }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, .6), rgba(10, 9, 8, 0) 55%); }
.band__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.band__media .badge { bottom: 14%; }
.band__text { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 64px); }
.band__title { font-size: var(--fs-h2); font-weight: 500; line-height: .95; letter-spacing: -.04em; }

/* ---------- Ao pormenor: pontos clicáveis ---------- */
.hs { position: relative; }
.hs__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; background: var(--surface); }
.hs__img { width: 100%; height: 100%; object-fit: cover; }
.hs__dot {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: background-color .3s, color .3s;
}
.hs__dot::before, .hs__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: currentColor; transition: transform .4s var(--ease-out);
}
.hs__dot::after { transform: rotate(90deg); }
.hs__dot:hover { background: var(--accent); color: var(--on-accent); }
.hs__dot[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }
.hs__dot[aria-expanded="true"]::after { transform: rotate(0); }
@media (prefers-reduced-motion: no-preference) {
  .hs__dot:not([aria-expanded="true"]) { animation: hs-pulse 2.6s ease-out infinite; }
}
@keyframes hs-pulse {
  0% { box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, .55); }
  70% { box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 16px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, 0); }
}
.hs__list { display: grid; gap: var(--gap); margin-top: 24px; }
@media (min-width: 768px) { .hs__list { grid-template-columns: repeat(3, 1fr); } }
.hs__card {
  display: grid; gap: 6px; padding: 18px 0 0; border-top: 1px solid var(--line);
  transition: border-color .3s;
}
.hs__card .mono { color: var(--muted); }
.hs__card h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; }
.hs__card p { color: var(--muted); font-size: var(--fs-small); max-width: 40ch; }
.hs__card.is-active { border-top-color: var(--accent); }
.hs__card.is-active .mono { color: var(--accent-ink); }
/* Com JS em ecrãs pequenos: só o cartão do ponto tocado, por baixo da foto */
.hs__hint { margin-top: 16px; color: var(--muted); }
.hs__hint[hidden] { display: none; }
@media (max-width: 899px) {
  .js .hs__list { display: block; }
  .js .hs__card { display: none; }
  .js .hs__card.is-active {
    display: grid; padding: 18px 20px; border: 0; border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: inset 3px 0 var(--accent);
    animation: hs-in .45s var(--ease-out);
  }
}
@keyframes hs-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hs__card.is-active { animation: none; } }

/* Com JS em desktop: o cartão abre sobre a fotografia */
@media (min-width: 900px) {
  .js .hs__list { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
  .js .hs__card {
    position: absolute; left: 24px; bottom: 24px; width: min(360px, 40%);
    padding: 20px 22px; border: 0; border-radius: var(--radius-lg);
    background: rgba(244, 242, 238, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .35s, transform .5s var(--ease-out), visibility 0s .5s;
    pointer-events: auto;
  }
  .js .hs__card.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .5s var(--ease-out); }
}

/* ---------- Em corte (secção laranja) ---------- */
.cut { background: var(--accent); color: var(--ink); }
.cut__pin { min-height: 100svh; display: flex; align-items: center; }
.cut__layout { display: grid; gap: 40px; }
.cut__intro { margin-top: 24px; max-width: 34ch; }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 32px;
  padding: 4px; border: 1px solid rgba(22, 21, 19, .35); border-radius: calc(var(--radius) + 4px);
}
.tabs[hidden] { display: none; }
.tabs__btn {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .05em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.tabs__btn:hover { background: rgba(22, 21, 19, .1); }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.cut__panel { display: grid; gap: 24px; }
.cut__panel + .cut__panel { margin-top: 64px; }
.cut__panel[hidden] { display: none; }
.cut__panel-title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; }
.js .cut__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cut-svg { width: 100%; height: auto; color: var(--ink); }
.cut-svg .cut-fill { fill: var(--accent); stroke: none; }
.cut-svg .cut-tape { fill: var(--accent-deep); stroke: none; }
.cut-svg .cut-ln, .cut-svg .cut-ht, .cut-svg .cut-ld { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.cut-svg .cut-ht { stroke-width: .9; opacity: .8; }
.cut-svg .cut-ld { stroke-width: 1; }
.cut-svg .cut-dash { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 5 5; opacity: .85; }
.cut-svg .cut-guide { fill: none; stroke: currentColor; stroke-width: .8; stroke-dasharray: 2 5; opacity: .45; }
.cut-svg .cut-num { font-family: var(--mono); font-size: 14px; fill: currentColor; letter-spacing: .04em; font-weight: 600; }
.cut-svg .cut-label { font-family: var(--mono); font-size: 11px; fill: currentColor; letter-spacing: .08em; }
.cut-svg .cut-label--muted { opacity: .7; }
@media (max-width: 1023px) {
  .cut-svg .cut-num { font-size: 24px; }
  .cut-svg .cut-label { font-size: 17px; letter-spacing: .04em; }
  .cut-svg .cut-label--muted { display: none; }
}
.layers { display: grid; }
.layers li {
  display: grid; grid-template-columns: 2.6em 1fr; column-gap: 8px; row-gap: 2px;
  padding: 12px 0; border-top: 1px solid rgba(22, 21, 19, .3);
  transition: padding-left .4s var(--ease-out), box-shadow .3s;
}
.layers li .mono { grid-row: span 2; padding-top: .25em; }
.layers li b { font-weight: 500; }
.layers li > span:last-child { font-size: var(--fs-small); }
.layers li.is-active { padding-left: 12px; box-shadow: inset 3px 0 var(--ink); }
.layers li.is-active b { font-weight: 650; }
.cut__note { margin-top: 8px; }
/* Pin a partir de 768 px, se houver altura — igual ao JS */
@media (min-width: 768px) and (min-height: 640px) {
  .cut { padding-block: 0; }
  .cut__pin { padding-block: calc(var(--header-h) + 24px) 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cut__layout { gap: 28px; }
  .cut .h2 { font-size: clamp(2rem, 5vw, 3rem); }
  .cut__intro { margin-top: 16px; }
  .tabs { margin-top: 20px; }
  .cut__panel { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .cut-svg { max-height: calc(100svh - 430px); }
  .layers li { padding: 9px 0; }
  .layers li > span:last-child { font-size: .875rem; line-height: 1.35; }
}
@media (min-width: 1024px) {
  .cut__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
  .cut__info { grid-column: 1 / 5; }
  .cut__panels { grid-column: 5 / -1; }
  .cut__panel { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 32px; }
  .cut-svg { max-height: calc(100svh - 200px); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .cut .h2 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
  .cut__panel { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
  .tabs__btn { padding: 8px 10px; font-size: .72rem; letter-spacing: .03em; }
  .layers li > span:last-child { font-size: .875rem; line-height: 1.35; }
}
@media (min-width: 768px) {
  .cut__panel-title { grid-column: 1 / -1; }
  .cut__note { grid-column: 1; }
}

/* ---------- Guia de materiais ---------- */
.guide__table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.guide__table thead th {
  text-align: left; font-family: var(--mono); font-size: var(--fs-mono); font-weight: 400;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink);
}
.guide__table tbody th, .guide__table td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.guide__table tbody th { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; width: 22%; }
.guide__table td { color: var(--muted); }
.cost { font-family: var(--mono); color: var(--ink); letter-spacing: .08em; }
.guide__note { color: var(--muted); margin-top: 16px; }
@media (max-width: 767px) {
  .guide__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide__table, .guide__table tbody, .guide__table tr, .guide__table th, .guide__table td { display: block; width: auto; }
  .guide__table tr { padding: 18px 0; border-top: 1px solid var(--ink); }
  .guide__table tbody th { padding: 0 0 10px; border: 0; width: auto; }
  .guide__table td { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 6px 0; border: 0; }
  .guide__table td::before { content: attr(data-label); font-family: var(--mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: .2em; }
}

/* ---------- Antes / depois ---------- */
.ba {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--surface);
}
@media (min-width: 768px) { .ba { aspect-ratio: 16 / 9; } }
.ba__img { position: absolute; inset: 0; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ph__tag {
  position: absolute; top: clamp(14px, 2vw, 24px); z-index: 2;
  display: inline-block; padding: 5px 8px; border-radius: 4px; font-size: .7rem;
  background: var(--bg); color: var(--ink);
}
.ba__img--before .ph__tag { left: clamp(14px, 2vw, 24px); }
.ba__img--after .ph__tag { right: clamp(14px, 2vw, 24px); background: var(--ink); color: var(--bg); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; z-index: 3; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; }
.ba__handle span {
  position: absolute; top: 50%; left: 0; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent); box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.ba__handle span::before {
  content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.2rem; color: var(--on-accent); letter-spacing: .1em;
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.ba:focus-within .ba__handle span { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Em obra (foto com duas zonas) ---------- */
.stage__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--surface); }
@media (min-width: 768px) { .stage__media { aspect-ratio: 16 / 9; } }
.stage__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.stage__tag--a { left: clamp(14px, 2vw, 24px); }
.stage__tag--b { right: clamp(14px, 2vw, 24px); background: var(--ink); color: var(--bg); }

/* ---------- Processo ---------- */
.steps { display: grid; gap: 40px var(--gap); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  display: grid; gap: 10px; align-content: start; padding-top: 20px;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left top / 100% 1px;
}
.step__n { color: var(--accent-ink); }
.step h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: var(--fs-small); max-width: 32ch; }

/* ---------- Obras ---------- */
.works__grid { display: grid; gap: clamp(28px, 3vw, 40px) var(--gap); }
.work__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--surface); }
.work--wide .work__media { aspect-ratio: 4 / 3; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.work__cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: var(--fs-small); }
.work__cap .mono { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .work:hover .work__media img { transform: scale(1.05); } }
@media (min-width: 640px) {
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work--wide { grid-column: 1 / -1; }
  .work--wide .work__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .works__grid { grid-template-columns: repeat(3, 1fr); }
  .work--wide { grid-column: span 2; }
  .work--wide .work__media { aspect-ratio: 1.64; }
}

/* ---------- Zonas ---------- */
.zones__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: clamp(10px, 1.4vw, 18px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05;
}
.zones__list { margin-top: 40px; }
.zones__list li:last-child { border-bottom: 1px solid var(--line); }
.zones__list .is-home { color: var(--accent); }
.zones__list .is-home .mono { color: var(--accent-ink); letter-spacing: .06em; }
@media (min-width: 1024px) { .zones__head { grid-column: 1 / 7; } .zones__list { grid-column: 8 / -1; align-self: center; margin-top: 0; } }

/* Mapa */
.zones__map { margin: 40px 0 0; max-width: 520px; }
.map-svg { width: 100%; height: auto; overflow: visible; }
.map-svg .map-es { fill: var(--surface); fill-opacity: 0; stroke: var(--muted); stroke-width: 1; stroke-linejoin: round; }
.map-svg .map-pt { fill: #f6dccf; fill-opacity: 0; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.map-svg .map-route { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; }
.map-svg .map-pin circle { fill: var(--ink); }
.map-svg .map-pin text { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; fill: var(--ink); text-transform: uppercase; }
.map-svg .map-pin--main circle { fill: var(--accent); }
.map-svg .map-pin--main text { font-family: var(--font); font-size: 22px; font-weight: 600; text-transform: none; letter-spacing: -.02em; fill: var(--accent-ink); }
.map-svg .map-pin--es circle { fill: var(--muted); }
.map-svg .map-pulse { fill: var(--accent) !important; opacity: .35; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .map-svg .map-pulse { animation: map-pulse 2.2s ease-out infinite; } }
@keyframes map-pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.2); opacity: 0; } }
.no-js .map-svg .map-es, .no-js .map-svg .map-pt, .anim-fallback .map-svg .map-es, .anim-fallback .map-svg .map-pt { fill-opacity: 1; }
@media (prefers-reduced-motion: reduce) { .map-svg .map-es, .map-svg .map-pt { fill-opacity: 1; } }

/* ---------- FAQ ---------- */
.faq__list { margin-top: 40px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-out);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item p { padding: 0 48px 24px 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 1024px) {
  .faq__head { grid-column: 1 / 6; }
  .faq__list { grid-column: 7 / -1; margin-top: 0; }
}

/* ---------- Orçamento (escuro + pontos) ---------- */
.quote {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--ink); color: var(--bg);
  padding-block: var(--section);
  background-image: radial-gradient(circle, rgba(244, 242, 238, .14) 1.6px, transparent 2px);
  background-size: 36px 36px; background-position: center;
}
.quote.has-canvas { background-image: none; }
.quote__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.quote__inner { display: grid; gap: clamp(32px, 4vw, 56px); justify-items: center; text-align: center; }
.quote__head { display: grid; justify-items: center; }
.quote__intro { margin-top: 20px; max-width: 42ch; color: var(--on-ink-muted); }
.quote__card {
  width: min(100%, 980px); text-align: left;
  display: grid; gap: 28px;
  padding: clamp(20px, 3vw, 40px); border-radius: var(--radius-lg);
  background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
@media (min-width: 900px) { .quote__card { grid-template-columns: 280px 1fr; gap: 40px; } }
.quote__contacts { display: grid; align-content: start; }
.quote__contacts li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.quote__contacts li .mono { color: var(--muted); }
.quote__contacts .quote__wa { border-top: 0; padding-top: 16px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field__opt { text-transform: none; letter-spacing: 0; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field [aria-invalid="true"] { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink); }
.field__err { font-size: .875rem; font-weight: 500; color: var(--accent-ink); }
.field__err:empty { display: none; }
.field__err::before { content: "! "; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field--check label { font-family: var(--font); font-size: var(--fs-small); text-transform: none; letter-spacing: 0; color: var(--ink); }
.field--check .field__err { grid-column: 2; }
.form__status { font-size: var(--fs-small); }
.form__status:empty { display: none; }
.form__preview { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--surface); color: var(--ink); white-space: pre-wrap; font-size: .875rem; }

/* ---------- Rodapé ---------- */
.footer { padding-block: clamp(64px, 8vw, 120px) 32px; }
.footer .grid { row-gap: 40px; }
.footer__word { font-size: clamp(2.75rem, 7vw, 6.25rem); font-weight: 500; letter-spacing: -.05em; line-height: .85; }
.footer__claim { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.footer__label { color: var(--muted); margin-bottom: 12px; }
.footer__col ul { display: grid; gap: 6px; font-size: var(--fs-small); }
.footer__consumer { display: grid; gap: 14px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .footer__consumer { grid-template-columns: auto 1fr; gap: 32px; } }
.lr-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius); text-decoration: none;
  font-size: var(--fs-small); font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s;
}
.lr-btn:hover { background: var(--ink); color: var(--bg); }
.footer__ral { color: var(--muted); font-size: .8125rem; line-height: 1.55; max-width: 90ch; }
.footer__ral a { text-decoration: underline; text-underline-offset: 2px; background: none; }
.footer__legal { color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.6; }
@media (min-width: 640px) { .footer__col { grid-column: span 6; } }
@media (min-width: 1024px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 3; }
}

/* ---------- WhatsApp flutuante + aviso ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 767px) { .wa-float { display: grid; } }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%);
  width: min(92vw, 440px); padding: 14px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-size: var(--fs-small);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast[hidden] { display: none; }


/* ==========================================================================
   Páginas de material e 404
   ========================================================================== */
.mhero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px)); padding-bottom: clamp(48px, 7vw, 112px); }
.mhero__grid { row-gap: 40px; align-items: end; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 56px); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs [aria-current] { color: var(--ink); }
.mhero__title { margin-bottom: 28px; }
.mhero__lead { max-width: 44ch; font-size: clamp(1.0625rem, .5vw + .95rem, 1.375rem); line-height: 1.4; margin-bottom: 28px; }
.mhero__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--surface); }
.mhero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .mhero__text { grid-column: 1 / 8; }
  .mhero__media { grid-column: 8 / -1; }
}
.mwhere { padding-top: 0; }
.mpros { padding-top: 0; }
.mpros__cols { display: grid; gap: 48px; }
@media (min-width: 900px) { .mpros__cols { grid-template-columns: 1fr 1fr; gap: var(--gap); } }
.ticks { display: grid; }
.ticks li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: "+"; position: absolute; left: 4px; top: 13px; font-family: var(--mono); color: var(--accent-ink); }
.ticks--warn li::before { content: "!"; left: 7px; }
.mcare { display: grid; gap: 8px; margin-top: clamp(40px, 5vw, 72px); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); max-width: 760px; }
.mcare .mono { color: var(--muted); }

.mcut { background: var(--accent); color: var(--ink); }
.mcut__layout { display: grid; gap: 32px; }
.mcut .cut-svg { width: 100%; height: auto; }
@media (min-width: 1024px) {
  .mcut__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); align-items: center; }
  .mcut__head { grid-column: 1 / -1; }
  .mcut__fig { grid-column: 1 / 9; }
  .mcut__layers { grid-column: 9 / -1; }
  .mcut__note { grid-column: 1 / -1; }
}

.mcta { position: relative; background: var(--ink); color: var(--bg); padding-block: clamp(80px, 10vw, 160px);
  background-image: radial-gradient(circle, rgba(244, 242, 238, .14) 1.6px, transparent 2px); background-size: 36px 36px; }
.mcta__inner { display: grid; gap: 32px; justify-items: start; }
.mmore__title { color: var(--muted); margin-bottom: 20px; }
.mmore__list li { border-top: 1px solid var(--line); }
.mmore__list li:last-child { border-bottom: 1px solid var(--line); }
.mmore__list a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: baseline;
  padding: clamp(14px, 1.6vw, 22px) 0; text-decoration: none;
  font-size: clamp(1.25rem, 2.2vw, 1.875rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
  transition: padding-left .45s var(--ease-out), color .3s;
}
.mmore__list .mono { color: var(--muted); }
.mmore__go { transition: transform .45s var(--ease-out); }
.mmore__list a:hover { padding-left: 12px; color: var(--accent-ink); }
.mmore__list a:hover .mmore__go { transform: translateX(6px); }
@media (max-width: 600px) { .mmore__list .mono { display: none; } .mmore__list a { grid-template-columns: 1fr auto; } }

.nf { min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 48px) 64px; }
.nf__inner { display: grid; gap: 28px; justify-items: start; }
.nf__code { font-size: clamp(6rem, 20vw, 16rem); font-weight: 500; letter-spacing: -.06em; line-height: .8; color: var(--accent); }
.nf__text { color: var(--muted); max-width: 40ch; }
.nf__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: var(--fs-small); }

/* ==========================================================================
   Estados iniciais das animações (só com JS e sem reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-lines] .line > span { transform: translateY(110%); }
  .js [data-fade], .js [data-split] { opacity: 0; transform: translateY(20px); }
  .js .hero [data-fade], .js .mhero [data-fade], .js .mhero [data-split] { opacity: 1; transform: translateY(28px); }
  .js .work__media { clip-path: inset(100% 0 0 0); }
  .js .spec__row, .js .step { background-size: 0 1px; }
}
/* Rede de segurança: se o JS não arrancar, mostra tudo */
.anim-fallback [data-lines] .line > span,
.anim-fallback [data-fade], .anim-fallback [data-split] { transform: none !important; opacity: 1 !important; }
.anim-fallback .work__media { clip-path: none !important; }
.anim-fallback .spec__row, .anim-fallback .step { background-size: 100% 1px !important; }
.anim-fallback .loader { display: none !important; }
