/* =============================================================================
   TREED · ART WOOD — Design System
   Luxo silencioso · Minimalismo extremo · Precisão milimétrica
   Referência: Apple · Linear · Boffi
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens --- */
:root {
    /* Neutros quentes (Ink) — a espinha do sistema */
    --ink-900: #141310;
    --ink-800: #1c1a16;
    --ink-700: #2c2924;
    --ink-500: #6b655b;
    --ink-400: #8a8479;
    --ink-300: #bdb6a7;
    --ink-100: #ede9e0;
    --paper:   #f6f4ef;
    --paper-alt: #efece4;
    --surface: #ffffff;

    /* Acento — Bronze (Wood). Usado em ≤10% da interface */
    --bronze:      #9a7b4f;
    --bronze-400:  #b2966b;
    --bronze-100:  #ece2d1;

    /* Semânticas empoeiradas */
    --sage:  #5f7357;
    --ochre: #b08a3e;
    --clay:  #9e5a4c;
    --slate: #5a6b78;

    /* Tipografia */
    --font-ui:      'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

    /* Escala de espaçamento — base 8 */
    --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
    --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
    --s-9: 96px;  --s-10: 128px;

    /* Raio & elevação */
    --r-control: 8px;
    --r-card: 12px;
    --shadow: 0 1px 2px rgba(20, 19, 16, .04), 0 24px 48px -32px rgba(20, 19, 16, .28);

    /* Hairlines */
    --line: rgba(20, 19, 16, .12);
    --line-strong: rgba(20, 19, 16, .22);
    --line-dark: rgba(246, 244, 239, .14);
    --line-dark-strong: rgba(246, 244, 239, .28);

    --wrap: 1240px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink-700);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--bronze); color: var(--paper); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--ink-900); color: var(--paper);
    padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r-control) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ------------------------------------------------------------ Tipografia --- */
.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-optical-sizing: auto;
    letter-spacing: -.02em;
    line-height: 1.04;
}
.display em { font-style: italic; color: var(--bronze); font-weight: 400; }

.editorial {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.editorial em { font-style: italic; color: var(--bronze); }

.accent-serif {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    color: var(--bronze);
    letter-spacing: -.01em;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-500);
    display: inline-block;
}

/* ------------------------------------------------------------- Utilitário --- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--s-6);
}
.section { padding-block: clamp(var(--s-8), 11vw, var(--s-10)); }
.section--paper { background: var(--paper); color: var(--ink-700); }
.section--paper-alt { background: var(--paper-alt); color: var(--ink-700); }
.section--ink { background: var(--ink-900); color: var(--ink-100); }
.section--ink .mono-label { color: var(--ink-300); }
.section--ink .section-title { color: var(--paper); }

/* ---------------------------------------------------------------- Botões --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 13px 22px;
    border-radius: var(--r-control);
    border: 1px solid transparent;
    font-weight: 600; font-size: 14px; letter-spacing: -.01em;
    transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    will-change: transform;
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn:active { transform: translateY(1px); }

.btn--key { background: var(--bronze); color: var(--paper); }
.btn--key:hover { background: var(--bronze-400); }

.btn--dark { background: var(--ink-900); color: var(--paper); }
.btn--dark:hover { background: var(--ink-700); }

.btn--secondary { background: var(--surface); color: var(--ink-900); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-900); }

.btn--ghost-light { background: transparent; color: var(--paper); border-color: var(--line-dark-strong); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(246, 244, 239, .06); }

.link-arrow, .link-back {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-weight: 600; font-size: 14px; color: var(--ink-900);
    border-bottom: 1px solid transparent; padding-bottom: 2px;
    transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { gap: var(--s-3); border-color: var(--bronze); }
.link-arrow:hover span { transform: translateX(4px); }
.link-back { color: var(--ink-500); margin-bottom: var(--s-6); font-size: 13px; }
.link-back:hover { color: var(--bronze); }

/* --------------------------------------------------------------- Header --- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header__inner {
    max-width: var(--wrap); margin-inline: auto;
    padding: var(--s-4) var(--s-6);
    display: flex; align-items: center; gap: var(--s-6);
}
.site-header.is-scrolled {
    background: rgba(246, 244, 239, .82);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
}
.site-header.is-over-dark { color: var(--paper); }
.site-header.is-over-dark.is-scrolled { color: var(--ink-900); }
.site-header.is-solid { color: var(--ink-900); position: sticky; }
body.page-portfolio, body.page-project, body.page-contacto { padding-top: 0; }

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__logo { height: 44px; width: auto; display: block; }
/* Sobre fundo escuro (herói) mostra o branco; ao fazer scroll (papel) mostra o preto */
.brand__logo--dark { display: none; }
.site-header.is-scrolled .brand__logo--light,
.site-header.is-solid .brand__logo--light { display: none; }
.site-header.is-scrolled .brand__logo--dark,
.site-header.is-solid .brand__logo--dark { display: block; }
.site-header.nav-open .brand__logo--light { display: block; }
.site-header.nav-open .brand__logo--dark { display: none; }

.site-nav__list { display: flex; align-items: center; gap: clamp(var(--s-4), 1.9vw, var(--s-6)); }
.site-nav__list a {
    font-size: 14px; font-weight: 500; color: currentColor; opacity: .82;
    position: relative; padding-block: 4px;
    transition: opacity .3s var(--ease);
}
.site-nav__list a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 100%;
    height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-nav__list a:hover { opacity: 1; }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-header__cta { padding: 10px 18px; font-size: 13px; }

/* Seletor de idioma */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; }
.lang-switch__opt {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; font-weight: 500;
    color: currentColor; opacity: .55; padding: 5px 7px; border-radius: 6px;
    transition: opacity .25s var(--ease), background .25s var(--ease);
}
.lang-switch__opt:hover { opacity: 1; }
.lang-switch__opt.is-active { opacity: 1; color: var(--bronze-400); }
.site-header.is-scrolled .lang-switch__opt.is-active,
.site-header.is-solid .lang-switch__opt.is-active { color: var(--bronze); }

.mobile-menu__langs { display: flex; gap: var(--s-2); margin-top: var(--s-6); }
.mobile-menu__langs .lang-switch__opt {
    border: 1px solid var(--line-dark-strong); color: var(--paper); opacity: .8;
    padding: 8px 14px; font-size: 12px;
}
.mobile-menu__langs .lang-switch__opt.is-active { color: var(--bronze-400); border-color: var(--bronze); opacity: 1; }

.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
    background: var(--ink-900); color: var(--paper);
    padding: var(--s-6);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-2); }
