/* ==========================================================================
   Renov-Email — "Esmalte" design system
   main.css: fonts, tokens, reset, typography, layout, components, motion.
   Order: 01 Fonts · 02 Tokens · 03 Reset/base · 04 Typography · 05 Layout
          06 Utilities · 07 Buttons/links · 08 Header · 09 Mobile menu
          10 Hero · 11 Before/after slider · 12 Marquee · 13 About
          14 Facts/counters · 15 Cards · 16 Showcase strip · 17 Vintage trio
          18 Gallery · 19 Lightbox · 20 CTA band · 21 Footer · 22 Forms
          23 Page hero + inner-page blocks · 24 Cursor · 25 Motion states
          26 View transitions · 27 Reduced motion · 28 Print
   ========================================================================== */

/* 01 ── Fonts (vendored, OFL; latin + latin-ext split by unicode-range) ── */
@font-face {
  font-family: "Fraunces";
  src: url(/assets/fonts/fraunces-latin-full-normal.woff2?v=1) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url(/assets/fonts/fraunces-latin-ext-full-normal.woff2?v=1) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/fonts/instrument-sans-latin-wght-normal.woff2?v=1) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2?v=1) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 02 ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* palette */
  --enamel: #F7F4EE;
  --porcelain: #EEE8DD;
  --white: #FFFFFF;
  --ink: #0E1B2C;
  --ink-2: #56606E;
  --line: #D8D0C2;
  --cobalt: #1F3FB8;
  --cobalt-deep: #132A80;
  --cobalt-soft: #A9B8FF;
  --terracotta: #B4532A;
  --glint: rgba(255, 255, 255, .75);
  --glint-text: #B4C0DC; /* every channel <= both light backgrounds, so `lighten` only touches the ink letters */

  /* semantic (re-mapped by .theme-dark) */
  --bg: var(--enamel);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--cobalt);
  --accent-hover: var(--cobalt-deep);
  --focus: 0 0 0 3px var(--enamel), 0 0 0 5px var(--cobalt);

  /* type */
  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fvs-display: "opsz" 144, "SOFT" 100, "WONK" 0;
  --fvs-h3: "opsz" 48, "SOFT" 100, "WONK" 0;
  --fs-hero: clamp(2.5rem, 1.2rem + 6.4vw, 7.5rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 4.4vw, 5.5rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.8vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  --fs-num: clamp(3.5rem, 2rem + 6vw, 8rem);
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-eyebrow: .75rem;
  --measure: 62ch;

  /* layout */
  --gutter: clamp(16px, 4vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --content-max: 1440px;
  --header-h: 64px;

  /* spacing */
  --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: clamp(96px, 12vw, 192px);

  /* radius */
  --r-s: 10px; --r-m: 18px; --r-l: 28px; --r-pill: 999px;

  /* shadows (glaze, not drop) */
  --sh-1: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(14,27,44,.06), 0 8px 24px -12px rgba(14,27,44,.18);
  --sh-2: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(14,27,44,.06), 0 30px 60px -30px rgba(14,27,44,.35);

  /* motion */
  --dur-s: 180ms; --dur-m: 320ms; --dur-l: 600ms; --dur-xl: 1100ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-glaze: cubic-bezier(.22, .9, .24, 1);

  /* logo aspect ratio (width / height of logo.svg viewBox) — QA sets from the final SVG */
  --logo-ar: 6.03;          /* logo.svg viewBox 663.26 x 110 */
  --wordmark-ar: 5.988;     /* logo-wordmark.svg viewBox 523.02 x 87.35 */
}
@media (min-width: 1024px) { :root { --header-h: 72px; } }

/* Dark sections (max 2 per page: facts band + footer). */
.theme-dark {
  --bg: var(--ink);
  --fg: #F7F4EE;
  --fg-2: #B9C0CC;
  --accent: var(--cobalt-soft);
  --accent-hover: #C9D3FF;
  --line: #26364D;
  --focus: 0 0 0 3px var(--ink), 0 0 0 5px var(--cobalt-soft);
  background-color: var(--bg);
  color: var(--fg);
}

/* 03 ── Reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--enamel);
}
body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* never `hidden`: it would break the sticky header */
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: inherit; }
::selection { background: var(--cobalt); color: var(--enamel); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* 04 ── Typography ─────────────────────────────────────────────────────── */
.display, .h1, .h2, .h3, .fact__num {
  font-family: var(--ff-display);
  font-variation-settings: var(--fvs-display);
  font-optical-sizing: none;
  color: var(--fg);
}
.display { font-size: var(--fs-hero); font-weight: 350; line-height: .95; letter-spacing: -.035em; }
.h1 { font-size: var(--fs-h1); font-weight: 350; line-height: 1; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-h2); font-weight: 380; line-height: 1.05; letter-spacing: -.025em; }
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; font-variation-settings: var(--fvs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -.005em; color: var(--fg); max-width: var(--measure); }
.small { font-size: var(--fs-small); line-height: 1.45; letter-spacing: .005em; font-weight: 500; }
.muted { color: var(--fg-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--ff-text); font-size: var(--fs-eyebrow); font-weight: 600;
  line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.eyebrow::before { /* small azulejo diamond */
  content: ""; width: 6px; height: 6px; flex: none; background: var(--accent);
  transform: rotate(45deg); border-radius: 1px;
}
.eyebrow--plain::before { display: none; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--ff-display); font-variation-settings: var(--fvs-h3); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; margin-top: 2em; letter-spacing: -.01em; }
.prose h3 { font-weight: 600; font-size: 1.0625rem; margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:not([class]):hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; }
.text-accent { color: var(--accent); }

