/* ==========================================================================
   Heriberto Pereira — site público
   Identidade: azul royal da logo + faixa verde/amarela como elemento-assinatura.
   Tipografia: Archivo (títulos, levemente expandida) + Manrope (texto).
   ========================================================================== */

:root {
    /* Paleta da marca */
    --navy-950: #021430;
    --navy-900: #04204a;
    --navy-800: #062c63;
    --blue-700: #0849a8;
    --blue-600: #0a5bd3;
    --blue-500: #1a74f0;
    --blue-300: #7fb3ff;
    --green-500: #22ad5c;
    --yellow-400: #ffc928;
    --white: #fff;

    /* Tokens semânticos — tema claro */
    --page: #ffffff;
    --surface: #f5f8fc;
    --surface-alt: #eaf2fd;
    --card: #ffffff;
    --text: #13213a;
    --text-muted: #506079;
    --heading: #06214d;
    --border: #dde6f1;
    --border-strong: #c3d2e6;
    --accent: var(--blue-600);
    --accent-strong: var(--blue-700);
    --focus: var(--blue-600);
    --hero-glow: #e2edfd;
    --header-bg: rgba(255, 255, 255, .86);
    --header-line: rgba(6, 33, 77, .08);

    --shadow-sm: 0 1px 2px rgba(6, 33, 77, .05), 0 6px 18px rgba(6, 33, 77, .05);
    --shadow: 0 26px 60px -26px rgba(6, 33, 77, .32);
    --shadow-lg: 0 44px 100px -34px rgba(4, 32, 74, .5);

    --font-display: "Archivo", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 32px;
    --container: min(1240px, calc(100vw - 48px));
    --section: clamp(76px, 9vw, 132px);
    --header-h: 80px;

    /* Faixa verde/amarela da logo */
    --ribbon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 160' preserveAspectRatio='none'%3E%3Cpath d='M0 132C170 118 360 70 640 8v26C380 92 190 134 0 150z' fill='%2322ad5c'/%3E%3Cpath d='M0 150c190-16 380-58 640-116v18C400 106 200 146 0 160z' fill='%23ffc928'/%3E%3C/svg%3E");
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page: #050f1f;
    --surface: #081628;
    --surface-alt: #0d2242;
    --card: #0b1b31;
    --text: #e6edf7;
    --text-muted: #9fb0c6;
    --heading: #f3f7fc;
    --border: rgba(255, 255, 255, .1);
    --border-strong: rgba(255, 255, 255, .2);
    --accent: #5ea4ff;
    --accent-strong: #8cc0ff;
    --focus: var(--yellow-400);
    --hero-glow: rgba(26, 116, 240, .2);
    --header-bg: rgba(5, 15, 31, .84);
    --header-line: rgba(255, 255, 255, .08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .2);
    --shadow: 0 26px 60px -26px rgba(0, 0, 0, .6);
    --shadow-lg: 0 44px 100px -34px rgba(0, 0, 0, .75);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; overflow-x: hidden; background: var(--page); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .25s ease, color .25s ease; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 106%; letter-spacing: -.03em; line-height: 1.04; color: var(--heading); text-wrap: balance; }
h2 { margin-bottom: 22px; font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 800; }
p { text-wrap: pretty; }
::selection { background: var(--yellow-400); color: var(--navy-950); }
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section); }
.lead { color: var(--text) !important; font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 500; line-height: 1.6; }
.skip-link { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 12px 18px; transform: translateY(-150%); border-radius: 10px; background: var(--card); color: var(--heading); font-weight: 800; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Eyebrow com a mini-faixa da marca */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--accent); font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow span { display: inline-block; flex: 0 0 26px; width: 26px; height: 5px; transform: skewX(-28deg); border-radius: 2px; background: linear-gradient(90deg, var(--green-500) 0 50%, var(--yellow-400) 50%); }
.eyebrow--light { color: var(--blue-300); }

