:root {
  --navy-950: #061720;
  --navy-900: #0a202b;
  --navy-800: #123746;
  --blue-700: #23648f;
  --blue-500: #4a8eb8;
  --orange-600: #d77305;
  --orange-500: #ee9415;
  --sand-100: #f5f1e8;
  --paper: #fcfbf8;
  --white: #fff;
  --ink: #132630;
  --muted: #60717a;
  --line: #dce3e5;
  --success: #2e6957;
  --danger: #a33b32;
  --shadow-sm: 0 8px 24px rgba(6, 23, 32, 0.08);
  --shadow-lg: 0 28px 80px rgba(6, 23, 32, 0.18);
  --radius-sm: 0.55rem;
  --radius-md: 1rem;
  --radius-lg: 1.6rem;
  --container: 1200px;
  --header-height: 84px;
  --ease: 220ms cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.035em; }
p { color: var(--muted); }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3.25rem, 6vw, 5rem) 0; }
.section--sand { background: var(--sand-100); }
.section--dark { background: var(--navy-950); color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, .72); }
.surface-grid {
  background-image:
    linear-gradient(rgba(18, 55, 70, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 55, 70, .055) 1px, transparent 1px);
  background-size: 48px 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  color: var(--orange-600);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.1rem; height: 3px; background: currentColor; border-radius: 99px; }
.section-title { margin-bottom: 1.25rem; font-size: clamp(2.1rem, 4.6vw, 4.15rem); max-width: 18ch; }
.section-lead { max-width: 720px; margin-bottom: 2.25rem; font-size: clamp(1.06rem, 1.7vw, 1.3rem); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading-row .section-lead { margin-bottom: 0; max-width: 560px; }
.accent { color: var(--orange-600); }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link { position: fixed; z-index: 10000; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--white); color: var(--ink); border-radius: .4rem; box-shadow: var(--shadow-lg); }
.skip-link:focus { top: 1rem; }

/* Top utility bar */
.utility-bar { background: var(--navy-950); color: rgba(255, 255, 255, .83); font-size: .78rem; }
.utility-inner { min-height: 38px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; }
.brasilia-clock { display: flex; align-items: center; gap: .55rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 .25rem rgba(238, 148, 21, .14); }
.announcement { min-width: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.announcement-label { color: var(--orange-500); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.announcement-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-actions { display: flex; align-items: center; gap: .9rem; }
.utility-webmail { font-weight: 750; color: var(--white); }
.language-switcher { display: inline-flex; align-items: center; gap: .2rem; padding: .15rem; border: 1px solid rgba(255, 255, 255, .17); border-radius: 999px; }
.lang-button { min-width: 2rem; height: 1.55rem; padding: 0 .35rem; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .68); font-size: .68rem; font-weight: 800; cursor: pointer; }
.lang-button:hover, .lang-button[aria-pressed="true"] { background: var(--orange-500); color: var(--navy-950); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(252, 251, 248, .94); border-bottom: 1px solid rgba(18, 55, 70, .09); backdrop-filter: blur(18px); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.brand-mark { width: 52px; height: 48px; overflow: hidden; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: contrast(1.25); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark strong { font-size: 1.05rem; letter-spacing: .045em; }
.brand-wordmark span { margin-top: .32rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(.55rem, 1.5vw, 1.25rem); }
.nav-link { position: relative; padding: 1rem .25rem; color: #334750; font-size: .9rem; font-weight: 720; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: .25rem; right: .25rem; bottom: .65rem; height: 2px; background: var(--orange-600); transform: scaleX(0); transform-origin: right; transition: transform var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy-950); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--navy-950); color: var(--white); font-size: .85rem; font-weight: 800; transition: transform var(--ease), background var(--ease); }
.header-cta:hover { transform: translateY(-2px); background: var(--blue-700); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy-950); transition: transform var(--ease), opacity var(--ease); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 52px; padding: .75rem 1.35rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; cursor: pointer; transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease); }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--orange-500); color: var(--navy-950); box-shadow: 0 12px 30px rgba(215, 115, 5, .24); }
.button--primary:hover { background: #f4a52c; box-shadow: 0 16px 40px rgba(215, 115, 5, .3); }
.button--dark { background: var(--navy-950); color: var(--white); }
.button--dark:hover { background: var(--blue-700); }
.button--outline { border-color: rgba(255, 255, 255, .4); color: var(--white); background: rgba(255, 255, 255, .05); }
.button--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .12); }
.button--light-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button--light-outline:hover { border-color: var(--blue-500); color: var(--blue-700); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--blue-700); font-weight: 800; }
.text-link::after { content: "→"; transition: transform var(--ease); }
.text-link:hover::after { transform: translateX(.3rem); }

