@font-face {
  font-family: Montserrat;
  src: url('./assets/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --petroleo: #0f2d33;
  --linho: #ece9e3;
  --branco: #fff;
  --salvia: #6c8f86;
  --salvia-clara: #8da294;
  --grafite: #2e3436;
  --muted: #585d5e;
  --line: #d5d6d7;
  --title: "arsenica-text", Georgia, serif;
  --body: Montserrat, Arial, sans-serif;
  --margin: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.2,.7,.2,1);
  --note-h: 2.15rem;
  --bar-h: 5rem;
  --header-h: calc(var(--note-h) + var(--bar-h));
  color: var(--petroleo);
  background: #fff;
  font-family: var(--body);
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, dl, dd { margin: 0; }
body { font-family: var(--body); font-size: 1rem; line-height: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--salvia-clara); color: var(--petroleo); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--petroleo); outline-offset: 4px; }
.skip {
  position: fixed;
  z-index: 20;
  top: .5rem;
  left: 1rem;
  clip-path: inset(50%);
  padding: .75rem;
  background: var(--petroleo);
  color: white;
}
.skip:focus { clip-path: none; outline-color: var(--linho); }
.wrap { width: min(100% - 2 * var(--margin), 85rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--margin), 47rem); }
.section { padding-block: clamp(3rem, 6vw, 6.25rem); }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 4.65vw, 4.25rem); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.5rem, 2.25vw, 1.75rem); line-height: 1.2; }
p, li, dd { line-height: 1.65; }
.lead { font-size: clamp(1.02rem, 1.7vw, 1.23rem); font-weight: 300; line-height: 1.65; }
.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* Buttons and links */
.button {
  position: relative;
  display: inline-flex;
  min-height: 3rem;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .5s var(--ease);
}
.button-dark { background: var(--petroleo); color: var(--linho); }
.button-dark:hover { background: #24474e; }
.button-light { background: var(--linho); color: var(--petroleo); }
.button-light:hover { background: var(--branco); }
.button:disabled { opacity: .65; cursor: default; }
.text-link {
  display: inline-block;
  align-content: center;
  min-height: 2.75rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .38em;
  font-weight: 600;
  font-size: .92rem;
  transition: text-underline-offset .3s var(--ease);
}
.text-link:hover { text-decoration-thickness: 2px; text-underline-offset: .5em; }

/* Header */
.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 8;
  background: var(--petroleo);
  color: var(--linho);
  transition: transform .5s var(--ease), background-color .35s ease;
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  min-height: var(--bar-h);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* "Atendemos todo o Brasil": a thin top margin of the sheet, on every page. */
.header-note { border-bottom: 1px solid rgb(236 233 227 / .12); }
.header-note p, .menu-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: var(--note-h);
  color: rgb(236 233 227 / .9);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.header-note-mark { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; color: var(--salvia-clara); }
.menu-note { margin-top: auto; padding-block: 1rem; border-top: 1px solid rgb(236 233 227 / .14); }
.brand { display: block; width: 300px; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.main-nav, .footer nav { display: flex; gap: clamp(1.05rem, 2.5vw, 2.6rem); align-items: center; }
.main-nav a, .footer nav a { font-size: .875rem; font-weight: 600; text-decoration: none; }
.main-nav a:not(.button) {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
}
.main-nav a:not(.button)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .55rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
  content: "";
}
.main-nav a:not(.button):hover::after, .main-nav a:not(.button)[aria-current]::after { transform: scaleX(1); transform-origin: left; }
:is(.header, .quick-contact) :focus-visible { outline-color: var(--linho); }
.nav-contact { min-height: 2.75rem; }
.mobile-header, .mobile-cta { display: none; }
.menu-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--salvia-clara);
  background: transparent;
  color: var(--linho);
  cursor: pointer;
}
.menu-toggle svg { width: 1.35rem; height: 1.35rem; }
.menu-open { overflow: hidden; }
.mobile-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--linho);
  background: var(--petroleo);
}
.mobile-menu[open] { animation: menu-in .5s var(--ease); }
.mobile-menu::backdrop { background: rgb(15 45 51 / .6); }
.menu-content { display: grid; gap: 1.5rem; min-height: 100%; grid-template-rows: auto auto 1fr; }
.menu-top { min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: grid; gap: .25rem; justify-items: start; }
.mobile-menu nav a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  font: 700 clamp(1.75rem, 7vw, 2.4rem)/1.15 var(--title);
  text-decoration: none;
}
.mobile-menu[open] nav a { animation: fade-up-menu .6s var(--ease) both; }
.mobile-menu[open] nav a:nth-child(2) { animation-delay: .04s; }
.mobile-menu[open] nav a:nth-child(3) { animation-delay: .08s; }
.mobile-menu[open] nav a:nth-child(4) { animation-delay: .12s; }
.mobile-menu[open] nav a:nth-child(5) { animation-delay: .16s; }
.mobile-menu nav a:not(.button):is(:hover, [aria-current]) { text-decoration: underline; text-underline-offset: .18em; }
.mobile-menu nav .button { margin-block: .75rem 1.5rem; }
@keyframes menu-in { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes fade-up-menu { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Icons and dialogs */
.icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.icon-button:disabled { opacity: .4; cursor: default; }
.chevron-mark { width: .59rem; height: .59rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.chevron-mark.is-previous { transform: translateX(2px) rotate(135deg); }
.close-mark { position: relative; width: 1.1rem; height: 1.1rem; }
.close-mark::before, .close-mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.close-mark::after { transform: rotate(-45deg); }

/* Guide cards */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem;
  margin-bottom: 1.65rem;
}
.library .wrap, .related .wrap { max-width: 74rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--branco);
  transition: border-color .25s ease, box-shadow .45s var(--ease);
}
.guide-card:hover, .guide-card:focus-within { border-color: var(--petroleo); }
.guide-card:focus-within { outline: 2px solid var(--petroleo); outline-offset: 2px; }
.guide-card-copy { padding: clamp(1rem, 2vw, 1.55rem); }
.guide-image { position: relative; overflow: hidden; background: var(--petroleo); }
.guide-image img { transition: transform .9s var(--ease); }
.guide-image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--petroleo);
  opacity: .9;
  clip-path: polygon(100% 0, 100% 0, calc(100% + 60%) 100%, calc(100% + 60%) 100%);
  transition: clip-path .7s var(--ease);
  content: "";
}
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover .guide-image img { transform: scale(1.06); }
  .guide-card:hover .guide-image::after { clip-path: polygon(78% 0, 100% 0, calc(100% + 60%) 100%, calc(78% + 60%) 100%); }
}
.guide-cover, .article-cover {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--linho);
}
.guide-cover { aspect-ratio: 2.15; }
.guide-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: .6rem;
  row-gap: .15rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.guide-card-title { margin-top: .65rem; font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.2; }
