:root {
  --ink: #07111d;
  --ink-2: #0c1a29;
  --steel: #b8c4cf;
  --paper: #f4f6f7;
  --white: #ffffff;
  --orange: #ff7417;
  --orange-2: #ff9b3d;
  --line: rgba(13, 31, 48, .13);
  --muted: #5e6973;
  --wrap: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--orange); color: #111; padding: 10px 16px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 84px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .25s ease, height .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { height: 72px; background: rgba(6,16,27,.94); backdrop-filter: blur(16px); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.header-inner { width: var(--wrap); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 44px; color: var(--ink); background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 76%, 70% 100%, 0 100%); font-weight: 950; font-size: 25px; line-height: 1; }
.brand-copy { display: grid; line-height: 1; letter-spacing: .09em; }
.brand-copy strong { font-size: 18px; font-weight: 900; }
.brand-copy small { margin-top: 6px; font-size: 9px; color: #b9c5d0; letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
.main-nav > a:not(.nav-cta) { color: #d5dee7; position: relative; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; height: 2px; background: var(--orange); inset: auto 100% -8px 0; transition: right .25s; }
.main-nav > a:hover::after, .main-nav > a:focus-visible::after { right: 0; }
.nav-cta { padding: 11px 17px; border: 1px solid rgba(255,255,255,.28); display: inline-flex; gap: 16px; align-items: center; }
.nav-cta:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: white; padding: 11px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 780px; height: 100svh; max-height: 980px; color: var(--white); background: var(--ink); display: flex; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,12,21,.98) 0%, rgba(5,14,24,.91) 28%, rgba(5,14,24,.46) 57%, rgba(5,14,24,.14) 100%), linear-gradient(0deg, rgba(3,10,18,.75) 0%, transparent 42%); }
.hero-grid, .contact-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-content { position: relative; z-index: 2; padding-top: 90px; display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 80px; align-items: end; }
.hero-copy { max-width: 790px; }
.eyebrow { margin: 0 0 22px; color: #50606e; font-size: 12px; line-height: 1.4; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.eyebrow.light { color: #aebcc8; }
.hero .eyebrow { color: #d2dce4; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(54px, 6vw, 92px); line-height: .98; letter-spacing: -.055em; font-weight: 820; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: #c6d1da; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 54px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; font-weight: 780; font-size: 14px; transition: transform .2s, background .2s, color .2s, border .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: var(--ink); }
.button-primary:hover { background: var(--orange-2); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.3); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.08); }
.hero-proof { align-self: center; border-left: 1px solid rgba(255,255,255,.2); }
.proof-item { padding: 17px 0 17px 24px; border-bottom: 1px solid rgba(255,255,255,.15); }
.proof-item:first-child { padding-top: 0; }
.proof-item:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-item strong { display: block; color: var(--orange); font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.proof-item span { display: block; margin-top: 8px; color: #acbac5; font-size: 12px; line-height: 1.4; }
.scroll-cue { position: absolute; left: 24px; bottom: 32px; z-index: 3; display: grid; gap: 10px; color: #a9b5c0; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 50px; margin: auto; background: linear-gradient(var(--orange) 50%, rgba(255,255,255,.2) 50%); }

.signal-strip { background: var(--orange); color: var(--ink); overflow: hidden; }
.signal-track { min-height: 66px; width: var(--wrap); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; white-space: nowrap; }
.signal-track i { width: 5px; height: 5px; background: var(--ink); transform: rotate(45deg); flex: 0 0 5px; }

.section { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.section h2, .contact h2 { margin: 0; font-size: clamp(40px, 4.5vw, 68px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 18px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution-card { position: relative; min-height: 330px; padding: 34px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, background .25s; }
.solution-card:hover { z-index: 2; transform: translateY(-5px); box-shadow: 0 20px 55px rgba(4,17,30,.12); }
.solution-card.featured { background: var(--ink); color: white; grid-row: span 2; min-height: 661px; display: flex; flex-direction: column; justify-content: flex-end; }
.solution-card.featured::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 42px 42px; }
.solution-card.featured::after { content: ""; position: absolute; width: 250px; height: 250px; border: 2px solid var(--orange); border-radius: 50%; top: 80px; right: -105px; box-shadow: 0 0 0 35px rgba(255,116,23,.08), 0 0 0 70px rgba(255,116,23,.04); }
.card-number { position: absolute; top: 26px; right: 28px; color: #86919a; font-size: 12px; font-weight: 800; }
.featured .card-number { color: #83909c; }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 42px; color: var(--orange); border: 1px solid #ccd3d8; font-size: 25px; font-weight: 300; }
.featured .icon-box { position: absolute; top: 32px; left: 34px; border-color: rgba(255,255,255,.25); }
.solution-card h3 { position: relative; margin: 0 0 14px; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.solution-card p { position: relative; margin: 0; color: var(--muted); line-height: 1.65; }
.featured p { color: #b8c5cf; }
.solution-card ul { position: relative; list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.solution-card li { padding: 6px 0; color: #dce4ea; font-size: 14px; }
.solution-card li::before { content: "+"; color: var(--orange); margin-right: 10px; }

.projects { background: var(--ink); color: white; position: relative; }
.projects::before { content: "PROJETOS / ENGENHARIA"; position: absolute; right: -15px; top: 43px; color: rgba(255,255,255,.025); font-size: 132px; line-height: 1; font-weight: 950; letter-spacing: -.06em; white-space: nowrap; }
.projects-intro { max-width: 850px; margin-bottom: 58px; position: relative; }
.projects-intro > p:last-child { max-width: 680px; color: #aebbc6; font-size: 18px; margin: 25px 0 0; }
.project-showcase { display: grid; grid-template-columns: 1.07fr .93fr; border: 1px solid rgba(255,255,255,.13); }
.project-main { border-right: 1px solid rgba(255,255,255,.13); }
.project-visual { height: 380px; position: relative; overflow: hidden; background: radial-gradient(circle at 68% 45%, rgba(255,116,23,.2), transparent 28%), linear-gradient(145deg, #132638, #07111d 63%); }
.project-visual::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 36px 36px; }
.project-visual::after { content: ""; position: absolute; width: 190px; height: 190px; left: 55%; top: 23%; border: 1px solid rgba(255,116,23,.45); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,116,23,.035), 0 0 0 50px rgba(255,116,23,.025); }
.machine-line { position: absolute; height: 24px; background: #80909d; left: 5%; right: 5%; bottom: 66px; border-top: 4px solid #c0cad1; box-shadow: 0 20px 0 -8px #526474; transform: skewX(-18deg); }
.machine-arm { position: absolute; z-index: 2; background: linear-gradient(90deg, #d9e1e6, #728492); height: 23px; border-radius: 14px; transform-origin: left center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.arm-a { width: 145px; left: 47%; top: 39%; transform: rotate(58deg); }
.arm-b { width: 120px; left: 58%; top: 62%; transform: rotate(-22deg); }
.machine-head { position: absolute; z-index: 3; width: 56px; height: 44px; left: 65%; bottom: 87px; background: var(--orange); border: 7px solid #cbd5dc; border-radius: 5px; }
.machine-target { position: absolute; z-index: 3; width: 72px; height: 35px; left: 61%; bottom: 40px; border: 2px solid var(--orange); }
.coordinate { position: absolute; z-index: 3; color: #aebbc5; font-family: Consolas, monospace; font-size: 11px; letter-spacing: .12em; }
.coordinate.x { left: 24px; top: 22px; }
.coordinate.y { right: 24px; bottom: 20px; }
.project-content { padding: 34px 38px 40px; }
.project-tag { color: var(--orange); font-size: 11px; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; }
.project-content h3 { margin: 13px 0 12px; font-size: 28px; line-height: 1.2; }
.project-content p { margin: 0; color: #aebbc6; }
.project-list { display: grid; }
.project-row { padding: 31px 29px; display: grid; grid-template-columns: 38px 1fr 28px; gap: 16px; align-items: start; border-bottom: 1px solid rgba(255,255,255,.13); transition: background .22s; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: rgba(255,255,255,.045); }
.project-row > span { color: var(--orange); font-size: 11px; font-family: Consolas, monospace; }
.project-row h3 { margin: 0 0 7px; font-size: 19px; }
.project-row p { margin: 0; color: #9caab6; font-size: 14px; line-height: 1.5; }
.project-row i { font-style: normal; color: #7c8993; }

.engineering { background: #fff; }
.engineering-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.engineering-copy { position: sticky; top: 120px; align-self: start; }
.engineering-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 26px 0; }
.text-link { display: inline-flex; gap: 32px; align-items: center; color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--orange); padding-bottom: 7px; }
.process-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { min-height: 170px; padding: 32px 0; display: grid; grid-template-columns: 70px 1fr; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--orange); font-family: Consolas, monospace; font-size: 12px; font-weight: 800; }
.process-list strong { font-size: 24px; letter-spacing: -.02em; }
.process-list p { color: var(--muted); margin: 10px 0 0; max-width: 500px; }

.technology-band { background: var(--orange); color: var(--ink); padding: 45px 0 52px; }
.technology-band .wrap > p { margin: 0 0 23px; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(7,17,29,.3); border-left: 1px solid rgba(7,17,29,.3); }
.tech-grid span { padding: 19px; border-right: 1px solid rgba(7,17,29,.3); border-bottom: 1px solid rgba(7,17,29,.3); font-size: 14px; font-weight: 800; }

.company { background: #e9edf0; }
.company-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.company-copy { padding-top: 39px; }
.company-copy > p { margin: 0 0 22px; color: #44515c; font-size: 18px; }
.company-copy > p:first-child { color: var(--ink); font-size: 25px; line-height: 1.4; font-weight: 650; }
.values { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px 24px; }
.values span { font-size: 14px; font-weight: 750; }
.values i { display: inline-block; width: 7px; height: 7px; background: var(--orange); margin-right: 10px; transform: rotate(45deg); }

.contact { position: relative; padding: 110px 0; color: white; background: #0a1b2a; overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 480px; height: 480px; right: -150px; top: -180px; border: 1px solid rgba(255,116,23,.42); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,116,23,.04), 0 0 0 110px rgba(255,116,23,.025); }
.contact-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .85fr; gap: 100px; align-items: center; }
.contact-copy > p:last-child { color: #aebcc8; font-size: 18px; max-width: 650px; margin: 25px 0 0; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions a { min-height: 92px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; transition: transform .2s, background .2s; }
.contact-actions a:hover { transform: translateX(5px); }
.contact-actions span { font-weight: 850; }
.contact-actions small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; }
.contact-actions i { font-style: normal; font-size: 22px; }
.contact-primary { background: var(--orange); color: var(--ink); }
.contact-secondary { color: white; border: 1px solid rgba(255,255,255,.25); }
.contact-secondary:hover { background: rgba(255,255,255,.06); }

.site-footer { background: #050c13; color: #bec8d0; padding: 54px 0 25px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 37px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top > p { color: #8897a3; font-size: 13px; }
.footer-top > a:last-child { font-size: 13px; font-weight: 750; }
.footer-bottom { padding-top: 23px; display: flex; justify-content: space-between; gap: 22px; color: #71808c; font-size: 11px; }
.footer-bottom p { margin: 0; }
.floating-contact { position: fixed; z-index: 90; right: 22px; bottom: 22px; min-height: 50px; padding: 0 19px 0 12px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: var(--orange); box-shadow: 0 12px 32px rgba(0,0,0,.27); font-size: 13px; }
.floating-contact span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(7,17,29,.25); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 4px; }

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

@media (max-width: 1020px) {
  :root { --wrap: min(100% - 36px, 920px); }
  .main-nav { gap: 18px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 50px; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .proof-item { padding: 17px 20px 0 0; border: 0; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card.featured { grid-row: span 1; min-height: 420px; }
  .project-showcase, .engineering-layout, .company-layout, .contact-layout { grid-template-columns: 1fr; }
  .project-main { border: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .engineering-layout, .company-layout, .contact-layout { gap: 58px; }
  .engineering-copy { position: static; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --wrap: calc(100% - 32px); }
  .site-header { height: 72px; }
  .brand-copy strong { font-size: 16px; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { display: grid; position: absolute; inset: 72px 0 auto; padding: 22px 16px 28px; background: rgba(6,16,27,.98); border-top: 1px solid rgba(255,255,255,.12); }
  .main-nav.open a:not(.nav-cta) { display: block; padding: 10px 0; }
  .hero { min-height: 790px; height: auto; padding: 118px 0 80px; }
  .hero-image { object-position: 64% center; opacity: .62; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,12,21,.97), rgba(5,14,24,.76)), linear-gradient(0deg, #07111d 0%, transparent 60%); }
  .hero-content { padding-top: 0; gap: 55px; }
  .hero h1 { font-size: clamp(45px, 13vw, 66px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-proof { gap: 0; }
  .proof-item { padding-right: 12px; }
  .proof-item strong { font-size: 23px; }
  .proof-item span { font-size: 10px; }
  .scroll-cue { display: none; }
  .signal-track { width: max-content; padding: 0 16px; animation: ticker 18s linear infinite; }
  @keyframes ticker { to { transform: translateX(-45%); } }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .section h2, .contact h2 { font-size: clamp(38px, 11vw, 54px); }
  .section-heading > p { font-size: 16px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card, .solution-card.featured { min-height: 330px; }
  .projects::before { display: none; }
  .project-visual { height: 300px; }
  .project-content { padding: 28px 24px 32px; }
  .project-row { padding: 27px 20px; grid-template-columns: 29px 1fr; }
  .project-row i { display: none; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .process-list strong { font-size: 21px; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid span { padding: 16px 12px; font-size: 12px; }
  .company-copy { padding-top: 0; }
  .values { grid-template-columns: 1fr; }
  .contact { padding: 82px 0; }
  .contact-actions a { min-height: 86px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-top > p { margin: 0; }
  .floating-contact { right: 14px; bottom: 14px; }
  .floating-contact strong { display: none; }
  .floating-contact { padding-right: 12px; }
}
