/* Arti Venete prototype. Palette from the real logo (paleta.json): black stage, white lion, tricolour bar.
   Type: Syne (display, wide and heavy like the VENETE wordmark) + Hanken Grotesk (text). Radius: 2px (architectural, sharp). */
@font-face { font-family: 'Syne'; src: url('/assets/fonts/syne-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #141414;
  --ink-2: #1d1c1a;
  --ink-3: #2a2826;
  --stone: #cfcdc8;
  --stone-2: #bdbab4;
  --paper: #f1f0ec;
  --mute-d: #aaa7a1;
  --mute-l: #46443f;
  --red: #c9342e;
  --red-h: #b02a25;
  --green: #1e8a4c;
  --line-d: rgba(241, 240, 236, .16);
  --line-l: rgba(20, 20, 20, .18);
  --r: 2px;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Syne', 'Hanken', system-ui, sans-serif;
  --text: 'Hanken', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; color-scheme: dark; }
a, button, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(201, 52, 46, .18); }
.form, .legal, .mat, .chave, .story { color-scheme: light; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* tricolour: the logo's bar, used as the brand signature */
.tri { display: flex; width: 96px; height: 4px; margin-top: var(--s3); }
.tri i { flex: 1; } .tri i:nth-child(1) { background: var(--green); } .tri i:nth-child(2) { background: var(--paper); } .tri i:nth-child(3) { background: var(--red); }
.tri--foot { margin: 0 0 var(--s2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 600 15px/1 var(--text); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.btn:active, .car-btn:active, .filter__b:active { transform: scale(.96); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-h); }
.btn--line { border-color: rgba(241, 240, 236, .5); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); background: rgba(241, 240, 236, .06); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link svg { transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link--light { color: var(--paper); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(20, 20, 20, .94); border-bottom: 1px solid var(--line-d); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(20, 20, 20, .84); backdrop-filter: blur(10px); } }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 186px; height: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) { font-weight: 500; font-size: 15px; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav__list a:not(.btn):hover, .nav__list a[aria-current='page'] { background-size: 100% 1px; }
.menu-btn { display: none; }

/* hero: text row + strip of three real works (different finishes) */
.hero { padding: var(--s5) 0 0; background: var(--ink); overflow: hidden; }
.hero__top { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s5); align-items: end; }
.hero__h { font-size: clamp(34px, 3.5vw, 52px); font-weight: 700; line-height: 1.06; max-width: 19ch; }
.hero__lead { font-size: 18px; color: var(--mute-d); max-width: 40ch; margin-bottom: var(--s3); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__strip { display: grid; grid-template-columns: 4fr 6fr 3fr; gap: 14px; align-items: end; max-width: var(--wrap); margin: var(--s4) auto 0; padding: 0 var(--pad); }
.hero__ph { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--ink-3); }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.hero__ph--a { height: clamp(300px, 34vw, 470px); }
.hero__ph--a img { object-position: 50% 40%; }
.hero__ph--b { height: clamp(260px, 29vw, 400px); }
.hero__ph--c { height: clamp(300px, 34vw, 470px); }
.hero__ph--c img { object-position: 50% 30%; }

/* materials tabs (stone section) */
.mat { background: var(--stone); color: var(--ink); padding: var(--s7) 0; }
.mat__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s2); margin-bottom: var(--s5); }
.mat__head h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 18ch; }
.mat__head p { margin: 0; color: var(--mute-l); }
.tabs__list { display: flex; gap: 0; border-bottom: 1px solid var(--line-l); margin-bottom: var(--s5); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { flex: 0 0 auto; appearance: none; background: none; border: 0; padding: 14px 22px 16px; font: 600 16px/1 var(--text); color: var(--mute-l); cursor: pointer; position: relative; transition: color .2s; }
.tabs__tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected='true'] { color: var(--ink); }
.tabs__tab[aria-selected='true']::after { transform: scaleX(1); }
.tabs__panel { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s6); align-items: center; }
.tabs__panel[hidden] { display: none; }
.tabs__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--stone-2); }
.tabs__img img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .tabs__panel:not([hidden]) .tabs__img img { animation: matIn .7s var(--ease); } .tabs__panel:not([hidden]) .tabs__txt { animation: fadeUp .6s var(--ease); } }
@keyframes matIn { from { opacity: .3; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabs__txt h3 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: var(--s3); }
.tabs__txt p { font-size: 18px; max-width: 46ch; }
.tabs__txt dl { margin: var(--s3) 0 var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line-l); }
.tabs__txt dt { font-size: 14px; color: var(--mute-l); margin-bottom: 4px; }
.tabs__txt dd { margin: 0; font-weight: 600; }