/* Botões */
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-body); font-size: .9375rem; font-weight: 800; letter-spacing: -.005em; line-height: 1; white-space: nowrap; transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.button span { transition: transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(3px); }
.button--primary { background: var(--blue-600); color: var(--white); box-shadow: 0 14px 30px -12px rgba(10, 91, 211, .6); }
.button--primary:hover { background: var(--blue-700); box-shadow: 0 18px 36px -12px rgba(10, 91, 211, .7); }
.button--ghost { border-color: var(--border-strong); background: var(--card); color: var(--heading); }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }
.button--outline { border-color: var(--heading); color: var(--heading); }
.button--outline:hover { background: var(--heading); color: var(--page); }
.button--light { background: var(--white); color: var(--navy-900); }
.button--light:hover { background: var(--yellow-400); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); font-size: .9375rem; font-weight: 800; transition: border-color .25s ease; }
.text-link span { transition: transform .25s ease; }
.text-link:hover { border-color: var(--accent); }
.text-link:hover span { transform: translateX(4px); }
.text-link--light { color: var(--white); border-color: rgba(255, 255, 255, .35); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: var(--header-h); border-bottom: 1px solid var(--header-line); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); transition: height .3s ease, background-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { height: 70px; box-shadow: 0 12px 34px -18px rgba(6, 33, 77, .28); }
.site-header__inner { display: flex; height: 100%; align-items: center; gap: 20px; }
.brand { position: relative; display: block; flex: 0 0 auto; width: 148px; height: 50px; }
.brand img { position: absolute; inset: 50% auto auto 0; width: 100%; height: auto; transform: translateY(-50%); object-fit: contain; transition: opacity .2s ease; }
.brand__light { opacity: 0; }
.brand__color { opacity: 1; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a { position: relative; padding: 9px 13px; border-radius: 999px; color: var(--heading); font-size: .875rem; font-weight: 700; transition: background-color .2s ease, color .2s ease; }
.site-nav a:hover { background: var(--surface-alt); color: var(--accent); }
.site-nav a.is-active { background: var(--surface-alt); color: var(--accent); }
.site-nav a.is-active::before { position: absolute; bottom: 3px; left: 50%; width: 14px; height: 3px; transform: translateX(-50%) skewX(-28deg); border-radius: 2px; background: linear-gradient(90deg, var(--green-500) 0 50%, var(--yellow-400) 50%); content: ""; }
.button--header { min-height: 44px; padding-inline: 20px; font-size: .875rem; background: var(--blue-600); color: var(--white); }
.button--header:hover { background: var(--blue-700); }
.menu-toggle { display: none; }
.theme-toggle { position: relative; display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--heading); transition: transform .25s ease, border-color .25s ease; }
.theme-toggle:hover { transform: rotate(10deg); border-color: var(--accent); }
.theme-toggle span { position: absolute; line-height: 1; transition: transform .3s ease, opacity .25s ease; }
.theme-toggle__sun { transform: scale(1); opacity: 1; font-size: 1.1rem; }
.theme-toggle__moon { transform: translateY(22px) scale(.7); opacity: 0; font-size: 1.3rem; }
.scroll-progress { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue-600) 0 70%, var(--green-500) 70% 85%, var(--yellow-400) 85%); }
html[data-theme="dark"] .brand__light { opacity: 1; }
html[data-theme="dark"] .brand__color { opacity: 0; }
html[data-theme="dark"] .theme-toggle__sun { transform: translateY(-22px) scale(.7); opacity: 0; }
html[data-theme="dark"] .theme-toggle__moon { transform: scale(1); opacity: 1; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); background: radial-gradient(900px 560px at 86% 12%, var(--hero-glow), transparent 70%), linear-gradient(180deg, var(--page) 0%, var(--surface) 100%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__copy { position: relative; z-index: 4; max-width: 580px; }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; padding: 8px 16px 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--heading); font-size: .875rem; font-weight: 700; line-height: 1.2; box-shadow: var(--shadow-sm); }
.hero__badge-mark { width: 26px; height: 8px; transform: skewX(-28deg); border-radius: 3px; background: linear-gradient(90deg, var(--green-500) 0 50%, var(--yellow-400) 50%); }
.hero h1 { margin: 0 0 24px; font-size: clamp(3.2rem, 6vw, 5.6rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.045em; line-height: .9; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 strong { color: var(--accent); font-weight: 800; }
.hero__headline { max-width: 520px; margin-bottom: 12px; color: var(--heading); font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.hero__text { max-width: 480px; margin-bottom: 32px; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; row-gap: 18px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 6px; margin-right: 28px; padding-right: 28px; border-right: 1px solid var(--border); }
.hero__stats div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero__stats dd { margin: 0; color: var(--heading); font-family: var(--font-display); font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-stretch: 108%; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats dt { color: var(--text-muted); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }

.hero__visual { position: relative; min-height: clamp(520px, 46vw, 680px); }
.hero__landscape { position: absolute; inset: 15% 0 0; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-800); box-shadow: var(--shadow-lg); isolation: isolate; }
.hero__landscape img { position: absolute; inset: -9% 0 auto; width: 100%; height: 112%; object-fit: cover; object-position: 28% 50%; will-change: transform; }
.hero__landscape::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(2, 20, 48, .18) 0%, rgba(2, 20, 48, 0) 35%, rgba(2, 20, 48, .5) 100%); content: ""; }
.hero__landscape figcaption { position: absolute; z-index: 2; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(2, 20, 48, .35); color: var(--white); font-size: .8125rem; font-weight: 700; line-height: 1.2; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__landscape figcaption span { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(34, 173, 92, .3); }
.hero__ribbon { position: absolute; z-index: 2; right: -6%; bottom: 17%; left: -5%; height: clamp(70px, 8vw, 118px); background: var(--ribbon) center / 100% 100% no-repeat; filter: drop-shadow(0 10px 18px rgba(2, 20, 48, .25)); pointer-events: none; }
.hero__portrait { position: absolute; z-index: 3; right: 3%; bottom: 0; width: auto; height: 100%; max-width: none; object-fit: contain; object-position: bottom; filter: drop-shadow(-18px 18px 28px rgba(2, 20, 48, .3)); pointer-events: none; }

/* ==========================================================================
   Faixa de identidade
   ========================================================================== */

.identity-band { position: relative; z-index: 3; overflow: hidden; background: var(--navy-900); color: var(--white); }
.identity-band__inner { display: flex; min-height: 124px; align-items: center; justify-content: space-between; gap: 32px; padding-block: 28px; }
.identity-band p { margin: 0; color: rgba(255, 255, 255, .86); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-stretch: 106%; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.identity-band p span { color: var(--yellow-400); font-weight: 800; }
.identity-band__mark { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.identity-band__mark i { display: block; width: 64px; height: 8px; transform: skewX(-32deg); border-radius: 3px; background: var(--blue-500); }
.identity-band__mark i:nth-child(2) { width: 38px; background: var(--green-500); }
.identity-band__mark i:nth-child(3) { width: 22px; background: var(--yellow-400); }

/* ==========================================================================
   História
   ========================================================================== */

.story { background: var(--surface); }
.story__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(48px, 8vw, 120px); }
.story__media { position: relative; padding: 0 0 32px 32px; }
.story__media::before { position: absolute; bottom: 0; left: 0; width: 70%; height: 68%; border-radius: var(--radius-lg); background: linear-gradient(140deg, var(--blue-600), var(--navy-800)); content: ""; }
.story__image-wrap { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: #dfe5ec; box-shadow: var(--shadow); }
.story__image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.story__label { position: absolute; z-index: 2; bottom: 20px; left: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy-900); font-size: .75rem; font-weight: 800; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; backdrop-filter: blur(8px); }
.story__vertical { display: none; }
.story__content { max-width: 580px; }
.story__content > p:not(.eyebrow) { color: var(--text-muted); font-size: 1.0625rem; }
.story__content blockquote { position: relative; margin: 34px 0; padding: 26px 28px 26px 56px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--heading); font-family: var(--font-display); font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.5; box-shadow: var(--shadow-sm); }
.story__content blockquote::before { position: absolute; top: 26px; bottom: 26px; left: 28px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--green-500) 0 50%, var(--yellow-400) 50%); content: ""; }