.mobile-menu a {
    display: block; padding: var(--s-3) 0; font-family: var(--font-display);
    font-size: 26px; font-weight: 300; letter-spacing: -.01em;
    border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__cta { margin-top: var(--s-5); width: 100%; }

/* ---------------------------------------------------------------- Hero --- */
.hero {
    position: relative; min-height: 100svh;
    background: var(--ink-900); color: var(--ink-100);
    display: flex; flex-direction: column; justify-content: center;
    padding: 148px var(--s-6) var(--s-8);
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0; color: var(--bronze);
    opacity: .16; pointer-events: none;
}
.hero__mesh { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 78%; height: auto; }
.hero::after {
    /* Vinheta subtil + textura de papel/grão */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(154, 123, 79, .10), transparent 60%),
        linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35));
}
.hero__photo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: .34; z-index: 0; filter: saturate(.9) contrast(1.02);
}
.hero__inner { position: relative; z-index: 1; max-width: var(--wrap); margin-inline: auto; width: 100%; }

.eyebrow { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-6); }
.eyebrow .mono-label { color: var(--ink-300); }
.eyebrow__sep { width: 48px; height: 1px; background: var(--line-dark-strong); }

.hero__title {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    color: var(--paper); max-width: 15ch;
    margin-bottom: var(--s-6);
}
.hero__lead {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--ink-300); max-width: 42ch; line-height: 1.5;
    margin-bottom: var(--s-7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-9); }

.hero__stats {
    display: flex; flex-wrap: wrap; gap: clamp(var(--s-6), 6vw, var(--s-9));
    border-top: 1px solid var(--line-dark); padding-top: var(--s-6); margin: 0;
    max-width: 720px;
}
.stat dt { margin-bottom: var(--s-2); }
.stat__value {
    font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--paper);
    margin: 0; line-height: 1;
}
.stat__sub { color: var(--ink-400); font-size: 13px; margin: var(--s-2) 0 0; }

.hero__scroll {
    position: absolute; left: 50%; bottom: var(--s-6); transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
    color: var(--ink-300);
}
.hero__scroll .mono-label { color: var(--ink-400); font-size: 10px; }
.hero__scroll-line {
    width: 1px; height: 42px;
    background: linear-gradient(var(--bronze-400), transparent);
    animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ----------------------------------------------------------- Cabeçalhos --- */
.section-head { margin-bottom: var(--s-8); }
.section-head__idx { display: block; margin-bottom: var(--s-4); }
.section-head--split {
    display: grid; grid-template-columns: 1.2fr .9fr; gap: var(--s-7); align-items: end;
}
.section-title {
    font-family: var(--font-ui); font-weight: 600;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1;
    color: var(--ink-900);
}
.section-head__desc { color: var(--ink-500); max-width: 46ch; font-size: 16px; }

/* --------------------------------------------------------- Manifesto --- */
.manifesto__lead {
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    color: var(--ink-900); max-width: 26ch; margin-bottom: var(--s-8);
}
.manifesto__cols {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7);
    max-width: 860px; margin-left: auto;
}
.manifesto__cols p { color: var(--ink-500); font-size: 16px; }

/* ------------------------------------------------------- Disciplinas --- */
.disciplines {
    display: grid; grid-template-columns: repeat(2, 1fr);
    column-gap: var(--s-8); border-top: 1px solid var(--line);
}
.discipline {
    position: relative; padding: var(--s-6) 0 var(--s-6);
    border-bottom: 1px solid var(--line);
}
.discipline__num { color: var(--bronze); margin-bottom: var(--s-3); }
.discipline__title {
    font-size: 20px; font-weight: 600; letter-spacing: -.01em;
    color: var(--ink-900); margin-bottom: var(--s-2);
}
.discipline__desc { color: var(--ink-500); max-width: 42ch; }
.discipline__rule {
    position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
    background: var(--bronze); transition: width .5s var(--ease);
}
.discipline:hover .discipline__rule { width: 100%; }

/* ----------------------------------------------------- Capacidade / Art --- */
.capacity__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
.material-card { display: flex; flex-direction: column; gap: var(--s-4); }
.material-card__title {
    font-family: var(--font-display); font-weight: 400; font-size: 22px;
    color: var(--paper); letter-spacing: -.01em; margin-bottom: var(--s-2);
}
.material-card__text p { color: var(--ink-400); font-size: 14px; }
.material-card:nth-child(4) { grid-column: 1; }