/* projects carousel */
.proj { padding: var(--s7) 0; background: var(--ink); }
.proj__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: var(--s5); }
.proj__head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.car-ctrl { display: flex; gap: 10px; }
.car-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid rgba(241, 240, 236, .4); background: transparent; color: var(--paper); cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s, transform .12s var(--ease); }
.car-btn:hover { background: rgba(241, 240, 236, .08); border-color: var(--paper); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 var(--s4); scroll-padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.car::-webkit-scrollbar { display: none; }
.car__track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); width: max-content; }
.pcard { scroll-snap-align: start; width: clamp(260px, 29vw, 400px); }
.pcard a { display: block; text-decoration: none; }
.pcard__img, .pgrid__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--ink-3); }
.pcard__img img, .pgrid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard a:hover img, .pgrid__i a:hover img, .pcard a:focus-visible img { transform: scale(1.04); }
.pcard__meta { display: flex; justify-content: space-between; margin-top: var(--s2); font-size: 14px; color: var(--mute-d); }
.pcard__t { display: block; margin-top: 6px; font: 700 21px/1.2 var(--display); letter-spacing: -.01em; }
.proj .link { margin-top: var(--s2); }

/* method */
.metodo { background: var(--ink-2); padding: var(--s7) 0; border-top: 1px solid var(--line-d); }
.metodo__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
.metodo__img { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); }
.metodo__img img { width: 100%; height: 100%; object-fit: cover; }
.metodo h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 16ch; margin-bottom: var(--s3); }
.metodo__lead { color: var(--mute-d); max-width: 52ch; font-size: 18px; margin-bottom: var(--s5); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps__i { display: grid; grid-template-columns: 64px 1fr; gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line-d); }
.steps__n { font: 800 34px/1 var(--display); color: var(--red); }
.steps__i h3 { font-size: 23px; margin-bottom: 8px; }
.steps__i p { margin: 0; color: var(--mute-d); max-width: 52ch; }
.metodo--compact h2 { margin-bottom: var(--s5); }
.steps--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.steps--row .steps__i { grid-template-columns: 1fr; gap: var(--s2); }