/* 05 ── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.section { padding-block: var(--s-10); position: relative; }
.section--tight { padding-block: var(--s-9); }
.section--porcelain { background: var(--porcelain); }
.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); max-width: 60rem; }
.section-head .lead, .section-head p { color: var(--fg-2); }
.stack > * + * { margin-top: var(--s-5); }
.stack-s > * + * { margin-top: var(--s-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; }

/* 06 ── Utilities ──────────────────────────────────────────────────────── */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--enamel); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur-m) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }
.nowrap { white-space: nowrap; }

/* Media wrapper: aspect-locked image, optional mask reveal + parallax */
.media {
  position: relative; overflow: hidden; background: var(--porcelain);
  aspect-ratio: var(--ar, 4 / 3); border-radius: var(--media-r, var(--r-l));
}
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--obj, 50% 50%); }
.media[data-parallax] > img { inset: -7% 0; height: 114%; }
.media--mat { background: var(--white); padding: 10px; box-shadow: var(--sh-2); }

/* Glint: the recurring specular highlight (hover sweep on buttons/cards/rows) */
@keyframes glint-sweep { from { translate: 0 0; } to { translate: 380% 0; } }
.has-glint { position: relative; overflow: hidden; isolation: isolate; }
.has-glint::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 40%;
  background: linear-gradient(110deg, transparent 0%, var(--glint) 50%, transparent 100%);
  pointer-events: none; z-index: 2; opacity: .9;
}
@media (hover: hover) {
  .has-glint:hover::after { animation: glint-sweep var(--dur-l) var(--ease-out) both; }
}

/* 07 ── Buttons & links ────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--enamel); --btn-bd: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 clamp(18px, 4vw, 26px); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--ff-text); font-size: 1rem; font-weight: 600; line-height: 1.1; letter-spacing: -.005em;
  white-space: nowrap; text-align: center;
  transition: background-color var(--dur-m) var(--ease-out), color var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out);
}
.btn::after { /* glint */
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 40%;
  background: linear-gradient(110deg, transparent 0%, var(--glint) 50%, transparent 100%);
  pointer-events: none; z-index: 1; opacity: .7;
}
.btn > * { position: relative; z-index: 2; }
.btn__icon { width: 18px; height: 18px; flex: none; transition: transform var(--dur-m) var(--ease-out); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--fg); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover { --btn-bg: var(--cobalt); --btn-bd: var(--cobalt); --btn-fg: var(--white); }
  .btn--secondary:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: var(--enamel); }
  .btn:hover::after { animation: glint-sweep var(--dur-l) var(--ease-out) both; }
  .btn:hover .btn__icon--arrow { transform: translateX(4px); }
}
.btn:active { --btn-bg: var(--cobalt-deep); --btn-bd: var(--cobalt-deep); --btn-fg: var(--white); }
.btn:focus-visible { box-shadow: var(--focus); border-radius: var(--r-pill); }
/* on dark */
.theme-dark .btn { --btn-bg: var(--enamel); --btn-fg: var(--ink); --btn-bd: var(--enamel); }
.theme-dark .btn--secondary { --btn-bg: transparent; --btn-fg: var(--enamel); --btn-bd: rgba(247,244,238,.5); }
@media (hover: hover) {
  .theme-dark .btn:hover, .theme-dark .btn--secondary:hover { --btn-bg: var(--cobalt-soft); --btn-bd: var(--cobalt-soft); --btn-fg: var(--ink); }
}

/* Inline animated link: underline grows from the left */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  padding-bottom: 3px;
  transition: background-size var(--dur-m) var(--ease-out), color var(--dur-m) var(--ease-out);
}
.link .btn__icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .link:hover { background-size: 100% 1px; color: var(--accent-hover); }
  .link:hover .btn__icon--arrow { transform: translateX(4px); }
}
.link--quiet { color: inherit; font-weight: 500; }

