/* Salus Engenharia v2 · Pedra-sabão e cal */

@font-face {
  font-family: "Geologica";
  src: url("../assets/fonts/geologica-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: oblique 0deg 12deg;
  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: "Geologica";
  src: url("../assets/fonts/geologica-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: oblique 0deg 12deg;
  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;
}

:root {
  /* pedra-sabão */
  --stone-950: #161916;
  --stone-900: #1b1e1b;
  --stone-800: #222622;
  --stone-700: #2b302b;
  --stone-600: #3a403a;
  --vein: #454c45;
  --stone-400: #889183;
  --stone-300: #a3ab9d;
  /* cal */
  --cal: #eeede6;
  --cal-200: #e3e2d9;
  --cal-line: #cfcec3;
  --cal-ink: #222622;
  --cal-muted: #565d54;
  /* ouro preto: ouro escurecido */
  --ouro: #b39a64;
  --ouro-deep: #7a6537;
  --white: #ffffff;
  --error: #e0806f;
  --error-cal: #a3341f;

  --font: "Geologica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sharp: "SHRP" 100, "CRSV" 0;
  --soft: "SHRP" 0, "CRSV" 0;

  --gx: clamp(20px, 4.2vw, 64px);
  --gap: clamp(14px, 1.6vw, 24px);
  --section: clamp(104px, 13vw, 200px);
  --header: 104px;
  --c: 14px; /* chanfro de cantaria */
  --c-lg: clamp(18px, 2.2vw, 34px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --t-display: clamp(3.4rem, 1rem + 9.4vw, 10.5rem);
  --t-head: clamp(2.6rem, 1.2rem + 4.6vw, 6rem);
  --t-title: clamp(2rem, 1.2rem + 2.6vw, 3.75rem);
  --t-lead: clamp(1.35rem, 1rem + 1.3vw, 2.25rem);
  --t-sub: clamp(1.2rem, 1rem + 0.55vw, 1.55rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--stone-600) var(--stone-950); scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--stone-800);
  color: var(--cal);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 300;
  font-variation-settings: var(--soft);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--ouro);
  overflow-x: clip;
}
/* grão da pedra-sabão: veios largos + grão fino, desenhados em SVG */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .82 0 0 0 0 .74 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0016 .0055' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .62 0 0 0 0 .54 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  background-size: 260px 260px, 1400px 1400px;
  opacity: 0.1;
  mix-blend-mode: soft-light;
}
body > * { position: relative; z-index: 1; }

::selection { background: var(--ouro); color: var(--stone-950); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 250; font-variation-settings: var(--sharp); text-wrap: balance; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--gx); top: -100px; z-index: 200; background: var(--cal); color: var(--stone-900); padding: 12px 18px; font-weight: 500; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- geometria de cantaria ---------- */
.chamfer {
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.chamfer-lg { --c: var(--c-lg); }

.frame { position: relative; overflow: hidden; background: var(--stone-700); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--mat { background: var(--cal); }
.frame--mat img { object-fit: contain; padding: 6%; }

/* ---------- tipografia ---------- */
.t-display { font-size: var(--t-display); line-height: 0.9; letter-spacing: -0.04em; font-weight: 220; }
.t-head { font-size: var(--t-head); line-height: 0.98; letter-spacing: -0.04em; font-weight: 230; }
.t-title { font-size: var(--t-title); line-height: 1.04; letter-spacing: -0.032em; font-weight: 260; }
.t-lead { font-size: var(--t-lead); line-height: 1.26; letter-spacing: -0.02em; font-weight: 250; font-variation-settings: "SHRP" 60; }
.t-sub { font-size: var(--t-sub); line-height: 1.32; letter-spacing: -0.012em; font-weight: 300; }
.t-small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--stone-300); }
.prose { max-width: 62ch; color: #dcdbd2; }
.prose + .prose { margin-top: 1.1em; }

.obra-n { color: var(--ouro); font-variant-numeric: tabular-nums; font-weight: 400; font-size: var(--t-micro); letter-spacing: 0.02em; }

/* ---------- botões e links ---------- */
.btn {
  --c: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 26px;
  font-size: var(--t-small);
  font-weight: 450;
  letter-spacing: 0.005em;
  white-space: nowrap;
  background: var(--cal);
  color: var(--stone-900);
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn, .btn::before, .btn::after {
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: scaleX(1); }
.btn .ico { transition: transform 0.6s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--line { background: var(--cal); color: var(--cal); }
.btn--line::before {
  --c: 9.6px;
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  background: var(--ground, var(--stone-800));
}
.btn--line::after { inset: 1px; z-index: -1; background: var(--cal); --c: 9.6px; }
.btn--line:hover { color: var(--stone-900); }
.btn--sm { height: 44px; padding: 0 18px; gap: 10px; }
.on-cal .btn { background: var(--stone-800); color: var(--cal); }
.on-cal .btn::after { background: var(--ouro-deep); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--t-small);
  font-weight: 400;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.4s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--ouro); }
.on-cal .link:hover { color: var(--ouro-deep); }
.link .ico { transition: transform 0.6s var(--ease); }
.link:hover .ico { transform: translateX(4px); }
.link:hover .ico--ne { transform: translate(3px, -3px); }

.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: square; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 var(--gx);
  transition: transform 0.7s var(--ease), background-color 0.5s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--vein);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.site-header.is-solid { background: rgba(27, 30, 27, 0.96); }