/* turnkey (stone) */
.chave { background: var(--stone); color: var(--ink); padding: var(--s7) 0; }
.chave__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: center; }
.chave--alt .chave__grid { grid-template-columns: 7fr 5fr; }
.chave h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: var(--s3); max-width: 14ch; }
.chave__txt p { max-width: 50ch; font-size: 18px; color: #2b2a27; }
.chave__txt .btn { margin-top: var(--s2); }
.chave__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.chave__img img { width: 100%; height: 100%; object-fit: cover; }

/* services list */
.serv { padding: var(--s7) 0; background: var(--ink); }
.serv h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: var(--s5); }
.serv__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.serv__list a { display: grid; grid-template-columns: 4fr 7fr 40px; gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line-d); text-decoration: none; transition: background-color .25s var(--ease), padding .25s var(--ease); }
.serv__t { font: 700 22px/1.2 var(--display); }
.serv__d { color: var(--mute-d); }
.serv__go { justify-self: end; color: var(--mute-d); transition: transform .25s var(--ease), color .2s; }
.serv__list a:hover .serv__go, .serv__list a:focus-visible .serv__go { transform: translateX(4px); color: var(--red); }
.serv__list a:hover .serv__t { color: #fff; }

/* contact CTA */
.cta { background: var(--ink-2); padding: var(--s7) 0; border-top: 1px solid var(--line-d); }
.cta__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s6); align-items: start; }
.cta h2 { font-size: clamp(32px, 3.8vw, 52px); margin-bottom: var(--s3); max-width: 13ch; }
.cta__lead { color: var(--mute-d); font-size: 18px; max-width: 42ch; }
.cta__contact { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 10px; }
.cta__contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.cta__contact a:hover { color: #fff; text-decoration: underline; }
.cta--slim { padding: var(--s6) 0; }
.cta__slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.cta__slim h2 { margin: 0; font-size: clamp(26px, 2.8vw, 38px); max-width: none; }

/* form */
.form { background: var(--stone); color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--mute-l); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink); background: #f4f3f0; border: 1px solid #8f8c86; border-radius: var(--r); padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #66635d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 52, 46, .35); }
.field [aria-invalid='true'] { border-color: var(--red); }
.field__err { color: #9e1f1a; font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.form .btn { width: 100%; }
.form__nota { font-size: 14px; color: var(--mute-l); margin: var(--s2) 0 0; }

/* inner pages */
.phead { padding: var(--s6) 0 var(--s6); background: var(--ink); border-bottom: 1px solid var(--line-d); }
.crumbs { font-size: 14px; color: var(--mute-d); margin-bottom: var(--s4); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; color: var(--paper); }
.phead h1 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; max-width: 20ch; }
.phead__lead { color: var(--mute-d); font-size: 19px; max-width: 60ch; margin: var(--s3) 0 0; }

.story { background: var(--stone); color: var(--ink); padding: var(--s7) 0; }
.story__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
.story__img { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: var(--s3); }
.story h3 { font-size: 22px; margin: var(--s5) 0 var(--s2); }
.story__txt p { max-width: 58ch; font-size: 18px; color: #2b2a27; }
.values { padding: var(--s7) 0; background: var(--ink); }
.values h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: var(--s5); }
.values__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--s5); margin: 0; }
.values__list div { padding: var(--s4) 0; border-top: 1px solid var(--line-d); }
.values__list dt { font: 700 21px/1.2 var(--display); margin-bottom: 8px; }
.values__list dd { margin: 0; color: var(--mute-d); }

.svc { background: var(--ink); padding: var(--s6) 0 var(--s7); }
.svc__list { display: grid; gap: var(--s7); }
.svc__i { display: grid; grid-template-columns: 6fr 5fr; gap: var(--s6); align-items: center; scroll-margin-top: 100px; }
.svc__i--rev figure { order: 2; }
.svc__i figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.svc__i img { width: 100%; height: 100%; object-fit: cover; }
.svc__i h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: var(--s3); }
.svc__txt p { color: var(--mute-d); font-size: 18px; max-width: 46ch; }

.plist { padding: var(--s6) 0 var(--s7); background: var(--ink); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s5); }
.filter__b { appearance: none; background: none; border: 1px solid rgba(241, 240, 236, .35); color: var(--paper); border-radius: var(--r); min-height: 44px; padding: 0 18px; font: 500 15px/1 var(--text); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .12s var(--ease); }
.filter__b:hover { border-color: var(--paper); }
.filter__b[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5) 20px; }
.pgrid__i[hidden] { display: none; }
.pgrid__i a { display: block; text-decoration: none; }
.pgrid__i--big { grid-column: span 2; grid-row: span 2; }
.pgrid__i--big .pgrid__img { aspect-ratio: auto; height: calc(100% - 64px); min-height: 420px; }
.pgrid__i--big .pcard__t { font-size: 28px; }

