/* ==========================================================================
   Liriane Wagner — Arquitetura e Interiores
   Sistema visual: marfim, grafite, areia e pedra · Instrument Serif + Hanken Grotesk
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #f3eee6;
  --paper: #faf7f2;
  --sand: #e8dece;
  --stone: #dbd6cd;
  --mist: #e5e8e5;
  --tan: #c4a57c;
  --clay: #735833;
  --graphite: #1f1e1c;
  --graphite-2: #161514;
  --ink: #1f1e1c;
  --ink-2: #57514a;

  --bg: var(--ivory);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--clay);
  --line: rgba(31, 30, 28, 0.16);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --gap: clamp(12px, 2vw, 32px);
  --max: 1560px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--tan); color: var(--graphite); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.8em 1.2em;
  background: var(--graphite);
  color: var(--ivory);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografia ---------- */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--fg-2);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.5rem + 3.9vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display em { color: var(--accent); }
.display--sm { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 4rem); }

/* ---------- Botões e links ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; }
.i-wa { width: 1.2em; height: 1.2em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 0.9em 1.6em;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .i-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--ink { background: var(--graphite); color: var(--ivory); }
.btn--ink:hover { background: #3a3631; }
.btn--sand { background: var(--tan); color: var(--graphite); }
.btn--sand:hover { background: #d4b88f; }
.btn--ivory { background: var(--ivory); color: var(--graphite); }
.btn--ivory:hover { background: #fff; }
.btn--lg { min-height: 60px; padding-inline: 2em; font-size: 1rem; }
.btn--block { width: 100%; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
}
.link-cta span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease);
}
.link-cta:hover span { background-size: 0% 1px; background-position: 100% 100%; }
.link-cta .i-arrow { transition: transform 0.35s var(--ease); }
.link-cta:hover .i-arrow { transform: translateX(5px); }
.link-cta--sm { font-size: 0.88rem; }

/* ---------- Grafismo de contorno ---------- */
.contour {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.contour g { stroke-width: 1; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 238, 230, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled { height: 72px; }
.site-header.is-scrolled::before { opacity: 1; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand__logo img {
  width: auto;
  height: var(--logo-h, 52px);
  transition: height 0.4s var(--ease), opacity 0.4s var(--ease);
}
.brand__logo--light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.brand__logo--light img { opacity: 0; }

/* Cabeçalho sobre a imagem (abertura) */
.site-header { color: var(--ink); --logo-h: 50px; }
.site-header.is-scrolled { --logo-h: 56px; }
.site-header[data-overlay]:not(.is-scrolled) { --header-h: 104px; height: 104px; --logo-h: 72px; color: var(--ivory); }
.site-header[data-overlay]:not(.is-scrolled) .brand__logo--dark img,
.nav-open .brand__logo--dark img { opacity: 0; }
.site-header[data-overlay]:not(.is-scrolled) .brand__logo--light,
.site-header[data-overlay]:not(.is-scrolled) .brand__logo--light img,
.nav-open .brand__logo--light,
.nav-open .brand__logo--light img { opacity: 1; }
.site-header[data-overlay]:not(.is-scrolled) .site-nav__n { color: #e0c9a6; }
.site-header[data-overlay]:not(.is-scrolled) :focus-visible { outline-color: var(--tan); }
@media (min-width: 64em) {
  .site-header[data-overlay]:not(.is-scrolled) .site-nav__cta { border-color: rgba(243, 238, 230, 0.7); }
  .site-header[data-overlay]:not(.is-scrolled) .site-nav__cta:hover { background: var(--ivory); color: var(--graphite); }
}
@media (max-width: 47.99em) {
  .site-header { --logo-h: 44px; }
  .site-header.is-scrolled { --logo-h: 38px; }
  .site-header[data-overlay]:not(.is-scrolled) { --logo-h: 50px; height: 80px; }
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3em;
}
.site-nav__n {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0 0 0 0.6rem;
  border: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-toggle__lines { position: relative; width: 26px; height: 10px; }
.nav-toggle__lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle__lines span:first-child { top: 0; }
.nav-toggle__lines span:last-child { top: 8px; }
.nav-open .nav-toggle__lines span:first-child { top: 4px; transform: rotate(45deg); }
.nav-open .nav-toggle__lines span:last-child { top: 4px; transform: rotate(-45deg); }

/* Menu móvel em tela cheia */
@media (max-width: 63.99em) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2.2rem;
    padding: calc(var(--header-h) + 4vh) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--graphite);
    color: var(--ivory);
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease-io), opacity 0.3s, visibility 0s 0.6s;
    overflow-y: auto;
  }
  html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; clip-path: none; padding: 1rem; }
  html:not(.js) .site-nav__list li, html:not(.js) .site-nav__cta, html:not(.js) .site-nav__meta { opacity: 1; transform: none; }
  html:not(.js) .site-nav__list a { font-family: var(--sans); font-size: 1rem; min-height: 44px; }
  html:not(.js) .site-header { position: relative; height: auto; background: var(--graphite); color: var(--ivory); }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .nav-toggle { display: none; }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0);
    transition: clip-path 0.6s var(--ease-io), opacity 0.2s, visibility 0s;
  }
  .nav-open .brand, .nav-open .nav-toggle { color: var(--ivory); }
  .nav-open :focus-visible { outline-color: var(--tan); }
  .nav-open.site-header::before { opacity: 0; }

  .site-nav__list { display: grid; gap: 0.2rem; }
  .site-nav__list a {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 11vw, 4rem);
    line-height: 1.1;
    padding-block: 0.15rem;
  }
  .site-nav__n { color: var(--tan); padding-top: 0.9em; }
  .site-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    min-height: 56px;
    background: var(--tan);
    color: var(--graphite);
    font-weight: 500;
  }
  .site-nav__meta {
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 238, 230, 0.6);
  }
  .site-nav__list li, .site-nav__cta, .site-nav__meta {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }
  .nav-open .site-nav__list li, .nav-open .site-nav__cta, .nav-open .site-nav__meta { opacity: 1; transform: none; }
  .nav-open .site-nav__list li:nth-child(1) { transition-delay: 0.12s; }
  .nav-open .site-nav__list li:nth-child(2) { transition-delay: 0.16s; }
  .nav-open .site-nav__list li:nth-child(3) { transition-delay: 0.2s; }
  .nav-open .site-nav__list li:nth-child(4) { transition-delay: 0.24s; }
  .nav-open .site-nav__list li:nth-child(5) { transition-delay: 0.28s; }
  .nav-open .site-nav__cta { transition-delay: 0.34s; }
  .nav-open .site-nav__meta { transition-delay: 0.38s; }
}

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 3rem); }
  .site-nav__list { display: flex; gap: clamp(1.2rem, 2.2vw, 2.4rem); }
  .site-nav__list a {
    font-size: 0.9rem;
    min-height: 44px;
    align-items: center;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  .site-nav__n { align-self: flex-start; padding-top: 0.75rem; }
  .site-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    min-height: 42px;
    padding: 0 1.1em;
    border: 1px solid var(--graphite);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  }
  .site-nav__cta:hover { background: var(--graphite); color: var(--ivory); }
  .site-nav__meta { display: none; }
}