/* Phone block: number + mandatory legal line (PT law), always together */
.phone { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.phone__num {
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; color: var(--fg);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  transition: background-size var(--dur-m) var(--ease-out);
  width: fit-content;
}
@media (hover: hover) { a.phone__num:hover { background-size: 100% 1px; } }
.phone__legal { font-size: 11px; line-height: 1.3; color: var(--fg-2); letter-spacing: .01em; }
.phone--lg .phone__num { font-family: var(--ff-display); font-variation-settings: var(--fvs-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.02em; }
.phone--lg .phone__legal { font-size: .8125rem; }

/* 08 ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  view-transition-name: site-header;
  transition: transform var(--dur-m) var(--ease-out);
}
.site-header::before { /* frosted layer lives on a pseudo so the header itself never becomes a containing block */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: color-mix(in srgb, var(--enamel) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-m) var(--ease-out);
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
@media (min-width: 1024px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__inner > .brand { justify-self: start; }
  .site-header__actions { justify-self: end; }
}

/* Brand: mask logo (one colour, follows currentColor, so it inverts on dark/menu) */
.brand {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; min-height: 44px; color: var(--fg);
  transition: color var(--dur-m) var(--ease-out);
}
.brand__logo {
  display: block; height: 28px; width: auto; aspect-ratio: var(--logo-ar);
  background-color: currentColor;
  -webkit-mask: url(/assets/logo/logo.svg?v=1) no-repeat left center / contain;
  mask: url(/assets/logo/logo.svg?v=1) no-repeat left center / contain;
}
@media (max-width: 379.98px) { .brand__logo { height: 24px; } }

/* Desktop nav */
.site-nav__list { display: flex; gap: clamp(16px, 2vw, 32px); list-style: none; padding: 0; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; font-size: .9688rem; color: var(--fg);
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--cobalt); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-m) var(--ease-out);
}
@media (hover: hover) { .site-nav__link:hover::after { transform: scaleX(1); } }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__index, .site-nav__contact { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; }
.site-header__actions .phone { display: none; text-align: right; align-items: flex-end; }
.site-header__actions .btn { display: none; }
@media (min-width: 640px)  { .site-header__actions .btn { display: inline-flex; } }
@media (min-width: 1280px) { .site-header__actions .phone { display: inline-flex; } }

/* Menu toggle (text button, < 1024px) */
.menu-toggle {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .9375rem; color: var(--ink);
  transition: background-color var(--dur-m) var(--ease-out), color var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out);
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur-m) var(--ease-out), top var(--dur-m) var(--ease-out);
}
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { top: 7.5px; }
.menu-toggle[aria-expanded="true"] { background: transparent; color: var(--enamel); border-color: rgba(247,244,238,.35); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }
.menu-toggle:focus-visible { border-radius: var(--r-pill); }
.site-header.menu-open .brand { color: var(--enamel); }
.site-header.menu-open .site-header__actions { visibility: hidden; }

/* 09 ── Mobile menu (< 1024px): the same <nav> becomes a full-screen ink sheet ── */
@media (max-width: 1023.98px) {
  html.js .site-nav {
    position: fixed; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
    padding: calc(var(--header-h) + var(--s-7)) var(--gutter) max(var(--s-6), env(safe-area-inset-bottom));
    background: var(--ink); color: var(--enamel);
    --fg: var(--enamel); --fg-2: #B9C0CC; --accent: var(--cobalt-soft); --line: #26364D;
    --focus: 0 0 0 3px var(--ink), 0 0 0 5px var(--cobalt-soft);
    overflow-y: auto; overscroll-behavior: contain;
    clip-path: circle(0 at calc(100% - var(--gutter) - 44px) calc(var(--header-h) / 2));
    visibility: hidden;
    transition: clip-path var(--dur-l) var(--ease-inout), visibility 0s linear var(--dur-l);
  }
  html.js .site-nav.is-open {
    clip-path: circle(150% at calc(100% - var(--gutter) - 44px) calc(var(--header-h) / 2));
    visibility: visible;
    transition: clip-path var(--dur-l) var(--ease-inout), visibility 0s;
  }
  html.js .site-nav__list { flex-direction: column; gap: 0; }
  html.js .site-nav__list li { border-bottom: 1px solid var(--line); }
  html.js .site-nav__link {
    display: flex; align-items: baseline; gap: var(--s-4); width: 100%;
    padding-block: var(--s-3);
    font-family: var(--ff-display); font-variation-settings: var(--fvs-display);
    font-size: var(--fs-h2); font-weight: 380; line-height: 1.1; letter-spacing: -.025em; color: var(--enamel);
  }
  html.js .site-nav__link::after { display: none; }
  html.js .site-nav__link[aria-current="page"] { color: var(--cobalt-soft); }
  html.js .site-nav__index { display: inline; font-family: var(--ff-text); font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: #B9C0CC; transform: translateY(-.9em); }
  html.js .site-nav__contact { display: grid; gap: var(--s-5); }
  .site-nav__contact .phone__num { color: var(--enamel); font-size: 1.375rem; }
  .site-nav__contact .link { color: var(--cobalt-soft); }
  .site-nav__contact .btn { --btn-bg: var(--enamel); --btn-fg: var(--ink); --btn-bd: var(--enamel); }
  .site-nav__contact .btn--secondary { --btn-bg: transparent; --btn-fg: var(--enamel); --btn-bd: rgba(247,244,238,.5); }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
/* No-JS: the nav is a plain visible list under the bar; the toggle is hidden */
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 1023.98px) {
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 10px; row-gap: 0; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: 4px 18px; }
}

