:root {
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --tone: #E9EDF5;
  --ink: #0B1220;
  --muted: #3A4357;
  --line: #DCE2EE;
  --blue: #0D2A52;
  --lime: #1FB3E8;
  --display: 'Outfit', 'Segoe UI', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; max-width: 22ch; }
h3 { font-size: 1.4rem; line-height: 1.25; }
h1, h2 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--surface); }
.muted { color: var(--muted); max-width: 42ch; }
.body-lg { font-size: 1.08rem; color: var(--muted); margin-top: 20px; max-width: 54ch; }
.lead { font-size: 1.12rem; }

@media (prefers-reduced-motion: no-preference) {
  .anim [data-reveal] { opacity: 0; }
  /* Above-the-fold text animates with CSS so it never waits for scripts */
  .rise { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); }
.logo-mark { height: 46px; width: auto; flex: none; }
.wordmark { font-family: var(--display); font-size: 1.15rem; letter-spacing: .28em; color: var(--ink); display: inline-flex; align-items: baseline; }
.wm-sub { display: block; font: 600 .6rem/1 var(--body); letter-spacing: .34em; color: var(--muted); margin-top: 6px; }
.wordmark-box { display: flex; flex-direction: column; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 .92rem/1 var(--body); border: 0; border-radius: 2px; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .85rem; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.02rem; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #5cc8ef; }
.btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.link-arrow { display: inline-flex; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--blue); }
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; background: var(--surface); }
.header-inner { display: flex; align-items: center; height: var(--header); gap: 24px; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: .92rem; color: var(--muted); }
.nav a, .menu a { transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.nav a[aria-current] { font-weight: 600; }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; background: var(--tone); font-weight: 600; font-size: .88rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 12px); display: flex; flex-direction: column; min-width: 220px; background: var(--surface); box-shadow: 0 12px 32px rgba(11, 18, 32, .16); } /* taste-skill-ignore: real overlay menu */
.menu nav a { padding: 14px 18px; }
.menu nav a:hover { background: var(--tone); }
.menu nav a[aria-current] { color: var(--blue); font-weight: 600; }
.menu nav .menu-cta { background: var(--ink); color: #fff; font-weight: 600; }

/* Photo heroes */
.photo-hero, .page-hero, .cta-band { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.photo-hero > img, .page-hero > img, .cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-hero::after, .page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 18, 32, .75) 0%, transparent 65%), linear-gradient(90deg, rgba(11, 18, 32, .9) 0%, rgba(11, 18, 32, .65) 50%, rgba(11, 18, 32, .3) 100%); } /* taste-skill-ignore: neutral scrim over photo */
.photo-hero { min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header) + 64px) 0 clamp(64px, 10vh, 120px); }
.photo-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.08; max-width: 14ch; }
.photo-hero .lead { margin-top: 24px; max-width: 46ch; color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.page-hero { min-height: 62vh; display: flex; align-items: flex-end; padding: calc(var(--header) + 64px) 0 64px; }
.page-hero-sm { min-height: 48vh; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); line-height: 1.15; max-width: 18ch; }
.crumb { font-size: .9rem; color: rgba(255, 255, 255, .8); margin-bottom: 20px; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
.photo-frame { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tone); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-frame:hover img { transform: scale(1.03); }

/* Section head */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head .link-arrow { margin-top: 0; }

/* Service cards (home) */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: block; }
.service-card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; margin-bottom: 20px; transition: filter .4s, transform .6s var(--ease); }
.service-card h3 { margin-bottom: 8px; transition: color .2s; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card:hover h3 { color: var(--blue); }
.service-card:hover img { filter: saturate(1.15) contrast(1.05); transform: translateY(-4px); }

/* Method (3D) */
.method { background: var(--blue); color: #fff; overflow: hidden; }
.method-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; min-height: 600px; }
.method-photo { margin: 64px 0; }
.method-canvas { position: relative; height: 100%; min-height: 520px; cursor: grab; touch-action: pan-y; }
.method-canvas:active { cursor: grabbing; }
#truss-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.method-text { padding: 64px 0; }
.method-text .body-lg { color: rgba(255, 255, 255, .9); }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { background: var(--surface); overflow: hidden; transition: transform .4s var(--ease); }
.section-alt .project { background: var(--bg); }
.project[hidden] { display: none; }
.project:hover { transform: translateY(-4px); }
.project img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.project-info { padding: 22px 24px 26px; }
.project-info h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.project-info p { color: var(--muted); font-size: .94rem; }
.tag { font: 600 .82rem/1 var(--body); color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { font: 500 .92rem/1 var(--body); padding: 13px 18px; background: var(--tone); color: var(--ink); border: 0; border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.filters button:hover { background: #D8DEEC; }
.filters button:active { transform: scale(.97); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Services page */
.services-list { display: grid; gap: clamp(72px, 10vw, 120px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.service-row:nth-child(even) > figure { order: 2; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--lime); border: 2px solid var(--blue); }

/* Values & timeline */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.value { padding: 32px 28px; background: var(--bg); }
.value h3 { margin-bottom: 12px; }
.value p { color: var(--muted); font-size: .96rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 4px; width: 16px; height: 16px; background: var(--lime); border: 2px solid var(--blue); }
.timeline li::after { content: ''; position: absolute; left: 2px; top: 24px; bottom: 4px; width: 2px; background: var(--tone); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font: 400 1.5rem/1.2 var(--display); color: var(--blue); margin-bottom: 8px; }
.timeline p { color: var(--muted); }

/* Numbers */
.numbers { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 104px) 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat strong { display: block; font: 400 clamp(2rem, 4.4vw, 3.4rem)/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 14px; color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* Process */
.process-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.process-intro { position: sticky; top: calc(var(--header) + 48px); align-self: start; }
.process-intro .muted { margin-top: 20px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; }
.process-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--tone); }
.process-line span { display: block; height: 100%; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 0 0 52px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: -40px; top: 4px; width: 16px; height: 16px; background: var(--lime); border: 2px solid var(--blue); }
.step b { display: block; font: 400 1.3rem/1.3 var(--display); margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 46ch; }

/* CTA band */
.cta-band { padding: clamp(96px, 14vw, 160px) 0; text-align: center; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(13, 42, 82, .86); mix-blend-mode: multiply; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11, 18, 32, .35); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-inner h2 { max-width: 20ch; font-size: clamp(1.8rem, 4.2vw, 3.2rem); }
.cta-inner .lead { color: rgba(255, 255, 255, .9); margin-bottom: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: .94rem; }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; width: 100%; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: .9rem; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 28px; background: var(--surface); }
.contact-card h2 { font-size: 1rem; line-height: 1.35; margin-bottom: 12px; color: var(--blue); }
.contact-card p { color: var(--muted); }
.contact-card p + p { margin-top: 10px; }
.contact-card a { color: var(--ink); font-weight: 500; }
.contact-card a:hover { color: var(--blue); }
.next-steps { margin-top: 0; }
.next-steps ol { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.next-steps li { padding: 28px; background: var(--bg); }
.next-steps li b { display: block; font: 400 1.2rem/1.3 var(--display); margin-bottom: 10px; }
.next-steps li p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer-title { font: 600 .95rem/1.3 var(--body); color: var(--ink); margin-bottom: 14px; }
.footer-note { margin-top: 16px; color: var(--muted); }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover { color: var(--blue); }
.footer-grid address { color: var(--muted); line-height: 1.8; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; color: var(--muted); font-size: .86rem; }

@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .method-canvas { min-height: 380px; order: 2; }
  .method-text { padding: 72px 0 0; }
  .next-steps ol { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .split, .service-row, .process-grid, .contact-grid, .values { grid-template-columns: 1fr; }
  .service-row:nth-child(even) > figure { order: 0; }
  .process-intro { position: static; }
  .section-head { flex-direction: column; align-items: start; }
  .project-grid, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .photo-hero::after, .page-hero::after { background: linear-gradient(0deg, rgba(11, 18, 32, .92) 15%, rgba(11, 18, 32, .5) 100%); } /* taste-skill-ignore: neutral scrim over photo */
  .wordmark { font-size: 1rem; letter-spacing: .22em; }
}
.site-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.site-strip figure { margin: 0; overflow: hidden; }
.site-strip img { width: 100%; height: clamp(220px, 32vw, 460px); object-fit: cover; transition: transform 1.2s var(--ease); }
.site-strip figure:hover img { transform: scale(1.04); }
.next-steps li { padding: 0 0 28px; }
.next-steps li img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: 22px; }
.next-steps li b, .next-steps li p { padding: 0 24px; }
@media (max-width: 760px) { .site-strip { grid-template-columns: 1fr 1fr; } .site-strip figure:first-child { grid-column: 1 / -1; } }

/* Hero com prédio 3D */
.hero-3d { background-color: #0D2A52; }
.hero-canvas { position: absolute; inset: var(--header) 0 0 0; z-index: -2; cursor: grab; touch-action: pan-y; }
.hero-canvas:active { cursor: grabbing; }
.hero-3d h1 { max-width: 12ch; }
.hero-3d::after { content: none; }
.hero-3d .photo-hero-inner { pointer-events: none; }
.hero-3d .photo-hero-inner a { pointer-events: auto; }
.spda-legend { position: absolute; right: clamp(16px, 4vw, 56px); top: calc(var(--header) + 28px); list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font: 500 .88rem/1 var(--body); color: rgba(255, 255, 255, .6); pointer-events: none; }
.spda-legend li { display: flex; align-items: center; gap: 9px; transition: color .3s; }
.spda-legend li::before { content: ''; width: 10px; height: 10px; background: rgba(255, 255, 255, .28); transition: background-color .25s, transform .25s; }
.spda-legend li.on { color: #fff; }
.spda-legend li.on::before { background: var(--lime); transform: scale(1.35); }

/* Para-raio: foto real sangrando + caminho da descarga */
.strike { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--blue); color: #fff; }
.strike-photo { position: relative; margin: 0; overflow: hidden; min-height: 760px; }
.strike-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 35%; }
.strike-text { align-self: center; max-width: 680px; padding: clamp(72px, 9vw, 128px) clamp(24px, 6vw, 96px); }
.strike-text .body-lg { color: rgba(255, 255, 255, .86); }
.strike-text h2 { max-width: 16ch; }
.spda-path { position: relative; list-style: none; margin: 44px 0 44px; padding: 0 0 0 44px; display: grid; gap: 30px; }
.spda-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .18); }
.spda-line span { display: block; height: 100%; background: var(--lime); transform-origin: top; transform: scaleY(0); }
.spda-path li:not(.spda-line) { position: relative; }
.spda-path li:not(.spda-line)::before { content: ''; position: absolute; left: -44px; top: 5px; width: 16px; height: 16px; background: var(--lime); border: 2px solid #fff; }
.spda-path b { display: block; font: 400 1.25rem/1.3 var(--display); margin-bottom: 8px; }
.spda-path p { color: rgba(255, 255, 255, .8); max-width: 46ch; }

/* Motion helpers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.cta-band > img { top: -8%; height: 116%; }
@media (prefers-reduced-motion: no-preference) {
  [data-words]:not([data-done]) .w > span { transform: translateY(110%); }
  .anim :is(.photo-frame, .service-card img, .project img, .site-strip figure, .strike-photo, .next-steps li img) { clip-path: inset(100% 0% 0% 0%); }
}

@media (max-width: 1000px) {
  .hero-3d { display: block; min-height: 0; padding: var(--header) 0 64px; }
  .hero-canvas { position: relative; inset: auto; z-index: 0; height: min(54svh, 520px); }
  .hero-3d .photo-hero-inner { margin-top: 28px; }
  .spda-legend { top: calc(var(--header) + 16px); left: 16px; right: auto; bottom: auto; gap: 16px; font-size: .8rem; }
  .strike { grid-template-columns: 1fr; }
  .strike-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .strike-photo img { object-position: 50% 60%; }
}

/* ===== Elementos refinados (MD) ===== */
:root { --r: 14px; --halo: rgba(31, 179, 232, .18); }
.btn { border-radius: 10px; }
.filters button { border-radius: 999px; padding: 12px 20px; }
.photo-frame, .service-card img, .project, .value, .contact-card, .next-steps li, .site-strip figure, .form input, .form select, .form textarea { border-radius: var(--r); }
.project { overflow: hidden; }
.next-steps li { overflow: hidden; }
.menu summary, .menu nav { border-radius: 10px; }

/* Marcadores de etapa: anel ciano com halo, em vez de quadrado */
.step::before, .timeline li::before, .spda-path li:not(.spda-line)::before {
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--lime);
  background: var(--bg); outline: 5px solid var(--halo);
}
.spda-path li:not(.spda-line)::before { background: var(--blue); top: 6px; }
.step::before { left: -39px; top: 6px; }
.timeline li::before { left: -4px; top: 6px; }
.process-line, .spda-line, .timeline li::after { width: 2px; border-radius: 2px; }
.process-line span, .spda-line span { border-radius: 2px; }

/* Lista de entregas: check em círculo */
.checklist li { padding-left: 34px; }
.checklist li::before { width: 22px; height: 22px; top: .05em; border: 0; border-radius: 50%; background: var(--halo); }
.checklist li::after { content: ''; position: absolute; left: 8px; top: calc(.05em + 5px); width: 5px; height: 10px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Legenda do 3D: pílulas com ponto */
.spda-legend { gap: 8px; }
.spda-legend li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); transition: background-color .3s, color .3s; }
.spda-legend li::before { width: 8px; height: 8px; border-radius: 50%; }
.spda-legend li.on { background: var(--halo); }
.spda-legend li.on::before { transform: none; outline: 3px solid rgba(31, 179, 232, .35); }