/* ==========================================================================
   Cabeçalhos de seção
   ========================================================================== */

.section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading > p:not(.eyebrow), .section-heading--split > div > p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: var(--text-muted); font-size: 1.0625rem; }
.section-heading--split { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 48px; }
.section-heading--split > div { max-width: 720px; }
.section-heading--split h2 { margin-bottom: 0; }
.section-heading--split > div > h2:not(:last-child) { margin-bottom: 18px; }
.section-heading--split > p { max-width: 380px; margin-bottom: 6px; color: var(--text-muted); font-size: 1.0625rem; }
.section-heading--split > .text-link, .section-heading--split > .button { flex: 0 0 auto; margin-bottom: 8px; }
.section-heading--light h2 { color: var(--white); }
.section-heading--light > p:not(.eyebrow), .section-heading--light > div > p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   Áreas de trabalho (home)
   ========================================================================== */

.work { background: var(--page); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.work-card { position: relative; display: flex; min-height: 290px; flex-direction: column; padding: 26px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.work-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.work-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.work-card__icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: var(--surface-alt); color: var(--accent); transition: background-color .3s ease, color .3s ease; }
.work-card__icon svg { width: 28px; height: 28px; }
.work-card:hover .work-card__icon { background: var(--blue-600); color: var(--white); }
.work-card__number { color: var(--text-muted); font-family: var(--font-display); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.work-card h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.work-card p { margin: 0 0 24px; color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.work-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent); font-size: .875rem; font-weight: 800; }
.work-card__more span { transition: transform .25s ease; }
.work-card:hover .work-card__more span { transform: translateX(4px); }
.work-card--cta { justify-content: flex-start; padding-bottom: 104px; border-color: transparent; background: linear-gradient(150deg, var(--navy-800) 0%, var(--blue-600) 100%); color: var(--white); }
.work-card--cta::after { position: absolute; right: -12%; bottom: 20px; left: -12%; height: 64px; background: var(--ribbon) center / 100% 100% no-repeat; content: ""; }
.work-card--cta:hover { border-color: transparent; }
.work-card__eyebrow { margin-bottom: 18px; color: var(--blue-300); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.work-card--cta h3 { margin-bottom: 26px; color: var(--white); font-size: 1.55rem; }
.work-card--cta .work-card__more { margin-top: 0; color: var(--yellow-400); }
.section-cta { margin-top: 42px; text-align: center; }

/* ==========================================================================
   Galeria em destaque
   ========================================================================== */

.movement { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); }
.movement::before { position: absolute; top: -30vw; right: -22vw; width: 64vw; height: 64vw; border-radius: 50%; background: radial-gradient(circle, rgba(26, 116, 240, .22), transparent 65%); content: ""; }
.movement .container { position: relative; }
.movement-grid { position: relative; display: grid; height: clamp(560px, 50vw, 700px); grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; }
.movement-card { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius); background: var(--navy-800); text-align: left; }
.movement-card--feature { grid-column: 1 / 9; grid-row: 1; }
.movement-card--panorama { grid-column: 1 / 9; grid-row: 2; }
.movement-card--portrait { grid-column: 9 / 13; grid-row: 1 / 3; }
.movement-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.movement-card--portrait img { object-position: 50% 38%; }
.movement-card:hover img { transform: scale(1.04); }
.movement-card::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(2, 16, 38, .82)); content: ""; }
.movement-card > span { position: absolute; z-index: 2; right: 24px; bottom: 22px; left: 24px; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-stretch: 104%; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.movement-card small { display: block; margin-bottom: 6px; color: var(--yellow-400); font-family: var(--font-body); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.movement__footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 28px; }

/* ==========================================================================
   Janela da cidade
   ========================================================================== */

.city-window { position: relative; display: grid; min-height: clamp(460px, 56vw, 680px); overflow: hidden; place-items: center; background: var(--navy-950); color: var(--white); }
.city-window::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 16, 38, .82) 0%, rgba(2, 20, 48, .3) 62%, rgba(2, 20, 48, .1) 100%), linear-gradient(0deg, rgba(2, 16, 38, .5), transparent 55%); content: ""; }
.city-window__media { position: absolute; inset: -7% 0; will-change: transform; }
.city-window__media img { width: 100%; height: 114%; object-fit: cover; object-position: center; }
.city-window__content { position: relative; z-index: 2; }
.city-window__content > p:last-child { max-width: 880px; margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 5.8vw, 5.8rem); font-stretch: 108%; font-weight: 600; letter-spacing: -.045em; line-height: .98; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.city-window__content strong { color: var(--yellow-400); font-weight: 800; }