/* 10 ── Hero (home) ────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 112px); padding-bottom: var(--s-9); }
.hero__grid { row-gap: var(--s-6); align-items: end; }
.hero__eyebrow { margin-bottom: calc(var(--s-4) * -1); }
.hero__title { max-width: 13ch; }
.hero__aside { display: grid; gap: var(--s-6); }
.hero__aside .lead { color: var(--fg-2); max-width: 34ch; }
.hero__media { margin-top: clamp(40px, 6vw, 88px); }
@media (min-width: 1024px) {
  .hero__eyebrow { grid-column: 1 / -1; }
  .hero__title { grid-column: 1 / 9; max-width: none; }
  .hero__aside { grid-column: 9 / 13; padding-bottom: .6em; }
}

/* 11 ── Before/after slider (signature) ─────────────────────────────────── */
.ba {
  --pos: 50;
  position: relative; margin: 0;
  background: var(--white); padding: 10px; border-radius: var(--r-l);
  box-shadow: var(--sh-2);
}
.ba__frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: calc(var(--r-l) - 10px);
  background: var(--porcelain);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.ba.is-dragging .ba__frame { cursor: grabbing; }
.ba__img { position: absolute; inset: 0; }
.ba__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--obj, 50% 50%);
  pointer-events: none; -webkit-user-drag: none;
}
.ba__after { clip-path: inset(0 0 0 calc(var(--pos) * 1%)); }
.ba__label {
  position: absolute; top: 12px; z-index: 3;
  padding: 7px 12px 6px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none;
  transition: opacity var(--dur-m) var(--ease-out);
}
.ba__label--before { left: 12px; background: var(--terracotta); color: var(--white); opacity: clamp(0, calc((var(--pos) - 12) / 8), 1); }
.ba__label--after { right: 12px; background: var(--white); color: var(--ink); opacity: clamp(0, calc((88 - var(--pos)) / 8), 1); box-shadow: 0 1px 3px rgba(14,27,44,.15); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px;
  background: var(--white); box-shadow: 0 0 0 .5px rgba(14,27,44,.08), 0 0 18px rgba(255,255,255,.55);
  pointer-events: none;
}
.ba__handle::before { /* travelling specular streak along the seam */
  content: ""; position: absolute; top: 0; bottom: 0; left: -30px; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity: 0; transition: opacity var(--dur-l) var(--ease-out);
}
.ba.is-gliding .ba__handle::before { opacity: 1; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--ink); box-shadow: var(--sh-2);
  transition: scale var(--dur-m) var(--ease-out), box-shadow var(--dur-m) var(--ease-out);
}
.ba__knob svg { width: 26px; height: 26px; }
.ba.is-dragging .ba__knob { scale: .9; }
.ba:has(.ba__range:focus-visible) .ba__knob { box-shadow: var(--focus), var(--sh-2); }
.ba__range { /* full-frame, invisible, keyboard + screen reader control; pointer handled in JS */
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range:focus-visible { box-shadow: none; }
.ba__caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: 14px 8px 4px; font-size: var(--fs-small); font-weight: 500; line-height: 1.4; color: var(--ink);
}
.ba__caption .ba__index { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.ba--hero .ba__frame { max-height: 78svh; width: 100%; }
@media (max-width: 639.98px) { .ba--hero .ba__frame { --ar: 4 / 5; } .ba--hero { --obj: 35% 50%; } }
/* No-JS: both photos side by side, nothing hidden behind the interaction */
html:not(.js) .ba__frame { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; aspect-ratio: auto; max-height: none; cursor: auto; background: var(--white); }
html:not(.js) .ba__img { position: relative; inset: auto; aspect-ratio: var(--ar, 16 / 9); border-radius: calc(var(--r-l) - 14px); overflow: hidden; }
html:not(.js) .ba__after { clip-path: none; }
html:not(.js) .ba__handle, html:not(.js) .ba__range { display: none; }
html:not(.js) .ba__label { opacity: 1; }
html:not(.js) .ba__label--after { right: auto; left: calc(50% + 15px); }

/* 12 ── Marquee ────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; padding-block: clamp(24px, 3.5vw, 48px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; list-style: none; padding: 0; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(20px, 2.5vw, 40px); padding-right: clamp(20px, 2.5vw, 40px);
  font-family: var(--ff-display); font-variation-settings: var(--fvs-display);
  font-size: var(--fs-h2); font-weight: 350; line-height: 1.15; letter-spacing: -.025em; white-space: nowrap; color: var(--ink);
}
.marquee__item::after { content: ""; width: .22em; height: .22em; background: var(--cobalt); transform: rotate(45deg); border-radius: 2px; flex: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; padding-inline: var(--gutter); }
  .marquee__list { flex-wrap: wrap; row-gap: 4px; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__item { white-space: normal; }
}

/* 13 ── About ──────────────────────────────────────────────────────────── */
.about__grid { row-gap: var(--s-8); align-items: start; }
.about__text > .h2 { margin-top: var(--s-5); max-width: 14ch; }
.about__lead { margin-top: var(--s-6); }
.about__body { margin-top: var(--s-6); display: grid; gap: var(--s-4); color: var(--fg-2); max-width: var(--measure); }
.about__body p:last-child { color: var(--fg); font-weight: 500; }
.about__media { position: relative; padding-bottom: var(--s-8); }
.about__inset {
  position: absolute; right: calc(var(--gutter) * -.25); bottom: 0; width: 42%; max-width: 360px;
  rotate: -2deg; z-index: 2;
}
.about__inset .media { --ar: 4 / 3; --media-r: var(--r-m); border: 6px solid var(--white); box-shadow: var(--sh-2); }
@media (min-width: 1024px) {
  .about__text { grid-column: 1 / 7; }
  .about__media { grid-column: 8 / 13; position: sticky; top: calc(var(--header-h) + 32px); }
  .about__inset { left: -18%; right: auto; bottom: -8px; width: 44%; }
}

/* 14 ── Facts band + odometer counters ────────────────────────────────── */
.facts__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.facts__grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--col-gap); }
.fact { border-top: 1px solid var(--line); padding: var(--s-5) 0 var(--s-7); display: grid; gap: var(--s-4); align-content: start; }
.fact__num {
  display: flex; align-items: flex-start;
  font-size: var(--fs-num); font-weight: 350; line-height: .9; letter-spacing: -.04em;
  font-variant-numeric: lining-nums proportional-nums; color: var(--fg);
}
.fact__num .fact__suffix, .odo__suffix { color: var(--accent); }
.fact__word { font-size: calc(var(--fs-num) * .62); line-height: .95; }
.fact__cap { color: var(--fg-2); max-width: 30ch; }
@media (min-width: 640px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } .fact--wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .facts__grid { grid-template-columns: repeat(6, 1fr); }
  .fact { grid-column: span 2; }
  .fact--wide { grid-column: span 4; }
  .facts__head { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end; }
  .facts__head > :first-child { grid-column: 1 / 8; }
  .facts__head > :last-child { grid-column: 9 / 13; }
}
/* odometer (built by JS, aria-hidden; the real number sits in an .sr-only twin) */
.odo { display: inline-flex; align-items: flex-start; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; will-change: transform; }
.odo__strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo__suffix { line-height: 1; }