.art {
    position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--ink-700);
    border: 1px solid var(--line-dark);
    isolation: isolate;
}
.art.is-portrait { aspect-ratio: 3 / 4; }
.art__img { width: 100%; height: 100%; object-fit: cover; }
.art__mesh {
    position: absolute; inset: 0; width: 100%; height: 100%;
    color: rgba(246, 244, 239, .16); mix-blend-mode: overlay;
    transition: transform 1.2s var(--ease); transform: scale(1.02);
}
.art__grain {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        radial-gradient(60% 50% at 30% 20%, rgba(255,255,255,.10), transparent 60%),
        radial-gradient(70% 60% at 80% 90%, rgba(0,0,0,.35), transparent 60%);
}
.art__label {
    position: absolute; left: var(--s-4); bottom: var(--s-4);
    color: rgba(246, 244, 239, .72); font-size: 10px;
}
/* Tonalidades de superfície (madeira / grafite) */
.art--oak      { background: linear-gradient(150deg, #b9975f 0%, #8a6a3d 55%, #5f4a2c 100%); }
.art--walnut   { background: linear-gradient(150deg, #7c5a3c 0%, #4f3a26 60%, #2e2318 100%); }
.art--bronze   { background: linear-gradient(150deg, #b2966b 0%, #9a7b4f 55%, #6a5535 100%); }
.art--graphite { background: linear-gradient(150deg, #34322c 0%, #201e1a 60%, #141310 100%); }
.art--smoke    { background: linear-gradient(150deg, #6b655b 0%, #45413a 60%, #2a2723 100%); }

/* ---------------------------------------------------------- A Fábrica --- */
.fabrica__hero { margin-bottom: var(--s-7); }
.fabrica__hero .art { aspect-ratio: 21 / 9; }
.fabrica__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.fab-card { display: flex; flex-direction: column; gap: var(--s-4); }
.fab-card .art { aspect-ratio: 16 / 9; transition: transform .6s var(--ease); }
.fab-card:hover .art { transform: translateY(-4px); }
.fab-card:hover .art__mesh { transform: scale(1.08); }
.fab-card__title { font-size: 18px; font-weight: 600; color: var(--ink-900); letter-spacing: -.01em; margin-bottom: var(--s-2); }
.fab-card__text p { color: var(--ink-500); font-size: 14px; }
@media (max-width: 1080px) {
    .fabrica__grid { grid-template-columns: repeat(2, 1fr); }
    .fabrica__hero .art { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
    .fabrica__grid { grid-template-columns: 1fr; }
    .fabrica__hero .art { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------- Processo --- */
.timeline {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-5);
    border-top: 1px solid var(--line); padding-top: var(--s-6);
    counter-reset: step;
}
.timeline__step { position: relative; padding-top: var(--s-5); }
.timeline__node {
    position: absolute; top: -6px; left: 0; width: 11px; height: 11px;
    border-radius: 50%; background: var(--ink-900);
    box-shadow: 0 0 0 4px var(--paper);
}
.timeline__step:first-child .timeline__node { background: var(--bronze); }
.timeline__num { color: var(--bronze); display: block; margin-bottom: var(--s-3); }
.timeline__title { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: var(--s-2); }
.timeline__desc { color: var(--ink-500); font-size: 13px; }

.sectors { margin-top: var(--s-8); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.sectors > .mono-label { display: block; margin-bottom: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip {
    padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-700);
    transition: border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { border-color: var(--bronze); color: var(--bronze); }

/* ---------------------------------------------------------- Portfólio --- */
.work__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
.work-card { display: flex; flex-direction: column; gap: var(--s-4); }
.work-card .art { transition: transform .6s var(--ease); }
.work-card:hover .art { transform: translateY(-6px); }
.work-card:hover .art__mesh { transform: scale(1.1); }
.work-card__meta { display: flex; flex-direction: column; gap: var(--s-1); }
.work-card__title {
    font-size: 19px; font-weight: 600; color: var(--ink-900); letter-spacing: -.01em;
    transition: color .3s var(--ease);
}
.work-card:hover .work-card__title { color: var(--bronze); }
.work-card__loc { color: var(--ink-500); font-size: 13px; }

.gallery__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-6);
}
.gallery__grid .art { aspect-ratio: 4 / 3; }

.filterbar { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-8); }
.filterbar__btn {
    padding: 9px 18px; border-radius: 999px; background: transparent;
    border: 1px solid var(--line-strong); color: var(--ink-500);
    font-size: 13px; font-weight: 500;
    transition: all .3s var(--ease);
}
.filterbar__btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
.filterbar__btn.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }

/* -------------------------------------------------------------- CTA --- */
.cta__inner {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--s-5);
}
.cta__mark { width: 44px; height: 44px; color: var(--bronze); margin-bottom: var(--s-2); }
.cta__headline {
    font-size: clamp(1.8rem, 4.4vw, 3.4rem); color: var(--paper);
    max-width: 20ch; line-height: 1.08;
}
.cta .btn { margin-top: var(--s-3); }

/* ---------------------------------------------------- Páginas internas --- */
.page-hero {
    background: var(--ink-900); color: var(--ink-100);
    padding: clamp(140px, 18vh, 220px) var(--s-6) clamp(var(--s-8), 10vw, var(--s-10));
}
.page-hero--tight { padding-bottom: var(--s-8); }
.page-hero .wrap { padding-inline: 0; }
.page-hero .mono-label { color: var(--ink-300); }
.page-hero__title {
    font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--paper);
    margin: var(--s-4) 0 var(--s-5); max-width: 16ch;
}
.page-hero__lead { color: var(--ink-300); max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }

/* Projeto */
.project__hero { background: var(--ink-900); color: var(--ink-100); padding: clamp(140px, 18vh, 200px) var(--s-6) var(--s-8); }
.project__hero .mono-label { color: var(--bronze-400); }
.project__title { font-size: clamp(2.4rem, 5.5vw, 4rem); color: var(--paper); margin: var(--s-4) 0 var(--s-5); }
.project__summary { color: var(--ink-300); max-width: 54ch; font-size: 1.1rem; }
.project__cover { background: var(--ink-900); padding: 0 var(--s-6) 0; }
.project__cover .art { aspect-ratio: 16 / 8; margin-top: 0; }
.project__body {
    display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(var(--s-6), 6vw, var(--s-9));
    align-items: start;
}
.project__specs { display: grid; gap: var(--s-5); position: sticky; top: 120px; }
.spec > .mono-label { display: block; margin-bottom: var(--s-2); }
.spec p { color: var(--ink-900); font-weight: 500; }
.spec__list { display: grid; gap: var(--s-1); }
.spec__list li { color: var(--ink-700); }
.spec__list li::before { content: "— "; color: var(--bronze); }
.project__text { display: grid; gap: var(--s-5); }
.project__para { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--ink-700); line-height: 1.55; }
.project__para:first-child { font-family: var(--font-display); font-weight: 300; color: var(--ink-900); }

/* -------------------------------------------------------- Formulário --- */
.contact__grid {
    display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(var(--s-7), 6vw, var(--s-9));
    align-items: start;
}
.contact__desc { color: var(--ink-500); margin: var(--s-5) 0 var(--s-7); font-size: 1.05rem; max-width: 40ch; }
.contact__info { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.contact__info--stack { grid-template-columns: 1fr; gap: var(--s-5); }
.contact__info .mono-label { display: block; margin-bottom: var(--s-2); }
.contact__info p { color: var(--ink-700); font-size: 14px; }
.contact__info a:hover { color: var(--bronze); }
.contact__form-wrap {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-card); padding: clamp(var(--s-6), 3vw, var(--s-8));
    box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink-500); }
.field input, .field textarea, .select-wrap select {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink-900);
    background: var(--paper); border: 1px solid var(--line-strong);
    border-radius: var(--r-control); padding: 13px 14px;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .select-wrap select:focus {
    border-color: var(--bronze); background: var(--surface); outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--clay); }
.field__error { color: var(--clay); font-size: 12.5px; font-weight: 500; }

.select-wrap { position: relative; }
.select-wrap::after {
    content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink-500); border-bottom: 1.5px solid var(--ink-500);
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select { appearance: none; padding-right: 40px; }

.contact-form__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-6);
    border-top: 1px solid var(--line); padding-top: var(--s-5);
}
.contact-form__note { color: var(--ink-500); font-size: 13px; }

.form-note {
    border-radius: var(--r-control); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
    border: 1px solid transparent;
}
.form-note .mono-label { display: block; margin-bottom: 4px; }
.form-note p { font-size: 14px; }
.form-note--ok { background: rgba(95, 115, 87, .10); border-color: rgba(95, 115, 87, .32); }
.form-note--ok .mono-label { color: var(--sage); }
.form-note--error { background: rgba(158, 90, 76, .08); border-color: rgba(158, 90, 76, .30); }
.form-note--error .mono-label { color: var(--clay); }

/* ------------------------------------------------------------- Footer --- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: var(--s-9) var(--s-6) var(--s-6); }
.site-footer__top {
    max-width: var(--wrap); margin-inline: auto;
    display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-8);
    padding-bottom: var(--s-8); border-bottom: 1px solid var(--line-dark);
}
.site-footer__mark { width: 40px; height: 40px; color: var(--bronze); margin-bottom: var(--s-5); }
.site-footer__logo { height: 60px; width: auto; display: block; margin-bottom: var(--s-5); }
.site-footer__tagline { font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; color: var(--paper); max-width: 24ch; line-height: 1.3; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.footer-col .mono-label { display: block; margin-bottom: var(--s-3); color: var(--ink-500); }
.footer-col p { font-size: 13.5px; color: var(--ink-300); line-height: 1.7; }
.footer-col strong { color: var(--paper); font-weight: 600; }
.footer-col a:hover { color: var(--bronze-400); }
.site-footer__bottom {
    max-width: var(--wrap); margin: var(--s-6) auto 0;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
}
.site-footer__bottom .mono-label { color: var(--ink-500); font-size: 10px; }
.site-footer__powered { display: inline-flex; align-items: center; gap: var(--s-3); opacity: .85; transition: opacity .3s var(--ease); }
.site-footer__powered:hover { opacity: 1; }
.site-footer__powered-logo { height: 22px; width: auto; }
@media (max-width: 760px) {
    .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
}

/* ------------------------------------------------ Banner de idioma --- */
.lang-banner {
    position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
    z-index: 120; display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap;
    justify-content: center;
    background: var(--ink-900); color: var(--paper);
    border: 1px solid var(--line-dark-strong); border-radius: 999px;
    padding: 12px 14px 12px 24px; box-shadow: var(--shadow);
    max-width: calc(100% - var(--s-6)); animation: bannerIn .5s var(--ease) both;
}
.lang-banner.is-hidden { display: none; }
.lang-banner__text { font-size: 14px; }
.lang-banner__actions { display: inline-flex; align-items: center; gap: var(--s-2); }
.lang-banner__yes {
    background: var(--bronze); color: var(--paper); font-weight: 600; font-size: 13px;
    padding: 9px 16px; border-radius: 999px; transition: background .3s var(--ease);
}
.lang-banner__yes:hover { background: var(--bronze-400); }
.lang-banner__no {
    background: transparent; border: 0; color: var(--ink-300); font-size: 13px;
    padding: 9px 12px; border-radius: 999px;
}
.lang-banner__no:hover { color: var(--paper); }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 560px) {
    .lang-banner { border-radius: var(--r-card); padding: var(--s-4); flex-direction: column; gap: var(--s-3); }
}

/* -------------------------------------------------------------- Mapa --- */
.contact-map-sec { padding-block: clamp(var(--s-7), 7vw, var(--s-9)); }
.contact-map__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5);
}
.contact-map__addr { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; color: var(--ink-900); margin-top: var(--s-2); }
.contact-map {
    border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line);
    box-shadow: var(--shadow); background: var(--ink-100);
}
.contact-map iframe { display: block; width: 100%; height: clamp(320px, 46vw, 520px); border: 0; filter: grayscale(.2) contrast(1.02); }