/* ==========================================================================
   Resultados
   ========================================================================== */

.results-strip { padding-block: var(--section); background: var(--surface-alt); }
.results-strip__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.results-strip__heading h2 { max-width: 700px; margin-bottom: 0; }
.results-strip__heading > p { max-width: 380px; margin-bottom: 6px; color: var(--text-muted); font-size: 1.0625rem; }
.results-strip .result-cards { margin: 48px 0 34px; }
.result-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-card { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "value" "label"; align-content: start; padding: 28px 30px 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.result-card__icon { display: grid; grid-area: icon; width: 48px; height: 48px; margin-bottom: 30px; place-items: center; border-radius: 14px; background: var(--surface-alt); color: var(--accent); }
.result-card__icon svg, .funding-source__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.result-card__value { display: flex; flex-wrap: wrap; grid-area: value; align-items: baseline; column-gap: 8px; margin: 0 0 10px; color: var(--heading); font-family: var(--font-display); font-stretch: 108%; line-height: 1; }
.result-card__value strong { font-size: clamp(2.6rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.result-card__plus, .result-card__prefix { color: var(--accent); }
.result-card__prefix { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.result-card__unit { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; }
.result-card__label { grid-area: label; margin: 0; color: var(--text-muted); font-size: 1rem; font-weight: 600; line-height: 1.4; }

.page-hero.results-hero h1 { max-width: 860px; }
.page-content.results-page { padding-block: clamp(48px, 6vw, 80px) var(--section); }
.results-intro { max-width: 780px; margin: 56px 0 28px; }
.results-intro h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.results-intro p { margin: 0; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.75; }
.funding-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.funding-source { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.funding-source__icon { display: grid; width: 46px; height: 46px; margin-bottom: 20px; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--card); color: var(--accent); }
.funding-source h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.funding-source p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* ==========================================================================
   Proximidade
   ========================================================================== */

.proximity { background: var(--page); }
.proximity__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(48px, 8vw, 112px); }
.proximity__content h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -.045em; line-height: .95; }
.proximity__content > p:not(.eyebrow) { max-width: 580px; color: var(--text-muted); }
.pillars { display: grid; max-width: 580px; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.pillars span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--heading); font-size: .9375rem; font-weight: 700; }
.pillars i { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--card); color: var(--accent); font-family: var(--font-display); font-size: .8125rem; font-style: normal; font-weight: 800; box-shadow: var(--shadow-sm); }
.proximity__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: #e9ebec; box-shadow: var(--shadow); }
.proximity__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.proximity__note { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; background: rgba(4, 32, 74, .82); color: var(--white); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.proximity__note span { flex: 0 0 44px; width: 44px; height: 14px; transform: skewX(-28deg); border-radius: 4px; background: linear-gradient(90deg, var(--green-500) 0 50%, var(--yellow-400) 50%); }
.proximity__note p { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.35; }

/* ==========================================================================
   Notícias
   ========================================================================== */

.news-section { background: var(--surface); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; padding: 12px 12px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: transform .3s ease, box-shadow .3s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card > :not(.news-card__visual) { margin-inline: 14px; }
.news-card__visual { position: relative; display: flex; height: 240px; overflow: hidden; align-items: flex-end; padding: 20px; border-radius: 16px; background: linear-gradient(145deg, var(--navy-800), var(--blue-600)); color: var(--white); }
.news-card__visual::before { position: absolute; top: -90px; right: -60px; width: 240px; height: 240px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255, 255, 255, .035); content: ""; }
.news-card__visual--2 { background: linear-gradient(145deg, #0a4f7a, #1a8fa3); }
.news-card__visual--3 { background: linear-gradient(145deg, #0a3a6b, #3563a8); }
.news-card__visual--image::before { z-index: 1; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(180deg, rgba(3, 21, 42, 0) 35%, rgba(3, 21, 42, .75)); box-shadow: none; }
.news-card__visual > img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.news-card:hover .news-card__visual--image > img { transform: scale(1.04); }
.news-card__visual span { position: relative; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy-900); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-card__visual i { position: absolute; z-index: 2; top: 16px; right: 20px; color: rgba(255, 255, 255, .35); font-family: var(--font-display); font-size: 3.2rem; font-style: normal; font-weight: 800; letter-spacing: -.06em; }
.news-card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; margin-bottom: 10px; color: var(--text-muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.news-card__meta span { color: var(--accent); font-weight: 800; }
.news-card h3 { margin-bottom: 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.news-card h3 a:hover { color: var(--accent); }
.news-card > p { margin-bottom: 18px; color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.news-card > .text-link { align-self: flex-start; margin-top: auto; }
.news-public-empty { display: flex; min-height: 200px; align-items: center; justify-content: center; gap: 18px; padding: 32px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--card); color: var(--text-muted); text-align: left; }
.news-public-empty > span { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: var(--surface-alt); color: var(--accent); font-size: 1.2rem; }
.news-public-empty p { max-width: 460px; margin: 0; font-size: .9375rem; line-height: 1.6; }
.news-public-empty strong { display: block; color: var(--heading); font-family: var(--font-display); font-size: 1.15rem; }

/* ==========================================================================
   Contato
   ========================================================================== */

.contact-band { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section); background: radial-gradient(900px 560px at 92% 110%, rgba(26, 116, 240, .4), transparent 62%), linear-gradient(140deg, var(--navy-950) 0%, var(--navy-800) 100%); color: var(--white); }
.contact-band::before { position: absolute; z-index: 0; bottom: 42px; left: -6%; width: 112%; height: clamp(110px, 12vw, 170px); background: var(--ribbon) center / 100% 100% no-repeat; opacity: .9; content: ""; pointer-events: none; }
.contact-band__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 8vw, 120px); }
.contact-band__intro h2 { margin-bottom: 20px; color: var(--white); font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.045em; }
.contact-band__intro > p:not(.eyebrow) { max-width: 420px; color: rgba(255, 255, 255, .74); font-size: 1.0625rem; }
.contact-band__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.contact-band__links span, .contact-band__links a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: rgba(255, 255, 255, .85); font-size: .875rem; font-weight: 700; transition: border-color .2s ease, background-color .2s ease; }
.contact-band__links a:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: var(--white); }
.contact-band__links i { font-style: normal; }
.contact-band__links small { flex-basis: 100%; margin-top: 4px; color: rgba(255, 255, 255, .55); font-size: .8125rem; }
.contact-form { padding: clamp(24px, 3.5vw, 44px); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.form-kicker { margin-bottom: 24px; font-family: var(--font-display); font-size: 1.35rem; font-stretch: 106%; font-weight: 800; letter-spacing: -.02em; }
.contact-form label { display: block; margin-bottom: 16px; color: rgba(255, 255, 255, .85); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; outline: 0; background: rgba(255, 255, 255, .07); color: var(--white); font-size: 1rem; font-weight: 500; letter-spacing: 0; resize: vertical; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.contact-form input:not([type="checkbox"]):hover, .contact-form textarea:hover { border-color: rgba(255, 255, 255, .35); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--yellow-400); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(255, 201, 40, .22); }
.contact-form .is-invalid { border-color: #ffce51 !important; }
.contact-form label > small { display: block; min-height: 18px; margin-top: 4px; color: #ffe08a; font-size: .78rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 20px 0 26px; color: rgba(255, 255, 255, .78); font-size: .875rem; font-weight: 500; letter-spacing: 0; line-height: 1.55; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yellow-400); }
.checkbox a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .button { width: 100%; border: 0; background: var(--yellow-400); color: var(--navy-950); box-shadow: 0 16px 34px -14px rgba(255, 201, 40, .6); }
.contact-form .button:hover { background: #ffd555; }
.form-status { min-height: 24px; margin: 14px 0 0; color: #c9f5da; font-size: .875rem; font-weight: 600; }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer { position: relative; padding-top: 84px; background: var(--navy-950); color: var(--white); }
.site-footer::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--blue-600) 0 70%, var(--green-500) 70% 85%, var(--yellow-400) 85%); content: ""; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .75fr .8fr 1fr; gap: 48px; padding-bottom: 64px; }
.site-footer__brand img { width: 176px; height: auto; }
.site-footer__brand p { margin: 24px 0 8px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
.site-footer__brand p span { color: rgba(255, 255, 255, .65); font-family: var(--font-body); font-size: .9375rem; font-weight: 600; }
.site-footer__brand small { color: rgba(255, 255, 255, .55); font-size: .8125rem; }
.site-footer h2 { margin: 4px 0 20px; color: var(--yellow-400); font-family: var(--font-body); font-size: .78rem; font-stretch: 100%; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: rgba(255, 255, 255, .75); font-size: .9375rem; transition: color .2s ease; }
.site-footer li a:hover { color: var(--white); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-socials a, .footer-socials span { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: rgba(255, 255, 255, .8); font-size: .8125rem; font-weight: 700; transition: border-color .2s ease, background-color .2s ease; }
.footer-socials a:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.footer-socials span { opacity: .6; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); font-size: .8125rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom div { display: flex; gap: 22px; }
.site-footer__bottom a:hover { color: var(--white); }

/* ==========================================================================
   Páginas internas
   ========================================================================== */

.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 7vw, 88px)) 0 clamp(72px, 8vw, 104px); background: linear-gradient(100deg, rgba(2, 16, 38, .97) 0%, rgba(4, 32, 74, .9) 48%, rgba(6, 44, 99, .6) 100%), url("../images/itaocara-rio-ponte.webp") center 55% / cover no-repeat, var(--navy-900); color: var(--white); }
.page-hero::after { position: absolute; right: -4%; bottom: -14px; left: 34%; height: 72px; background: var(--ribbon) center / 100% 100% no-repeat; content: ""; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 920px; margin: 0; color: var(--white); font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-stretch: 108%; font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.page-hero p:not(.eyebrow) { max-width: 660px; margin: 20px 0 0; color: rgba(255, 255, 255, .8); font-size: 1.125rem; line-height: 1.6; }
.page-content { padding-block: var(--section); background: var(--page); }
.page-content--paper { background: var(--surface); }
.page-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 8vw, 112px); align-items: start; }
.page-intro__media { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-intro__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.prose h3 { margin-top: 40px; margin-bottom: 12px; font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 800; }
.prose p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.8; }
.prose blockquote { position: relative; margin: 36px 0; padding: 26px 28px 26px 56px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--heading); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.5; box-shadow: var(--shadow-sm); }
.prose blockquote::before { position: absolute; top: 26px; bottom: 26px; left: 28px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--green-500) 0 50%, var(--yellow-400) 50%); content: ""; }
.prose > .button { margin-top: 16px; }
.news-article-body h2 { margin: 42px 0 16px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }
.news-article-body h3 { margin: 32px 0 12px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; }
.news-article-body p { margin: 0 0 1.35em; line-height: 1.85; }
.news-article-body ul, .news-article-body ol { margin: 0 0 1.5em; padding-left: 1.5em; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.8; }
.news-article-body li + li { margin-top: .4em; }
.news-article-body a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.news-article-body hr { height: 1px; margin: 36px 0; border: 0; background: var(--border); }
.news-article-body strong { color: var(--heading); }
.news-article-body + .text-link { margin-top: 20px; }
.news-article-cover { overflow: hidden; margin: 0 0 42px; border-radius: var(--radius); background: var(--surface-alt); box-shadow: var(--shadow); }
.news-article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.news-article-cover figcaption { padding: 12px 16px; color: var(--text-muted); font-size: .8125rem; }
.page-empty { min-height: 74vh; padding: calc(var(--header-h) + 110px) 0 100px; background: radial-gradient(800px 500px at 85% 10%, var(--hero-glow), transparent 70%), var(--surface); }
.page-empty h1 { max-width: 760px; font-size: clamp(2.8rem, 6.5vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; }
.page-empty p { color: var(--text-muted); font-size: 1.0625rem; }
.page-empty .button { margin-top: 18px; }
.status-banner { margin-bottom: 38px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--yellow-400) 60%, var(--border)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--yellow-400) 12%, var(--card)); color: var(--heading); font-size: .9375rem; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-card { padding: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.detail-card span { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.detail-card h2 { margin: 14px 0; font-size: 1.75rem; }
.detail-card p { margin: 0; color: var(--text-muted); font-size: .9375rem; }

/* Trabalho */
.work-page { padding-top: clamp(40px, 5vw, 64px); }
.work-navigation { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.work-navigation a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--heading); font-size: .9375rem; font-weight: 700; line-height: 1.3; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.work-navigation a:hover { border-color: var(--accent); background: var(--surface-alt); color: var(--accent); }
.work-navigation svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent); }
.work-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.work-sector { position: relative; min-width: 0; padding: clamp(24px, 3vw, 36px); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 24px); transition: border-color .25s ease, box-shadow .25s ease; }
.work-sector::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue-600) 0 70%, var(--green-500) 70% 85%, var(--yellow-400) 85%); content: ""; }
.work-sector:target { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.work-sector__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.work-sector__icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--surface-alt); color: var(--accent); }
.work-sector__icon svg { width: 28px; height: 28px; }
.work-sector__top h2 { flex: 1; margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.work-sector__number { color: var(--text-muted); font-family: var(--font-display); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.work-sector h3 { margin: 0 0 14px; font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.work-sector__summary { margin: 0; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; }
.work-sector__details { margin-top: 24px; border-top: 1px solid var(--border); }
.work-sector__details summary { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; list-style: none; color: var(--accent); font-size: .9375rem; font-weight: 800; cursor: pointer; }
.work-sector__details summary::-webkit-details-marker { display: none; }
.work-sector__toggle { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--surface-alt); font-size: 1.2rem; font-weight: 400; transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.work-sector__details summary:hover .work-sector__toggle { background: var(--blue-600); color: var(--white); }
.work-sector__details[open] .work-sector__toggle { transform: rotate(45deg); }
.work-sector__body { padding-top: 16px; }
.work-sector__body p { margin: 0 0 18px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.work-sector__body p:last-child { margin-bottom: 0; }
.work-sector__body strong { color: var(--heading); font-weight: 800; }
.work-navigation a:focus-visible, .work-sector summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.work-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

/* Galeria */
.gallery-album-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); color: var(--heading); font-size: .9375rem; font-weight: 700; }
.gallery-album-filter select, .gallery-album-filter button { max-width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; }
.gallery-album-filter button { border-color: transparent; background: var(--blue-600); color: var(--white); font-weight: 800; }
.gallery-album-filter button:hover { background: var(--blue-700); }
.gallery-page-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 240px); gap: 16px; }
.gallery-page-grid button { position: relative; grid-column: span 4; grid-row: span 2; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface-alt); }
.gallery-page-grid button:nth-child(6n + 1) { grid-column: span 8; }
.gallery-page-grid button:nth-child(6n + 2), .gallery-page-grid button:nth-child(6n + 3) { grid-row: span 1; }
@media (min-width: 821px) {
    /* Fecha a última linha quando o ciclo de 6 fotos fica incompleto. */
    .gallery-page-grid button:nth-child(6n + 1):last-child, .gallery-page-grid button:nth-child(6n + 4):last-child { grid-column: 1 / -1; }
    .gallery-page-grid button:nth-child(6n + 2):last-child { grid-row: span 2; }
    .gallery-page-grid button:nth-child(6n + 5):last-child { grid-column: span 8; }
}
.gallery-page-grid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gallery-page-grid button::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(2, 16, 38, .72)); content: ""; opacity: .9; transition: opacity .3s ease; }
.gallery-page-grid button:hover img { transform: scale(1.04); }
.gallery-page-grid span { position: absolute; z-index: 1; right: 18px; bottom: 16px; left: 18px; color: var(--white); font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.3; text-align: left; }