.site-header.is-solid::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

/* placa caiada: o logo original só aparece sobre branco */
.plaque {
  --c: 12px;
  display: block;
  background: var(--white);
  padding: 14px 15px 16px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: padding 0.6s var(--ease);
}
.plaque img { height: 82px; width: auto; transition: height 0.6s var(--ease); }
.site-header.is-solid .plaque { padding: 9px 11px 11px; }
.site-header.is-solid .plaque img { height: 66px; }

.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); height: var(--header); }
.nav__links { display: flex; gap: clamp(22px, 2.4vw, 40px); }
.nav__links a {
  position: relative;
  font-size: var(--t-small);
  font-weight: 400;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--ouro); }
.nav .btn { --ground: var(--stone-800); }
.site-header.is-solid .nav .btn { --ground: var(--stone-900); }

.menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; font-size: var(--t-small); font-weight: 400; }
.menu-toggle__lines { position: relative; width: 22px; height: 10px; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.6s var(--ease), top 0.6s var(--ease);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 9px; }
.menu-open .menu-toggle__lines::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--stone-900);
  padding: calc(var(--header) + 32px) var(--gx) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease), visibility 0s; }
.menu__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--vein);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 230;
  font-variation-settings: var(--sharp);
}
.menu__links a[aria-current="page"] { color: var(--ouro); }
.menu__contact { display: grid; gap: 6px; color: var(--stone-300); font-size: var(--t-small); margin-top: 32px; }
.menu__contact a { color: var(--cal); }

@media (max-width: 980px) {
  :root { --header: 84px; }
  .nav__links, .nav .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { height: var(--header); }
  .plaque { padding: 10px 11px 12px; }
  .plaque img { height: 60px; }
  .site-header.is-solid .plaque img { height: 52px; }
}

/* ---------- seções ---------- */
.wrap { padding-left: var(--gx); padding-right: var(--gx); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.on-cal { background: var(--cal); color: var(--cal-ink); --ground: var(--cal); }
.on-cal .muted { color: var(--cal-muted); }
.on-cal .prose { color: #33382f; }
.on-cal .obra-n { color: var(--ouro-deep); }
.on-cal ::selection { background: var(--stone-800); color: var(--cal); }
.on-deep { background: var(--stone-900); --ground: var(--stone-900); }
.on-raised { background: var(--stone-700); --ground: var(--stone-700); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }

/* fiada: divisória de cantaria */
.course-line { height: 1px; background: var(--vein); border: 0; margin: 0; }
.on-cal .course-line { background: var(--cal-line); }

/* ---------- revelações ---------- */
.js [data-reveal="rise"] { transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
/* corte: uma lâmina de pedra recua de baixo para cima e descobre a obra */
.js [data-reveal="cut"]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ground, var(--stone-800));
  transform-origin: 50% 0; transition: transform 1.5s var(--ease);
}
.js [data-reveal="cut"].is-in::after { transform: scaleY(0); }
.js [data-reveal="cut"] img { transition: transform 2s var(--ease); }
.js [data-reveal="cut"]:not(.is-in) img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-reveal="cut"]::after { display: none; }
}