/* ==========================================================================
   Abertura cinematográfica (home e páginas de projeto)
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(620px, 100svh);
  padding-top: 104px;
  overflow: clip;
  background: var(--graphite);
  color: var(--ivory);
  --fg-2: rgba(243, 238, 230, 0.78);
  --accent: #e0c9a6;
}
.hero :focus-visible { outline-color: var(--tan); }

.hero__media { position: absolute; inset: 0; }
.hero__picture, .hero__picture img { width: 100%; height: 100%; }
.hero__picture img {
  object-fit: cover;
  object-position: 46% 56%;
  transform: translate3d(0, calc(var(--hero-p, 0) * 7%), 0) scale(calc(1.02 + var(--hero-p, 0) * 0.06));
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0.5) 0%, rgba(14, 13, 12, 0) 24%),
    linear-gradient(0deg, rgba(14, 13, 12, 0.86) 0%, rgba(14, 13, 12, 0.5) 34%, rgba(14, 13, 12, 0) 66%),
    linear-gradient(90deg, rgba(14, 13, 12, 0.42) 0%, rgba(14, 13, 12, 0) 58%);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-bottom: clamp(1.8rem, 5vh, 3.4rem);
  transform: translate3d(0, calc(var(--hero-p, 0) * -56px), 0);
  opacity: calc(1 - var(--hero-p, 0) * 1.5);
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hero__eyebrow-sep { width: 2.4rem; height: 1px; background: currentColor; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 0.9rem + 5.6vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.25);
}
.hero__line { display: block; }
.hero__signature { display: block; margin-top: 1.2rem; font-family: var(--serif); font-size: clamp(1.65rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.15; letter-spacing: 0; }
.page-home .hero__title { font-size: clamp(3.7rem, 1.1rem + 8vw, 9rem); }
.hero__title em { color: var(--accent); }

.hero__foot {
  display: grid;
  gap: 1.6rem;
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}
.hero__lead { max-width: 38ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); color: rgba(243, 238, 230, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.link-cta--light { color: var(--ivory); }

.hero__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(243, 238, 230, 0.22);
  font-size: 0.8rem;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.8);
}
.hero__scroll-line { position: relative; width: 44px; height: 1px; overflow: hidden; background: rgba(243, 238, 230, 0.3); }
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: translateX(-100%);
  animation: scan 2.6s var(--ease-io) infinite;
}
.hero__credit { display: inline-flex; align-items: center; gap: 0.9rem; min-height: 44px; text-align: right; }
.hero__credit-n { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--accent); }
.hero__credit-t { display: block; color: var(--ivory); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease); }
.hero__credit:hover .hero__credit-t { background-size: 100% 1px; }
.hero__credit-m { display: block; font-size: 0.8125rem; color: rgba(243, 238, 230, 0.66); }
.hero__zoom { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: rgba(243, 238, 230, 0.86); }
.hero__zoom:hover { color: var(--ivory); }

@media (max-width: 47.99em) {
  .hero { padding-top: 80px; }
  .hero__picture img { object-position: 50% 62%; }
  .hero__eyebrow-sep { display: none; }
  .hero__eyebrow { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .hero__bar { justify-content: flex-start; }
  .hero__credit { text-align: left; flex-direction: row; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(14, 13, 12, 0.55) 0%, rgba(14, 13, 12, 0) 22%),
      linear-gradient(0deg, rgba(14, 13, 12, 0.9) 0%, rgba(14, 13, 12, 0.6) 45%, rgba(14, 13, 12, 0.05) 75%);
  }
}
@media (min-width: 64em) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* Página de projeto: capa um pouco mais baixa, deixando a ficha à vista */
.hero--project { min-height: max(560px, 86svh); }
.hero--project .crumbs { color: rgba(243, 238, 230, 0.8); margin-bottom: clamp(1rem, 3vw, 2rem); }
.hero--project .crumbs a:hover { color: var(--ivory); }
.hero--project .hero__eyebrow { margin-bottom: 0.8rem; }