/* Vídeos */
.video-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.video-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.video-card__player { aspect-ratio: 16 / 9; min-height: 200px; background: #05101d; }
.video-card__player iframe, .video-card__player video { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; object-fit: contain; }
.video-card__copy { padding: 26px; color: var(--text); }
.video-card__copy h2 { margin: 0 0 12px; font-size: 1.35rem; overflow-wrap: anywhere; }
.video-card__copy p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.video-card__copy a { display: inline-block; margin-top: 10px; color: var(--accent); font-size: .9375rem; font-weight: 800; }
.video-card__copy a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox { width: min(1100px, calc(100vw - 30px)); max-width: none; height: min(880px, calc(100vh - 30px)); max-height: none; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: var(--navy-950); color: var(--white); }
.lightbox::backdrop { background: rgba(1, 10, 24, .88); backdrop-filter: blur(8px); }
.lightbox figure { display: flex; height: 100%; align-items: center; justify-content: center; margin: 0; }
.lightbox figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox figcaption { position: absolute; right: 16px; bottom: 16px; left: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(2, 20, 48, .75); font-size: .875rem; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(2, 20, 48, .7); color: var(--white); transition: background-color .2s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--blue-600); }
.lightbox__close { top: 15px; right: 15px; font-size: 1.5rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 15px; }
.lightbox__nav--next { right: 15px; }