/* ---------- herói (home) ---------- */
.hero { position: relative; height: 230vh; background: var(--stone-800); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__aperture {
  position: absolute;
  inset: 0;
  background: var(--stone-700);
  will-change: clip-path;
}
.hero__aperture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__img-a { --tx: 12%; object-position: 50% 42%; transform: translateX(calc((1 - var(--p, 0)) * var(--tx))) scale(calc(1.12 - var(--p, 0) * 0.12)); }
@media (max-width: 760px) { .hero__img-a { --tx: 22%; } }
/* lavagem de proteção do título enquanto a abertura está fechada */
.hero__aperture::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(22,25,22,0) 38%, rgba(22,25,22,0.55) 60%, rgba(22,25,22,0.78) 100%); opacity: calc(1 - var(--p, 0)); }
/* a segunda obra entra como um corte de baixo para cima, sem fusão de imagens */
.hero__img-b { clip-path: inset(calc((1 - var(--b, 0)) * 100%) 0 0 0); transform: scale(calc(1.08 - var(--b, 0) * 0.08)); }
.hero__cut { position: absolute; left: 0; right: 0; height: 1px; background: var(--ouro); top: calc((1 - var(--b, 0)) * 100%); opacity: calc(var(--b, 0) * (1 - var(--b, 0)) * 4); pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(22,25,22,0.6) 0%, rgba(22,25,22,0.1) 22%, rgba(22,25,22,0.28) 50%, rgba(22,25,22,0.88) 100%);
  opacity: var(--p, 0);
}
.hero__intro {
  position: absolute;
  left: var(--gx);
  top: calc(var(--header) + clamp(40px, 9vh, 110px));
  max-width: 26ch;
  color: var(--stone-300);
  font-size: var(--t-sub);
  line-height: 1.35;
  font-weight: 300;
  opacity: calc(1 - var(--p, 0) * 1.6);
}
.hero__intro strong { color: var(--cal); font-weight: 400; }
.hero__title {
  position: absolute;
  left: var(--gx);
  right: var(--gx);
  bottom: clamp(132px, 20vh, 210px);
  pointer-events: none;
}
.hero__title span { display: block; transition: color 0.2s linear; }
.hero__l1 { color: rgb(238 237 230 / calc(1 - var(--b, 0) * 0.3)); }
.hero__l2 { text-align: right; color: rgb(238 237 230 / calc(0.66 + var(--b, 0) * 0.34)); }
.hero__foot {
  position: absolute;
  left: var(--gx);
  right: var(--gx);
  bottom: clamp(28px, 5vh, 52px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__actions .btn--line { --ground: var(--stone-800); }
.hero__caption { text-align: right; font-size: var(--t-small); color: var(--stone-300); min-width: 0; }
.hero__caption a { color: var(--cal); }
.hero__caption-b { display: none; }
.hero.is-b .hero__caption-a { display: none; }
.hero.is-b .hero__caption-b { display: block; }
.hero__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ouro); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (max-width: 760px) {
  .hero { height: 190vh; }
  .hero__intro { top: calc(var(--header) + 18px); max-width: 30ch; font-size: 1.05rem; }
  .hero__title { bottom: 236px; }
  .hero__caption { font-size: var(--t-micro); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__caption { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; }
}

/* ---------- conferência (fatos) ---------- */
.ledger { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--vein); margin-top: clamp(56px, 7vw, 104px); }
.ledger > div { padding: 22px 24px 4px 0; border-right: 1px solid var(--vein); margin-right: 24px; }
.ledger > div:last-child { border-right: 0; margin-right: 0; }
.ledger dt { font-size: var(--t-micro); color: var(--stone-300); font-weight: 400; margin-bottom: 10px; }
.ledger dd { font-size: var(--t-sub); line-height: 1.3; font-weight: 300; letter-spacing: -0.012em; }
@media (max-width: 980px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--vein); padding-bottom: 20px; }
  .ledger > div:nth-child(odd) { padding-right: 16px; }
  .ledger > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

.statement { grid-column: 1 / span 10; }
.statement em { font-style: normal; color: var(--ouro); }
@media (max-width: 980px) { .statement { grid-column: 1 / -1; } }

