/* 01. Base e variáveis */
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d1218;
  --surface: #141c25;
  --surface-secondary: #18232f;
  --text: #f1f5f9;
  --muted: #a0adc0;
  --accent: #82b1ff;
  --accent-strong: #315f91;
  --border: #233044;
  --font-sans: Inter, "Segoe UI", sans-serif;
  --font-mono: "Cascadia Code", Consolas, monospace;
  --container: 1200px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-anchor: none;
  scroll-padding-top: calc(var(--header-height) + 24px);
}
html.js-enabled {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: wait;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #305c96;
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 3px;
}
main:focus {
  outline: none;
}
strong {
  color: var(--text);
  font-weight: 550;
}

/* 02. Tipografia e layout */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 600;
}
h1 {
  font-size: clamp(3.25rem, 6.8vw, 6.1rem);
  letter-spacing: -0.068em;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}
h4 {
  font-size: 1rem;
}
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding-block: 76px;
  scroll-margin-top: 12px;
}
.section-tinted {
  background: #111a23;
  border-block: 1px solid #172131;
}
.eyebrow,
.small-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  font-weight: 400;
}
.small-label {
  color: var(--accent);
}
.accent {
  color: var(--accent);
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 42px;
}
.section-heading > p {
  color: var(--muted);
  font-size: 0.9rem;
}
.desktop-break {
  display: none;
}

/* 03. Componentes reutilizáveis */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 550;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.button-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 20px #0002;
}
.button-primary:hover {
  background: #264f7c;
  transform: translateY(-2px);
}
.button-outline {
  border-color: #344257;
  background: #10192780;
}
.button-outline:hover {
  background: #17253a;
  border-color: #7187a6;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-weight: 500;
  font-size: 0.85rem;
}
.text-link > span {
  color: var(--accent);
  transition: transform 0.2s;
}
.text-link:hover > span {
  transform: translate(2px, -2px);
}
.text-link:hover {
  color: var(--accent);
}
.link-muted {
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b8cce9;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.status-live {
  color: #b4d3c8;
}
.status-progress {
  color: #ddc29d;
}
.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  color: #fff;
  background: #164ec8;
}
.skip-link:focus {
  top: 12px;
}

/* 04. Header e navegação */
.site-header {
  --header-background: #0b1016ed;
  --header-line: #ffffff0c;
  position: relative;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-background);
  backdrop-filter: blur(18px);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #9fc8e7;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: .7;
  pointer-events: none;
}
.site-header[data-scrolled="true"] {
  box-shadow: 0 12px 36px #02070e4d;
}
.site-header[data-tone="base"] {
  --header-background: #0d1218f5;
  --header-line: #2c3742;
}
.site-header[data-tone="soft"] {
  --header-background: #111a23f5;
  --header-line: #35434f;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}
.header-section {
  font-size: 0.6875rem;
  color: var(--muted);
}
.main-navigation a[aria-current] {
  background: #a7bfd80d;
  border-radius: 4px;
}

.site-header.menu-enhanced {
  position: sticky;
}
.header-inner {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.brand-mark {
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.08em;
  font-weight: 650;
}
.brand-mark > span {
  color: var(--accent);
}
.brand-name {
  font-size: 0.8rem;
  color: #d6dfeb;
  letter-spacing: -0.01em;
}
.main-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  width: 100%;
  padding-block: 0 16px;
}
.main-navigation a {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.77rem;
  gap: 8px;
  transition: color 0.25s, transform 0.25s;
}
.main-navigation a:hover, .main-navigation a:focus-visible { transform: translateY(-2px); }
.main-navigation a::before {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #98c5e8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-navigation a:hover::before, .main-navigation a:focus-visible::before { transform: scaleX(1); }
.main-navigation a:hover,
.main-navigation a[aria-current] {
  color: var(--text);
}
.main-navigation a[aria-current]::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 16px;
  background: var(--accent);
  bottom: 3px;
  left: 0;
}
.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 5px;
}
.menu-toggle > span {
  height: 1px;
  width: 100%;
  display: block;
  background: var(--text);
  transition: transform 0.2s;
}
.menu-toggle > span + span {
  margin-top: 6px;
}
.menu-toggle[aria-expanded="true"] > span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] > span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.menu-enhanced .main-navigation {
  display: none;
}
.menu-enhanced .main-navigation.is-open {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  width: 100%;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 32px #0005;
  gap: 0;
  padding: 8px 20px 16px;
}
.menu-enhanced .main-navigation a {
  padding-block: 8px;
}