/* ================================================= ACABAMENTOS · VIZ === */
.viz { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-6); align-items: start; }
.viz__stage { display: flex; flex-direction: column; gap: var(--s-4); }
.viz__scenebar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.scene-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.scene-tab { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-500); transition: all .25s var(--ease); }
.scene-tab:hover { border-color: var(--ink-900); color: var(--ink-900); }
.scene-tab.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.viz__scenebar-tools { display: flex; gap: var(--s-2); align-items: center; }
.viz-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.viz__frame { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #e9e5dd; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.viz__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--r-card); box-shadow: inset 0 0 70px rgba(20, 19, 16, .13); }
.viz__canvas { display: block; width: 100%; height: 100%; object-fit: cover; touch-action: none; }
.viz__canvas.is-painting { cursor: crosshair; }
.viz__loading { position: absolute; inset: 0; display: block; background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%) var(--paper-alt);
    background-size: 200% 100%; animation: vizShimmer 1.2s linear infinite; }
@keyframes vizShimmer { to { background-position: -200% 0; } }
.viz__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.viz__auto { display: block; color: var(--bronze); background: var(--bronze-100); border-radius: var(--r-control); padding: 10px 14px; letter-spacing: .06em; }
/* O display acima ganha à folha do browser: sem isto, [hidden] não esconde. */
.viz__auto[hidden] { display: none !important; }
.viz__canvas.is-photo { cursor: pointer; }


.viz__side { display: flex; flex-direction: column; gap: var(--s-5); position: sticky; top: 96px; }
.mat-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.mat-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-500); transition: all .25s var(--ease); }
.mat-tab:hover { border-color: var(--bronze); color: var(--bronze); }
.mat-tab.is-active { background: var(--bronze); border-color: var(--bronze); color: var(--paper); }
.finish-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); max-height: 360px; overflow-y: auto; padding-right: 4px; }
.fsw { display: flex; align-items: center; gap: var(--s-2); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.fsw:hover { border-color: var(--bronze); }
.fsw.is-active { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.fsw.is-hidden { display: none; }
.fsw__c { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); flex: 0 0 auto; }
.fsw__n { font-size: 12.5px; color: var(--ink-700); line-height: 1.15; }

.custom-finish { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-3); }
.custom-finish > .mono-label { color: var(--ink-500); }
.custom-finish__row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.custom-finish input[type="color"] { width: 46px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px; background: var(--surface); cursor: pointer; }
.finish-ai { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-4); }
.finish-ai__name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--ink-900); }
.finish-ai p { color: var(--ink-500); font-size: 14px; margin-top: 6px; }
.finish-ai__scn { color: var(--ink-700); font-style: italic; }