/* ---------- o percurso (galeria horizontal) ---------- */
.percurso { position: relative; background: var(--stone-900); --ground: var(--stone-900); }
.percurso__stage { position: relative; }
.percurso.is-pinned .percurso__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.percurso__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: calc(var(--header) + 20px) var(--gx) clamp(24px, 4vh, 44px);
}
.percurso__areas { display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: var(--t-small); flex-wrap: wrap; }
.percurso__areas a { color: var(--stone-400); transition: color 0.5s var(--ease); display: inline-flex; gap: 8px; align-items: baseline; }
.percurso__areas a span { font-size: var(--t-micro); font-variant-numeric: tabular-nums; }
.percurso__areas a.is-active { color: var(--cal); }
.percurso__areas a.is-active span { color: var(--ouro); }
.percurso__rail { position: relative; height: 1px; background: var(--vein); margin: 0 var(--gx); }
.percurso__rail i { position: absolute; inset: 0; background: var(--ouro); transform-origin: left; transform: scaleX(var(--cp, 0)); }
.percurso__viewport { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.percurso__viewport::-webkit-scrollbar { display: none; }
.percurso.is-pinned .percurso__viewport { overflow: hidden; scroll-snap-type: none; }
.percurso__track {
  display: flex; align-items: flex-start; gap: clamp(20px, 2.4vw, 40px);
  padding: clamp(28px, 4.5vh, 56px) var(--gx) clamp(28px, 5vh, 56px);
  width: max-content;
  will-change: transform;
}
.work { flex: none; scroll-snap-align: start; scroll-margin-left: var(--gx); }
.work__frame { height: var(--wh, clamp(300px, 52vh, 600px)); aspect-ratio: var(--r, 4 / 3); }
.work__frame img { transition: transform 1.4s var(--ease); }
.work:hover .work__frame img { transform: scale(1.04); }
.work__cap { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; margin-top: 16px; max-width: 46ch; }
.work__cap .obra-n { padding-top: 3px; }
.work__title { font-size: 1.125rem; font-weight: 350; line-height: 1.35; letter-spacing: -0.008em; }
.work__meta { grid-column: 2; font-size: var(--t-small); color: var(--stone-300); }
.work__scope { grid-column: 2; margin-top: 10px; justify-self: start; font-size: var(--t-micro); color: var(--stone-300); padding: 3px 10px; border: 1px solid var(--vein); }
.work a { display: block; }
.slab {
  flex: none; width: clamp(260px, 24vw, 360px); height: var(--wh, clamp(300px, 52vh, 600px));
  display: flex; flex-direction: column; justify-content: space-between;
  border-top: 1px solid var(--ouro);
  padding-top: 18px;
  scroll-snap-align: start; scroll-margin-left: var(--gx);
}
.slab__name { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; font-weight: 230; font-variation-settings: var(--sharp); }
.slab__text { color: var(--stone-300); font-size: var(--t-small); max-width: 30ch; margin-top: 18px; }
@media (max-width: 760px) {
  .work__frame, .slab { --wh: 46vh; }
  .percurso .work__frame { aspect-ratio: var(--r, 4 / 3); height: auto; width: min(82vw, calc(40vh * var(--rn, 1.333))); }
  .percurso .work__cap { max-width: min(82vw, 34ch); }
  .percurso__track { padding-bottom: 8px; }
  .slab { width: 62vw; height: auto; justify-content: flex-start; gap: 24px; }
  .percurso__head { padding-top: var(--section); }
}

/* ---------- áreas (parede caiada) ---------- */
.areas { position: relative; }
.areas__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.areas__list { grid-column: 1 / span 6; }
.areas__media { grid-column: 8 / span 5; position: relative; }
.areas__sticky { position: sticky; top: calc(var(--header) + 28px); }
.areas__frame { aspect-ratio: 4 / 5; background: var(--cal-200); }
.areas__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); transform: scale(1.06); }
.areas__frame img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.areas__frame img.was-on { clip-path: inset(0 0 0 0); transform: scale(1); }
.areas__cap { margin-top: 14px; font-size: var(--t-small); color: var(--cal-muted); display: flex; gap: 12px; }
.area { min-height: 82vh; padding: 6vh 0 10vh; border-top: 1px solid var(--cal-line); display: flex; flex-direction: column; justify-content: center; }
.area:first-child { border-top: 0; padding-top: 0; min-height: 70vh; }
.area__name { font-size: clamp(3rem, 1.4rem + 5.4vw, 7rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 220; color: var(--cal-ink); transition: color 0.6s var(--ease); }
.js .area:not(.is-active) .area__name { color: #7f8177; }
.area__text { margin-top: 26px; max-width: 46ch; color: #33382f; font-size: 1.125rem; }
.area__services { margin-top: 30px; max-width: 46ch; }
.area__services li { padding: 11px 0; border-top: 1px solid var(--cal-line); font-size: var(--t-small); display: flex; justify-content: space-between; gap: 16px; }
.area__services li:last-child { border-bottom: 1px solid var(--cal-line); }
.area .link { margin-top: 30px; align-self: flex-start; }
.area__photo { display: none; }
@media (max-width: 980px) {
  .areas__list { grid-column: 1 / -1; }
  .areas__media { display: none; }
  .area { min-height: 0; padding: 48px 0 64px; }
  .area:first-child { padding-top: 0; min-height: 0; }
  .js .area:not(.is-active) .area__name { color: var(--cal-ink); }
  .area__photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 28px; }
}

/* ---------- banda Ouro Preto ---------- */
.place { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--stone-950); }
.place__img { position: absolute; inset: 0; }
.place__img img { width: 100%; height: 120%; object-fit: cover; transform: translateY(calc(var(--py, 0%) - 8.3%)); will-change: transform; }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,25,22,0.2) 0%, rgba(22,25,22,0.05) 35%, rgba(22,25,22,0.9) 100%); }
.place__body { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vh, 112px); width: 100%; }
.place__body .t-head { grid-column: 1 / span 8; }
.place__text { grid-column: 9 / span 4; align-self: end; color: #dcdbd2; }
.place__text .muted { margin-top: 18px; display: block; }
@media (max-width: 980px) { .place__body .t-head, .place__text { grid-column: 1 / -1; } .place__text { margin-top: 28px; } }

/* ---------- clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--vein); }
.clients li { padding: 22px 0 24px; border-bottom: 1px solid var(--vein); display: grid; gap: 4px; }
.clients b { font-weight: 300; font-size: var(--t-sub); letter-spacing: -0.012em; line-height: 1.25; }
.clients span { font-size: var(--t-small); color: var(--stone-300); }
@media (max-width: 760px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clients b { font-size: 1.1rem; } .clients span { font-size: var(--t-micro); } }

/* ---------- contato (fecho) ---------- */
.close { background: var(--stone-700); --ground: var(--stone-700); }
.close .t-head { max-width: 14ch; }
.channels { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--cal); }
.channels a {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 2fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--vein);
  transition: color 0.5s var(--ease), padding 0.7s var(--ease);
}
.channels a:hover { color: var(--ouro); padding-left: 12px; }
.channels .k { font-size: var(--t-small); color: var(--stone-300); }
.channels .v { font-size: clamp(1.5rem, 1rem + 2vw, 3rem); font-weight: 250; letter-spacing: -0.03em; line-height: 1.1; font-variation-settings: var(--sharp); overflow-wrap: anywhere; }
.channels .ico { width: 26px; height: 26px; stroke-width: 1.2; transition: transform 0.7s var(--ease); }
.channels a:hover .ico { transform: translate(4px, -4px); }
@media (max-width: 640px) {
  .channels a { grid-template-columns: 1fr auto; row-gap: 6px; }
  .channels .k { grid-column: 1 / -1; }
}