/* 05. Header e Hero Editorial Blue */
.site-header {
  --header-background: #faf9f6f5;
  --header-line: #c9d9e6;
  --header-fg: #193b64;
  --header-muted: #375b79;
  --header-accent: #193b64;
  --header-active: #d6e2ed80;
  --header-menu: #faf9f6;
  position: sticky;
  color: var(--header-fg);
  box-shadow: none;
  transition: background-color .38s ease, border-color .38s ease, color .38s ease, box-shadow .38s ease;
}
.site-header[data-tone="base"] {
  --header-background: #0d1218f7;
  --header-line: #34475a;
  --header-fg: #f1f5f9;
  --header-muted: #c1d2e4;
  --header-accent: #9cc9ed;
  --header-active: #afcfe42b;
  --header-menu: #111b26;
}
.site-header[data-tone="soft"] {
  --header-background: #111a23f7;
  --header-line: #405266;
  --header-fg: #f1f5f9;
  --header-muted: #c1d2e4;
  --header-accent: #9cc9ed;
  --header-active: #afcfe42b;
  --header-menu: #152230;
}
.site-header::after { background: var(--header-accent); }
.site-header[data-scrolled="true"] { box-shadow: 0 10px 26px #08152224; }
.brand-logo { display: block; width: 225px; height: auto; transition: filter .38s ease; }
.site-header[data-tone="base"] .brand-logo, .site-header[data-tone="soft"] .brand-logo { filter: brightness(0) invert(1); }
.brand-copy { margin-left: 0; }
.header-section { color: var(--header-muted); font-size: .65rem; letter-spacing: .03em; transition: color .38s ease; }
.main-navigation a { color: var(--header-muted); font-size: .82rem; }
.main-navigation a:hover, .main-navigation a[aria-current] { color: var(--header-fg); }
.main-navigation a[aria-current] { background: var(--header-active); }
.main-navigation a[aria-current]::after, .main-navigation a::before { background: var(--header-accent); }
.menu-toggle { border-color: var(--header-line); }
.menu-toggle > span { background: var(--header-fg); }
.menu-enhanced .main-navigation.is-open { background: var(--header-menu); border-color: var(--header-line); box-shadow: 0 16px 35px #08152238; }
.header-availability { display: none; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid var(--header-line); border-radius: 99px; color: var(--header-muted); font: 600 .64rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.header-availability > span { width: 6px; height: 6px; border-radius: 50%; background: var(--header-accent); }
.site-header :focus-visible { outline-color: var(--header-accent); }
.hero :focus-visible { outline-color: #193b64; }
@media (min-width: 1100px) {
  .header-availability { display: inline-flex; }
  .main-navigation, .menu-enhanced .main-navigation, .menu-enhanced .main-navigation.is-open { gap: clamp(12px, 1.6vw, 24px); }
}

.hero {
  --hero-shift: 0px;
  --panel-shift: 0px;
  --hero-exit: 1;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #faf9f6;
  color: #193b64;
  border-bottom: 1px solid #d6e2ed;
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding-block: 58px 30px;
}
.hero-topline {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  padding-bottom: 0;
  color: #4b6680;
  font: 600 .7rem/1.4 var(--font-mono);
  letter-spacing: .18em;
}
.hero-topline-rule { width: 44px; height: 1px; background: #a9bfd1; }
.hero-topline::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #c9d9e6;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-content { min-width: 0; max-width: 720px; align-self: center; transform: translateY(var(--hero-shift)); opacity: var(--hero-exit); }
.hero-greeting { margin-bottom: 9px; color: #4b6680; font: .86rem var(--font-sans); }
.hero h1 {
  font-family: "Bodoni MT", Didot, "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.7rem, 8.7vw, 8.4rem);
  line-height: .91;
  letter-spacing: -.075em;
  color: #193b64;
}
.title-mask { display: block; overflow: hidden; padding-block: .08em; margin-block: -.08em; }
.title-line { display: block; width: fit-content; }
.title-line-italic { color: #41688c; font-style: italic; padding-right: .12em; }
.hero-position { margin-top: 34px; font-size: clamp(1rem, 1.55vw, 1.35rem); font-weight: 500; letter-spacing: -.025em; color: #193b64; }
.hero-position > span { color: #7893a9; padding-inline: 5px; }
.hero-description { max-width: 555px; margin-top: 23px; color: #49657e; font-size: 1.04rem; line-height: 1.67; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 37px; }
.hero-actions .button { min-width: 174px; justify-content: space-between; border-radius: 4px; font-weight: 600; }
.hero-actions .button-primary { background: #193b64; color: #fff; box-shadow: none; }
.hero-actions .button-primary:hover { background: #2e5279; }
.hero-actions .button-outline { min-width: 0; padding-inline: 0; border: 0; border-bottom: 1px solid #41688c; border-radius: 0; background: transparent; color: #193b64; }
.hero-actions .button-outline:hover { background: transparent; color: #41688c; }
.hero-actions .button { position: relative; overflow: hidden; }
.hero-actions .button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #ffffff35 50%, transparent 65%); transform: translateX(-140%); transition: transform .65s ease; pointer-events: none; }
.hero-actions .button:hover::after, .hero-actions .button:focus-visible::after { transform: translateX(140%); }
.action-arrow, .hero-bottom a span { display: inline-block; transition: transform .3s ease; }
.hero-actions a:hover .action-arrow, .hero-actions a:focus-visible .action-arrow { transform: translate(3px,-3px); }
.hero-location { margin-top: 21px; color: #4b6680; font: .68rem/1.6 var(--font-mono); letter-spacing: .02em; }
.hero-location > span { color: #a2b6c7; padding-inline: 3px; }

.project-showcase { min-width: 0; align-self: center; transform: translateY(var(--panel-shift)); opacity: var(--hero-exit); }
.project-stack { position: relative; height: 480px; isolation: isolate; }
.showcase-card {
  position: absolute;
  top: 88px;
  left: 0;
  width: 92%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #bfd0dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 58px #193b6430;
  transform-origin: center;
  backface-visibility: hidden;
  transition: transform 1.08s cubic-bezier(.22,.75,.2,1), opacity 1.08s ease, box-shadow 1.08s ease;
}
.showcase-card[data-position="0"] { z-index: 3; transform: translate(-5%,5%) rotate(-5deg) scale(1); opacity: 1; box-shadow: 0 28px 65px #193b6438; }
.showcase-card[data-position="1"] { z-index: 2; transform: translate(22%,-16%) rotate(4deg) scale(.9); opacity: .96; }
.showcase-card[data-position="2"] { z-index: 1; transform: translate(31%,13%) rotate(2deg) scale(.79); opacity: .9; }
.showcase-card-top { display: flex; align-items: center; gap: 12px; height: 24px; padding-inline: 12px; border-bottom: 1px solid #d7e3ed; background: #f7f9fa; color: #193b64; font: 600 .53rem var(--font-mono); letter-spacing: .04em; }
.window-dots { display: inline-flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #94abc0; }
.showcase-media { height: clamp(210px, 19vw, 270px); overflow: hidden; background: #eaf1f5; }
.showcase-media-atlas img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.showcase-media-pending, .showcase-media-concept { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; text-align: center; }
.showcase-media-pending { background: #f1f4f5; }
.pending-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #a9bfd1; border-radius: 50%; color: #41688c; font: italic 1.35rem Georgia,serif; }
.showcase-media-pending p { color: #193b64; font: italic 1.25rem Georgia,serif; }
.showcase-media small { color: #193b64; font-size: .66rem; line-height: 1.35; }
.showcase-media-concept { background: #eaf0f5; }
.concept-label { color: #41688c; font: 600 .62rem var(--font-mono); letter-spacing: .05em; }
.concept-modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.concept-modules span { max-width: 125px; border: 1px solid #a9bfd1; padding: 8px 10px; background: #fff; color: #193b64; font-size: .69rem; line-height: 1.3; }
.showcase-card-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 11px 15px 13px; }
.showcase-card-caption h2 { color: #193b64; font-size: .95rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.showcase-card-caption p { color: #193b64; font-size: .63rem; line-height: 1.4; }
.showcase-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px 0; border-top: 1px solid #d6e2ed; }
.showcase-current { color: #41688c; font: .65rem/1.4 var(--font-mono); }
.showcase-buttons { display: flex; gap: 6px; }
.showcase-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b7cad9; border-radius: 50%; background: #fff; color: #193b64; line-height: 1; transition: background .25s, color .25s, transform .25s; }
.showcase-button:hover, .showcase-button:focus-visible { background: #193b64; color: #fff; transform: translateY(-2px); }
.showcase-pause { font-size: .8rem; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid #c9d9e6; padding-top: 18px; color: #375b79; font: 600 .65rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.hero-bottom > span + span { border-left: 1px solid #c9d9e6; padding-left: clamp(10px, 2vw, 28px); }
.hero-bottom a { display: inline-flex; align-items: center; justify-content: center; width: 38px; min-height: 44px; color: #193b64; font-size: 1.3rem; }
.hero-bottom a:hover span, .hero-bottom a:focus-visible span { transform: translateY(4px); }
@media (min-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); gap: 35px 25px; min-height: calc(100svh - var(--header-height)); padding-block: 60px 26px; }
  .hero-topline, .hero-bottom { grid-column: 1 / -1; }
  .project-showcase { width: 100%; }
}
@media (max-width: 899px) {
  .hero-layout { gap: 20px; }
  .project-showcase { width: min(100%, 620px); justify-self: center; }
  .project-stack { height: 440px; }
  .showcase-card { top: 58px; }
  .showcase-media { height: 245px; }
}
@media (max-width: 599px) {
  .brand-logo { width: 182px; }
  .header-section { font-size: .58rem; }
  .hero-layout { padding-block: 28px 24px; gap: 20px; }
  .hero-topline { font-size: .55rem; }
  .hero h1 { font-size: clamp(3.15rem, 12.9vw, 4.8rem); }
  .hero-position { margin-top: 21px; font-size: .94rem; }
  .hero-description { margin-top: 15px; font-size: .9rem; }
  .hero-actions { margin-top: 23px; gap: 9px 17px; }
  .hero-actions .button { min-width: 0; }
  .project-showcase { width: 100%; }
  .project-stack { height: 322px; }
  .showcase-card { top: 39px; left: 3%; width: 87%; border-radius: 8px; }
  .showcase-card[data-position="0"] { transform: translate(-2%,4%) rotate(-2deg) scale(1); }
  .showcase-card[data-position="1"] { transform: translate(9%,-10%) rotate(3deg) scale(.92); }
  .showcase-card[data-position="2"] { transform: translate(17%,11%) rotate(2deg) scale(.84); }
  .showcase-card-top { height: 23px; font-size: .5rem; }
  .showcase-media { height: 183px; }
  .showcase-card-caption { padding: 9px 11px 10px; }
  .showcase-card-caption h2 { font-size: .83rem; }
  .showcase-card-caption p { font-size: .59rem; }
  .showcase-media-pending p { font-size: 1rem; }
  .showcase-media small { font-size: .57rem; }
  .concept-modules span { padding: 5px 7px; font-size: .56rem; }
  .showcase-current { font-size: .58rem; }
  .hero-bottom { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); font-size: .55rem; gap: 12px 8px; }
  .hero-bottom > span + span { border: 0; padding: 0; }
  .hero-bottom a { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) {

  .js-enabled .site-header .header-inner > * { animation: header-enter .65s both; }
  .js-enabled .site-header .header-inner > :last-child { animation-delay: .12s; }
  .js-enabled .hero-topline::after { animation: line-draw .9s .2s both; }
  .js-enabled .hero-topline > span:last-child { animation: item-enter .7s .35s both; }
  .js-enabled .hero .entrance-item { animation: item-enter .7s both; }
  .js-enabled .hero .hero-greeting { animation-delay: .2s; }
  .js-enabled .hero .title-line { animation: title-enter .85s cubic-bezier(.2,.8,.2,1) both; }
  .js-enabled .hero .title-mask:first-child .title-line { animation-delay: .25s; }
  .js-enabled .hero .title-mask:last-child .title-line { animation-delay: .42s; }
  .js-enabled .hero .hero-position { animation-delay: .6s; }
  .js-enabled .hero .hero-description { animation-delay: .72s; }
  .js-enabled .hero .hero-actions { animation-delay: .83s; }
  .js-enabled .hero .hero-location { animation-delay: .93s; }
  .js-enabled .hero .hero-bottom { animation-delay: 1s; }
  .js-enabled .hero .showcase-controls { animation-delay: .75s; }
  .js-enabled .showcase-card { animation: card-enter .7s both; }
  .js-enabled .project-stack { animation: stack-float 7s ease-in-out 1.2s infinite alternate; }
  .hero.motion-paused .project-stack { animation-play-state: paused; }
  .js-enabled .showcase-card[data-project="atlas"] { animation-delay: .45s; }
  .js-enabled .showcase-card[data-project="financeiro"] { animation-delay: .55s; }
  .js-enabled .showcase-card[data-project="contratos"] { animation-delay: .65s; }
  @keyframes item-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes title-enter { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: translateY(0); } }
  @keyframes header-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes card-enter { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
  @keyframes stack-float { to { translate: 0 -6px; } }
}

/* 06. Sobre e experiência */
.about-grid,
.education-grid {
  display: grid;
  gap: 32px;
}
.about-copy {
  color: var(--muted);
}
.about-copy > p + p {
  margin-top: 18px;
}
.opportunity-note {
  color: #bcc8d6;
  margin-top: 24px;
  font-size: 0.9375rem;
}
.timeline {
  margin-top: 48px;
}
.timeline-item {
  display: grid;
  gap: 18px;
  padding: 0 0 38px 25px;
  margin-left: 4px;
  border-left: 1px solid #2b3a51;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-period {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #c8d5e8;
}
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid #5f7391;
  border-radius: 50%;
  background: #0b111c;
}
.timeline-item:first-child .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px #82b1ff09;
}
.timeline-period .small-label {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
}
.timeline-content h3 {
  font-size: 1.17rem;
}
.company {
  margin-top: 10px;
  color: #b9cbe2;
  font-size: 0.83rem;
}
.company span {
  color: var(--muted);
}
.timeline-content > p:not(.company) {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 20px;
}
.experience-list {
  padding-left: 17px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.experience-list li {
  padding-left: 4px;
  margin-top: 7px;
}
.experience-list li::marker {
  color: #5c7a9e;
  font-size: 0.7em;
}

/* 07. Projetos */
.projects-section .section-heading {
  margin-bottom: 48px;
}
.project-card {
  display: grid;
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--border);
}
.project-card + .project-card {
  margin-top: 28px;
}
.project-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
}
.visual-caption {
  color: #9aadc7;
  font-size: 0.75rem;
  margin-top: 20px;
}
.browser-preview {
  border-radius: 6px;
  overflow: hidden;
  background: #0b1220;
}
.browser-preview img {
  width: 100%;
  height: auto;
}
.project-content {
  padding: 0;
  min-width: 0;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 20px;
}
.project-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.3;
}
.project-problem {
  color: #b2bfd1;
  margin-top: 16px;
  font-size: 1rem;
}
.contribution {
  margin-top: 22px;
}
.contribution h4 {
  color: #e0e8f2;
  font-size: 0.875rem;
  font-weight: 550;
}
.contribution p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.tech-tags li {
  color: #bdcce1;
  font-size: 0.8125rem;
}
.tech-tags li + li::before {
  content: "·";
  margin-inline: 5px 10px;
  color: var(--muted);
}
.project-details {
  border-top: 1px solid #263246;
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.project-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
  color: #b8c7dc;
}
.project-details summary::-webkit-details-marker {
  display: none;
}
.project-details summary > span {
  font-size: 1.1rem;
  color: var(--accent);
}
.project-details[open] summary > span {
  transform: rotate(45deg);
}
.project-details p {
  margin-block: 10px;
}
.project-details ol {
  padding-left: 20px;
}
.project-details li + li {
  margin-top: 5px;
}
.project-actions {
  display: flex;
  gap: 28px;
  margin-top: 12px;
}
.project-actions .text-link {
  font-size: 0.875rem;
}
.contracts-visual {
  background: #111a23;
  border-radius: 6px;
  padding: 24px;
}
.contract-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 30px 15px;
}
.flow-document {
  position: relative;
  width: 58px;
  height: 72px;
  padding: 17px 10px 10px;
  border: 1px solid #637c9b;
  border-radius: 4px 16px 4px 4px;
  background: #182a42;
}
.flow-document > span:not(.document-fold):not(.document-mark) {
  display: block;
  width: 27px;
  height: 2px;
  background: #6b8ab1;
  margin-bottom: 6px;
}
.flow-document > span:nth-child(4):not(.document-fold):not(.document-mark) {
  width: 17px;
}
.document-fold {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 14px;
  height: 14px;
  background: #2b4262;
  border-radius: 0 14px 0 2px;
  border-left: 1px solid #637c9b;
  border-bottom: 1px solid #637c9b;
}
.document-mark {
  position: absolute;
  right: 8px;
  bottom: 3px;
  color: #9fbeed;
  font-size: 0.75rem;
}
.flow-label {
  color: #c1d1e7;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 12px;
}
.flow-line {
  height: 22px;
  width: 1px;
  background: #466085;
  margin-block: 7px;
}
.flow-data {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #a9bdd9;
}
.flow-data > span:not(:nth-child(2)) {
  padding: 6px 10px;
  border: 1px solid #344967;
  border-radius: 4px;
  background: #162338;
}
.flow-review {
  font-size: 0.75rem;
  color: #c2cfe2;
}
.flow-output {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a4c7ff;
}
.flow-output > span {
  padding: 6px 19px;
  border-radius: 4px;
  border: 1px solid #41608d;
  background: #182b45;
}
.contract-flow figcaption {
  color: #9aadc7;
  font-size: 0.75rem;
  margin-top: 24px;
}
.private-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b3c2d6;
  font-size: 0.75rem;
  margin-top: 24px;
}
.private-note svg {
  width: 15px;
  fill: none;
  stroke: #91a8c8;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.parking-panel {
  margin-top: 0;
}
.parking-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #080d16;
  border: 1px solid #364762;
}
.parking-photo figcaption,
.parking-panel figcaption {
  color: #a3b6cd;
  font-size: 0.8125rem;
  margin-top: 10px;
}
.parking-photo {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.parking-photo img {
  border-radius: 4px;
}
.parking-photo figcaption {
  margin: 0;
}
.parking-photo figcaption span {
  display: block;
  color: var(--accent);
  margin-top: 5px;
}
.image-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.image-link:focus-visible {
  outline-offset: -3px;
}
.image-enlarge {
  display: block;
  padding: 8px 12px;
  color: #d4e4fc;
  background: #17263b;
  font-size: 0.8125rem;
  text-align: right;
}
.image-link:hover .image-enlarge {
  background: #213857;
}
.image-viewer-open {
  overflow: hidden;
}
.image-dialog {
  width: min(1280px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 16px;
  margin: auto;
  border: 1px solid #40536c;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
.image-dialog::backdrop {
  background: #030710e8;
}
.image-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.image-dialog-header h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.image-dialog-close {
  min-height: 44px;
  padding: 8px 14px;
  flex-shrink: 0;
  border: 1px solid #40536c;
  border-radius: 5px;
  background: var(--surface-secondary);
}
.image-dialog-close:hover {
  border-color: var(--accent);
}
.image-dialog-content img {
  width: 100%;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
}
.image-dialog-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
.other-repositories {
  margin-top: 55px;
}
.other-heading h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.other-heading p {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 6px;
}
.repository-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.repository-link {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.repository-link:hover h4 {
  color: var(--accent);
}
.repository-link .small-label {
  font-size: 0.75rem;
}
.repository-link h4 {
  margin-top: 10px;
  font-size: 0.94rem;
}
.repository-link p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 360px;
}
.repository-link > span {
  color: var(--accent);
}

/* 08. Tecnologias e formação */
.technology-grid {
  display: grid;
  gap: 28px;
}
.technology-group {
  padding-top: 24px;
  border-top: 1px solid #2c3a4e;
}
.technology-group h3 {
  font-size: 1.1rem;
}
.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 20px 0 15px;
  font-size: 0.85rem;
  color: #d6e0ee;
}
.technology-group > p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 340px;
}
.education-card {
  padding: 0 0 0 24px;
  border-left: 2px solid #526f8a;
}
.education-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.education-meta .small-label {
  font-size: 0.75rem;
}
.education-card h3 {
  font-size: 1.27rem;
  line-height: 1.4;
  max-width: 390px;
}
.education-institution {
  color: #d0ddee;
  margin-top: 12px;
  font-size: 0.9rem;
}
.education-date {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 5px;
}
.education-date span {
  display: inline-block;
}
.education-note {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

/* 09. Contato e rodapé */
.contact-section {
  position: relative;
  background: #0b1016;
  border-top: 1px solid #1a273b;
  padding-block: 78px 60px;
}
.contact-inner {
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}
.contact-inner .section-label {
  margin-bottom: 24px;
}
.contact-description {
  color: var(--muted);
  margin-top: 20px;
  font-size: 0.93rem;
}
.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 30px;
}
.email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 27px;
  color: #bac9de;
  font-size: 0.75rem;
}
.email-row a {
  overflow-wrap: anywhere;
}
.email-row a:hover {
  color: var(--accent);
}
.copy-email {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
}
.copy-email:hover {
  background: #18273d;
  border-color: #334c6f;
}
.copy-email svg {
  width: 16px;
  fill: none;
  stroke: #a6bfdf;
  stroke-width: 1.5;
}
.copy-status {
  min-height: 28px;
  color: #b7d2fb;
  font-size: 0.75rem;
}
.contact-location {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}
.site-footer {
  border-top: 1px solid #1a2536;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-block: 25px;
}
.footer-inner .brand {
  font-size: 0.75rem;
  color: #bec9d9;
}
.footer-inner .brand-mark {
  font-size: 1.65rem;
}
.footer-inner p,
.back-top {
  font-size: 0.75rem;
  color: var(--muted);
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
}
.back-top:hover {
  color: var(--accent);
}

/* 10. Animações progressivas: conteúdo permanece visível sem JS */
@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-pending:not(.is-visible) {
    opacity: 0;
    transform: translateY(14px);
  }
  .reveal.is-revealing {
    animation: reveal 0.55s ease-out both;
  }
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js-enabled {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 11. Responsividade */
@media (max-width: 599px) {
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 24px;
  }
  .hero-actions .button-primary {
    grid-column: 1 / -1;
  }
  .hero-actions .text-link {
    justify-content: center;
  }
  #sobre {
    padding-block: 48px;
  }
  .about-grid {
    gap: 24px;
  }
  .opportunity-note {
    margin-top: 22px;
    padding-top: 18px;
  }
}
@media (min-width: 600px) {
  .container {
    width: min(var(--container), calc(100% - 64px));
  }
  .hero-actions {
    gap: 16px 28px;
  }
  .repository-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .technology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
@media (min-width: 900px) {
  .section {
    padding-block: 104px;
  }
  .about-grid,
  .education-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
  }
  .section-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
  .section-heading > p {
    padding-bottom: 3px;
  }
  .desktop-break {
    display: inline;
  }
  .timeline-item {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 48px;
  }
  .project-card {
    grid-template-columns: 1.08fr 1fr;
    gap: 48px;
    padding-block: 48px;
  }
  .project-reverse .project-visual {
    order: 2;
  }
  .technology-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .technology-list {
    min-height: 66px;
    align-content: flex-start;
  }
  .contact-section {
    padding-block: 90px 70px;
  }
}
@media (min-width: 1100px) {
  .menu-toggle {
    display: none;
  }
  .header-inner {
    flex-wrap: nowrap;
  }
  .main-navigation,
  .menu-enhanced .main-navigation,
  .menu-enhanced .main-navigation.is-open {
    display: flex;
    flex-direction: row;
    gap: 26px;
    width: auto;
    padding: 0;
    position: static;
    max-height: none;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .main-navigation a {
    min-height: var(--header-height);
    padding: 0;
  }
  .main-navigation a[aria-current]::after {
    bottom: 17px;
  }
}