/* 15 ── Cards (services) ───────────────────────────────────────────────── */
.cards { display: grid; gap: var(--col-gap); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-m); box-shadow: var(--sh-1);
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur-m) var(--ease-out), box-shadow var(--dur-m) var(--ease-out);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--porcelain); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--obj, 50% 50%); transition: scale var(--dur-l) var(--ease-out); }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); flex: 1; }
.card__index { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.card__text { color: var(--ink-2); }
.card__text { list-style: none; padding: 0; }
.card__text li { position: relative; padding-left: 16px; }
.card__text li + li { margin-top: 4px; }
.card__text li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--cobalt); }
.card__link { margin-top: auto; padding-top: var(--s-3); align-self: flex-start; }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-m); } /* stretched link */
.card:has(.card__link:focus-visible) { box-shadow: var(--focus), var(--sh-2); }
.card__link:focus-visible { box-shadow: none; }
.card::after { /* glint sweep on hover */
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, var(--glint) 50%, transparent 100%); opacity: .8;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover::after { animation: glint-sweep var(--dur-l) var(--ease-out) both; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
  .card:hover .card__media img { scale: 1.04; }
  .card:hover .card__link { background-size: 100% 1px; }
  .card:hover .card__link .btn__icon--arrow { transform: translateX(4px); }
}