/* ---------- rodapé ---------- */
.site-footer { background: var(--stone-950); padding: clamp(64px, 8vw, 112px) var(--gx) 32px; font-size: var(--t-small); --ground: var(--stone-950); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.footer__brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer__brand .plaque { clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); padding: 16px 18px; }
.footer__brand .plaque img { height: 112px; }
.footer__brand p { color: var(--stone-300); max-width: 30ch; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 4; }
.footer__h { font-size: var(--t-micro); font-weight: 400; color: var(--stone-400); margin-bottom: 16px; font-variation-settings: var(--soft); letter-spacing: 0; }
.footer__col li { padding: 3px 0; }
.footer__col a:hover { color: var(--ouro); }
.footer__col address { font-style: normal; color: #dcdbd2; }
.footer__base { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--vein); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--stone-400); font-size: var(--t-micro); }
.footer__base a { color: var(--stone-300); }
.footer__base a:hover { color: var(--ouro); }
@media (max-width: 980px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
}
@media (max-width: 520px) { .footer__col, .footer__col--wide { grid-column: 1 / -1; } }

/* ---------- cabeçalho de página interna ---------- */
.page-head { padding-top: calc(var(--header) + clamp(72px, 12vh, 150px)); padding-bottom: clamp(56px, 8vw, 112px); }
.page-head .t-display { margin-bottom: clamp(28px, 4vw, 56px); }
.page-head__lead { grid-column: 5 / span 7; }
@media (max-width: 980px) { .page-head__lead { grid-column: 1 / -1; } }