.finish-chip { display: inline-flex; align-items: center; gap: var(--s-2); padding: 5px 8px 5px 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-900); font-size: 13px; cursor: pointer; }
.finish-chip__sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.finish-chip button { background: none; border: 0; color: var(--ink-400); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.finish-chip button:hover { color: var(--ink-900); }

.favorites { margin-top: var(--s-8); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.favorites__head { margin-bottom: var(--s-4); }
.favorites__items { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-5); }
.favorites__empty { color: var(--ink-500); font-size: 13px; }
.favorites__send { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.favorites__send input { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-control); font: inherit; font-size: 14px; background: var(--surface); }
.favorites__send input[name="email"] { min-width: 220px; }
.favorites__send input[name="note"] { flex: 1; min-width: 180px; }
.favorites__msg { font-size: 13px; color: var(--ink-500); }
.favorites__msg.is-ok { color: var(--sage); }
.favorites__msg.is-err { color: var(--clay); }

@media (max-width: 1080px) {
    .viz { grid-template-columns: 1fr; }
    .viz__side { position: static; }
}
@media (max-width: 620px) {
    .finish-swatches { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- Reveal ao scroll --- */
[data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------- Responsivo --- */
@media (max-width: 1080px) {
    .section-head--split { grid-template-columns: 1fr; gap: var(--s-5); align-items: start; }
    .capacity__grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-7); }
    .work__grid { grid-template-columns: repeat(2, 1fr); }
    .project__body { grid-template-columns: 1fr; }
    .project__specs { position: static; grid-template-columns: repeat(2, 1fr); }
    .site-footer__top { grid-template-columns: 1fr; gap: var(--s-7); }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .site-nav, .site-header__cta, .lang-switch { display: none; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
        width: 42px; height: 42px; background: transparent; border: 0; align-items: center;
    }
    .nav-toggle span { width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease); }
    .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .site-header.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }
    .site-header.nav-open { background: var(--ink-900); color: var(--paper); }

    .disciplines { grid-template-columns: 1fr; }
    .manifesto__cols { grid-template-columns: 1fr; gap: var(--s-5); }
    .capacity__grid { grid-template-columns: 1fr; }
    .material-card:nth-child(4) { grid-column: auto; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .work__grid, .work__grid--index { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; gap: var(--s-7); }
    .contact__info { grid-template-columns: 1fr; }
    .project__specs { grid-template-columns: 1fr; }
    .hero { padding-top: 132px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .wrap { padding-inline: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}


/* ====================================================== COOKIES (RGPD) === */
.site-footer__cookies {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--ink-500); text-decoration: underline; text-underline-offset: 3px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.site-footer__cookies:hover { color: var(--bronze-400); }

.cc__banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    background: var(--ink-900); color: var(--ink-100);
    border-top: 1px solid var(--line-dark-strong);
    box-shadow: 0 -18px 40px -30px rgba(0,0,0,.8);
    animation: ccIn .45s var(--ease) both;
}
@keyframes ccIn { from { transform: translateY(100%); } to { transform: none; } }
.cc__inner {
    max-width: var(--wrap); margin-inline: auto; padding: var(--s-5) var(--s-6);
    display: flex; align-items: center; gap: var(--s-7); flex-wrap: wrap;
}
.cc__text { flex: 1; min-width: 280px; }
.cc__title {
    font-family: var(--font-display); font-weight: 300; font-size: 1.3rem;
    color: var(--paper); letter-spacing: -.01em; margin-bottom: 6px;
}
.cc__text p { color: var(--ink-300); font-size: 14px; line-height: 1.6; max-width: 68ch; }
.cc__actions { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.cc__actions .btn { min-width: 132px; }
.cc__link {
    background: none; border: 0; cursor: pointer; color: var(--ink-300);
    font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px;
}
.cc__link:hover { color: var(--paper); }

.cc__modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--s-5); }
/* O atributo hidden tem de vencer o display acima (senão o modal nunca fecha). */
.cc__modal[hidden], .cc__banner[hidden],
.cc__modal.is-hidden, .cc__banner.is-hidden { display: none !important; }
.cc__backdrop { position: absolute; inset: 0; background: rgba(20,19,16,.6); backdrop-filter: blur(3px); }
.cc__panel {
    position: relative; width: 100%; max-width: 640px; max-height: 86vh; overflow: auto;
    background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow);
    animation: ccPop .3s var(--ease) both;
}
@keyframes ccPop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cc__panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.cc__panel-title { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; color: var(--ink-900); }
.cc__x { background: none; border: 0; font-size: 16px; color: var(--ink-500); cursor: pointer; padding: 6px; }
.cc__x:hover { color: var(--ink-900); }
.cc__panel-body { padding: var(--s-5) var(--s-6); }
.cc__intro { color: var(--ink-500); font-size: 14px; margin-bottom: var(--s-5); }
.cc__cat { border-top: 1px solid var(--line); padding: var(--s-5) 0; }
.cc__cat:first-of-type { border-top: 0; padding-top: 0; }
.cc__cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); }
.cc__cat-head h3 { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.cc__cat-head p { font-size: 13.5px; color: var(--ink-500); margin-top: 5px; line-height: 1.55; max-width: 52ch; }
.cc__always { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); white-space: nowrap; padding-top: 4px; }
.cc__switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.cc__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.cc__slider { position: absolute; inset: 0; background: var(--ink-300); border-radius: 999px; transition: background .25s var(--ease); }
.cc__slider::before {
    content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
    background: #fff; border-radius: 50%; transition: transform .25s var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cc__switch input:checked + .cc__slider { background: var(--bronze); }
.cc__switch input:checked + .cc__slider::before { transform: translateX(20px); }
.cc__switch input:focus-visible + .cc__slider { outline: 2px solid var(--bronze); outline-offset: 2px; }
.cc__details { margin-top: var(--s-3); }
.cc__details summary {
    cursor: pointer; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-500);
}
.cc__details summary:hover { color: var(--bronze); }
.cc__table { width: 100%; border-collapse: collapse; margin-top: var(--s-3); font-size: 12.5px; }
.cc__table td { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--ink-500); vertical-align: top; }
.cc__table td:first-child { width: 34%; }
.cc__table code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-900); }
.cc__table td:last-child { text-align: right; white-space: nowrap; }
.cc__panel-foot {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    flex-wrap: wrap; padding: var(--s-5) var(--s-6); border-top: 1px solid var(--line);
    position: sticky; bottom: 0; background: var(--paper);
}
.cc__foot-right { display: flex; gap: var(--s-3); flex-wrap: wrap; }
body.cc-open { overflow: hidden; }

@media (max-width: 760px) {
    .cc__inner { gap: var(--s-4); padding: var(--s-4) var(--s-5); }
    .cc__actions { width: 100%; }
    .cc__actions .btn { flex: 1 1 45%; min-width: 0; }
    .cc__link { width: 100%; text-align: center; }
    .cc__panel-foot { flex-direction: column-reverse; align-items: stretch; }
    .cc__foot-right { flex-direction: column-reverse; }
    .cc__panel-foot .btn { width: 100%; }
}

/* =============================================================================
   COLECÇÃO TR — catálogo de acabamentos
   ========================================================================== */
.col-hero { padding: calc(var(--nav-h) + 120px) 0 80px; background: var(--ink-900); color: var(--paper); }
.col-hero__title { font-size: clamp(40px, 7vw, 92px); line-height: .98; margin: 18px 0 22px; }
.col-hero__lead { max-width: 62ch; color: rgba(246,244,239,.72); font-size: 17px; line-height: 1.7; }

/* --- Porquê ------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-7); }
.pillar { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.pillar__num { display: block; color: var(--bronze); letter-spacing: .22em; margin-bottom: var(--s-3); }
.pillar__title { font-size: 22px; letter-spacing: -.01em; margin-bottom: 10px; }
.pillar__q { color: var(--bronze); font-size: 14px; margin-bottom: 12px; }
.pillar__p { color: var(--ink-500); font-size: 15px; line-height: 1.72; }

/* --- Como especificar ---------------------------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin: var(--s-7) 0 0; padding: 0; }
.step { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.step__num { display: block; color: var(--bronze); margin-bottom: var(--s-3); }
.step__title { font-size: 20px; margin-bottom: 10px; }
.step__p { color: var(--ink-500); font-size: 15px; line-height: 1.72; }

/* --- Ferramentas do catálogo --------------------------------------------- */
.col-tools { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: flex-end; justify-content: space-between; margin: var(--s-6) 0 var(--s-4); }
.col-search input { width: min(360px, 78vw); padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink-900); }
.col-search input:focus { border-color: var(--bronze); outline: none; }
.col-filter { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.col-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: 13px; color: var(--ink-700); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink-900); }
.chip i { font-style: normal; font-size: 11px; letter-spacing: .06em; color: var(--ink-500); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.chip.is-active i { color: rgba(246,244,239,.6); }
.col-count { color: var(--ink-500); margin-bottom: var(--s-3); }
.col-empty { color: var(--ink-500); padding: var(--s-6) 0; text-align: center; }
.col-count[hidden], .col-empty[hidden] { display: none !important; }

/* --- Grelha -------------------------------------------------------------- */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--s-4); }
.col-fam { grid-column: 1 / -1; margin: var(--s-6) 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--mono, ui-monospace, monospace); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.col-fam:first-child { margin-top: 0; }
.col-fam[hidden], .fcard[hidden] { display: none !important; }