/* 16 ── Showcase strip (home before/after row; pinned horizontal ≥1024 + motion) ── */
.showcase__track { display: grid; gap: var(--s-8) var(--col-gap); }
.showcase__head { display: grid; gap: var(--s-5); align-content: start; }
.showcase__head p { color: var(--fg-2); max-width: 36ch; }
@media (min-width: 1024px) {
  .showcase__track { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .showcase__head { grid-column: 1 / -1; margin-bottom: var(--s-4); }
}
.showcase.is-h { padding-block: 0; }
.showcase.is-h .showcase__viewport { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.showcase.is-h .showcase__track {
  max-width: none; margin: 0;
  display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(32px, 4vw, 72px);
  width: max-content; padding-inline: var(--gutter); padding-top: var(--header-h);
}
.showcase.is-h .showcase__head { width: clamp(300px, 28vw, 440px); flex: none; margin: 0; }
.showcase.is-h .showcase__item { width: min(58vw, calc((100svh - var(--header-h) - 200px) * 4 / 3)); flex: none; }

/* 17 ── Vintage trio ───────────────────────────────────────────────────── */
.vintage__grid { row-gap: var(--s-8); align-items: center; }
.vintage__text { display: grid; gap: var(--s-5); align-content: start; }
.vintage__text p { color: var(--fg-2); max-width: 40ch; }
.trio { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--col-gap); align-items: start; }
.trio > :nth-child(1) { grid-column: 1 / 7; }
.trio > :nth-child(2) { grid-column: 1 / 4; }
.trio > :nth-child(3) { grid-column: 4 / 7; margin-top: var(--s-8); }
@media (min-width: 1024px) {
  .vintage__text { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 48px); }
  .trio { grid-column: 6 / 13; }
}

/* 18 ── Gallery ────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 24px); }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3); border-radius: var(--r-m); background: var(--porcelain);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--obj, 50% 50%); transition: scale var(--dur-l) var(--ease-out); }
.gallery__item--wide { grid-column: 1 / -1; --ar: 1920 / 909; }
.gallery__item--small { max-width: 500px; } /* 400px sources: never wider than 1.25x intrinsic */
.gallery__item:focus-visible { box-shadow: var(--focus); border-radius: var(--r-m); }
.gallery__zoom {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink);
  opacity: 0; translate: 0 6px; transition: opacity var(--dur-m) var(--ease-out), translate var(--dur-m) var(--ease-out);
}
.gallery__zoom svg { width: 16px; height: 16px; }
.gallery__item:focus-visible .gallery__zoom { opacity: 1; translate: 0 0; }
@media (hover: hover) {
  .gallery__item:hover img { scale: 1.03; }
  .gallery__item:hover .gallery__zoom { opacity: 1; translate: 0 0; }
}
@media (hover: none) { .gallery__zoom { opacity: 1; translate: 0 0; } }

/* 19 ── Lightbox (native <dialog>, built by JS) ─────────────────────────── */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--enamel);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 27, 44, .94); } /* literal: ::backdrop does not reliably inherit custom properties */
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in var(--dur-m) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--gutter); }
.lightbox__count { font-size: var(--fs-small); font-weight: 600; letter-spacing: .1em; color: #B9C0CC; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: var(--gutter); }
.lightbox__figure { display: grid; justify-items: center; gap: var(--s-4); margin: 0; max-height: 100%; }
.lightbox__img { max-width: 90vw; max-height: min(85vh, calc(100svh - 240px)); width: auto; height: auto; border-radius: var(--r-m); object-fit: contain; }
.lightbox__caption { font-size: var(--fs-small); color: #D5DAE2; text-align: center; max-width: 60ch; }
.lightbox__nav { display: flex; justify-content: center; gap: var(--s-3); padding: var(--s-4) var(--gutter) max(var(--s-5), env(safe-area-inset-bottom)); }
.lightbox__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(247,244,238,.35); color: var(--enamel);
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__btn:focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--cobalt-soft); border-radius: 50%; }
@media (hover: hover) { .lightbox__btn:hover { background: var(--enamel); color: var(--ink); } }

/* 20 ── CTA band ───────────────────────────────────────────────────────── */
.cta-band { background: var(--porcelain); padding-block: var(--s-10); position: relative; overflow: hidden; }
.cta-band__grid { row-gap: var(--s-7); align-items: end; }
.cta-band__title { max-width: 22ch; font-size: clamp(1.75rem, 1.15rem + 2.3vw, 3.25rem); line-height: 1.08; }
.cta-band__actions { display: grid; gap: var(--s-3); justify-items: stretch; max-width: 440px; }
.cta-band__actions .btn { width: 100%; }
.cta-band__call { display: grid; gap: 6px; }
.cta-band__call .phone__legal { text-align: center; }
@media (min-width: 1024px) {
  .cta-band__text { grid-column: 1 / 8; }
  .cta-band__actions { grid-column: 9 / 13; max-width: none; }
}