@keyframes scan {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- Animação de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro] { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
  .js [data-intro="1"] { --d: 0.1; }
  .js [data-intro="2"] { --d: 0.18; }
  .js [data-intro="3"] { --d: 0.26; }
  .js [data-intro="4"] { --d: 0.34; }
  .js [data-intro="5"] { --d: 0.42; }
  .js [data-intro="6"] { --d: 0.55; }
  .js [data-intro="7"] { --d: 0.65; }
  .js [data-intro="8"] { --d: 0.95; }
  .js [data-intro="9"] { --d: 1.1; }
  .js [data-intro="media"] { animation: fade 1.2s var(--ease) both; }
  .js [data-intro="media"] picture { animation: settle 2.6s var(--ease) both; }

  .reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  }
  .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }


  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }

/* ==========================================================================
   Projetos (home)
   ========================================================================== */
.projects { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { display: grid; gap: 1.5rem 4rem; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head__main { display: grid; gap: 1rem; }
.section-head__aside { align-self: end; max-width: 44ch; color: var(--ink-2); }
.project-grid { display: grid; gap: 3rem var(--gap); }
.project-card { min-width: 0; }
.project-card__image { position: relative; display: block; overflow: hidden; background: var(--sand); }
.project-card__image picture, .project-card__image img { width: 100%; height: 100%; }
.project-card__image img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card__image:hover img { transform: scale(1.025); }
.project-card__open { position: absolute; bottom: 1rem; right: 1rem; display: grid; place-items: center; width: 44px; height: 44px; background: var(--ivory); color: var(--ink); }
.project-card__body { padding-top: 1.2rem; }
.project-card__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.81rem; color: var(--clay); }
.project-card__title { margin-top: 0.65rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.7vw, 3.3rem); line-height: 1.05; }
.project-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.project-card__category { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-2); }
.project-card__summary { margin-top: 0.8rem; max-width: 58ch; color: var(--ink-2); }
.project-card__body .link-cta { margin-top: 0.75rem; }
@media (min-width: 48em) {
  .section-head { grid-template-columns: 1.3fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem var(--gap); }
  .project-card--featured { grid-column: 1 / -1; }
  .project-card--featured .project-card__image img { aspect-ratio: 2.6 / 1; }
  .project-card--featured .project-card__body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; align-items: start; }
  .project-card--featured .project-card__meta, .project-card--featured .project-card__title, .project-card--featured .project-card__category { grid-column: 1; }
  .project-card--featured .project-card__summary { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
  .project-card--featured .link-cta { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3rem;
}
.services__head, .services__list, .services__foot { grid-column: 1 / -1; }
.services__head .display { margin-top: 1.2rem; }
.services__intro { max-width: 36ch; margin-top: 1.6rem; color: var(--ink-2); }

.services__list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 1rem;
  row-gap: 1.2rem;
  padding: clamp(1.8rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}
.service__n {
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  transition: transform 0.45s var(--ease);
}
.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 1.02;
  transition: transform 0.5s var(--ease);
}
.service__scope { margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-2); }
.service__body {
  grid-column: 2;
  display: grid;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.service__body .label { margin-bottom: 0.35rem; color: var(--clay); font-size: 0.8125rem; }
.service__body .link-cta { justify-self: start; color: var(--ink); }
.service__details summary { cursor: pointer; padding-block: 0.4rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.service__details[open] summary { margin-bottom: 0.6rem; }
.service__details .link-cta { margin-top: 0.6rem; }
.brief__fallback { grid-column: 1 / -1; }
.brief__fallback a { text-decoration: underline; }
html:not(.js) .brief { display: none; }
@media (max-width: 47.99em) { .about__portrait { max-width: 22rem; } }

.services__foot { display: grid; gap: 2rem; font-size: 0.92rem; color: var(--ink-2); }
.services__foot-cta { display: grid; gap: 1.4rem; justify-items: start; padding-top: 2rem; border-top: 1px solid var(--line); }
.services__foot-q { font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; color: var(--ink); }
.services__foot-q em { color: var(--clay); }

@media (min-width: 48em) {
  .service__body { grid-template-columns: 1fr; }
  .service__body .link-cta { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .services__head { grid-column: 1 / 5; align-self: start; position: sticky; top: 100px; }
  .services__list, .services__foot { grid-column: 6 / -1; }
  .service { grid-template-columns: 3.4rem 1fr; }
  .services__foot-cta { grid-template-columns: 1fr auto; align-items: end; }
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.about { padding-block: clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
}
.about__portrait { position: relative; grid-column: 1 / -1; }
.about__portrait picture { position: relative; z-index: 1; }
.about__portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 45% 28%; }
.about__portrait figcaption { position: relative; z-index: 1; margin-top: 1rem; font-size: 0.88rem; color: var(--ink-2); }
.about__portrait figcaption .label { color: var(--ink); margin-bottom: 0.2rem; }
.about__contour { position: absolute; z-index: 0; top: -8%; right: -18%; width: 90%; height: 80%; color: var(--tan); opacity: 0.7; }
.about__text { grid-column: 1 / -1; }
.about__text .display { margin-top: 1.2rem; }
.about__prose { display: grid; gap: 0.9rem; max-width: 60ch; margin-top: 2rem; color: var(--ink-2); }
.about__lead { font-family: var(--serif); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.32; color: var(--ink); }
.about__facts {
  display: grid;
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about__facts > div { display: grid; gap: 0.3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.about__facts dt { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); font-weight: 500; }
.about__facts dd { font-size: 0.98rem; line-height: 1.45; }
.about__facts dd span { font-size: 0.86rem; color: var(--ink-2); }

@media (min-width: 48em) {
  .about__portrait { grid-column: 1 / 6; }
  .about__text { grid-column: 6 / -1; }
  .about__facts { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
@media (min-width: 64em) {
  .about__grid { align-items: start; }
  .about__portrait { grid-column: 1 / 5; }
  .about__text { grid-column: 6 / -1; }
}

/* ==========================================================================
   Processo
   ========================================================================== */
.process { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--sand); }
.process__head { display: grid; gap: 1.2rem; max-width: 46rem; }
.process__head > p:last-child { color: var(--ink-2); max-width: 44ch; }
.process__steps {
  position: relative;
  display: grid;
  gap: 2.6rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-left: 1.6rem;
}
.process__steps::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0;
  width: 1px;
  background: var(--ink);
  opacity: 0.35;
}
.step { position: relative; display: grid; gap: 0.6rem; }
.step__n { font-family: var(--serif); font-size: 3.4rem; line-height: 0.85; color: var(--clay); }
.step__mark {
  position: absolute;
  left: calc(-1.6rem - 4px);
  top: 0.8rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  background: var(--sand);
  transform: rotate(45deg);
}
.step__title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; }
.step p { color: var(--ink-2); max-width: 34ch; font-size: 0.95rem; }

@media (min-width: 64em) {
  .process__steps { grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding-left: 0; padding-top: 2.6rem; }
  .process__steps::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .step__mark { left: 0; top: calc(-2.6rem - 4px); }
  .step__n { margin-top: 0.4rem; }
}

/* ==========================================================================
   Contato / chamada final
   ========================================================================== */
.contact {
  position: relative;
  overflow: clip;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--graphite);
  color: var(--ivory);
  --fg-2: #b9b0a3;
  --accent: var(--tan);
  --line: rgba(243, 238, 230, 0.2);
}
.contact :focus-visible { outline-color: var(--tan); }
.contact .label { color: #b9b0a3; }
.contact__contour { position: absolute; top: -10%; right: -25%; width: 90vw; height: 80%; color: var(--tan); opacity: 0.22; }
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 4rem;
}
.contact__main, .brief { grid-column: 1 / -1; }
.contact__title {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 1.4rem + 7vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.contact__title em { display: block; color: var(--tan); }
.contact__lead { max-width: 38ch; margin-top: 2rem; font-size: 1.1rem; color: #d8d0c4; }
.contact__actions { margin-top: 2.4rem; }
.contact__direct {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact__direct li { display: grid; gap: 0.2rem; }
.contact__direct a { display: inline-block; min-height: 32px; font-size: 1.05rem; }
.contact__direct a:hover { color: var(--tan); }

.brief {
  display: grid;
  gap: 1.5rem;
  align-self: start;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  background: rgba(243, 238, 230, 0.03);
}
.brief__title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.brief__title span { font-family: var(--sans); font-size: 0.8rem; color: #b9b0a3; letter-spacing: 0.04em; }
.brief__head p { margin-top: 0.5rem; font-size: 0.9rem; color: #b9b0a3; }

.field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9b0a3;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 238, 230, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 238, 230, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--tan); box-shadow: 0 1px 0 0 var(--tan); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--tan); outline-offset: 4px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23c4a57c' stroke-width='1.5'/%3E%3C/svg%3E") right 0 center / 18px no-repeat;
}
.field select option { color: var(--graphite); background: var(--ivory); }
.field__error { font-size: 0.82rem; color: #f0c39a; }
.field [aria-invalid="true"] { border-bottom-color: #f0c39a; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid rgba(243, 238, 230, 0.32);
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover span { border-color: var(--ivory); }
.chip input:checked + span { background: var(--ivory); color: var(--graphite); border-color: var(--ivory); }
.chip input:focus-visible + span { outline: 2px solid var(--tan); outline-offset: 2px; }
.brief__note { font-size: 0.8rem; color: #b9b0a3; }

@media (min-width: 64em) {
  .contact__main { grid-column: 1 / 7; }
  .brief { grid-column: 8 / -1; margin-top: 2.6rem; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  padding: clamp(3.5rem, 7vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom));
  background: var(--graphite-2);
  color: #d8d0c4;
  font-size: 0.92rem;
  --line: rgba(243, 238, 230, 0.14);
}
.site-footer :focus-visible { outline-color: var(--tan); }
.site-footer .label { color: #8f877b; margin-bottom: 1rem; }
.site-footer__grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr 1fr; }
.site-footer__id { grid-column: 1 / -1; }
.site-footer__logo img { width: auto; height: clamp(84px, 9vw, 112px); }
.site-footer__name { margin-top: 1.6rem; font-size: 0.95rem; color: var(--ivory); }
.site-footer__role { margin-top: 0.8rem; color: #a59d91; font-size: 0.88rem; }
.site-footer__col ul { display: grid; gap: 0.15rem; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; transition: color 0.25s; }
.site-footer__col a:hover { color: var(--tan); }
.site-footer__col:last-child { grid-column: 1 / -1; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: #8f877b;
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .site-footer__id, .site-footer__col:last-child { grid-column: auto; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 56px;
  min-width: 56px;
  padding: 0 1.1rem;
  justify-content: center;
  background: var(--graphite);
  color: var(--ivory);
  border: 1px solid rgba(243, 238, 230, 0.2);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), background-color 0.3s;
}
.wa-float .i-wa { width: 1.45em; height: 1.45em; }
.wa-float:hover { background: #3a3631; }
.wa-float__label { display: none; }
.js .wa-float:not(.is-visible) { opacity: 0; transform: translateY(18px); pointer-events: none; }
@media (min-width: 64em) {
  .wa-float { display: none; }
}

/* ==========================================================================
   Página de projeto
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.project__title-row { display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 2.4rem); }
.project__n { font-family: var(--serif); font-size: clamp(4.4rem, 3rem + 6vw, 10rem); line-height: 0.74; color: var(--accent); }
.project__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 1.5rem + 5.6vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.25);
}
.project__image-note { color: var(--ink-2); font-size: 0.9rem; }
.project__facts { padding-top: clamp(2.4rem, 5vw, 4rem); }
.ficha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ficha__row { display: grid; gap: 0.3rem; align-content: start; padding: 0.9rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ficha__row--wide { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .ficha { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .ficha__row--wide { grid-column: span 2; }
}
.ficha dt { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }
.ficha dd { font-size: 0.92rem; line-height: 1.45; }

.project__story { padding-block: clamp(4rem, 9vw, 8rem); }
.project__concept {
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.project__cols { display: grid; gap: 2.6rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.4rem; border-top: 1px solid var(--line); }
.project__cols .label { margin-bottom: 1rem; color: var(--clay); }
.project__cols p { color: var(--ink-2); max-width: 44ch; }
.ticks { display: grid; gap: 0.75rem; color: var(--ink-2); font-size: 0.95rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7rem; height: 1px; background: var(--clay); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { padding: 0.45rem 0.8rem; border: 1px solid var(--line); font-size: 0.84rem; background: var(--paper); }
@media (min-width: 64em) {
  .project__cols { grid-template-columns: 1fr 1.2fr 1fr; column-gap: var(--gap); }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.4rem) var(--gap);
  grid-auto-flow: dense;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.drawings .gallery { padding-bottom: 0; width: auto; }
.plate { grid-column: 1 / -1; margin: 0; }
.plate__link { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.plate__link img { width: 100%; transition: transform 1.2s var(--ease); }
.plate__link:hover img { transform: scale(1.025); }
.plate--desenho .plate__link { background: #fff; padding: clamp(10px, 2vw, 28px); border: 1px solid var(--line); }
.plate--desenho .plate__link:hover img { transform: none; }
.plate figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-2); }
.plate__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(243, 238, 230, 0.92);
  color: var(--graphite);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.plate__link:hover .plate__zoom, .plate__link:focus-visible .plate__zoom { opacity: 1; transform: none; }
@media (hover: none) { .plate__zoom { opacity: 1; transform: none; } }
@media (min-width: 48em) {
  .plate--wide { grid-column: span 8; }
  .plate--half { grid-column: span 6; }
  .plate--third { grid-column: span 4; }
  .plate--tall { grid-column: 2 / span 5; }
  .plate--third .plate__link, .plate--third picture { height: calc(100% - 2rem); }
  .plate--third img { height: 100%; object-fit: cover; }
}

.drawings { padding-block: clamp(4rem, 9vw, 8rem); background: var(--paper); }
.drawings__head { display: grid; gap: 1rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }

.project__cta {
  display: grid;
  gap: 2rem;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.project__cta-text { max-width: 20ch; font-family: var(--serif); font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.015em; }
.project__cta-text em { color: var(--clay); }
@media (min-width: 64em) { .project__cta { grid-template-columns: 1fr auto; align-items: end; } }

.pager { display: grid; border-top: 1px solid var(--line); }
.pager__item { position: relative; display: block; overflow: hidden; background: var(--graphite); color: var(--ivory); }
.pager__item img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; opacity: 0.62; transition: transform 1.2s var(--ease), opacity 0.6s var(--ease); }
.pager__item:hover img { transform: scale(1.04); opacity: 0.45; }
.pager__text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.2rem, 3vw, 2.4rem); display: grid; gap: 0.4rem; }
.pager__text .label { color: rgba(243, 238, 230, 0.8); }
.pager__title { font-family: var(--serif); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1; }
@media (min-width: 48em) { .pager { grid-template-columns: 1fr 1fr; } .pager__item + .pager__item { border-left: 1px solid rgba(243, 238, 230, 0.2); } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 21, 20, 0.97);
  color: var(--ivory);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; animation: fade 0.35s var(--ease); }
.lightbox__stage { display: grid; place-items: center; height: 100%; padding: 64px clamp(12px, 7vw, 96px) 24px; touch-action: pan-y; }
.lightbox__figure { display: grid; justify-items: center; gap: 1rem; max-width: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; object-fit: contain; animation: zoomin 0.5s var(--ease); }
.lightbox__img.is-swapping { animation: none; opacity: 0.25; }
.lightbox__caption { display: flex; align-items: center; gap: 0.5rem 1.4rem; justify-content: center; flex-wrap: wrap; font-size: 0.86rem; color: #cfc6b9; text-align: center; }
.lightbox__original { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.lightbox__count { color: #8f877b; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(243, 238, 230, 0.2);
  background: rgba(22, 21, 20, 0.6);
  color: var(--ivory);
  transition: background-color 0.25s, border-color 0.25s;
}
.lightbox__btn:hover { background: var(--ivory); color: var(--graphite); }
.lightbox__btn:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
@media (max-width: 47.99em) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
  .lightbox__stage { padding-bottom: 80px; }
  .lightbox__img { max-height: calc(100dvh - 200px); }
}
@keyframes zoomin { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
html.has-dialog { overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { position: relative; display: grid; gap: 1.6rem; justify-items: start; min-height: 80svh; align-content: center; padding-top: var(--header-h); }
.notfound > p:not(.label) { color: var(--ink-2); max-width: 40ch; }
.notfound__contour { position: absolute; right: -10%; top: 10%; width: 60%; height: 70%; color: var(--tan); opacity: 0.4; z-index: -1; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .wa-float, .nav-toggle, .lightbox, .contour { display: none !important; }
  body { background: #fff; }
}

/* ---------- Utilidades ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.field__req { color: var(--tan); margin-left: 0.2em; }
.contact__hint { margin-top: 0.9rem; font-size: 0.85rem; color: #b9b0a3; }