/* Hero */
.hero { position: relative; min-height: min(760px, calc(100svh - 122px)); display: grid; align-items: center; overflow: hidden; background: var(--navy-950); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 23, 32, .98) 0%, rgba(6, 23, 32, .83) 47%, rgba(6, 23, 32, .35) 78%, rgba(6, 23, 32, .18) 100%), url("../images/projects/moda-center.webp") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--orange-500); }
.hero-content { position: relative; z-index: 1; padding: 6rem 0; max-width: 780px; }
.hero .eyebrow { color: var(--orange-500); }
.hero h1 { max-width: 12ch; margin-bottom: 1.6rem; font-size: clamp(3rem, 7.2vw, 6.5rem); letter-spacing: -.055em; }
.hero-lead { max-width: 700px; margin-bottom: 2rem; color: rgba(255, 255, 255, .82); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-badge { position: absolute; z-index: 2; right: max(1rem, calc((100vw - var(--container)) / 2)); bottom: 2rem; display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(6, 23, 32, .7); backdrop-filter: blur(12px); color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 700; }
.hero-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange-500); }

/* Inner-page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(5rem, 9vw, 8rem) 0; background: var(--navy-950); color: var(--white); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(120deg, transparent 0 45%, rgba(255, 255, 255, .08) 45% 46%, transparent 46% 100%), radial-gradient(circle at 80% 20%, var(--blue-500), transparent 28%); }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.page-hero p { max-width: 760px; margin-bottom: 0; color: rgba(255, 255, 255, .76); font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.breadcrumbs { display: flex; gap: .55rem; margin-bottom: 2rem; color: rgba(255, 255, 255, .6); font-size: .82rem; }
.breadcrumbs a:hover { color: var(--white); }

/* Stats */
.stats-band { position: relative; z-index: 3; margin-top: -1px; background: var(--sand-100); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 168px; padding: 2rem clamp(1rem, 3vw, 2.1rem); border-right: 1px solid rgba(18, 55, 70, .12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: .55rem; color: var(--navy-950); font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.055em; }
.stat span { display: block; color: var(--muted); font-size: .9rem; font-weight: 700; line-height: 1.45; }

/* Cards and grids */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category-card { position: relative; min-height: 250px; padding: 1.6rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.category-card::after { content: attr(data-number); position: absolute; right: 1rem; bottom: -.75rem; color: rgba(18, 55, 70, .06); font-size: 7rem; font-weight: 900; line-height: 1; }
.category-card:hover { transform: translateY(-6px); border-color: rgba(35, 100, 143, .28); box-shadow: var(--shadow-sm); }
.category-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.5rem; border-radius: 50%; background: var(--sand-100); color: var(--orange-600); font-size: 1.1rem; font-weight: 900; }
.category-card h3 { position: relative; z-index: 1; margin-bottom: .8rem; font-size: 1.3rem; }
.category-card p { position: relative; z-index: 1; margin-bottom: 0; font-size: .92rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.project-card:hover { transform: translateY(-6px); border-color: rgba(35, 100, 143, .24); box-shadow: var(--shadow-sm); }
.project-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--blue-700)); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2, .8, .2, 1); }
.project-card:hover .project-card-media img { transform: scale(1.055); }
.project-card-media.is-placeholder::before { content: "TE"; position: absolute; right: 1.2rem; bottom: .1rem; color: rgba(255, 255, 255, .12); font-size: 7rem; font-weight: 900; line-height: 1; }
.project-card-media.is-placeholder::after { content: "TRIUNFO ENGENHARIA"; position: absolute; left: 1.4rem; bottom: 1.3rem; color: rgba(255, 255, 255, .8); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.project-category { position: absolute; left: 1rem; top: 1rem; max-width: calc(100% - 2rem); padding: .4rem .7rem; border-radius: 999px; background: rgba(6, 23, 32, .84); color: var(--white); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(10px); }
.project-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.project-meta { display: flex; gap: .65rem; margin-bottom: .75rem; color: var(--blue-700); font-size: .75rem; font-weight: 800; }
.project-card h3 { margin-bottom: .75rem; font-size: 1.35rem; }
.project-card p { margin-bottom: 1.25rem; font-size: .93rem; }
.project-card .text-link { margin-top: auto; }

/* Method and content layouts */
.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.split--reverse > :first-child { order: 2; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.media-frame::before { content: ""; position: absolute; z-index: -1; left: -1.25rem; bottom: -1.25rem; width: 42%; height: 42%; border-radius: var(--radius-md); background: var(--orange-500); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.method-step { padding: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.method-step strong { display: block; margin-bottom: 1.4rem; color: var(--orange-500); font-size: 1.8rem; }
.method-step h3 { margin-bottom: .7rem; color: var(--white); font-size: 1.25rem; }
.method-step p { margin-bottom: 0; font-size: .92rem; }
.cta-panel { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem); border-radius: var(--radius-lg); background: var(--navy-950); color: var(--white); }
.cta-panel::after { content: ""; position: absolute; right: -8%; top: -45%; width: 420px; height: 420px; border: 90px solid rgba(238, 148, 21, .12); border-radius: 50%; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 16ch; margin-bottom: 1rem; font-size: clamp(2.1rem, 4vw, 4rem); }
.cta-panel p { max-width: 680px; color: rgba(255, 255, 255, .75); font-size: 1.08rem; }

/* Company */
.history-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.purpose-card { position: sticky; top: 8rem; padding: 2.2rem; border-radius: var(--radius-lg); background: var(--navy-950); color: var(--white); }
.purpose-card h3 { font-size: 1.8rem; }
.purpose-card p { color: rgba(255, 255, 255, .72); }
.history-copy p { font-size: 1.08rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.value-card .value-number { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-bottom: 1.2rem; border-radius: 50%; background: var(--sand-100); color: var(--orange-600); font-weight: 900; }
.value-card h3 { margin-bottom: .7rem; font-size: 1.22rem; }
.value-card p { margin-bottom: 0; font-size: .92rem; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 3rem; }
.timeline::before { content: ""; position: absolute; left: 2%; right: 2%; top: 1rem; height: 2px; background: var(--line); }
.timeline-item { position: relative; padding-top: 2.75rem; }
.timeline-item::before { content: ""; position: absolute; top: .58rem; left: 0; width: .9rem; height: .9rem; border: 4px solid var(--paper); border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 2px var(--orange-500); }
.timeline-item strong { display: block; margin-bottom: .55rem; color: var(--blue-700); font-size: 1.25rem; }
.timeline-item span { color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.4; }

/* Portfolio controls */
.portfolio-toolbar { position: relative; z-index: 3; margin-top: -2.4rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.search-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.search-field { position: relative; }
.search-field input { width: 100%; min-height: 50px; padding: .75rem 1rem .75rem 3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); outline: none; }
.search-field input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 142, 184, .13); }
.search-field::before { content: "⌕"; position: absolute; left: 1.15rem; top: 50%; transform: translateY(-55%); color: var(--blue-700); font-size: 1.4rem; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.filter-button { min-height: 38px; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: .77rem; font-weight: 800; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--navy-950); background: var(--navy-950); color: var(--white); }
.result-count { color: var(--muted); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.empty-state { grid-column: 1 / -1; padding: 3rem; border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service-card { min-height: 280px; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.service-card strong { display: block; margin-bottom: 2.25rem; color: var(--orange-600); font-size: 1.8rem; }
.service-card h3 { margin-bottom: .8rem; font-size: 1.28rem; }
.service-card p { margin-bottom: 0; font-size: .92rem; }
.delivery-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3rem; counter-reset: delivery; }
.delivery-item { position: relative; padding: 1.4rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .22); counter-increment: delivery; }
.delivery-item::before { content: "0" counter(delivery); display: block; margin-bottom: 1rem; color: var(--orange-500); font-size: 1.5rem; font-weight: 900; }
.delivery-item:not(:last-child)::after { content: "→"; position: absolute; right: -.4rem; top: 1.2rem; color: rgba(255, 255, 255, .34); }
.delivery-item span { color: rgba(255, 255, 255, .76); font-size: .88rem; font-weight: 700; }

/* Gallery and lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 115px; gap: .75rem; }
.gallery-item { position: relative; grid-column: span 4; grid-row: span 3; overflow: hidden; border: 0; border-radius: var(--radius-md); background: var(--navy-900); cursor: zoom-in; }
.gallery-item:nth-child(7n + 1), .gallery-item:nth-child(7n + 5) { grid-column: span 6; grid-row: span 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2, .8, .2, 1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 3.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(6, 23, 32, .88)); color: var(--white); font-size: .86rem; font-weight: 800; text-align: left; }
.lightbox { position: fixed; z-index: 4000; inset: 0; display: none; place-items: center; padding: 1rem; background: rgba(3, 13, 18, .94); }
.lightbox.is-open { display: grid; }
.lightbox-figure { max-width: min(1100px, 100%); margin: 0; }
.lightbox-image { max-width: 100%; max-height: 78vh; margin: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-caption { margin: .75rem 3rem 0; color: rgba(255, 255, 255, .76); text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; }
.lightbox-close { right: 1.25rem; top: 1.25rem; }
.lightbox-nav--prev { left: 1.25rem; }
.lightbox-nav--next { right: 1.25rem; }

/* Project detail */
.project-hero { position: relative; min-height: 620px; display: grid; align-items: end; overflow: hidden; background: var(--navy-950); color: var(--white); }
.project-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 23, 32, .16), rgba(6, 23, 32, .95)); }
.project-hero-content { position: relative; z-index: 1; padding: 8rem 0 4rem; }
.project-hero h1 { max-width: 15ch; margin-bottom: 1.1rem; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.project-hero .project-category { position: static; display: inline-flex; margin-bottom: 1.25rem; }
.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.project-fact { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.project-fact small { display: block; margin-bottom: .45rem; color: var(--orange-500); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.project-fact span { color: rgba(255, 255, 255, .86); font-size: .92rem; font-weight: 700; }
.project-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 7vw, 6rem); }
.project-scope h2, .project-metrics h2 { margin-bottom: 1.4rem; font-size: clamp(2rem, 3vw, 3rem); }
.project-scope p { font-size: 1.1rem; }
.source-note { padding: 1rem 1.1rem; border-left: 4px solid var(--orange-500); background: var(--sand-100); color: var(--muted); font-size: .85rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.metric-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.metric-card strong { display: block; margin-bottom: .45rem; color: var(--orange-600); font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.045em; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); }

/* Contact and forms */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--navy-950); color: var(--white); }
.contact-card h2 { font-size: 2rem; }
.contact-card dl { margin: 2rem 0; }
.contact-card dt { margin-top: 1.25rem; color: var(--orange-500); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-card dd { margin: .3rem 0 0; color: rgba(255, 255, 255, .82); }
.contact-card .button { margin-top: .75rem; }
.contact-form { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.contact-form h2 { font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .82rem; font-weight: 800; }
.field input, .field textarea { width: 100%; min-height: 49px; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); color: var(--ink); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 142, 184, .13); }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; margin: 1rem 0; }
.checkbox-field input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--orange-600); }
.checkbox-field label { color: var(--muted); font-size: .82rem; }
.form-help, .form-status { margin-top: .8rem; font-size: .78rem; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }

/* Webmail */
.webmail-shell { display: grid; grid-template-columns: 1fr .8fr; gap: 1.25rem; }
.secure-access { padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--navy-950); color: var(--white); }
.secure-access .security-symbol { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 2rem; border-radius: 50%; background: rgba(238, 148, 21, .14); color: var(--orange-500); font-size: 2rem; }
.secure-access h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.secure-access p { max-width: 620px; color: rgba(255, 255, 255, .72); }
.webmail-help { padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.webmail-help ol { padding-left: 1.3rem; color: var(--muted); }
.webmail-help li { margin-bottom: 1rem; padding-left: .35rem; }
.warning-box { margin-top: 1.5rem; padding: 1rem; border-left: 4px solid var(--orange-500); background: var(--sand-100); color: var(--ink); font-size: .86rem; font-weight: 800; }

/* Privacy */
.prose { max-width: 840px; }
.prose h2 { margin: 2.7rem 0 .9rem; font-size: 1.75rem; }
.prose p { font-size: 1.03rem; }
.prose .updated { color: var(--blue-700); font-size: .85rem; font-weight: 800; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--white); }
.footer-main { padding: 4.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr .9fr .8fr; gap: 2.5rem; }
.footer-brand { margin-bottom: 1.2rem; }
.footer-brand .brand-mark img { filter: brightness(0) invert(1); }
.footer-brand .brand-wordmark span { color: rgba(255, 255, 255, .52); }
.footer-about p { max-width: 410px; color: rgba(255, 255, 255, .62); font-size: .9rem; }
.footer-title { margin-bottom: 1.2rem; color: var(--orange-500); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: .65rem; }
.footer-links a { color: rgba(255, 255, 255, .68); font-size: .87rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact { color: rgba(255, 255, 255, .68); font-size: .87rem; }
.footer-contact address { font-style: normal; }
.footer-bottom { padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: rgba(255, 255, 255, .5); font-size: .75rem; }
.alpha-credit a { color: var(--white); font-weight: 800; }
.alpha-credit a:hover { color: var(--orange-500); }

.back-to-top { position: fixed; z-index: 800; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--orange-500); color: var(--navy-950); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(1rem); transition: all var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .site-nav { gap: .55rem; }
  .nav-link { font-size: .82rem; }
  .category-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid rgba(18, 55, 70, .12); }
  .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .utility-inner { grid-template-columns: 1fr auto; }
  .announcement { grid-column: 1 / -1; grid-row: 2; min-height: 30px; justify-content: flex-start; border-top: 1px solid rgba(255, 255, 255, .08); }
  .utility-actions .utility-webmail { display: none; }
  .header-inner { min-height: var(--header-height); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; z-index: 1500; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-height)); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 1.25rem; background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform var(--ease), visibility var(--ease); }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-link { padding: 1rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .hero { min-height: 720px; }
  .hero::before { background: linear-gradient(90deg, rgba(6, 23, 32, .98), rgba(6, 23, 32, .68)), url("../images/projects/moda-center.webp") 58% center/cover no-repeat; }
  .hero-content { padding: 5rem 0 7rem; }
  .hero-badge { left: 1rem; right: auto; }
  .section-heading-row { display: block; }
  .section-heading-row .section-lead { margin-bottom: 1.5rem; }
  .split, .history-grid, .project-layout, .contact-grid, .webmail-shell { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: initial; }
  .purpose-card { position: static; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .timeline::before { display: none; }
  .delivery-list { grid-template-columns: 1fr; }
  .delivery-item:not(:last-child)::after { display: none; }
  .gallery-item, .gallery-item:nth-child(7n + 1), .gallery-item:nth-child(7n + 5) { grid-column: span 6; grid-row: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .utility-inner { gap: .5rem; }
  .brasilia-clock { font-size: .7rem; }
  .announcement-label { display: none; }
  .brand-wordmark strong { font-size: .9rem; }
  .brand-wordmark span { font-size: .57rem; }
  .brand-mark { width: 43px; height: 40px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-actions .button { width: 100%; }
  .stats-grid, .category-grid, .services-grid, .project-grid, .values-grid, .method-grid, .metric-grid, .form-grid, .project-facts { grid-template-columns: 1fr; }
  .stat { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(18, 55, 70, .12); }
  .stat:last-child { border-bottom: 0; }
  .search-row { grid-template-columns: 1fr; }
  .result-count { padding-inline: .3rem; }
  .portfolio-toolbar { margin-top: -1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .gallery-item, .gallery-item:nth-child(7n + 1), .gallery-item:nth-child(7n + 5) { grid-column: auto; grid-row: auto; }
  .lightbox-nav { top: auto; bottom: 1rem; }
  .project-hero { min-height: 680px; }
  .project-gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom-inner { display: grid; }
}

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

@media print {
  .utility-bar, .site-header, .back-to-top, .hero-actions, .site-footer, .portfolio-toolbar { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 2rem 0; }
  .page-hero { background: #fff; color: #000; }
  .page-hero p { color: #333; }
  .project-card { break-inside: avoid; }
}