.guide-card-title a { text-decoration: none; }
.guide-card-title a::after { content: ""; position: absolute; inset: 0; }
.guide-card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.guide-card p { margin-top: .55rem; color: var(--grafite); line-height: 1.55; }
.sector-symbol { flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; }
.guide-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.guide-controls { display: none; gap: .4rem; }
.guide-controls .icon-button:not(:disabled):hover { background: var(--petroleo); color: var(--linho); }

@media (min-width: 56rem) {
  html:not(.motion) .home-guides .guide-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
  html:not(.motion) .home-guides .guide-card:first-child { grid-row: span 2; }
  html:not(.motion) .home-guides .guide-card:first-child .guide-cover { aspect-ratio: 1.95; }
  html:not(.motion) .home-guides .guide-card:nth-child(n + 2) { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
  html:not(.motion) .home-guides .guide-card:nth-child(n + 2) .guide-cover { height: 100%; }
}
@media (max-width: 61.999rem) {
  .home-guides .guide-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 25rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .28rem;
    padding: .35rem .28rem .75rem;
    scrollbar-width: none;
  }
  .home-guides .guide-grid::-webkit-scrollbar { display: none; }
  .home-guides .guide-card { scroll-snap-align: start; }
  .guide-controls { display: flex; }
}

/* Article pages */
.article-heading { background: var(--linho); padding-block: clamp(1.6rem, 4vw, 4rem); }
.article-heading h1 { margin-top: .65rem; text-wrap: balance; }
.article-heading .lead, .lead-intro .lead { max-width: 42rem; margin-top: .8rem; color: var(--grafite); }
.library { min-height: 24rem; padding-block-start: clamp(1.6rem, 3.7vw, 4rem); }
.library .lead { max-width: 48rem; margin-top: .75rem; }
.guide-search { display: grid; min-width: min(100%, 17rem); gap: .35rem; }
.guide-search label { font-weight: 600; font-size: .875rem; }
.search-feedback:empty { display: none; }
.search-feedback { margin-bottom: 1.15rem; }
.article-heading .breadcrumb { margin-bottom: .55rem; }
.prose { padding-block: clamp(2.4rem, 6vw, 5.5rem); }
.article-figure { position: relative; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.article-figure .article-cover { aspect-ratio: 1.8; }
.article-figure figcaption { margin-top: .35rem; color: var(--muted); font-size: .78rem; text-align: right; }
.prose section + section { margin-top: 2.35rem; }
.prose section p { margin-top: .8rem; color: var(--grafite); }
.prose ul { padding-left: 1.25rem; margin: .75rem 0 0; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { color: var(--salvia); }
.article-source { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.article-source a { display: block; width: fit-content; }
.article-cta { margin-top: 2.5rem; background: var(--linho); padding: clamp(1.2rem, 3vw, 2.3rem); border-left: 3px solid var(--petroleo); }
.article-cta p { margin: 0 0 1rem; }
.article-cta .button { max-width: 100%; }
.related { border-top: 1px solid var(--line); }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-date { margin-top: .85rem; color: var(--muted); font-size: .875rem; }
.article-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; margin-top: .5rem; }
.article-tools button { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.privacy .lead, .not-found .lead { margin-top: 1rem; }
.privacy .form-note { margin-block: .75rem 1.5rem; }
.privacy h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.reading-progress {
  height: 3px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  background: var(--salvia-clara);
}

/* Lead form */
.lead-page { background: #fff; }
.lead-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  grid-template-areas: "intro form" "channels form";
  grid-template-rows: auto 1fr;
  gap: 1.25rem clamp(1.75rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(2.35rem, 6vw, 6rem);
  max-width: 77rem;
}
.lead-intro { grid-area: intro; }
.lead-intro h1 { margin-top: 0; }
.lead-channels { grid-area: channels; }
.contact-channels { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.contact-link {
  display: inline-grid;
  min-height: 2.75rem;
  align-items: center;
  border: 1px solid var(--line);
  padding-inline: .85rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.contact-link[href]:hover { border-color: var(--petroleo); }
.quick-actions { margin-top: 0; }
.quick-actions .contact-link { min-height: 3.4rem; padding-inline: 1.25rem; border-color: var(--salvia-clara); }
.quick-actions .contact-link:hover { border-color: var(--linho); }
.form-panel { grid-area: form; padding: clamp(1.05rem, 3.35vw, 3.25rem); border: 1px solid var(--line); background: var(--linho); }
.form-note { margin-bottom: .75rem; color: var(--muted); font-size: .875rem; }
.form-note:empty { display: none; }
.sector-selection {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: .2rem .65rem;
  margin-bottom: .7rem;
  background: var(--branco);
  font-size: .875rem;
}
.sector-selection button { border: 0; padding: 0; background: none; color: var(--petroleo); cursor: pointer; }
.lead-reply { margin-block: 0 .65rem; color: var(--muted); font-size: .875rem; }
.lead-reply a { text-underline-offset: .18em; }
.form-result p { margin-block: .8rem; }
.form-error { margin-top: .75rem; color: #84292a; font-size: .9rem; }
.fields { display: grid; gap: .85rem; margin-block: 0 .95rem; }
.fields label { display: block; font-size: .875rem; font-weight: 600; min-width: 0; }
.field label { line-height: 1.45; }
.field :is(input, select, textarea) { margin-top: .35rem; }
.field-error { margin-top: .25rem; color: #84292a; font-size: .875rem; }
.field [aria-invalid='true'] { border-color: #84292a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.city-row { grid-template-columns: 1fr 6rem; }
input, select, textarea {
  width: 100%;
  min-height: 2.95rem;
  padding: .7rem .8rem;
  border: 1px solid #6d7172;
  border-radius: 0;
  background-color: var(--branco);
  color: var(--petroleo);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--petroleo); box-shadow: 0 0 0 3px rgb(108 143 134 / .3); outline: none; }
select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--petroleo) 50%), linear-gradient(135deg, var(--petroleo) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
.optional { color: var(--muted); font-weight: 500; }
#lead-form > .button { margin-top: .35rem; }
.form-panel :is(input, select, textarea) { scroll-margin-top: .75rem; }

/* Footer: the title block of a drawing sheet */
.footer { background: #fff; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  border: 1px solid var(--petroleo);
}
.footer-cell { display: flex; align-items: center; padding: 1rem clamp(1rem, 2vw, 1.75rem); }
.footer-brand { border-right: 1px solid var(--petroleo); }
.footer-brand .brand { width: 260px; }
.footer nav { justify-content: end; flex-wrap: wrap; gap: 0 clamp(.75rem, 2vw, 1.75rem); }
.footer nav a { display: flex; align-items: center; min-height: 2.75rem; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.footer-social { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-left: 1px solid var(--petroleo); }
.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--petroleo);
  border: 1px solid rgb(15 45 51 / .35);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social-link svg { width: 1.3rem; height: 1.3rem; }
.social-link[href]:hover, .social-link[href]:focus-visible { background: var(--petroleo); border-color: var(--petroleo); color: var(--linho); }
.social-link.is-pending { cursor: default; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: .5rem 1.5rem;
  border-top: 1px solid var(--petroleo);
  padding: .8rem clamp(1rem, 2vw, 1.75rem);
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-legal a { text-underline-offset: .18em; }

/* WhatsApp: a labelled tab that stays in the lower right corner of every page, at every point of the scroll.
   Sálvia stands out on Petróleo, and the Petróleo edge keeps it visible on white and Linho. */
.whatsapp-float {
  position: fixed;
  right: clamp(.75rem, 1.6vw, 1.5rem);
  bottom: max(clamp(.75rem, 1.6vw, 1.5rem), env(safe-area-inset-bottom));
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: 0 1.2rem 0 1rem;
  border: 1px solid var(--petroleo);
  background: var(--salvia-clara);
  color: var(--petroleo);
  box-shadow: 0 .9rem 2rem -1rem rgb(15 45 51 / .65);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.whatsapp-float svg { flex: 0 0 auto; width: 1.45rem; height: 1.45rem; }
.whatsapp-float:hover { background: var(--linho); transform: translateY(-3px); box-shadow: 0 1.2rem 2.4rem -1rem rgb(15 45 51 / .75); }
.whatsapp-float:focus-visible { outline: 2px solid var(--petroleo); outline-offset: 3px; box-shadow: 0 0 0 6px var(--linho); }
.whatsapp-float::after { position: absolute; inset: -1px; border: 2px solid var(--salvia-clara); opacity: 0; pointer-events: none; content: ""; }
.has-whatsapp .footer { padding-bottom: calc(clamp(1.5rem, 3vw, 2.5rem) + 4.5rem); }
.menu-open .whatsapp-float, .menu-open .mobile-cta { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .motion .whatsapp-float { animation: whatsapp-in .8s var(--ease) .5s backwards; }
  .motion .whatsapp-float::after { animation: whatsapp-ping 1.8s cubic-bezier(.2,.6,.3,1) 2.4s 2; }
}
@keyframes whatsapp-in { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes whatsapp-ping { from { inset: -1px; opacity: .9; } to { inset: -.8rem; opacity: 0; } }

/* Technical notes over the sector photos (home scenes and sector pages) */
.scene-notes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.note-line { fill: none; stroke: var(--linho); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.note-dot { fill: var(--linho); transform-box: fill-box; transform-origin: center; }
.note-ring { fill: none; stroke: var(--linho); stroke-width: 1; opacity: .55; transform-box: fill-box; transform-origin: center; }
.flow-mark { fill: none; stroke: var(--linho); stroke-width: 2.8; stroke-linecap: square; filter: drop-shadow(0 0 4px rgb(15 45 51 / .6)); }
.note-label {
  position: absolute;
  z-index: 1;
  transform: translate(0, -100%);
  padding: 0 .15rem .4rem;
  border-bottom: 1px solid var(--linho);
  color: var(--linho);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgb(15 45 51 / .9), 0 0 3px rgb(15 45 51 / .7);
  pointer-events: none;
}
.note-label.is-start { transform: translate(-100%, -100%); text-align: right; }

/* Sector pages (menu tabs): the sector drawn on its sheet, its guides and the request */
.sector-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--petroleo); color: var(--linho); }
.sector-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 var(--margin);
  pointer-events: none;
  border-right: 1px solid rgb(236 233 227 / .055);
  background: linear-gradient(90deg, rgb(236 233 227 / .055) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%;
  content: "";
}
.sector-hero :focus-visible { outline-color: var(--linho); }
.sector-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4.5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.25rem) clamp(2.25rem, 5vw, 4.5rem);
}
.sector-hero .sector-count { font-size: .75rem; font-weight: 600; letter-spacing: .18em; color: rgb(236 233 227 / .75); }
.sector-hero .sector-count span { color: var(--linho); }
.sector-hero h1 { display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1rem); margin-top: .8rem; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; }
.sector-hero h1 .sector-symbol { flex: 0 0 auto; width: clamp(1.75rem, 2.8vw, 2.6rem); height: auto; color: var(--salvia-clara); }
.sector-hero .lead { max-width: 30rem; margin-top: 1rem; color: rgb(236 233 227 / .9); }
.sector-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(1.4rem, 2.6vw, 2rem); }
.sector-hero-actions > * { min-height: 3.25rem; }
.sector-hero .contact-link { padding-inline: 1.2rem; border-color: var(--salvia-clara); }
.sector-hero .contact-link:hover { border-color: var(--linho); }
.contact-link.has-icon { display: inline-flex; gap: .55rem; }
.contact-link svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
.sector-figure { position: relative; }
.sector-figure-cover { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 1.3333); background: #0b2328; }
.sector-figure-cover img { width: 100%; height: 100%; object-fit: cover; }
.sector-figure figcaption { margin-top: .55rem; color: rgb(236 233 227 / .72); font-size: .72rem; letter-spacing: .04em; text-align: right; }
.sector-figure .note-line { stroke-width: 3.2; }
.sector-figure :is(.note-dot, .note-ring) { --dot: 2; transform: scale(var(--dot)); }
.sector-guides .wrap { max-width: 74rem; }
.sector-empty { padding: 1.25rem 1.4rem; border: 1px dashed rgb(15 45 51 / .4); color: var(--grafite); }
.sector-closing { background: var(--linho); }
.sector-closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  max-width: 74rem;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.sector-closing-inner p { max-width: 34rem; font: 700 clamp(1.4rem, 2.3vw, 1.9rem)/1.3 var(--title); }
.sector-closing .contact-channels { margin-top: 0; }
.sector-closing .contact-link { min-height: 3rem; border-color: rgb(15 45 51 / .35); }
@media (prefers-reduced-motion: no-preference) {
  .motion .sector-figure-cover { clip-path: polygon(0 0, 0 0, -60% 100%, -60% 100%); animation: sector-sheet 1.25s cubic-bezier(.7,0,.2,1) .2s forwards; }
  .motion .sector-figure .note-line { stroke-dashoffset: 1; animation: sector-line .7s var(--ease) forwards; animation-delay: calc(1.25s + var(--j, 0) * .3s); }
  .motion .sector-figure .note-dot { transform: scale(0); animation: sector-pop .45s var(--ease) calc(1.1s + var(--j, 0) * .3s) forwards; }
  .motion .sector-figure .note-ring {
    transform: scale(0);
    animation: sector-pop .45s var(--ease) calc(1.1s + var(--j, 0) * .3s) forwards, sector-ring 2.4s cubic-bezier(.2,.6,.3,1) calc(2.4s + var(--j, 0) * .3s) infinite;
  }
  .motion .sector-figure .note-label { clip-path: inset(-.5rem 100% -.2rem 0); animation: sector-label .6s var(--ease) calc(1.65s + var(--j, 0) * .3s) forwards; }
  .motion .sector-figure .note-label.is-start { clip-path: inset(-.5rem 0 -.2rem 100%); }
  .motion .sector-figure .flow-mark { opacity: 0; animation: sector-fade .3s ease calc(1.35s + var(--k, 0) * 70ms) forwards, sector-pulse 2.4s linear calc(2.6s + var(--k, 0) * .14s) infinite; }
}
@keyframes sector-sheet { to { clip-path: polygon(0 0, 160% 0, 100% 100%, -60% 100%); } }
@keyframes sector-line { to { stroke-dashoffset: 0; } }
@keyframes sector-pop { to { transform: scale(var(--dot, 1)); } }
@keyframes sector-ring { 0% { transform: scale(var(--dot, 1)); opacity: .6; } 70%, 100% { transform: scale(calc(var(--dot, 1) * 2.6)); opacity: 0; } }
@keyframes sector-label { to { clip-path: inset(-.5rem 0 -.2rem 0); } }
@keyframes sector-fade { to { opacity: 1; } }
@keyframes sector-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }

/* Reveal on scroll (inner pages and generic blocks) */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .article-figure[data-reveal] { opacity: 1; transform: none; clip-path: polygon(0 0, 0 0, -60% 100%, -60% 100%); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1); }
.motion .article-figure[data-reveal].is-in { clip-path: polygon(0 0, 160% 0, 100% 100%, -60% 100%); }
.motion .js-split .w > span { transform: translateY(110%); transition: transform 1s cubic-bezier(.16,.84,.24,1); transition-delay: calc(.08s + var(--i) * 40ms); }
.motion .js-split.is-in .w > span { transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .09em 0 .17em; margin: -.09em 0 -.17em; }
.w > span { display: inline-block; }

/* First screen of inner pages */
@media (prefers-reduced-motion: no-preference) {
  .motion .split-in .w > span { transform: translateY(110%); animation: rise-in .95s cubic-bezier(.16,.84,.24,1) forwards; animation-delay: calc(.12s + var(--i) * 38ms); }
  .motion .page-intro > :not(h1) { animation: fade-up-in .9s var(--ease) .5s both; }
}
@keyframes rise-in { to { transform: none; } }
@keyframes fade-up-in { from { opacity: 0; transform: translateY(16px); } }

/* Page transitions between documents: a diagonal cut at 48.4° */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .45s cubic-bezier(.7,0,.3,1) both vt-out; }
  ::view-transition-new(root) { animation: .75s cubic-bezier(.7,0,.2,1) both vt-in; }
}
@keyframes vt-out { to { opacity: .6; transform: translateX(-4%); } }
@keyframes vt-in {
  from { clip-path: polygon(100% 0, 100% 0, 189% 100%, 189% 100%); }
  to { clip-path: polygon(-89% 0, 100% 0, 189% 100%, 0 100%); }
}

@media (max-width: 51rem) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "intro" "form" "channels";
    padding-block: clamp(1.3rem, 4vw, 2.2rem);
    gap: 1rem;
  }
  .lead-channels { margin-top: 0; }
}