/* ---------- obras (índice) ---------- */
.filters { display: flex; gap: 8px 28px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--vein); border-bottom: 1px solid var(--vein); position: sticky; top: 0; z-index: 5; background: var(--stone-800); transition: top 0.7s var(--ease); }
.has-header .filters { top: var(--header); }
.filters button { font-size: var(--t-small); color: var(--stone-400); display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 0; position: relative; transition: color 0.4s var(--ease); }
.filters button span { font-size: var(--t-micro); font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--cal); }
.filters button[aria-pressed="true"] { color: var(--cal); }
.filters button[aria-pressed="true"] span { color: var(--ouro); }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 1px; background: var(--ouro); }
.obras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 80px) var(--gap); padding-top: clamp(48px, 6vw, 88px); }
.obras .work { scroll-snap-align: none; }
.obras .work__frame { height: auto; width: 100%; aspect-ratio: 4 / 3; }
.obras .work[hidden] { display: none; }
.obras__empty { padding: 64px 0; color: var(--stone-300); }
@media (max-width: 1100px) { .obras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .obras { grid-template-columns: 1fr; } }

/* ---------- ficha de obra (diálogo) ---------- */
.ficha { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--stone-950); color: var(--cal); --ground: var(--stone-950); }
.ficha::backdrop { background: rgba(22, 25, 22, 0.7); }
.ficha[open] { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 460px); animation: ficha-in 0.9s var(--ease); }
@keyframes ficha-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.ficha__gallery { position: relative; display: flex; flex-direction: column; min-height: 0; padding: clamp(20px, 3vw, 44px); gap: 18px; }
.ficha__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.ficha__frame { --c: var(--c-lg); position: relative; overflow: hidden; background: var(--stone-700); }
.ficha__frame img { width: 100%; height: 100%; object-fit: cover; }
.ficha__frame.is-mat { background: var(--cal); }
.ficha__frame.is-mat img { object-fit: contain; padding: 5%; }
.ficha__controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--t-small); color: var(--stone-300); }
.ficha__arrows { display: flex; gap: 8px; }
.icon-btn { --c: 8px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--vein); position: relative; isolation: isolate; transition: color 0.4s var(--ease); }
.icon-btn, .icon-btn::before { clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.icon-btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--ground); transition: background-color 0.4s var(--ease); --c: 7.6px; }
.icon-btn:hover::before { background: var(--cal); }
.icon-btn:hover { color: var(--stone-900); }
.icon-btn[disabled] { opacity: 0.35; pointer-events: none; }
.ficha__info { border-left: 1px solid var(--vein); padding: clamp(24px, 3vw, 44px); overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.ficha__top { display: flex; justify-content: flex-end; align-items: center; }
.ficha__title .obra-n { display: inline-block; margin-right: 14px; vertical-align: 0.6em; }
.ficha__title { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 240; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--vein); font-size: var(--t-small); }
.facts div:last-child { border-bottom: 1px solid var(--vein); }
.facts dt { color: var(--stone-300); }
.ficha__nav { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--vein); font-size: var(--t-small); }
.ficha__nav button { color: var(--stone-300); text-align: left; max-width: 48%; transition: color 0.4s var(--ease); }
.ficha__nav button:last-child { text-align: right; }
.ficha__nav button:hover { color: var(--ouro); }
.ficha__nav b { display: block; color: var(--cal); font-weight: 350; }
@media (max-width: 900px) {
  .ficha[open] { grid-template-columns: 1fr; grid-template-rows: minmax(46vh, 1fr) auto; overflow-y: auto; }
  .ficha__info { border-left: 0; border-top: 1px solid var(--vein); overflow: visible; }
  .ficha__gallery { padding: 16px; min-height: 46vh; }
  .ficha [data-close] { position: absolute; top: 14px; right: 14px; z-index: 3; }
  .ficha__gallery { padding-top: 72px; }
}