.fcard { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color .22s, transform .22s; }
.fcard:hover { border-color: var(--ink-900); transform: translateY(-2px); }
.fcard.is-mine { border-color: var(--bronze); }
.fcard.is-cmp { box-shadow: inset 0 0 0 2px var(--bronze-100); }
.fcard__media { position: relative; aspect-ratio: 1; background: #eeeae2; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard__noimg { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #e8e4dc 0 8px, #f2efe9 8px 16px); }
.fcard__acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.fcard:hover .fcard__acts, .fcard.is-mine .fcard__acts, .fcard.is-cmp .fcard__acts { opacity: 1; }
.fact { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(20,19,16,.62); color: var(--paper); font-size: 15px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s; }
.fact:hover { background: var(--bronze); }
.fcard__body { padding: 14px 16px 18px; }
.fcard__code { display: block; color: var(--bronze); margin-bottom: 4px; }
.fcard__name { font-family: var(--serif, Georgia, serif); font-size: 19px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 6px; }
.fcard__desc { color: var(--ink-500); font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
.fcard__subs { font-size: 10px; letter-spacing: .1em; color: #9a948a; line-height: 1.5; }

/* --- Minha colecção ------------------------------------------------------ */
.col-mine__lead { max-width: 60ch; color: var(--ink-500); font-size: 15px; line-height: 1.7; margin: 14px 0 var(--s-4); }
.col-mine__acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.col-mine__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.col-mine__empty { color: var(--ink-500); font-size: 14px; }
.col-mine:not(.is-empty) .col-mine__empty { display: none; }
.col-mine.is-empty .col-mine__acts { opacity: .4; pointer-events: none; }
.mcard { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.mcard__media { aspect-ratio: 1; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard__body { padding: 12px 14px 16px; }
.mcard__code { display: block; color: var(--bronze); margin-bottom: 3px; }
.mcard__name { font-family: var(--serif, Georgia, serif); font-size: 17px; font-weight: 400; margin-bottom: 4px; }
.mcard__desc { color: var(--ink-500); font-size: 12px; line-height: 1.5; }
.mcard__x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20,19,16,.62); color: var(--paper); font-size: 15px; line-height: 1; cursor: pointer; }
.mcard__x:hover { background: var(--clay); }

/* --- Ficha ---------------------------------------------------------------- */
body.modal-open { overflow: hidden; }
.fmodal, .cmpmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 4vh 3vw; }
.fmodal[hidden], .cmpmodal[hidden], .cmpbar[hidden] { display: none !important; }
.fmodal__scrim { position: absolute; inset: 0; background: rgba(20,19,16,.78); backdrop-filter: blur(3px); }
.fmodal__panel, .cmpmodal__panel { position: relative; width: min(1080px, 96vw); max-height: 92vh; overflow-y: auto; background: var(--paper); border-radius: var(--r-card); padding: clamp(20px, 4vw, 44px); }
.fmodal__x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-500); cursor: pointer; }
.fmodal__x:hover { color: var(--ink-900); }
.fmodal__nav { position: absolute; top: 14px; left: 16px; display: flex; gap: 6px; }
.fmodal__arrow { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-700); cursor: pointer; }
.fmodal__arrow:hover { border-color: var(--ink-900); }
.fmodal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 26px; }
.fmodal__media { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1; background: #eeeae2; }
.fmodal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fmodal__code { color: var(--bronze); }
.fmodal__name { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 6px 0 14px; }
.fmodal__desc { color: var(--ink-700); font-size: 16px; line-height: 1.7; margin-bottom: var(--s-4); }
.fmodal__supk { color: var(--ink-500); margin-bottom: 6px; }
.fmodal__subs { font-size: 13px; color: var(--ink-700); line-height: 1.6; margin-bottom: var(--s-4); }
.fmodal__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.fmodal__acts .is-done { border-color: var(--bronze); color: var(--bronze); }

/* --- Tabuleiro de materiais ---------------------------------------------- */

/* --- Ambiente gerado ------------------------------------------------------ */
.imag__out { margin: var(--s-4) 0 0; border-radius: var(--r-card); overflow: hidden; }
.imag__out[hidden] { display: none !important; }
.imag__out img { display: block; width: 100%; height: auto; }
.imag__msg { margin-top: 12px; color: var(--ink-500); font-size: 13px; }
.imag__msg[hidden] { display: none !important; }

/* --- Comparar ------------------------------------------------------------- */
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--ink-900); color: var(--paper); padding: 12px 0; }
.cmpbar__in { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.cmpbar__label { color: rgba(246,244,239,.6); }
.cmpbar__items { display: flex; gap: 8px; flex: 1 1 auto; flex-wrap: wrap; }
.cmpbar__it { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid rgba(246,244,239,.18); border-radius: 999px; background: transparent; color: var(--paper); font: inherit; font-size: 11px; letter-spacing: .08em; cursor: pointer; }
.cmpbar__it:hover { border-color: var(--bronze); }
.cmpbar__it img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cmpbar__acts { display: flex; gap: 8px; }
.cmpbar .btn { border-color: rgba(246,244,239,.28); color: var(--paper); }
.cmpbar .btn--key { background: var(--bronze); border-color: var(--bronze); }
.cmpmodal__title { font-size: clamp(24px, 3.4vw, 38px); margin-bottom: var(--s-5); }
.cmpmodal__grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: var(--s-4); }
.cmpcol__media { aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; margin-bottom: 12px; }
.cmpcol__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmpcol .mono-label { color: var(--bronze); }
.cmpcol h3 { font-family: var(--serif, Georgia, serif); font-size: 21px; font-weight: 400; margin: 4px 0 8px; }
.cmpcol__desc { color: var(--ink-500); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.cmpcol__subs { font-size: 10px; letter-spacing: .1em; color: #9a948a; line-height: 1.5; }

@media (max-width: 900px) {
  .pillars, .steps { grid-template-columns: 1fr; }
  .fmodal__grid { grid-template-columns: 1fr; }
  .cmpmodal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .col-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .col-tools { flex-direction: column; align-items: stretch; }
}

/* --- Pedido de amostras --------------------------------------------------- */
.reqmodal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 4vh 3vw; }
.reqmodal[hidden] { display: none !important; }
.reqmodal__panel { position: relative; width: min(760px, 96vw); max-height: 92vh; overflow-y: auto; background: var(--paper); border-radius: var(--r-card); padding: clamp(22px, 4vw, 46px); }
.reqmodal__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.06; margin-bottom: 12px; }
.reqmodal__lead { color: var(--ink-500); font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
.reqmodal__chosen { color: var(--bronze); line-height: 1.7; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-control); margin-bottom: var(--s-5); }