/* ==========================================================================
   Animação de entrada
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s ease var(--reveal-delay, 0ms), transform .75s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1180px) {
    .site-nav a { padding-inline: 10px; font-size: .84rem; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-card { min-height: 250px; }
}

@media (max-width: 1100px) {
    .button--header { display: none; }
}

@media (max-width: 960px) {
    :root { --container: min(calc(100vw - 40px), 760px); }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__copy { max-width: 640px; }
    .hero__visual { width: 100%; min-height: clamp(420px, 88vw, 600px); }
    .story__grid, .proximity__grid, .contact-band__grid, .page-intro { grid-template-columns: 1fr; }
    .story__media { max-width: 560px; }
    .proximity__media { max-width: 560px; }
    .page-intro__media { position: relative; top: 0; max-width: 560px; }
    .section-heading--split, .results-strip__heading { display: block; }
    .section-heading--split > p, .results-strip__heading > p { max-width: 600px; margin-top: 18px; }
    .section-heading--split > .text-link, .section-heading--split > .button { margin-top: 24px; }
    .funding-sources { grid-template-columns: 1fr 1fr; }
    .result-card { padding: 24px; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-grid .news-card:nth-child(3) { display: none; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .site-footer__grid > div:last-child { grid-column: 2 / 4; }
    .work-sectors { grid-template-columns: 1fr; }
    .contact-band::before { width: 112%; bottom: 24px; opacity: .5; }
}

@media (max-width: 820px) {
    :root { --header-h: 72px; --section: 84px; }
    .site-header, .site-header.is-scrolled { height: var(--header-h); background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-header__inner { position: relative; z-index: 2; gap: 10px; }
    .brand { width: 132px; }
    .theme-toggle { order: 2; margin-left: auto; }
    .menu-toggle { order: 3; display: grid; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; place-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-alt); color: var(--heading); }
    .menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--heading); transition: transform .25s ease, opacity .25s ease; }
    .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .site-nav { position: fixed; z-index: 1; inset: var(--header-h) 0 0; display: flex; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; margin: 0; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateY(-12px); border-top: 1px solid var(--border); background: var(--page); box-shadow: 0 24px 55px rgba(3, 22, 42, .18); opacity: 0; visibility: hidden; transition: transform .24s ease, opacity .2s ease, visibility .2s ease; }
    .menu-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .site-nav a { display: flex; width: 100%; min-height: 54px; align-items: center; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
    .site-nav a:hover, .site-nav a.is-active { border-color: var(--border); }
    .site-nav a.is-active::before { top: 50%; bottom: auto; left: auto; right: 18px; width: 18px; height: 5px; transform: translateY(-50%) skewX(-28deg); }
    .movement-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 340px 440px; }
    .movement-card--feature { grid-column: 1 / 3; grid-row: 1; }
    .movement-card--panorama { grid-column: 1; grid-row: 2; }
    .movement-card--portrait { grid-column: 2; grid-row: 2; }
    .gallery-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
    .gallery-page-grid button, .gallery-page-grid button:nth-child(6n + 2), .gallery-page-grid button:nth-child(6n + 3) { grid-column: span 1; grid-row: span 1; }
    .gallery-page-grid button:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
    .video-gallery { grid-template-columns: 1fr; }
    .result-cards { grid-template-columns: 1fr; gap: 12px; }
    .result-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon value" "icon label"; align-items: center; column-gap: 18px; padding: 20px 22px; }
    .result-card__icon { margin-bottom: 0; }
    .result-card__value { margin-bottom: 6px; }
    .result-card__value strong { font-size: 2.4rem; }
}

@media (max-width: 560px) {
    :root { --container: calc(100vw - 32px); --section: 72px; }
    body { font-size: 15px; }
    .button { width: 100%; }
    .brand { width: 120px; }
    .theme-toggle, .menu-toggle { flex-basis: 42px; width: 42px; height: 42px; }
    .hero { padding-top: calc(var(--header-h) + 28px); }
    .hero__badge { margin-bottom: 22px; font-size: .8125rem; }
    .hero h1 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
    .hero__headline { font-size: 1.15rem; }
    .hero__text { font-size: 1rem; }
    .hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 34px; padding-top: 22px; }
    .hero__stats div { margin-right: 16px; padding-right: 16px; }
    .hero__stats dd { font-size: 1.3rem; }
    .hero__stats dt { font-size: .75rem; }
    .hero__visual { min-height: 108vw; }
    .hero__landscape { inset: 18% 0 0; border-radius: 24px; }
    .hero__ribbon { bottom: 20%; height: 64px; }
    .hero__portrait { right: 0; }
    .identity-band__inner { flex-direction: column; align-items: flex-start; gap: 18px; min-height: 0; padding-block: 32px; }
    .identity-band p { font-size: 1.35rem; }
    .story__media { padding: 0 0 20px 20px; }
    .work-grid { grid-template-columns: 1fr; }
    .work-card { min-height: 0; }
    .work-card__top { margin-bottom: 22px; }
    .movement-grid { display: block; }
    .movement-card { width: 100%; height: 260px; margin-bottom: 12px; }
    .movement-card--portrait { height: 420px; }
    .city-window { min-height: 480px; }
    .city-window__media img { object-position: 57% center; }
    .city-window__content > p:last-child { font-size: clamp(2.5rem, 12vw, 3.6rem); }
    .funding-sources { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-grid .news-card:nth-child(3) { display: flex; }
    .news-card__visual { height: 210px; }
    .news-public-empty { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 24px 18px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .site-footer__brand, .site-footer__grid > div:last-child { grid-column: 1 / 3; }
    .site-footer__bottom { display: block; }
    .site-footer__bottom div { margin-top: 10px; }
    .page-hero::after { left: 10%; height: 52px; }
    .page-hero p:not(.eyebrow) { font-size: 1.0625rem; }
    .detail-list { grid-template-columns: 1fr; }
    .gallery-page-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
    .gallery-page-grid button, .gallery-page-grid button:nth-child(6n + 1) { grid-column: span 1; grid-row: span 1; }
    .work-navigation a { padding: 9px 14px 9px 11px; font-size: .875rem; }
    .work-sector__number { display: none; }
    .lightbox__nav { top: auto; bottom: 15px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