/* ---------- áreas (página) ---------- */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid var(--vein); }
.spread__media { grid-column: 1 / span 7; }
.spread__media .frame { aspect-ratio: 16 / 11; }
.spread__body { grid-column: 9 / span 4; display: flex; flex-direction: column; }
.spread:nth-of-type(even) .spread__media { grid-column: 6 / span 7; grid-row: 1; }
.spread:nth-of-type(even) .spread__body { grid-column: 1 / span 4; grid-row: 1; }
.spread__name { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 225; margin-bottom: 26px; }
.spread__body .prose { font-size: 1.0625rem; }
.spread__list { margin-top: 28px; }
.spread__list li { padding: 11px 0; border-top: 1px solid var(--vein); font-size: var(--t-small); }
.spread__list li:last-child { border-bottom: 1px solid var(--vein); }
.spread__body .link { margin-top: 28px; align-self: flex-start; }
.spread__works { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.spread__works .work__frame { height: auto; width: 100%; aspect-ratio: 4 / 3; }
.spread__works .work__title { font-size: 1rem; }
@media (max-width: 980px) {
  .spread__media, .spread__body, .spread:nth-of-type(even) .spread__media, .spread:nth-of-type(even) .spread__body { grid-column: 1 / -1; grid-row: auto; }
  .spread__works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- escritório ---------- */
.lede-img { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .lede-img { aspect-ratio: 4 / 3; } }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.split__k { grid-column: 1 / span 4; }
.split__v { grid-column: 6 / span 7; }
@media (max-width: 980px) { .split__k, .split__v { grid-column: 1 / -1; } }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.mv h3 { font-size: var(--t-sub); font-weight: 300; margin-bottom: 14px; letter-spacing: -0.012em; font-variation-settings: var(--soft); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--cal-line); }
.values li { padding: 18px 0; border-bottom: 1px solid var(--cal-line); font-size: 1.125rem; font-weight: 300; }
@media (max-width: 620px) { .values { grid-template-columns: 1fr; } }
.team { border-top: 1px solid var(--vein); }
.team li { padding: 18px 0; border-bottom: 1px solid var(--vein); font-size: var(--t-sub); font-weight: 260; letter-spacing: -0.015em; font-variation-settings: var(--sharp); }

/* ---------- contato (página) ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 72px; }
.contact-info { grid-column: 1 / span 4; display: grid; gap: 40px; align-content: start; }
.contact-info .contact-label { font-size: var(--t-micro); font-weight: 400; color: var(--stone-300); margin-bottom: 10px; font-variation-settings: var(--soft); letter-spacing: 0; }
.contact-info address, .contact-info p { font-style: normal; font-size: var(--t-sub); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; }
.contact-info .links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.contact-form { grid-column: 6 / span 7; }
@media (max-width: 980px) { .contact-info, .contact-form { grid-column: 1 / -1; } }
.form-title { font-size: var(--t-title); line-height: 1.04; letter-spacing: -0.032em; font-weight: 250; margin-bottom: 40px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 34px var(--gap); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-small); color: var(--stone-300); }
.field label small { color: var(--stone-400); font-size: inherit; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.125rem; color: var(--cal); background: transparent;
  border: 0; border-bottom: 1px solid var(--stone-400); border-radius: 0;
  padding: 8px 0 14px; outline: none; transition: border-color 0.4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a3ab9d' stroke-width='1.4'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 28px; }
.field select option { background: var(--stone-800); color: var(--cal); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ouro); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--ouro); }
.field__error { font-size: var(--t-micro); color: var(--error); min-height: 1.2em; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--error); }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; align-items: center; }
.form-note { margin-top: 20px; font-size: var(--t-small); color: var(--stone-300); max-width: 56ch; }
.form-status { margin-top: 12px; font-size: var(--t-small); color: var(--ouro); min-height: 1.4em; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }

/* ---------- sem movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
