@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #072024;
  --petrol: #043945;
  --paper: #f6f4f2;
  --sand: #e7ddcf;
  --orange: #d96c3d;
  --light-orange: #f2a17a;
  --brick: #964524;
  --text-muted: #465c5c;
  --dark-muted: #b6c5c2;
  --line: #d6d7d0;
  --dark-line: #375054;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --measure: min(100% - 2 * clamp(1.2rem, 5.3vw, 5.3rem), 77.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; }
h1 { font-size: clamp(3.25rem, 7vw, 6.7rem); line-height: .92; }
h2 { font-size: clamp(2.55rem, 5.1vw, 4.7rem); line-height: .97; }
h3 { line-height: 1.2; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ba532e; outline-offset: 5px; }
.dark :focus-visible { outline-color: var(--light-orange); }
.wrap { width: var(--measure); margin-inline: auto; }
.dark { background: var(--ink); color: var(--paper); }
.section { padding-block: clamp(3.65rem, 7.3vw, 7.2rem); }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.19em; }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: .8rem; background: var(--paper); padding: .6rem 1rem; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow, .ordinal { font: 700 .68rem/1.5 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { color: var(--brick); }
.eyebrow.accent, .dark .eyebrow { color: var(--light-orange); }
.lede { max-width: 36rem; font-size: clamp(1.02rem, 1.5vw, 1.17rem); line-height: 1.68; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .85rem; min-height: 3.25rem; padding: .65rem 1.13rem; border: 1px solid transparent; text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.2; text-align: center; transition: background-color .18s, border-color .18s; }
.solid { color: var(--ink); background: #eb8b60; border-color: #eb8b60; }
.solid:hover { background: #f4aa87; border-color: #f4aa87; }
.outline { color: var(--paper); border-color: #617478; }
.outline:hover { border-color: var(--light-orange); background: #16373b; }
.dark-outline { color: var(--ink); border-color: #66817d; }
.dark-outline:hover { background: var(--sand); }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: .6rem; color: var(--brick); font-size: .84rem; font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.text-link:hover, a:hover > .text-link { text-decoration: underline; }

.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--dark-line); }
.header-grid { display: grid; min-height: 4.8rem; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.6rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; }
.brand img { width: 9.5rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 2.7vw, 2.55rem); }
.site-header nav a { color: #d1ddda; font-size: .84rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current], .site-header nav a.nav-active { color: var(--light-orange); }
.site-header .header-cta { justify-self: end; min-height: 2.8rem; }
.site-header nav .nav-contact { display: none; }
.menu-toggle { border: 1px solid #617478; background: transparent; color: var(--paper); min-height: 2.8rem; padding: .35rem .65rem; }
.menu-toggle .icon { margin-right: .25rem; }

.hero { position: relative; isolation: isolate; background: radial-gradient(ellipse at 82% 70%, #10353a, transparent 58%), var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(1.4rem, 4.1vw, 4.6rem); padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.hero-copy { padding-bottom: .85rem; }
.hero-kicker { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.35rem; letter-spacing: .125em; }
.hero-kicker span, .territory figcaption i { width: .46rem; height: .46rem; background: #ec936a; display: inline-block; flex: none; border-radius: 50%; }
.hero h1 { font-size: clamp(3.75rem, 6.75vw, 7rem); letter-spacing: -.061em; }
.hero h1 em { font-weight: 500; color: var(--light-orange); }
.hero .lede { margin-top: 1.4rem; max-width: 30rem; color: #c9d5d1; }
.territory { position: relative; overflow: hidden; border: 1px solid #446266; align-self: center; }
.territory img { width: 100%; }
.map-label, .map-coordinate, .territory figcaption { font: 600 .62rem/1.4 var(--sans); letter-spacing: .14em; }
.map-label, .map-coordinate { position: absolute; top: 8%; color: #d3d8cb; }
.map-label { left: 8.8%; }
.map-coordinate { right: 8.8%; }
.territory figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; background: #0b292e; color: #d4dedb; border-top: 1px solid #446266; }
.territory figcaption span:first-child { display: flex; gap: .55rem; align-items: center; }
.territory figcaption i { width: .36rem; height: .36rem; }

.service-ribbon { border-bottom: 1px solid var(--line); background: #eee8df; }
.service-ribbon .wrap, .service-ribbon .wrap > div { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem clamp(.9rem, 2vw, 2.2rem); }
.service-ribbon .wrap { padding-block: .85rem; }
.ribbon-label { color: var(--text-muted); font-size: .65rem; font-weight: 700; letter-spacing: .13em; padding-right: 1.15rem; border-right: 1px solid #aeb5ab; }
.service-ribbon a { display: inline-flex; align-items: center; min-height: 2rem; text-decoration: none; font-size: .84rem; font-weight: 600; }
.service-ribbon a:hover { color: var(--brick); text-decoration: underline; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.15rem 2rem; margin-bottom: 2rem; }
.section-head .eyebrow, .feature-grid .eyebrow, .closing .eyebrow { margin-bottom: .72rem; }
.section-head h2 + p { margin-top: .85rem; color: var(--text-muted); max-width: 41rem; }
.section-head > a { margin-bottom: .3rem; flex: none; }
.work-section { background: #f0ebe3; }
.case-grid, .service-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
.case-grid { row-gap: 1.35rem; }
.case-card, .service-card, .guide-card { min-width: 0; }
.case-card-link, .service-card > a, .guide-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.case-card-link { border: 1px solid #cfd0c6; background: #fbf8f3; transition: border-color .18s; }
.case-card-link:hover { border-color: #9c5939; }
.case-art { display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.8; min-height: 9rem; border-bottom: 1px solid #c6c6bb; color: #f4bf94; background-color: #184046; background-image: linear-gradient(0deg, transparent 95%, #ffffff1c 96%), linear-gradient(90deg, transparent 95%, #ffffff1c 96%); background-size: 22px 22px; }
.case-art > svg { height: 62%; width: 70%; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.art-careimagem { background-color: #c9d4c9; background-image: linear-gradient(0deg, transparent 96%, #07202425 97%), linear-gradient(90deg, transparent 96%, #07202425 97%); color: #104047; }
.art-molecaggio { background-color: #a44d33; color: #ffdfbf; }
.art-fortfer { background-color: #253e43; color: #f1c587; }
.art-oggi-sorvetes { background-color: #e3c3b0; background-image: linear-gradient(0deg, transparent 96%, #07202420 97%), linear-gradient(90deg, transparent 96%, #07202420 97%); color: #5a2c22; }
.art-caption { position: absolute; bottom: .6rem; left: .72rem; font-size: .59rem; font-weight: 700; letter-spacing: .125em; }
.art-screen { width: 48%; padding: .3rem .55rem .53rem; color: #f3c59d; border: 1px solid #f3c59d; border-radius: .35rem; background: #113238; line-height: 1; transform: rotate(-5deg); }
.art-screen i { display: inline-block; width: .22rem; height: .22rem; margin: 0 .17rem 0 0; border-radius: 50%; background: #f3c59d; }
.art-screen-body { border-top: 1px solid #a5795f; margin-top: .24rem; padding: .5rem 0 .15rem; display: grid; gap: .26rem; }
.art-screen-body span { font: 600 clamp(.65rem, 1.2vw, .95rem)/1.15 var(--serif); }
.art-screen b { display: block; width: 88%; height: .25rem; background: #9daea9; opacity: .6; }
.art-screen b:nth-of-type(2) { width: 61%; }
.art-screen em { width: fit-content; padding: .2rem .35rem; color: var(--ink); background: #e99467; font-size: .52rem; font-style: normal; }
.case-copy { position: relative; flex: 1; padding: 1.12rem 2.4rem 1.35rem 1.15rem; }
.case-copy .eyebrow { font-size: .6rem; letter-spacing: .11em; margin-bottom: .35rem; }
.case-copy h3 { font: 600 1.92rem/.96 var(--serif); letter-spacing: -.027em; margin-bottom: .55rem; }
.case-copy > p:last-of-type { color: var(--text-muted); font-size: .89rem; line-height: 1.48; }
.card-arrow { position: absolute; bottom: 1.1rem; right: .95rem; color: var(--brick); }
.service-card > a { padding: 1.38rem; border: 1px solid #d2d5ce; background: #faf8f5; transition: background-color .18s; }
.service-card > a:hover { background: #eee7da; }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .95rem; color: var(--brick); }
.service-icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; background: #eee4d8; }
.service-card h3 { font-size: 1.06rem; margin-bottom: .56rem; text-wrap: wrap; }
.service-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1.05rem; }
.service-card .text-link { margin-top: auto; }
.diagnostic-call { background: radial-gradient(ellipse at 83% 30%, #1d484b, transparent 56%), var(--ink); }
.feature-grid, .closing-grid { display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: 2.4rem clamp(2rem, 7vw, 7rem); }
.feature-grid h2 { max-width: 40rem; }
.feature-grid h2 + p, .closing h2 + p { margin: .95rem 0 1.35rem; max-width: 36rem; color: var(--text-muted); }
.dark .feature-grid h2 + p, .closing h2 + p { color: var(--dark-muted); }
.feature-steps { list-style: none; padding: 0; border-top: 1px solid #597578; }
.feature-steps li { display: flex; gap: 1rem; align-items: center; padding: 1.12rem .1rem; border-bottom: 1px solid #597578; }
.feature-steps li span { color: var(--light-orange); font-size: .72rem; font-weight: 700; letter-spacing: .13em; }
.about-strip { background: var(--sand); }
.about-strip .text-link { margin-top: 1rem; }
.guides-section { background: #ece7dd; }
.guide-card > a { background: #fbf8f2; border-top: 3px solid #b4623e; padding: 1.3rem; min-height: 11rem; transition: background-color .18s; }
.guide-card > a:hover { background: #f3e9da; }
.guide-card h3 { font: 600 1.8rem/1.04 var(--serif); margin: .55rem 0 1rem; text-wrap: pretty; }
.guide-card .text-link { margin-top: auto; }
.faq-list { border-top: 1px solid #b8c2b9; }
.faq-list details { border-bottom: 1px solid #b8c2b9; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .88rem 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brick); font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 1rem; color: var(--text-muted); font-size: .93rem; }
.closing { padding-block: clamp(2.9rem, 5.8vw, 5rem); background: #12363b; }
.closing-grid { grid-template-columns: 1fr auto; }
.closing-grid .actions { margin-top: 0; }
.closing h2 + p { margin-bottom: 0; }

.page-hero { padding: 1.5rem 0 clamp(3rem, 6.3vw, 6rem); background: radial-gradient(ellipse at 94% 32%, #153f43, transparent 62%), var(--ink); }
.page-hero h1 { max-width: 18ch; font-size: clamp(3.15rem, 6.9vw, 6.25rem); }
.page-hero .eyebrow, .diagnostic-intro .eyebrow { margin-bottom: .7rem; }
.page-hero .lede, .diagnostic-intro .lede { margin-top: 1.15rem; color: var(--dark-muted); }
.page-hero .wrap > .button { margin-top: 1.5rem; }
.crumb { margin-bottom: clamp(1.65rem, 4vw, 3.3rem); }
.crumb ol { display: flex; flex-wrap: wrap; gap: .25rem .65rem; align-items: center; list-style: none; padding: 0; color: #c0ceca; font-size: .77rem; }
.crumb li:not(:first-child)::before { content: "/"; margin-right: .65rem; color: var(--light-orange); }
.crumb a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .47fr); align-items: start; gap: 2rem clamp(2rem, 6vw, 6.5rem); }
.prose { max-width: 44rem; }
.prose h2, .related h2, .contact-form-panel h2 { font-size: clamp(2rem, 3.55vw, 3.2rem); }
.prose h2 { margin: 1.65rem 0 .7rem; }
.prose .eyebrow + h2 { margin-top: .45rem; }
.prose h3 { margin: 1.3rem 0 .52rem; font-size: 1.05rem; }
.prose p, .prose li { color: #30484a; margin-bottom: .5rem; }
.prose p.eyebrow { color: var(--brick); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose > p:last-child, .related > p:last-child { margin-bottom: 0; }
.prose .process-list p { margin: 0 0 .9rem; }
.related, .contact-form-panel { background: #ede6dc; padding: clamp(1.3rem, 3vw, 2.25rem); border-top: 3px solid #b46340; }
.related .eyebrow { margin-bottom: .6rem; }
.related p:not(.eyebrow) { margin-block: .62rem .8rem; }
.people h2:nth-of-type(2) { margin-top: 1.55rem; }
.project-figure { margin-bottom: 1.25rem; }
.project-figure figcaption { font-size: .76rem; color: var(--text-muted); margin-top: .4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filters button { border: 1px solid #a7b0a4; color: var(--ink); background: transparent; min-height: 2.7rem; padding: .3rem .95rem; font-size: .86rem; font-weight: 600; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button:hover:not([aria-pressed="true"]) { background: #e2d9cb; }

.diagnostic-page { padding: 1.5rem 0 clamp(2.9rem, 6vw, 6rem); background: radial-gradient(ellipse at 86% 52%, #184449, transparent 56%), var(--ink); }
.diagnostic-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.13fr); align-items: start; gap: 2rem clamp(2rem, 6.3vw, 6rem); }
.diagnostic-intro { padding-top: 1rem; }
.diagnostic-note { color: #c3cfcc; margin-top: 1.4rem; display: flex; align-items: center; gap: .65rem; font-size: .82rem; }
.diagnostic-note .icon, .diagnostic-note span { color: var(--light-orange); }
.diagnostic-panel { color: var(--ink); background: #f5f0e8; border-top: 4px solid #df8056; padding: clamp(1.15rem, 3.35vw, 2.4rem); min-height: 22rem; }
.diagnostic-panel :focus-visible { outline-color: #a74620; }
.diagnostic-panel h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); margin: .65rem 0 .7rem; }
.diagnostic-panel .eyebrow { color: var(--brick); }
.diagnostic-panel .lede-small { color: var(--text-muted); font-size: .89rem; margin-bottom: 1.05rem; }
.progress-track { width: 100%; height: 4px; background: #d7d3c7; margin: .55rem 0 1.05rem; display: flex; }
.progress-track span { height: 4px; background: #a94c28; }
.choices { display: grid; gap: .45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .45rem .68rem; border: 1px solid #b9c0b7; font-size: .89rem; line-height: 1.3; background: #fcfaf5; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: #a94c28; background: #f6e5d8; }
.choice input { accent-color: #9f4828; width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; margin-top: 1rem; }
.step-actions .solid { margin-left: auto; }
.step-actions .button:disabled { cursor: default; background: #ded7cd; border-color: #ded7cd; color: #576663; }
.plain-button { min-height: 2.75rem; padding: .3rem .45rem; margin-left: -.45rem; color: var(--brick); border: 0; background: transparent; font-size: .83rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.result-next { background: #ebe2d5; padding: .8rem 1rem; margin: 1rem 0; }
.result-next strong { display: block; margin-bottom: .28rem; }
.result-next p { font-size: .88rem; }
.diagnostic-panel .actions { margin-top: .85rem; }
.diagnostic-panel .result-note { color: var(--text-muted); font-size: .74rem; margin: .55rem 0; }

.contact-links { list-style: none; padding: 0 !important; margin-top: 1rem; }
.contact-links a { display: inline-flex; gap: .5rem; align-items: center; padding: .3rem 0; color: var(--brick); overflow-wrap: anywhere; }
.contact-form-panel h2 { margin-bottom: .55rem; }
.contact-form-panel > p { color: var(--text-muted); font-size: .9rem; }
.contact-form-panel form { display: grid; gap: .32rem; margin-top: .72rem; }
.contact-form-panel label { font-weight: 700; margin-top: .52rem; font-size: .85rem; }
.contact-form-panel label span { font-weight: 400; }
.contact-form-panel :is(input, select, textarea) { width: 100%; border: 1px solid #82938b; background: #fffdf8; min-height: 2.75rem; border-radius: 0; padding: .55rem; color: var(--ink); }
.contact-form-panel textarea { resize: vertical; }
.contact-form-panel .button { width: fit-content; margin-top: .75rem; }

.footer { padding-top: 2.65rem; border-top: 1px solid var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: 1.55fr .8fr 1fr; gap: 1.3rem 2.8rem; padding-bottom: 2.1rem; }
.footer-grid > div > p:not(.eyebrow) { color: var(--dark-muted); font-size: .83rem; margin-top: .62rem; }
.footer-links { display: grid; gap: .28rem; margin-top: .5rem; }
.footer-links a { width: fit-content; text-decoration: none; font-size: .85rem; color: #c9d5d2; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1rem; color: var(--dark-muted); border-top: 1px solid var(--dark-line); font-size: .69rem; }
.footer-end span:last-child { letter-spacing: .12em; }

@media (max-width: 1040px) {
  .hero-grid { gap: 1.5rem; }
  .hero .actions { gap: .55rem; }
  .hero .button { padding-inline: .75rem; gap: .45rem; }
  .closing-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 790px) {
  .header-grid { min-height: 4.2rem; grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .header-grid > .header-cta { display: none; }
  .site-header nav { grid-column: 1 / -1; gap: .55rem 1rem; flex-wrap: wrap; padding: 0 0 .75rem; }
  .site-header nav a { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.75rem; }
  .site-header nav .nav-contact { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; padding-block: clamp(2.8rem, 7vw, 4.6rem); gap: 1.6rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(3.65rem, 10.7vw, 6rem); }
  .territory { width: 100%; }
  .territory img { max-height: 23rem; object-fit: cover; }
  .case-grid, .service-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: start; flex-direction: column; }
  .section-head > a { margin: 0; }
  .article-grid, .diagnostic-grid, .feature-grid { grid-template-columns: 1fr; }
  .diagnostic-intro { padding-top: 0; }
  .diagnostic-intro h1 br { display: none; }
  .diagnostic-intro h1 { line-height: .98; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .brand img { width: 8.7rem; }
  .hero h1 { font-size: clamp(3rem, 10.2vw, 3.85rem); }
  .hero-kicker { font-size: .61rem; margin-bottom: 1.05rem; }
  .hero .lede { margin-top: 1.12rem; }
  .hero .actions { margin-top: 1.25rem; }
  .ribbon-label { width: 100%; border: 0; }
  .service-ribbon .wrap { gap: .35rem; }
  .service-ribbon .wrap > div { column-gap: .95rem; }
  .case-grid, .service-grid, .guide-grid { grid-template-columns: 1fr; }
  .case-art { aspect-ratio: 2.05; }
  .section-head { margin-bottom: 1.45rem; }
  .art-screen-body span { font-size: .85rem; }
  .map-label, .map-coordinate { font-size: .48rem; }
  .territory figcaption { font-size: .54rem; }
  .footer-grid { column-gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Entrada do bunker */
.hero {
  background: radial-gradient(ellipse at 92% 52%, var(--petrol), transparent 69%), var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(125deg, transparent 59%, #e7ddcf23 59.1%, transparent 59.25%);
}
.hero-grid {
  grid-template-columns: 1.12fr minmax(0, .88fr);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3.6rem);
}
.hero-index {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.4rem;
  color: var(--sand);
  font: 600 .65rem/1.4 var(--sans);
  letter-spacing: .16em;
}
.hero-index::before {
  content: "";
  width: .32rem;
  height: 1.35rem;
  background: var(--orange);
  transform: skewX(-23deg);
}
.hero h1 {
  font-size: clamp(3.25rem, 6.4vw, 6.9rem);
  text-wrap: initial;
}
.hero h1 em { color: var(--sand); }
.hero .solid { background: var(--orange); border-color: var(--orange); }
.hero .solid:hover { background: var(--light-orange); border-color: var(--light-orange); }
.territory { clip-path: polygon(0 0, 100% 0, 100% 91%, 92% 100%, 0 100%); }
.territory-view { position: relative; overflow: hidden; background: var(--petrol); }
.territory-view img { transform: translate(var(--map-x, 0px), var(--map-y, 0px)) scale(1.035); }
.territory-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--light-x, 54%) var(--light-y, 48%), #d96c3d44, transparent 47%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.territory figcaption { padding-right: 10%; }
.hero-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-block: .85rem;
  border-top: 1px solid var(--dark-line);
  color: var(--sand);
  font-size: .7rem;
  letter-spacing: .1em;
}
.hero-footer a { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-underline-offset: .25rem; }
.hero-footer a span { color: var(--light-orange); font-size: 1rem; }
.editorial-link {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.editorial-link h3 { margin-top: .4rem; font-size: 1.05rem; }
@media (max-width: 790px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.9rem, 10.5vw, 5.8rem); }
  .hero-footer > span { display: none; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(2.45rem, 12vw, 2.9rem); }
  .map-coordinate { display: none; }
}

/* Projetos em camadas na página inicial */
.project-stage { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.project-stage .section-head { display: grid; align-content: start; gap: 1.3rem; }
.project-stack { display: grid; gap: 1.25rem; min-width: 0; }
.project-stack .case-card-link { box-shadow: 0 14px 30px #07202418; }
.project-stack .case-art { aspect-ratio: 2.25; }
.project-stack .case-copy { padding: 1.2rem clamp(1.15rem, 3vw, 2rem) 1.4rem; }
.project-stack .case-copy h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 600; letter-spacing: -.035em; }
.project-stack .case-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 63%, #f6f4f243 63.1%, transparent 63.4%);
  pointer-events: none;
}
.hero h1 > span { display: block; }

@media (min-width: 791px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .project-stage .section-head { position: sticky; top: 5rem; }
  .project-stack { gap: clamp(2.25rem, 10vh, 6rem); isolation: isolate; }
  .project-stack > .case-card { position: sticky; top: calc(2rem + var(--stack-offset, 0rem)); }
  .project-stack > .case-card:nth-child(2) { --stack-offset: 1rem; }
  .project-stack > .case-card:nth-child(3) { --stack-offset: 2rem; }
  .project-stack > .case-card:focus-within { z-index: 1; }
  .project-stack .case-art { max-height: 38vh; }
}

@media (max-width: 790px) {
  .project-stage { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .project-stack .case-art { aspect-ratio: 1.9; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span { animation: hero-line .72s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 > span:nth-child(2) { animation-delay: 85ms; }
  .hero h1 > span:nth-child(3) { animation-delay: 170ms; }
  .hero .territory { animation: territory-entry .95s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes hero-line {
    from { opacity: 0; transform: translateY(.38em); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes territory-entry {
    from { opacity: 0; clip-path: polygon(0 0, 39% 0, 0 85%, 0 85%, 0 100%); }
    to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 91%, 92% 100%, 0 100%); }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .territory-light {
      animation: map-departure linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes map-departure {
      from { opacity: 1; }
      to { opacity: .12; transform: translateY(12%); }
    }
  }
}

/* Entrada do bunker */
.immersive-hero {
  min-height: 88svh;
  display: grid;
  align-content: center;
  background: radial-gradient(ellipse at 76% 45%, #043945, #072024 66%);
}

.immersive-hero .territory { clip-path: none; }
.immersive-hero .territory-view { isolation: isolate; min-height: 15rem; }
.immersive-hero .territory-view img { display: block; }
.map-caption {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem 1rem;
  border-top: 1px solid #446266;
  background: #072024;
  color: #e7ddcf;
  font: 600 .63rem/1.4 var(--sans);
  letter-spacing: .08em;
}
.radar-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0 85%, #d96c3d26 99%, #d96c3d62 100%);
  clip-path: circle(40% at 50% 50%);
}
.map-point {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  z-index: 2;
  min-height: 44px;
  padding: .35rem .65rem;
  border: 1px solid #d96c3d;
  background: #072024;
  color: #f6f4f2;
  text-decoration: none;
  font: 650 clamp(.69rem, 1.2vw, .88rem)/1.2 var(--sans);
}
.map-point i {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #d96c3d;
  box-shadow: 0 0 .7rem #d96c3d;
}
.map-point:hover, .map-point:focus-visible { background: #043945; outline: 2px solid #f6f4f2; }
.map-services { left: 11%; top: 34%; }
.map-projects { right: 8%; top: 47%; }
.map-diagnostic { left: 34%; top: 69%; }
.bunker-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}
.bunker-progress span {
  display: block;
  height: 100%;
  background: #d96c3d;
  transform-origin: left;
  transform: scaleX(0);
}
@media (prefers-reduced-motion: no-preference) {
  .radar-sweep { animation: radar-turn 14s linear infinite; }
  @keyframes radar-turn { to { transform: rotate(1turn); } }
}
@media (max-width: 790px) {
  .immersive-hero { min-height: auto; }
  .immersive-hero .territory-view img { min-height: 15rem; object-fit: cover; }
}