.gal { padding: var(--s5) 0 var(--s7); background: var(--ink); }
.gal__facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s5); margin: 0 0 var(--s5); }
.gal__facts dt { font-size: 14px; color: var(--mute-d); }
.gal__facts dd { margin: 4px 0 0; font-weight: 600; }
.gal__grid { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 14px; }
.gal__grid li { break-inside: avoid; margin-bottom: 14px; }
.gal__b { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.gal__b img { width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.gal__b:hover img { transform: scale(1.03); }
.gal__next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-d); }
.lb { overscroll-behavior: contain; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .96); color: var(--paper); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(0, 0, 0, .7); }
.lb img { max-width: min(92vw, 1500px); max-height: 86dvh; width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(241, 240, 236, .35); background: rgba(20, 20, 20, .6); color: var(--paper); border-radius: var(--r); cursor: pointer; }
.lb button:hover { border-color: var(--paper); }
.lb__x { top: 16px; right: 16px; } .lb__p { left: 16px; top: 50%; translate: 0 -50%; } .lb__n { right: 16px; top: 50%; translate: 0 -50%; }

.contact { background: var(--ink); padding: var(--s6) 0 var(--s7); }
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s6); align-items: start; }
.contact h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: var(--s4); }
.contact__info dl { margin: 0 0 var(--s5); }
.contact__info dl div { padding: var(--s3) 0; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: 110px 1fr; gap: var(--s3); }
.contact__info dt { color: var(--mute-d); font-size: 15px; }
.contact__info dd { margin: 0; font-weight: 500; }
.contact__info dd .link { margin-top: 10px; font-size: 15px; }
.contact__img { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); }
.contact__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.done { padding: var(--s7) 0; background: var(--ink); min-height: 60vh; }
.done__grid { display: grid; grid-template-columns: 6fr 5fr; gap: var(--s6); align-items: center; }
.done h1 { font-size: clamp(30px, 3.4vw, 48px); margin-bottom: var(--s3); max-width: 16ch; }
.done p { color: var(--mute-d); font-size: 18px; max-width: 50ch; }
.done__note { font-size: 15px !important; border-left: 1px solid var(--red); padding-left: 14px; }
.done figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.done figure img { width: 100%; height: 100%; object-fit: cover; }

