/* ==========================================================================
   Salus Engenharia · folha de estilo
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --paper: #f4f4f2;
  --ink: #141414;
  --ink-2: #6b6b6b;
  --line: #e3e3e0;
  --line-strong: #c9c9c5;
  --brand: #003b73;

  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gx: clamp(20px, 4vw, 56px);          /* margem lateral */
  --gap: clamp(16px, 1.7vw, 24px);       /* calha da grade */
  --section: clamp(96px, 12vw, 176px);   /* respiro entre seções */
  --header-h: 112px;

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

  --fs-display: clamp(2.75rem, 1.3rem + 5vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.2vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-lead: clamp(1.375rem, 1rem + 1.25vw, 2.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;
}

@media (max-width: 760px) {
  :root { --header-h: 84px; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "ss01";
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--ink); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 1px; }

html { scrollbar-color: #b9b9b4 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c4c4bf; border: 3px solid var(--bg); border-radius: 10px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: #fff; font-size: var(--fs-small);
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* -------------------------------------------------------------- layout */
.wrap { padding-inline: var(--gx); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section:not(.section--paper) + .section:not(.section--paper) { padding-top: 0; }

/* ----------------------------------------------------------- typography */
.display {
  font-size: var(--fs-display); font-weight: 300; line-height: 0.98;
  letter-spacing: -0.04em; text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.28; letter-spacing: -0.018em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; color: #2b2b2b; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.label {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1.4;
}
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- links */
.link {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 500; font-size: var(--fs-small); letter-spacing: 0.01em;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link svg { width: 1.05em; height: 1.05em; transition: transform .5s var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
.link--diag:hover svg { transform: translate(3px, -3px); }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.icon--fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-inline: var(--gx);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.site-header--hidden { transform: translateY(-100%); }

/* logo original da Salus (vertical), sempre sobre fundo claro */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand__logo { height: calc(var(--header-h) - 16px); width: auto; }
.brand--footer .brand__logo { height: clamp(112px, 10vw, 148px); }

.site-nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.site-nav a {
  position: relative; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.01em;
  padding-block: 8px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 500; padding: 10px 0;
}
.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: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 8.5px; }
.menu-open .menu-toggle__lines::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: 4.25px; transform: rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--ink);
  padding: calc(var(--header-h) + 32px) var(--gx) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
.menu-open .menu-panel { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu-open .site-header { background: var(--bg); color: var(--ink); border-bottom-color: transparent; }
.menu-panel__links a {
  display: block; font-size: clamp(2.5rem, 11vw, 4rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.12;
  padding-block: 4px;
}
.menu-panel__contact { display: grid; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); }
.menu-panel__contact a { color: var(--ink); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
.menu-open { overflow: hidden; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; margin-top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 520px;
  color: #fff; background: #1a1c1b; overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.6s var(--ease-io);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.07);
  transition: transform 9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero__slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 12, 11, 0.42) 0%, rgba(10, 12, 11, 0) 22%),
    linear-gradient(90deg, rgba(10, 12, 11, 0.58) 0%, rgba(10, 12, 11, 0.2) 38%, rgba(10, 12, 11, 0) 58%),
    linear-gradient(0deg, rgba(10, 12, 11, 0.7) 0%, rgba(10, 12, 11, 0.22) 45%, rgba(10, 12, 11, 0) 65%);
}
.hero__content {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  padding: 0 var(--gx) clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
}
.hero__title { grid-column: 1 / span 8; }
.hero__title .display { max-width: 11ch; }
.hero__sub { margin-top: 22px; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 300; opacity: .9; max-width: 40ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }

.button {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 26px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid currentColor; border-radius: 0;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.button svg { width: 1.05em; height: 1.05em; transition: transform .5s var(--ease-out); }
.button:hover svg { transform: translateX(4px); }
.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--light:hover { background: transparent; color: #fff; }
.button--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.button--ink:hover { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero__meta {
  grid-column: 9 / -1; justify-self: end; width: min(100%, 340px);
  font-size: var(--fs-small);
}
.hero__caption { min-height: 3.2em; }
.hero__caption-title { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.hero__caption-title svg { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.hero__caption-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero__caption-title:hover svg { transform: translate(2px, -2px); }
.hero__caption-place { opacity: .78; display: block; }
.hero__controls { margin-top: 16px; display: flex; align-items: center; gap: 16px; }
.hero__count { font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 5.5ch; }
.hero__progress { position: relative; flex: 1; height: 1px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.hero__progress span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__progress span.is-running { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__progress span.is-running { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; transition: background-color .3s; }
.hero__btn:hover { background: rgba(255, 255, 255, .14); }
.hero__btn svg { width: 16px; height: 16px; }
.hero__btn .icon-play { display: none; }
.hero.is-paused .hero__btn .icon-play { display: block; }
.hero.is-paused .hero__btn .icon-pause { display: none; }

@media (max-width: 900px) {
  .hero__title { grid-column: 1 / -1; }
  .hero__meta { grid-column: 1 / -1; justify-self: stretch; width: 100%; margin-top: 36px; }
  .hero__caption { min-height: 0; }
}

/* ---------------------------------------------------------------- intro */
.intro__statement { grid-column: 1 / span 10; }
.intro__facts {
  grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap);
  border-top: 1px solid var(--line);
}
.fact { padding-top: 20px; padding-right: 16px; }
.fact dt { color: var(--ink-2); font-size: var(--fs-small); }
.fact dd { margin-top: 6px; font-size: var(--fs-body); font-weight: 500; }
.intro__more { grid-column: 1 / -1; margin-top: 40px; }
@media (max-width: 900px) {
  .intro__statement { grid-column: 1 / -1; }
  .intro__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

/* -------------------------------------------------------- section heads */
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* ------------------------------------------------------- selected works */
.works { row-gap: clamp(56px, 7vw, 112px); }
.work { display: block; }
.work__media { display: block; position: relative; overflow: hidden; background: var(--paper); aspect-ratio: var(--ar, 4 / 3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work:hover .work__media img { transform: scale(1.035); }
.work__caption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work__title { font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.005em; }
.work__meta { color: var(--ink-2); font-size: var(--fs-small); margin-top: 2px; }
.work__arrow { width: 18px; height: 18px; flex: none; opacity: 0; transform: translate(-4px, 4px); transition: opacity .4s, transform .5s var(--ease-out); }
.work:hover .work__arrow, .work:focus-visible .work__arrow { opacity: 1; transform: none; }

.works .w1 { grid-column: 1 / span 7; --ar: 4 / 3; }
.works .w2 { grid-column: 9 / span 4; --ar: 4 / 5; align-self: end; }
.works .w3 { grid-column: 1 / span 4; --ar: 4 / 5; }
.works .w4 { grid-column: 6 / span 7; --ar: 16 / 9; align-self: center; }
.works .w5 { grid-column: 2 / span 5; --ar: 1 / 1; }
.works .w6 { grid-column: 8 / span 5; --ar: 4 / 3; margin-top: clamp(0px, 10vw, 160px); }
@media (max-width: 900px) {
  .works .w1, .works .w2, .works .w3, .works .w4, .works .w5, .works .w6 { grid-column: 1 / -1; margin-top: 0; }
  .works .w2, .works .w3 { --ar: 4 / 3; }
}

/* --------------------------------------------------------------- sectors */
.sectors { border-top: 1px solid var(--line); }
.sector {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 36px);
  border-bottom: 1px solid var(--line);
  transition: color .4s var(--ease-out);
}
.sector__name {
  grid-column: 1 / span 6;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5.25rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  transition: transform .7s var(--ease-out);
}
.sector__desc { grid-column: 7 / span 4; color: var(--ink-2); font-size: var(--fs-small); max-width: 42ch; }
.sector__count { grid-column: 11 / span 2; justify-self: end; display: inline-flex; gap: 12px; align-items: center; font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sector__count svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.sectors:hover .sector { color: #b3b3ae; }
.sectors:hover .sector:hover { color: var(--ink); }
.sectors:hover .sector:hover .sector__desc { color: var(--ink-2); }
.sector:hover .sector__name { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.sector:hover .sector__count svg { transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .sector__name { grid-column: 1 / -1; }
  .sector__desc { grid-column: 1 / span 8; margin-top: 12px; }
  .sector__count { grid-column: 9 / -1; }
}

.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--paper);
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .55s var(--ease-out);
  will-change: transform, clip-path;
}
.cursor-preview.is-visible { clip-path: inset(0 0 0 0); }
.cursor-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); transition: opacity .45s var(--ease-out), transform .9s var(--ease-out);
}
.cursor-preview img.is-active { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor-preview { display: none; } }

/* ------------------------------------------------------------- place band */
.place { position: relative; color: #fff; min-height: clamp(520px, 88vh, 900px); display: flex; align-items: flex-end; overflow: hidden; background: #2a2d2b; }
.place__img { position: absolute; inset: -8% 0 0 0; height: 116%; width: 100%; object-fit: cover; }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 12, 11, .78) 0%, rgba(10, 12, 11, .5) 38%, rgba(10, 12, 11, .06) 72%); }
.place__content { position: relative; z-index: 1; width: 100%; padding: 0 var(--gx) clamp(40px, 6vw, 80px); }
.place__text { grid-column: 1 / span 8; }
.place__caption { grid-column: 9 / -1; justify-self: end; align-self: end; font-size: var(--fs-small); opacity: .82; text-align: right; }
@media (max-width: 900px) {
  .place__text, .place__caption { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .place__caption { margin-top: 24px; }
}

/* ---------------------------------------------------------------- clients */
.clients { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.client { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.client__name { font-weight: 500; display: block; }
.client__desc { color: var(--ink-2); font-size: var(--fs-small); display: block; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- CTA */
.cta__title { grid-column: 1 / span 9; }
.cta__channels {
  grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap);
  border-top: 1px solid var(--ink);
}
.channel { display: block; padding: 20px 16px 8px 0; }
.channel__label { color: var(--ink-2); font-size: var(--fs-small); display: block; }
.channel__value {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 6px;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem); font-weight: 300; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.channel__value svg { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.channel:hover .channel__value svg { transform: translate(3px, -3px); }
.channel:hover .channel__value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 900px) {
  .cta__title { grid-column: 1 / -1; }
  .cta__channels { grid-template-columns: 1fr; }
  .channel { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--bg); color: #2b2b2b; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) var(--gx) 32px; font-size: var(--fs-small); }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer .brand:hover { text-decoration: none; }
.footer__grid { row-gap: 48px; }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand p { margin-top: 24px; max-width: 34ch; color: var(--ink-2); }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h2 { font-size: var(--fs-small); font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.footer__col li + li { margin-top: 6px; }
.footer__col address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  margin-top: clamp(64px, 8vw, 112px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 0.8125rem;
}
@media (max-width: 900px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
}

/* ----------------------------------------------------- page head (inner) */
.page-head { padding-top: calc(var(--header-h) + clamp(64px, 9vw, 136px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head__title { grid-column: 1 / span 9; }
.page-head__lead { grid-column: 1 / span 8; margin-top: clamp(28px, 3vw, 44px); }
@media (max-width: 900px) { .page-head__title, .page-head__lead { grid-column: 1 / -1; } }

/* --------------------------------------------------------- projects index */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-block: 14px; background: rgba(255, 255, 255, .96);
  border-block: 1px solid var(--line);
  transition: top .5s var(--ease-out);
}
.header-hidden .toolbar { top: 0; }
.filters { display: flex; gap: 6px clamp(16px, 2vw, 28px); flex-wrap: wrap; }
.filter {
  font-size: var(--fs-small); font-weight: 500; color: var(--ink-2);
  padding: 8px 0; display: inline-flex; gap: 6px; align-items: baseline;
  transition: color .3s;
}
.filter sup { font-size: 0.7rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.views { display: flex; gap: 4px; }
.view-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-2); transition: color .3s; }
.view-btn svg { width: 18px; height: 18px; }
.view-btn[aria-pressed="true"], .view-btn:hover { color: var(--ink); }

.projects { padding-top: clamp(40px, 5vw, 72px); padding-bottom: var(--section); min-height: 60vh; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) var(--gap); }
@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }
.card { display: block; text-align: left; width: 100%; }
.card .work__media { --ar: 4 / 3; }

.projects-list { border-top: 1px solid var(--ink); }
.row {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 2fr) minmax(0, 3fr) 24px; column-gap: var(--gap); align-items: center;
  padding-block: 18px; border-bottom: 1px solid var(--line);
  transition: background-color .3s, padding .5s var(--ease-out);
}
.row:hover { background: var(--paper); padding-inline: 12px; }
.row__title { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); font-weight: 400; letter-spacing: -0.01em; }
.row__sector, .row__place { color: var(--ink-2); font-size: var(--fs-small); }
.row svg { width: 18px; height: 18px; }
.list-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 2fr) minmax(0, 3fr) 24px; column-gap: var(--gap); padding-bottom: 12px; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 700px) {
  .row, .list-head { grid-template-columns: minmax(0, 1fr) 20px; }
  .row__sector, .row__place, .list-head span:nth-child(2), .list-head span:nth-child(3) { display: none; }
  .row__title small { display: block; color: var(--ink-2); font-size: var(--fs-small); margin-top: 4px; }
}
@media (min-width: 701px) { .row__title small { display: none; } }

.empty { padding-block: 80px; color: var(--ink-2); }

/* -------------------------------------------------------- project dialog */
.project-dialog {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
  overscroll-behavior: contain;
}
.project-dialog::backdrop { background: rgba(20, 20, 20, .4); }
.project-dialog[open] { animation: dialog-in .7s var(--ease-out); }
@keyframes dialog-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); height: 100%; }
.pd__gallery { position: relative; background: #111; min-height: 0; display: flex; flex-direction: column; }
.pd__stage { position: relative; flex: 1; min-height: 0; }
.pd__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease-out); }
.pd__stage img.is-active { opacity: 1; }
.pd__stage img.is-drawing { background: var(--paper); padding: 4%; }
.pd__nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: #fff; font-size: var(--fs-small); }
.pd__nav-btns { display: flex; gap: 6px; }
.pd__nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); transition: background-color .3s, border-color .3s; }
.pd__nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pd__nav button:disabled { opacity: .3; cursor: default; }
.pd__nav svg { width: 18px; height: 18px; }
.pd__info { padding: calc(var(--header-h) + 8px) clamp(24px, 3vw, 48px) 40px; overflow-y: auto; display: flex; flex-direction: column; }
.pd__close {
  position: absolute; top: 16px; right: clamp(16px, 2vw, 32px); z-index: 2;
  height: 48px; padding: 0 4px; display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 500;
}
.pd__close svg { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.pd__close:hover svg { transform: rotate(90deg); }
.pd__title { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.pd__facts { margin-top: 32px; border-top: 1px solid var(--line); }
.pd__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.pd__facts dt { color: var(--ink-2); }
.pd__text { margin-top: 28px; color: #2b2b2b; }
.pd__cta { margin-top: auto; padding-top: 40px; }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100%; }
  .pd__gallery { height: auto; }
  .pd__stage { flex: none; aspect-ratio: 4 / 3; }
  .pd__info { padding-top: 32px; overflow: visible; }
  .pd__close { color: #fff; background: rgba(17, 17, 17, .86); padding: 0 14px; }
}

/* ------------------------------------------------------------- services */
.service { padding-block: clamp(72px, 9vw, 136px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__media { grid-column: 1 / span 6; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body { grid-column: 8 / span 5; display: flex; flex-direction: column; }
.service:nth-of-type(even) .service__media { grid-column: 7 / span 6; order: 2; }
.service:nth-of-type(even) .service__body { grid-column: 1 / span 5; order: 1; }
.service__body .prose { margin-top: 24px; }
.service__list { margin-top: 32px; border-top: 1px solid var(--line); }
.service__list li { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.service__body .link { margin-top: 32px; align-self: flex-start; }
@media (max-width: 900px) {
  .service__media, .service__body,
  .service:nth-of-type(even) .service__media, .service:nth-of-type(even) .service__body { grid-column: 1 / -1; order: 0; }
  .service__body { margin-top: 32px; }
}

/* ---------------------------------------------------------------- about */
.about-img { grid-column: 1 / span 8; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img + figcaption { grid-column: 9 / -1; align-self: end; color: var(--ink-2); font-size: var(--fs-small); }
.split__title { grid-column: 1 / span 4; }
.split__body { grid-column: 6 / span 7; }
@media (max-width: 900px) {
  .about-img { grid-column: 1 / -1; }
  .about-img + figcaption { grid-column: 1 / -1; margin-top: 12px; }
  .split__title, .split__body { grid-column: 1 / -1; }
  .split__body { margin-top: 28px; }
}
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--line); }
.principles li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }
.disciplines { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--line); }
.disciplines li { padding-block: 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-h3); font-weight: 300; letter-spacing: -0.015em; }
.about-portrait { grid-column: 1 / span 5; aspect-ratio: 3 / 4; overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-text { grid-column: 7 / span 6; align-self: end; }
@media (max-width: 900px) { .about-portrait, .about-portrait-text { grid-column: 1 / -1; } .about-portrait-text { margin-top: 32px; } }

/* ---------------------------------------------------------------- contact */
.contact-info { grid-column: 1 / span 5; }
.contact-form { grid-column: 7 / span 6; }
@media (max-width: 900px) { .contact-info, .contact-form { grid-column: 1 / -1; } .contact-form { margin-top: 64px; } }
.info-block + .info-block { margin-top: 36px; }
.info-block h2 { font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); margin-bottom: 8px; }
.info-block p, .info-block address { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.4; font-style: normal; }
.info-block a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.field { position: relative; display: block; }
.field + .field { margin-top: 8px; }
.field__label { display: block; padding-top: 18px; font-size: var(--fs-small); color: var(--ink-2); }
.field input, .field select, .field textarea {
  display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 6px 0 14px;
  font-size: 1.125rem; font-weight: 400; color: var(--ink); border-radius: 0; appearance: none; -webkit-appearance: none;
  caret-color: var(--ink); transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 top 8px / 18px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a85; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b3261e; }
.field__error { display: none; padding-top: 8px; font-size: .875rem; color: #b3261e; }
.field.is-invalid .field__error { display: block; }
.form-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.form-note { margin-top: 20px; font-size: .875rem; color: var(--ink-2); max-width: 52ch; }
.info-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.info-block .info-links a:hover { text-decoration: none; }

/* --------------------------------------------- desenhos, renders e plantas */
.is-mat { background: var(--paper); }
.is-mat img { object-fit: contain !important; padding: 5%; }

/* ---------------------------------------------------------------- reveal */
.js .reveal-img { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-pending { clip-path: inset(14% 0 0 0); }
.js .reveal-img.is-pending img { transform: scale(1.08); }
.js .reveal-img, .js .reveal-img img { transition: clip-path 1.3s var(--ease-out), transform 1.6s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__slide img { transform: none !important; }
  .js .reveal-img.is-pending { clip-path: inset(0 0 0 0); }
  .js .reveal-img.is-pending img { transform: none; }
}