.reqform__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-3); }
.rf { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--s-3); }
.rf > span { color: var(--ink-500); }
.rf input, .rf textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); font: inherit; font-size: 14px; color: var(--ink-900); }
.rf input:focus, .rf textarea:focus { border-color: var(--bronze); outline: none; }
.rf textarea { resize: vertical; min-height: 84px; line-height: 1.6; }

.rfset { border: 0; padding: 0; margin: 0 0 var(--s-4); }
.rfset legend { color: var(--ink-500); margin-bottom: 10px; padding: 0; }
.rfset__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rfopt { position: relative; }
.rfopt input { position: absolute; opacity: 0; width: 0; height: 0; }
.rfopt span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-700); cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.rfopt span:hover { border-color: var(--ink-900); }
.rfopt input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.rfopt input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

.rf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reqform__msg { margin: 0 0 var(--s-3); padding: 12px 16px; border-radius: var(--r-control); background: rgba(158,90,76,.10); border: 1px solid rgba(158,90,76,.32); color: #7a3a30; font-size: 13px; line-height: 1.55; }
.reqform__msg[hidden] { display: none !important; }
.reqform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.reqform__rgpd { color: var(--ink-500); font-size: 12px; line-height: 1.5; flex: 1 1 260px; }

.reqdone { padding: var(--s-6) 0 var(--s-3); }
.reqdone[hidden] { display: none !important; }
.reqdone__ref { color: var(--bronze); font-size: 15px; letter-spacing: .16em; margin-bottom: 10px; }
.reqdone__msg { color: var(--ink-700); font-size: 16px; line-height: 1.7; }

@media (max-width: 620px) {
  .reqform__row { grid-template-columns: 1fr; }
}

/* --- TR-092 · o acabamento à medida --------------------------------------- */
.custom { background: var(--ink-900); color: var(--paper); }
.custom .mono-label { color: var(--bronze); }
.custom .section__title { color: var(--paper); }

.custom__grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: var(--s-6); }

.custom__form .field { display: flex; flex-direction: column; gap: 9px; margin-bottom: var(--s-5); }
.custom__color { display: flex; gap: 10px; align-items: center; }
.custom__color input[type="color"] { width: 58px; height: 46px; padding: 0; border: 1px solid rgba(246,244,239,.22); border-radius: var(--r-control); background: transparent; cursor: pointer; }
.custom__color input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.custom__color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.custom__color input[type="text"],
.custom__form input[type="text"]:not([data-cx-hex]) { flex: 1 1 auto; padding: 12px 14px; border: 1px solid rgba(246,244,239,.22); border-radius: var(--r-control); background: rgba(246,244,239,.05); font: inherit; font-size: 14px; color: var(--paper); }
.custom__form input[data-cx-hex] { font-family: var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; }
.custom__form input:focus { border-color: var(--bronze); outline: none; }
.custom__form input::placeholder { color: rgba(246,244,239,.34); }

.custom__fx { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.custom__fx legend { padding: 0; margin-bottom: 10px; }
.custom__fxopts { display: flex; flex-wrap: wrap; gap: 8px; }
.custom__fxopts .rfopt span { border-color: rgba(246,244,239,.22); color: rgba(246,244,239,.78); }
.custom__fxopts .rfopt span:hover { border-color: var(--paper); color: var(--paper); }
.custom__fxopts .rfopt input:checked + span { background: var(--bronze); border-color: var(--bronze); color: var(--ink-900); }

.custom__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.custom__acts .btn { border-color: rgba(246,244,239,.28); color: var(--paper); }
.custom__acts .btn:hover { border-color: var(--paper); }
.custom__acts .btn--key { background: var(--bronze); border-color: var(--bronze); color: var(--ink-900); }
.custom__acts .btn--dark { background: rgba(246,244,239,.08); }
.custom__acts .is-done { border-color: var(--bronze); color: var(--bronze); }

.custom__msg { margin-top: 14px; color: rgba(246,244,239,.62); font-size: 13px; line-height: 1.55; }
.custom__msg[hidden] { display: none !important; }

.custom__plate { margin: 0; }
.custom__plate canvas, .custom__plate img { display: block; width: 100%; height: auto; border-radius: var(--r-card); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.custom__plate canvas[hidden], .custom__plate img[hidden] { display: none !important; }
.custom__plate figcaption { margin-top: 14px; color: rgba(246,244,239,.5); letter-spacing: .12em; }

.mcard--cx .mcard__media { position: relative; }
.mcard--cx .mcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(0,0,0,.18)); }

@media (max-width: 900px) {
  .custom__grid { grid-template-columns: 1fr; }
  .custom__plate { order: -1; }
}

/* --- O meu espaço --------------------------------------------------------- */
.espaco__lead { max-width: 64ch; color: var(--ink-500); font-size: 15px; line-height: 1.72; margin: 14px 0 var(--s-5); }
.espaco__off { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--bronze); border-radius: var(--r-control); background: var(--surface); color: var(--ink-700); font-size: 14px; line-height: 1.6; margin-bottom: var(--s-5); max-width: 74ch; }

.espaco__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(20px, 4vw, 48px); align-items: start; }

.espaco__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 340px; border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--surface); text-align: center; padding: var(--s-5); }
.espaco__drop.is-over { border-color: var(--bronze); background: var(--bronze-100); }
.espaco__drop[hidden] { display: none !important; }
.espaco__dropt { color: var(--ink-500); font-size: 14px; }

.espaco__out { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.espaco__out[hidden] { display: none !important; }
.espaco__out img { display: block; width: 100%; height: auto; }
.espaco__out figcaption { padding: 12px 16px; background: var(--surface); color: var(--bronze); }

.espaco__msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); color: var(--ink-500); font-size: 13px; line-height: 1.55; }
.espaco__msg[hidden] { display: none !important; }

.espaco__pick .mono-label { color: var(--ink-500); display: block; margin-bottom: 12px; }
.espaco__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.espaco__empty { color: var(--ink-500); font-size: 13px; line-height: 1.6; }
.espaco__empty[hidden] { display: none !important; }

.espchip { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .18s, transform .18s; }
.espchip:hover:not(:disabled) { border-color: var(--ink-900); transform: translateY(-2px); }
.espchip:disabled { opacity: .42; cursor: default; }
.espchip img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.espchip span { display: block; padding: 0 6px 7px; font-family: var(--mono, ui-monospace, monospace); font-size: 9px; letter-spacing: .08em; color: var(--ink-500); }
.espchip.is-busy { border-color: var(--bronze); }
.espchip.is-busy img { opacity: .5; }

