/* Fundação: fontes locais, tokens, base, acessibilidade, botões e links.
   Camadas: styles.css (fundação) -> refinement.css (direção 02) -> editorial.css (direção final).
   A ordem de carregamento é a ordem da cascata: não mova regras entre arquivos sem conferir. */

/* Fontes servidas pelo próprio site (SIL OFL 1.1, licenças em assets/fonts/). */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/dm-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/barlow-condensed-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fallbacks com métricas ajustadas: a troca de fonte não desloca o layout. */
@font-face { font-family: 'DM Sans Fallback'; font-weight: 400 700; src: local('Arial'), local('ArialMT'); size-adjust: 103.69%; ascent-override: 95.67%; descent-override: 29.9%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Condensed Fallback'; font-weight: 400 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); size-adjust: 65.11%; ascent-override: 153.6%; descent-override: 30.72%; line-gap-override: 0%; }

:root {
  --bg: #080808; --panel: #0e0e0f; --text: #f4f4f3; --muted: #a4a4aa; --line: #272729;
  --void: #030303; --accent: #9797a1; --hairline: #ffffff14; --focus: #f4f4f3;
  --font: 'DM Sans', 'DM Sans Fallback', Arial, sans-serif;
  --display: 'Barlow Condensed', 'Barlow Condensed Fallback', 'Arial Narrow', Arial, sans-serif;
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-1: .16s; --dur-2: .3s; --dur-3: .6s;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: #e9e9ee; color: #08080a; }
img, svg, picture { max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1280px,calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 18px; border-radius: 3px; background: var(--text); color: #08080a; font-size: 14px; font-weight: 500; transform: translateY(-160%); transition: transform var(--dur-2) var(--ease-out); }
.skip-link:focus { transform: none; }
.header { height: 100px; padding: 0 56px; display: flex; align-items: center; justify-content: space-between; position: absolute; top: 0; left: 0; right: 0; z-index: 10; border-bottom: 1px solid #ffffff10; }
.brand { display: flex; align-items: center; gap: 15px; font-size: 14px; line-height: 1.3; font-weight: 400; letter-spacing: .1px; }
.header nav { display: flex; gap: 38px; align-items: center; font-size: 14px; }
.header nav>a { transition: color var(--dur-1) var(--ease-out); }
.header nav>a:hover { color: #a3a3a3; }
.nav-cta { padding: 12px 20px; border: 1px solid #505052; border-radius: 6px; display: flex; gap: 24px; }
.menu-toggle { display: none; }
.hero { position: relative; min-height: 830px; overflow: hidden; background: var(--void); display: flex; align-items: center; padding: 160px 0 150px; }
.hero-space { position: absolute; inset: 0; background: url('assets/event-horizon-minimal.webp') center center/cover no-repeat; opacity: .85; animation: space-drift 24s ease-in-out infinite alternate; transform-origin: 73% 48%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#030303 0%,#030303d9 26%,#03030360 49%,transparent 72%),linear-gradient(0deg,#080808 0%,transparent 19%,transparent 82%,#03030366); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { font-size: 12px; letter-spacing: 2.4px; font-weight: 600; line-height: 1.6; margin: 0 0 27px; color: #c3c3c8; }
.hero-intro { display: flex; align-items: center; gap: 12px; animation: arrive .9s var(--ease-out-expo) both; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(56px,6.7vw,98px); line-height: 1.065; letter-spacing: -5px; margin: 0 0 30px; }
h1 em, h2 em { font-style: normal; color: #aaaab2; }
.hero-copy { font-size: 18px; line-height: 1.7; color: #b0b0b7; max-width: 410px; margin-bottom: 32px; animation: arrive 1.1s .32s var(--ease-out-expo) both; }
.hero-actions { display: flex; align-items: center; gap: 30px; animation: arrive 1.1s .42s var(--ease-out-expo) both; }

/* Botões: primário (claro), secundário (contorno), terciário (.text-link). */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 27px; min-height: 56px; padding: 15px 25px; border-radius: 3px; border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .1px; text-align: center; transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.button > [aria-hidden="true"] { flex: none; font-size: 20px; line-height: 1; transition: transform var(--dur-2) var(--ease-out); }
.button:hover > [aria-hidden="true"] { transform: translate(2px,-2px); }
.button-light { background: linear-gradient(175deg,#fff,#dededf); border-color: #fff; color: #111; box-shadow: inset 0 -2px 2px #0002,0 0 0 5px #ffffff04; }
.button-light:hover { transform: translateY(-3px); box-shadow: inset 0 -2px 2px #0001,0 0 0 5px #ffffff0a,0 10px 40px #ffffff1c; }
.button-light:active { transform: translateY(-1px); box-shadow: inset 0 -1px 2px #0002,0 0 0 4px #ffffff08,0 4px 18px #ffffff14; transition-duration: var(--dur-1); }
.button-outline { background: transparent; border-color: #5c5c64; color: var(--text); box-shadow: none; }
.button-outline:hover { background: #ffffff0a; border-color: var(--text); }
.button-outline:active { background: #ffffff05; transition-duration: var(--dur-1); }
.button:disabled { cursor: progress; opacity: .6; transform: none; box-shadow: none; }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 14px; border: 0; padding: 0; background: none; color: inherit; }
.text-link::after, .contact-alternative::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; opacity: .5; transform: scaleX(0); transform-origin: right center; transition: transform var(--dur-3) var(--ease-out-expo); }
.text-link:hover::after, .contact-alternative:hover::after { transform: scaleX(1); transform-origin: left center; }
.text-link > [aria-hidden="true"] { transition: transform var(--dur-2) var(--ease-out); }
.text-link:hover > [aria-hidden="true"] { transform: translate(3px,-3px); }

.hero-bottom { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; color: #8f8f96; font-size: 10px; letter-spacing: 1.4px; }
.hero-bottom a { display: flex; flex: none; align-items: center; gap: 16px; min-height: 44px; font-size: 12px; letter-spacing: .2px; white-space: nowrap; transition: color var(--dur-1) var(--ease-out); }
.hero-bottom a:hover { color: var(--text); }
.scroll-line { display: block; width: 1px; height: 28px; background: linear-gradient(#eee,#555); animation: scroll-pulse 2.4s var(--ease-out) infinite; }
.expertise-strip { border-block: 1px solid var(--line); padding: 26px 0; }
.expertise-strip>.container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.expertise-strip>.container>span { font-size: 12px; color: #888890; }
.expertise-strip .container>div { display: flex; gap: 32px; align-items: center; color: #c2c2c8; font-family: var(--display); font-size: 16px; font-weight: 500; }
.expertise-strip i { font-size: 11px; color: #686870; font-style: normal; }
.section { padding-block: 112px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-bottom: 50px; }
.section-heading .eyebrow { margin-bottom: 22px; }
h2 { font-size: clamp(34px,3.5vw,50px); line-height: 1.2; letter-spacing: -1.8px; margin-bottom: 0; }
h2 span { color: #929299; }
.section-heading>p { max-width: 340px; margin: 0 0 5px; color: var(--muted); line-height: 1.8; }
.solutions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.solution { position: relative; padding: 30px 30px 0; background: linear-gradient(135deg,#121213,#0b0b0c); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; transition: border-color .35s,background .35s; overflow: hidden; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.card-top svg { width: 31px; height: 31px; color: #c8c8cd; }
.card-top>span { font-size: 12px; font-family: monospace; color: #81818a; }
.solution h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.8px; margin-bottom: 20px; }
.solution p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 26px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; margin-bottom: 35px; }
.tags span { font-size: 11px; color: #b3b3b9; border: 1px solid #343438; padding: 4px 8px; border-radius: 4px; }
.card-link { border: 0; border-top: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; text-align: left; align-items: center; padding: 21px 0; width: 100%; font-size: 13px; }
.card-link span { font-size: 22px; transition: transform var(--dur-2) var(--ease-out); }
.card-link:hover span { transform: translate(3px,-3px); }
.method-section { border-block: 1px solid var(--line); background: #0b0b0c; padding-block: 105px; }
.method-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 110px; }
.method-title>p:not(.eyebrow) { color: var(--muted); max-width: 360px; margin: 24px 0 30px; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; gap: 32px; border-bottom: 1px solid var(--line); padding: 30px 0; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border: 0; padding-bottom: 0; }
.step-no { font-size: 12px; font-family: monospace; color: #85858d; padding-top: 6px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -.4px; }
.steps p { font-size: 16px; color: var(--muted); margin: 0; max-width: 440px; }
.about-layout { display: grid; grid-template-columns: .9fr 1fr; gap: 100px; align-items: center; }
.portrait-wrap { position: relative; height: 610px; overflow: hidden; border-radius: 7px; }
.portrait-wrap picture { display: block; height: 100%; }
.portrait-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transition: transform 1s var(--ease-out); }
.portrait-wrap:after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#050505d9); }
.portrait-label { position: absolute; z-index: 1; bottom: 29px; left: 30px; display: flex; flex-direction: column; gap: 7px; }
.portrait-label span:first-child { font-size: 12px; letter-spacing: 2px; }
.portrait-label span:last-child { font-size: 12px; color: #babac0; }
.about-copy h2 { margin-bottom: 27px; }
.about-copy>p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 19px; }
.about-copy>p.about-lead { font-size: 18px; color: #dedee1; line-height: 1.65; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-block: 1px solid var(--line); padding-block: 22px; margin: 29px 0 20px; }
.about-details div { display: flex; flex-direction: column; gap: 8px; }
.about-details span { font-size: 10px; letter-spacing: 1px; color: #92929b; }
.about-details strong { font-size: 13px; font-weight: 500; }
.contact-section { position: relative; text-align: center; background: radial-gradient(ellipse at 50% 100%,#202025 0%,#0e0e10 28%,#080808 70%); border-top: 1px solid var(--line); padding: 98px 0 104px; overflow: hidden; }
.contact-inner { position: relative; }
.contact-inner h2 { font-size: clamp(40px,5.5vw,74px); line-height: 1.12; letter-spacing: -3px; }
.contact-inner>p:not(.eyebrow) { margin: 27px 0 30px; color: var(--muted); }
.contact-alternative { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 12px; color: #b1b1ba; margin: 21px auto 0; width: fit-content; transition: color var(--dur-1) var(--ease-out); }
.contact-alternative:hover { color: var(--text); }

/* Entrada ao rolar: o JS só liga .motion-ready quando o movimento é permitido. */
.reveal { opacity: 1; }
.motion-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out-expo); }
.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.solutions-grid .reveal:nth-child(2) { transition-delay: .08s; }
.solutions-grid .reveal:nth-child(3) { transition-delay: .16s; }

@keyframes space-drift { from { transform: scale(1); } to { transform: scale(1.045) rotate(.4deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes line-rise { from { opacity: 0; transform: translateY(.32em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes scroll-pulse { 50% { opacity: .3; transform: translateY(5px); } }

/* Navegação entre index e aviso de privacidade com transição suave (progressivo). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
}

@media (min-width: 1700px) {
  .hero { min-height: 940px; }
  .hero-space { background-position: 70% 50%; }
  .hero-shade { background: linear-gradient(90deg,#030303 2%,#030303bd 32%,transparent 70%),linear-gradient(0deg,#080808,transparent 20%); }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header { padding-inline: 32px; }
  .hero { min-height: 790px; }
  .hero-space { background-position: 57% center; }
  .hero-actions { gap: 22px; }
  .expertise-strip .container>div { gap: 20px; font-size: 14px; }
  .expertise-strip>.container>span { display: none; }
  .expertise-strip .container>div { width: 100%; justify-content: space-between; }
  .method-layout { gap: 60px; }
  .about-layout { gap: 50px; }
  .portrait-wrap { height: 600px; }
  .solution { padding-inline: 23px; }
  .solution h3 { font-size: 24px; }
  .tags span { font-size: 10px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .container { width: calc(100% - 40px); }
  .header { height: 84px; padding-inline: 20px; }
  .brand { font-size: 12px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: #111; border: 1px solid #444; border-radius: 5px; padding: 0; width: 44px; height: 44px; }
  .menu-toggle span { display: block; width: 20px; height: 1px; background: var(--text); transition: transform var(--dur-2) var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header nav { display: none; position: absolute; top: 74px; left: 20px; right: 20px; background: #141416; border: 1px solid #38383c; border-radius: 8px; padding: 20px; align-items: stretch; gap: 10px; box-shadow: 0 20px 50px #000b; }
  .header nav.open { display: flex; flex-direction: column; }
  .header nav>a { padding: 12px; }
  .nav-cta { justify-content: space-between; }
  .hero { min-height: 810px; padding: 148px 0 136px; align-items: flex-start; }
  .hero-space { inset: 0 -90% 0 -35%; background-position: 72% center; opacity: .65; }
  .hero-shade { background: linear-gradient(90deg,#030303cb,#03030366 70%,#03030322),linear-gradient(0deg,#080808,transparent 30%); }
  .eyebrow { font-size: 10px; letter-spacing: 1.8px; margin-bottom: 24px; }
  .hero-intro { font-size: 10px; }
  .hero-copy { font-size: 16px; max-width: 330px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .button { font-size: 14px; padding: 15px 20px; gap: 24px; }
  .hero-bottom { bottom: 27px; gap: 15px; }
  .hero-bottom>span:first-child { font-size: 10px; letter-spacing: 1px; max-width: 180px; }
  .hero-bottom .coordinate { display: none; }
  .hero-bottom a { font-size: 12px; }
  .expertise-strip { padding: 20px 0; }
  .expertise-strip .container>div { justify-content: center; flex-wrap: wrap; gap: 10px 19px; font-size: 12px; }
  .expertise-strip i { font-size: 8px; }
  .expertise-strip i:nth-of-type(2) { display: none; }
  .expertise-strip .container>div>span { white-space: nowrap; }
  .section { padding-block: 74px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading>p { margin-top: 24px; font-size: 15px; max-width: 400px; }
  h2 { font-size: 35px; letter-spacing: -1.2px; }
  .solutions-grid { grid-template-columns: 1fr; gap: 16px; }
  .solution { padding: 26px 26px 0; }
  .card-top { margin-bottom: 28px; }
  .solution h3 { font-size: 28px; }
  .solution p { font-size: 16px; }
  .tags span { font-size: 11px; }
  .card-link { font-size: 14px; }
  .method-section { padding: 72px 0; }
  .method-layout { grid-template-columns: 1fr; gap: 40px; }
  .method-title>p:not(.eyebrow) { max-width: 100%; }
  .steps li { gap: 22px; padding-block: 25px; }
  .steps h3 { font-size: 20px; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .portrait-wrap { height: 500px; width: 100%; max-width: 450px; }
  .about-copy>p:not(.eyebrow) { font-size: 16px; }
  .about-copy>p.about-lead { font-size: 18px; }
  .about-details { gap: 16px; }
  .about-details strong { font-size: 12px; }
  .about-copy>.text-link { font-size: 14px; }
  .contact-section { padding: 73px 0 80px; }
  .contact-inner h2 { font-size: clamp(35px,8.8vw,58px); letter-spacing: -1.7px; }
  .contact-inner>p:not(.eyebrow) { font-size: 15px; }
  .contact-inner>p br { display: none; }
  .motion-ready .solutions-grid .reveal { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::backdrop { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