/* 21 ── Footer (dark) ──────────────────────────────────────────────────── */
.site-footer { position: relative; overflow: hidden; padding-top: var(--s-9); }
.site-footer__top { row-gap: var(--s-8); padding-bottom: var(--s-8); }
.site-footer__brand { display: grid; gap: var(--s-4); align-content: start; }
.site-footer__brand .brand { color: var(--enamel); }
.site-footer__brand .brand__logo { height: 34px; }
.site-footer__legalname { color: var(--fg-2); font-size: var(--fs-small); }
.footer-col { display: grid; gap: var(--s-4); align-content: start; }
.footer-col__title { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.footer-link {
  display: inline-block; padding-block: 4px; color: var(--fg);
  background: linear-gradient(var(--terracotta), var(--terracotta)) no-repeat 0 100% / 0% 2px;
  transition: background-size var(--dur-m) var(--ease-out);
}
@media (hover: hover) { .footer-link:hover { background-size: 100% 2px; } }
.footer-address { font-style: normal; display: grid; gap: 2px; color: var(--fg); }
.footer-address .small { color: var(--fg-2); }
.footer-address .link { font-size: var(--fs-small); margin-top: 4px; }
.site-footer .phone__num { color: var(--fg); font-size: 1.25rem; }
@media (min-width: 640px) {
  .site-footer__brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 4; }
  .footer-col--contacts { grid-column: 5 / 9; grid-row: span 2; }
}
@media (min-width: 1024px) {
  .site-footer__brand { grid-column: 1 / 5; }
  .footer-col { grid-column: span 2; }
  .footer-col--pages { grid-column: 6 / 8; }
  .footer-col--contacts { grid-column: 8 / 11; grid-row: auto; }
  .footer-col--legal { grid-column: 11 / 13; }
}
.site-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-4); }
.badge-link { display: inline-flex; align-items: center; gap: var(--s-3); border-radius: 8px; }
.badge-link--livro img { height: 48px; width: auto; }
.badge-link--scoring img { height: 64px; width: auto; }
.badge-link__label { font-size: var(--fs-small); color: var(--fg-2); max-width: 18ch; line-height: 1.3; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-2);
}
.site-footer__watermark {
  display: block; margin-top: var(--s-6); margin-bottom: -.12em; padding-inline: var(--gutter);
  color: var(--enamel); opacity: .06; pointer-events: none; user-select: none;
}
.site-footer__watermark .brand__logo {
  width: 100%; height: auto; aspect-ratio: var(--wordmark-ar);
  -webkit-mask-image: url(/assets/logo/logo-wordmark.svg?v=1); mask-image: url(/assets/logo/logo-wordmark.svg?v=1);
  -webkit-mask-position: center; mask-position: center;
}

/* 22 ── Forms ──────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field__label { font-weight: 600; font-size: .9375rem; color: var(--fg); }
.field__req { color: var(--terracotta); margin-left: 2px; }
.field__input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-s);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out);
}
textarea.field__input { min-height: 160px; resize: vertical; }
.field__input:hover { border-color: #BFB5A4; }
.field__input:focus-visible, .field__input:focus { border-color: var(--cobalt); box-shadow: var(--focus); border-radius: var(--r-s); }
.field__input[aria-invalid="true"] { border-color: var(--terracotta); }
.field__error { font-size: var(--fs-small); color: #9A3F1A; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .9375rem; }
.check input {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: 1px;
  border: 1px solid #A89D8B; border-radius: 6px; background: var(--white);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); rotate: -45deg; translate: 0 -2px; opacity: 0; }
.check input:checked { background: var(--cobalt); border-color: var(--cobalt); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { box-shadow: var(--focus); border-radius: 6px; }
.check a { color: var(--cobalt); text-decoration: underline; text-underline-offset: .2em; }
.form__note {
  padding: var(--s-4) var(--s-5); border-radius: var(--r-s); background: var(--porcelain);
  border-left: 3px solid var(--cobalt); font-size: .9375rem;
}
.form__note:empty { display: none; }

/* 23 ── Page hero + inner-page blocks ──────────────────────────────────── */
.page-hero { padding-top: clamp(40px, 7vw, 120px); padding-bottom: var(--s-9); }
.page-hero__grid { row-gap: var(--s-7); align-items: end; }
.page-hero__text { display: grid; gap: var(--s-5); align-content: start; }
.page-hero__text .lead { color: var(--fg-2); }
.page-hero__media { margin-top: var(--s-2); }
@media (min-width: 1024px) {
  .page-hero__text { grid-column: 1 / 8; }
  .page-hero--split .page-hero__media { grid-column: 8 / 13; margin-top: 0; }
  .page-hero--wide .page-hero__text { grid-column: 1 / 11; }
  .page-hero--wide .page-hero__media { grid-column: 1 / -1; margin-top: var(--s-6); }
}
/* 404: the message owns the first screen, the footer stays below the fold */
.notfound { min-height: min(72svh, 760px); display: grid; align-content: center; }
/* numbered list (serviços) */
.num-list { list-style: none; padding: 0; counter-reset: num; border-bottom: 1px solid var(--line); }
.num-list > li {
  counter-increment: num; position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-4); align-items: baseline;
  padding: var(--s-5) var(--s-2); border-top: 1px solid var(--line); font-size: var(--fs-lead); line-height: 1.35;
}
.num-list > li::before {
  content: counter(num, decimal-leading-zero);
  font-family: var(--ff-display); font-variation-settings: var(--fvs-display); font-weight: 400;
  font-size: 1.5rem; color: var(--accent); font-variant-numeric: lining-nums tabular-nums;
}
/* chips (instituições) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-family: var(--ff-display); font-variation-settings: var(--fvs-h3); font-weight: 450; font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem);
}
/* highlighted note (cookies page) */
.note { padding: var(--s-5) var(--s-6); border-radius: var(--r-s); background: var(--porcelain); border-left: 3px solid var(--cobalt); font-weight: 500; }
/* pull paragraph between slider rows */
.pull { font-family: var(--ff-display); font-variation-settings: var(--fvs-display); font-weight: 350; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; max-width: 36ch; }
/* alternating slider rows (reparação page) */
.pair-row { row-gap: var(--s-5); align-items: center; }
.pair-row + .pair-row { margin-top: var(--s-9); }
.pair-row__meta { display: grid; gap: var(--s-3); align-content: center; }
.pair-row__num { font-family: var(--ff-display); font-variation-settings: var(--fvs-display); font-size: var(--fs-h2); font-weight: 350; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 1024px) {
  .pair-row .ba { grid-column: 1 / 8; }
  .pair-row .pair-row__meta { grid-column: 9 / 13; }
  .pair-row--flip .ba { grid-column: 6 / 13; grid-row: 1; }
  .pair-row--flip .pair-row__meta { grid-column: 1 / 5; grid-row: 1; }
}
/* contact card */
.contact-card { background: var(--white); border-radius: var(--r-m); box-shadow: var(--sh-1); padding: var(--s-6); display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .contact-card { position: sticky; top: calc(var(--header-h) + 32px); } }