.espaco__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.espaco__acts .btn[hidden] { display: none !important; }

@media (max-width: 900px) {
  .espaco__grid { grid-template-columns: 1fr; }
}

/* --- Ver num ambiente (dentro da ficha do acabamento) --------------------- */
.ver { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }

.ver__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.ver__intro { flex: 1 1 320px; min-width: 0; }
.ver__head .mono-label { color: var(--bronze); }
.ver__lead { margin-top: 6px; max-width: 46ch; color: var(--ink-500); font-size: 13.5px; line-height: 1.6; }
.ver__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ver__acts .btn[hidden] { display: none !important; }

.ver__off { margin: 0 0 var(--s-4); padding: 13px 17px; border: 1px solid var(--line); border-left: 3px solid var(--bronze); border-radius: var(--r-control); background: var(--surface); color: var(--ink-700); font-size: 13.5px; line-height: 1.6; }

.ver__stage { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--ink-900); min-height: 260px; }

.ver__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 300px; padding: var(--s-5); text-align: center; border: 1px dashed rgba(246,244,239,.20); border-radius: var(--r-card); transition: border-color .2s, background .2s; }
.ver__drop.is-over { border-color: var(--bronze); background: rgba(154,123,79,.12); }
.ver__drop[hidden] { display: none !important; }
.ver__dropt { color: rgba(246,244,239,.56); font-size: 13.5px; }

/* Ícone desenhado em CSS: um enquadramento com uma diagonal, que sugere
   fotografia sem precisar de um ficheiro extra. */
.ver__icon { position: relative; display: block; width: 46px; height: 34px; border: 1.5px solid rgba(246,244,239,.34); border-radius: 5px; }
.ver__icon::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 13px; border-top: 1.5px solid rgba(246,244,239,.34); border-radius: 60% 40% 0 0 / 100% 100% 0 0; }
.ver__icon::after { content: ''; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }

.ver__out { position: relative; margin: 0; }
.ver__out[hidden] { display: none !important; }
.ver__out img { display: block; width: 100%; height: auto; }
.ver__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: rgba(246,244,239,.9); background: linear-gradient(to top, rgba(20,19,16,.82), transparent); letter-spacing: .12em; }
.ver__cap:empty { display: none; }

.ver__badge { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(20,19,16,.66); color: rgba(246,244,239,.86); backdrop-filter: blur(6px); letter-spacing: .12em; }
.ver__badge[hidden] { display: none !important; }

/* Enquanto compõe: a imagem recua e um varrimento percorre o palco. */
.ver.is-busy .ver__out img { opacity: .34; filter: saturate(.5); transition: opacity .3s; }
.ver.is-busy .ver__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(178,150,107,.28) 50%, transparent 70%); background-size: 220% 100%; animation: ver-sweep 1.5s linear infinite; pointer-events: none; }
@keyframes ver-sweep { from { background-position: 180% 0; } to { background-position: -80% 0; } }

.ver__msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); color: var(--ink-700); font-size: 13px; line-height: 1.55; }
.ver__msg[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ver.is-busy .ver__stage::after { animation: none; }
}

/* Campo de ficheiro escondido, accionado por um botão próprio: o controlo
   nativo não se deixa desenhar e destoava de tudo o resto. */
.input-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.imag__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }







/* --- Escolher onde aplicar o acabamento -----------------------------------
   Faixa própria entre o cabeçalho e o palco. Antes ficava espremida ao lado
   do texto e reorganizava-se a cada escolha — o botão saltava de sítio.
   Aqui nada se move: o rótulo, as pastilhas e o resumo têm lugar fixo. */
.ver__zonas {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px var(--s-4);
    margin: var(--s-4) 0 var(--s-4);
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}
.ver__zonas[hidden] { display: none !important; }

.ver__zlabel { color: var(--ink-500); white-space: nowrap; }
.ver__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Altura reservada: sem isto a linha aparece e empurra tudo para baixo. */
.ver__resumo {
    grid-column: 2;
    min-height: 1.5em;
    margin: 0;
    color: var(--bronze);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .01em;
}
.ver__resumo[hidden] { visibility: hidden; display: block !important; }

/* --- A pastilha ---------------------------------------------------------- */
.zchip { position: relative; }
.zchip input { position: absolute; opacity: 0; width: 0; height: 0; }

.zchip span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 12.5px;
    letter-spacing: .01em;
    color: var(--ink-500);
    cursor: pointer;
    transition: border-color .22s ease, background .22s ease, color .22s ease;
}
.zchip span:hover { border-color: var(--ink-900); color: var(--ink-900); }

/* O anel: vazio quando fica de fora, cheio com visto quando entra. É o que
   torna o estado inequívoco — a cor sozinha não chegava. */
.zchip__mk {
    position: relative;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: .38;
    transition: opacity .22s ease, background .22s ease, border-color .22s ease;
}
.zchip__mk::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid var(--paper);
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(42deg) scale(.4);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2, .9, .3, 1.4), opacity .16s ease;
}

/* Seleccionado: tinta de bronze, não bronze maciço. Mais contido, e deixa
   o texto legível — o preenchido cheio parecia um botão por carregar. */
.zchip input:checked + span {
    border-color: var(--bronze);
    background: rgba(154, 123, 79, .10);
    color: var(--bronze);
}
.zchip input:checked + span .zchip__mk {
    opacity: 1;
    background: var(--bronze);
    border-color: var(--bronze);
}
.zchip input:checked + span .zchip__mk::after { transform: rotate(42deg) scale(1); opacity: 1; }
.zchip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Suporte único: a pastilha é informação, não um controlo. */
.ver__chips.is-unico .zchip { pointer-events: none; }
.ver__zonas.is-unico .ver__resumo { color: var(--ink-500); font-weight: 400; }

@media (max-width: 620px) {
    .ver__zonas { grid-template-columns: 1fr; gap: 10px; }
    .ver__resumo { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .zchip span, .zchip__mk, .zchip__mk::after { transition: none; }
}
.ver__acts .btn:disabled { opacity: .45; cursor: not-allowed; }


/* ---- site novo: cena (foto base) na ficha ---- */
.fmodal__grid > .fmodal__media{grid-column:1;grid-row:1}
.fmodal__grid > .fmodal__media--scene{grid-column:1;grid-row:2;aspect-ratio:4/3;margin-top:0;position:relative;align-self:start}
.fmodal__grid > .fmodal__info{grid-column:2;grid-row:1 / span 2}
@media (max-width:820px){.fmodal__grid > .fmodal__media--scene{grid-row:3}.fmodal__grid > .fmodal__info{grid-column:1;grid-row:2}}
.fmodal__media--scene img[hidden]{display:none}
.fmodal__scene-cap{position:absolute;left:12px;bottom:10px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.6)}

/* selo flutuante do Netlify (iframe injetado pela plataforma) */
#nl-badge-frame{display:none!important;visibility:hidden!important}