@media (max-width: 61rem) {
  :root { --bar-h: 4.5rem; --note-h: 1.85rem; }
  .header-inner { min-height: var(--bar-h); flex-wrap: wrap; column-gap: .5rem; }
  .main-nav { width: 100%; flex-wrap: wrap; gap: .25rem 1rem; padding-bottom: .75rem; }
  .has-menu .main-nav { display: none; }
  .has-menu .mobile-header { display: flex; gap: .4rem; margin-left: auto; }
  .mobile-header .button { min-height: 2.75rem; padding-inline: .75rem; font-size: .75rem; }
  .menu-toggle { display: inline-grid; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { border-right: 0; border-bottom: 1px solid var(--petroleo); }
  .footer nav { justify-content: start; }
  .footer-social { border-left: 0; border-top: 1px solid var(--petroleo); padding-inline: clamp(1rem, 2vw, 1.75rem); }
  .sector-hero-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  :root { --bar-h: 4rem; --note-h: 1.75rem; scroll-padding-bottom: 4.5rem; }
  body { padding-bottom: env(safe-area-inset-bottom); }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .header-note p { font-size: .625rem; letter-spacing: .14em; }
  .header-note-mark { width: .9rem; height: .9rem; }
  .button { font-size: .8125rem; }
  .home-guides .guide-actions { width: 100%; }
  .mobile-cta {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7;
    border-top: 1px solid var(--line);
    background: var(--branco);
    padding: .45rem .75rem max(.45rem, env(safe-area-inset-bottom));
    animation: cta-in .45s var(--ease);
  }
  .mobile-cta .button { width: 100%; min-height: 2.75rem; }
  .whatsapp-float { right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); width: 3.25rem; height: 3.25rem; min-height: 0; padding: 0; }
  .whatsapp-float svg { width: 1.6rem; height: 1.6rem; }
  .whatsapp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .has-whatsapp .mobile-cta { padding-right: 4.5rem; }
  .mobile-cta:not([hidden]) ~ .whatsapp-float { bottom: max(.45rem, env(safe-area-inset-bottom)); width: 2.75rem; height: 2.75rem; }
  .note-label { font-size: .625rem; letter-spacing: .14em; }
  .sector-hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.75rem); }
  .sector-figure .note-line { stroke-width: 4; }
  .sector-figure :is(.note-dot, .note-ring) { --dot: 3; }
  .lead-page #lead-form > .button { width: 100%; }
}
@keyframes cta-in { from { transform: translateY(100%); } }