/* 24 ── Contextual cursor disc (fine pointers only; decorative) ─────────── */
.cursor-disc {
  position: fixed; top: 0; left: 0; z-index: 70; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--enamel);
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none; scale: 0; opacity: 0;
  transition: scale var(--dur-m) var(--ease-out), opacity var(--dur-m) var(--ease-out);
}
.cursor-disc.is-active { scale: 1; opacity: 1; }
.cursor-disc.is-pressed { scale: .6; }

/* 25 ── Motion states (only when html has .js AND .motion; see head script) ── */
html.js.motion .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
html.js.motion [data-split] { visibility: hidden; }
html.js.motion .media-reveal:not(.is-in) { clip-path: inset(12% 12% 12% 12% round var(--media-r, var(--r-l))); }
html.js.motion .media-reveal:not(.is-in) > img { scale: 1.15; }
/* safety net: forces everything visible if scripts fail or run late */
html.motion-done .reveal { opacity: 1 !important; transform: none !important; }
html.motion-done [data-split] { visibility: visible !important; }
html.motion-done .media-reveal { clip-path: none !important; }
html.motion-done .media-reveal > img { scale: 1 !important; }
/* SplitText line masks: give ç, ã, õ, descenders room inside overflow:clip */
.split-line-mask { padding-block: .16em; margin-block: -.16em; }
.split-line-mask ~ .split-line-mask { margin-top: -.32em; } /* sibling margins collapse: cancel both paddings so leading stays exact */
/* headline glint, played once after a headline lands */
.glint-text { position: relative; }
.glint-text::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 40%, var(--glint-text) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 100% 0; mix-blend-mode: lighten;
}
.glint-text.is-glinting::after { animation: text-glint 900ms var(--ease-inout) both; }
@keyframes text-glint {
  0% { opacity: 1; background-position: 100% 0; }
  100% { opacity: 1; background-position: 0% 0; }
}
.theme-dark .glint-text::after { display: none; }

/* 26 ── Page transitions (CSS only, same-origin MPA) ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .35s var(--ease-inout) both; }
  ::view-transition-new(root) { animation: vt-in .7s var(--ease-glaze) both; }
  ::view-transition-group(site-header) { animation: none; }
  ::view-transition-old(site-header) { display: none; }
  ::view-transition-new(site-header) { animation: none; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* 27 ── Reduced motion: everything instant ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .has-glint::after, .btn::after, .card::after, .glint-text::after { display: none; }
}

/* 28 ── Print ──────────────────────────────────────────────────────────── */
@media print {
  .site-header, .menu-toggle, .marquee, .cta-band__actions, .site-footer__watermark, .cursor-disc { display: none !important; }
  .theme-dark { background: #fff; color: #000; }
}