.legal { background: var(--stone); color: var(--ink); padding: var(--s6) 0 var(--s7); }
.legal__body { max-width: 820px; }
.legal__body h2 { font-size: 22px; margin: var(--s5) 0 var(--s2); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: #2b2a27; }

/* footer */
.foot { background: #0e0e0e; padding: var(--s6) 0 var(--s4); border-top: 1px solid var(--line-d); font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: var(--s5); }
.brand--foot img { width: 190px; margin-bottom: var(--s3); }
.foot__brand p { color: var(--mute-d); max-width: 34ch; }
.foot__h { font: 600 14px/1.2 var(--text); color: var(--mute-d); letter-spacing: .02em; margin-bottom: var(--s2); }
.foot p { margin-bottom: var(--s2); }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; color: #fff; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line-d); color: var(--mute-d); }
.foot__legal .tri { flex-basis: 100%; }
.foot__legal p { margin: 0; }

/* reveal on scroll (content visible without JS / with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js-motion .reveal.is-in { opacity: 1; transform: none; }
  .hero__ph img { animation: heroIn 1.1s var(--ease) both; }
  .hero__ph--b img { animation-delay: .08s; } .hero__ph--c img { animation-delay: .16s; }
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: var(--s3); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line-d); border-radius: var(--r); color: var(--paper); cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 1.6px; background: currentColor; position: relative; transition: transform .25s var(--ease), background-color .2s; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__list { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-d); padding: var(--s2) var(--pad) var(--s4); }
  .nav__list.is-open { display: flex; }
  .nav__list a:not(.btn) { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line-d); background: none; }
  .nav__cta { margin-top: var(--s3); } .nav__cta .btn { width: 100%; }
  .hero__top, .tabs__panel, .metodo__grid, .chave__grid, .chave--alt .chave__grid, .cta__grid, .story__grid, .svc__i, .contact__grid, .done__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .svc__i--rev figure { order: 0; }
  .metodo__img, .story__img { position: static; aspect-ratio: 16 / 10; }
  .chave--alt .chave__img { order: 2; }
  .steps--row { grid-template-columns: 1fr; gap: 0; }
  .values__list { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .serv__list a { grid-template-columns: 1fr 32px; gap: 6px var(--s2); }
  .serv__d { grid-column: 1; grid-row: 2; }
  .serv__go { grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --s6: 56px; --s7: 72px; }
  .brand img { width: 136px; }
  .top__row { height: 68px; }
  .nav__list { top: 68px; }
  .hero { padding-top: var(--s5); }
  .hero__h { font-size: clamp(30px, 8vw, 36px); }
  .phead h1 { font-size: clamp(28px, 7.4vw, 34px); font-weight: 700; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); gap: 10px; margin-top: var(--s4); scrollbar-width: none; padding-bottom: 4px; }
  .hero__strip::-webkit-scrollbar { display: none; }
  .hero__ph { flex: 0 0 72%; scroll-snap-align: start; height: 340px !important; }
  .hero__ph--b { flex-basis: 86%; }
  .tabs__tab { padding: 12px 14px 14px; font-size: 15px; }
  .tabs__txt p { font-size: 17px; }
  .proj__head { align-items: center; }
  .car-btn { width: 46px; height: 46px; }
  .pcard { width: 76vw; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .values__list, .pgrid { grid-template-columns: 1fr; }
  .pgrid__i--big { grid-column: auto; grid-row: auto; }
  .pgrid__i--big .pgrid__img { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
  .gal__facts { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .gal__grid { columns: 2; column-gap: 10px; } .gal__grid li { margin-bottom: 10px; }
  .contact__info dl div { grid-template-columns: 1fr; gap: 4px; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .cta__slim .btn { width: 100%; }
  .lb__p, .lb__n { top: auto !important; bottom: 20px; translate: none !important; }
}

/* image outlines (make-interfaces-feel-better): white 10% on dark sections, black 10% on stone */
.hero__ph img, .pcard__img img, .pgrid__img img, .metodo__img img, .gal__b img, .svc__i img, .contact__img img, .done figure img { outline: 1px solid oklch(1 0 0 / .1); outline-offset: -1px; }
.tabs__img img, .chave__img img, .story__img img { outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }

/* ---------- Fase B · Detalhe (31/10) ---------- */
/* material tabs: on phones all four are visible as a 2x2 grid instead of a clipped scroller */
@media (max-width: 760px) {
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; border-bottom: 0; gap: 0; }
  .tabs__tab { width: 100%; min-height: 48px; text-align: left; padding: 12px 4px 14px; border-bottom: 1px solid var(--line-l); }
  .proj__head { flex-wrap: wrap; gap: var(--s2); }
  .proj__head h2 { font-size: clamp(28px, 7.4vw, 34px); }
}
.hero__strip:focus-visible, .car:focus-visible { outline-offset: -2px; }
/* lightbox: inset so the photo and buttons never sit flush on the edge */
.lb { padding: 16px; }
/* footer: the tricolour bar is the divider; the extra full-bleed rule was wider than the content */
.foot__legal { border-top: 0; padding-top: 0; }
.field select:invalid, .field select option[value=''] { color: #66635d; }
/* footer links: ≥ 32 px touch targets on touch screens */
@media (pointer: coarse), (max-width: 760px) {
  .foot__list { gap: 0; }
  .foot__list a, .foot p a, .foot__legal a { display: inline-block; padding: 6px 0; }
}