@media (max-width: 34rem) {
  .brand { width: 160px; }
  .footer-brand .brand { width: 200px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 1.1rem; gap: .5rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .field-row:not(.city-row) { grid-template-columns: 1fr; }
  .guide-search { width: 100%; }
  .footer nav { column-gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 23rem) {
  :root { --margin: .75rem; }
  .header-inner { width: calc(100% - 1rem); column-gap: .25rem; }
  .has-menu .mobile-header { gap: .25rem; }
  .mobile-header .button { padding-inline: .45rem; }
}
@media (max-width: 20.5rem) {
  .mobile-header .button { padding-inline: .31rem; font-size: .6875rem; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto !important; }
}

@media print {
  :root { background: white; color: #000; }
  .article-page :is(.skip, .header, .footer, .whatsapp-float, .breadcrumb, .article-tools, .article-figure, .article-cta, .related) { display: none !important; }
  .article-page :is(.article-heading, .prose) { padding: 0; background: white; }
  .article-page .narrow { width: 100%; }
  .article-page h1 { font-size: 23pt; }
  .article-page h2 { font-size: 14pt; break-after: avoid; }
  .article-page :is(p, li) { font-size: 10pt; }
  .article-page .prose { margin-top: 1.5rem; }
  .article-page .prose section + section, .article-page .article-source { margin-top: 1rem; }
  .article-page #checklist li { break-inside: avoid; }
  .motion [data-reveal], .motion .js-split .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
