/* Blueprint / Industrial Tech — dark mode */

:root{
  --bg: #121417;
  --panel: rgba(18,20,23,.76);
  --panel-2: rgba(255,255,255,.04);
  --grid: rgba(255,255,255,.055);
  --grid-strong: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.9);
  --muted: rgba(255,255,255,.68);
  --muted-2: rgba(255,255,255,.52);
  --accent: #2aa7ff; /* azul técnico */
  --accent-2: #ff7b2a; /* laranja industrial */
  --danger: #ff4d4d;
  --ok: #33d17a;
  --radius: 14px;
  --radius-sm: 10px;
  --border: rgba(255,255,255,.12);
  --shadow: 0 12px 28px rgba(0,0,0,.38);

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Cursores personalizados (data-URI SVG) */
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='5' fill='none' stroke='%232aa7ff' stroke-width='2'/%3E%3Cpath d='M16 2v8M16 22v8M2 16h8M22 16h8' stroke='%23ffffff' stroke-opacity='.65' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 4 L26 16 L16 28 L6 16 Z' fill='none' stroke='%23ff7b2a' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%23ff7b2a' fill-opacity='.9'/%3E%3C/svg%3E") 16 16;
  --cursor-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 6v20' stroke='%232aa7ff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 6h8M12 26h8' stroke='%23ffffff' stroke-opacity='.65' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16;
}

*{box-sizing:border-box}
html,body{height:100%}
html{background: var(--bg);}
body{
  margin:0;
  color:var(--text);
  font-family: var(--sans);
  background: var(--bg);
  overflow-x:hidden;
  position:relative;
  cursor: var(--cursor-default), default;
}

body.is-loading{overflow:hidden;}

/* CAD Loading Screen */
.cad-loader{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(42,167,255,.16), transparent 55%),
    radial-gradient(900px 700px at 80% 10%, rgba(255,123,42,.12), transparent 60%),
    rgba(18,20,23,.92);
  backdrop-filter: blur(10px);
}

.cad-loader.is-hidden{
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.cad-loader-panel{
  width: min(780px, calc(100% - 10px));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.12)),
    rgba(0,0,0,.16);
  box-shadow:
    0 22px 44px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  position: relative;
}

.cad-loader-panel::before{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events:none;
}

.cad-loader-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(42,167,255,.12), rgba(0,0,0,0));
}

.cad-loader-brand{display:flex; align-items:center; gap: 10px; min-width:0;}
.cad-loader-title{color: rgba(255,255,255,.82); letter-spacing: .10em; font-size: 12px; white-space:nowrap;}
.cad-loader-ver{color: rgba(255,255,255,.45); font-size: 12px;}

.cad-loader-chip{
  font-size: 12px;
  color: rgba(42,167,255,.92);
  border: 1px solid rgba(42,167,255,.30);
  background: rgba(42,167,255,.06);
  padding: 6px 10px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: no-preference){
  @keyframes cadReadyPulse{
    0%{filter: brightness(1); box-shadow: 0 0 0 rgba(42,167,255,0);}
    35%{filter: brightness(1.25); box-shadow: 0 0 18px rgba(42,167,255,.22);}
    100%{filter: brightness(1); box-shadow: 0 0 0 rgba(42,167,255,0);}
  }
  .cad-loader.step-ready .cad-loader-chip{
    animation: cadReadyPulse 720ms ease-out 1;
  }
}

.cad-loader-view{
  height: 240px;
  background:
    radial-gradient(680px 260px at 35% 20%, rgba(42,167,255,.18), transparent 60%),
    radial-gradient(680px 260px at 65% 40%, rgba(255,123,42,.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(42,167,255,.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(42,167,255,.08) 0 1px, transparent 1px 22px);
  opacity: .85;
  position: relative;
}

.cad-loader-bp{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  opacity: .95;
}

/* Staged plotting (only inside loader) */
.cad-loader .cad-draw{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 620ms cubic-bezier(.2,.8,.2,1);
}

.cad-loader.step-boot .cad-draw--frame{stroke-dashoffset: 0;}
.cad-loader.step-modules .cad-draw--model{stroke-dashoffset: 0;}
.cad-loader.step-panels .cad-draw--dims{stroke-dashoffset: 0;}
.cad-loader.step-assets .cad-draw--refs{stroke-dashoffset: 0;}
.cad-loader.step-blueprint .cad-draw--callout{stroke-dashoffset: 0;}

/* Ensure final states show everything */
.cad-loader.step-render .cad-draw,
.cad-loader.step-ready .cad-draw{stroke-dashoffset: 0;}

@media (prefers-reduced-motion: reduce){
  .cad-loader .cad-draw{transition:none; stroke-dashoffset:0;}
}

.cad-loader .bp-line{stroke: rgba(42,167,255,.95);}
.cad-loader .bp-aux{stroke: rgba(255,255,255,.55);}
.cad-loader .bp-dim{stroke: rgba(255,123,42,.90);}

@media (prefers-reduced-motion: no-preference){
  .cad-loader .bp-aux{animation: cadDashed 2.8s linear infinite;}
}

.cad-loader-view::after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.10), rgba(255,255,255,0));
  opacity: .0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

.cad-loader-progress{
  padding: 14px 16px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.10);
}

.cad-loader-bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  overflow:hidden;
}

.cad-loader-fill{
  height: 100%;
  width: calc(var(--p) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42,167,255,.95), rgba(255,123,42,.85));
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
}

.cad-loader-meta{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .08em;
}

.cad-loader-dot{color: rgba(255,255,255,.28);}

.cad-loader-log{
  padding: 0 16px 16px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  line-height: 1.5;
  background: rgba(0,0,0,.10);
}

.cad-loader-line{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

@media (prefers-reduced-motion: no-preference){
  .cad-loader-view{animation: cadGridDrift 7.8s linear infinite;}
  .cad-loader-view::after{opacity:.45; animation: cadSheen 1.8s ease-in-out infinite;}
}

/* Seleção e scrollbars (feel de app CAD) */
::selection{
  background: rgba(42,167,255,.28);
  color: rgba(255,255,255,.95);
}

*{scrollbar-width: thin; scrollbar-color: rgba(42,167,255,.40) rgba(0,0,0,.22);}
::-webkit-scrollbar{width: 10px; height: 10px;}
::-webkit-scrollbar-track{background: rgba(0,0,0,.22);}
::-webkit-scrollbar-thumb{
  background: rgba(42,167,255,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover{background: rgba(42,167,255,.30);}

/* Motion (CAD-feel) — respeita prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference){
  @keyframes cadGridDrift{
    0%{background-position: center center, center center, 0 0, 0 0;}
    100%{background-position: center center, center center, 0 26px, 26px 0;}
  }

  @keyframes cadCornerPulse{
    0%, 100%{opacity:.40;}
    55%{opacity:.72;}
  }

  @keyframes cadIconFloat{
    0%, 100%{transform: translate3d(0,0,0);}
    50%{transform: translate3d(0,-6px,0);}
  }

  @keyframes cadDashed{
    0%{stroke-dashoffset: 0;}
    100%{stroke-dashoffset: -48;}
  }

  @keyframes cadScan{
    0%{background-position: -120% 0; opacity:.12;}
    35%{opacity:.55;}
    100%{background-position: 220% 0; opacity:.12;}
  }

  @keyframes cadSheen{
    0%{transform: translate3d(-140%,0,0); opacity:.0;}
    20%{opacity:.55;}
    100%{transform: translate3d(140%,0,0); opacity:.0;}
  }

  @keyframes cadFlowY{
    0%{background-position: 0 0;}
    100%{background-position: 0 220%;}
  }

  @keyframes cadCaretBlink{
    0%, 44%{opacity: 0;}
    45%, 100%{opacity: .85;}
  }

  @keyframes cadOutlinePulse{
    0%{box-shadow: 0 0 0 rgba(42,167,255,0), 0 0 0 rgba(255,123,42,0);}
    45%{box-shadow: 0 0 18px rgba(42,167,255,.10), 0 0 0 rgba(255,123,42,0);}
    100%{box-shadow: 0 0 0 rgba(42,167,255,0), 0 0 0 rgba(255,123,42,0);}
  }

  @keyframes cadCmdFlash{
    0%{color: rgba(255,255,255,.70); text-shadow: 0 0 0 rgba(42,167,255,0);}
    25%{color: rgba(42,167,255,.95); text-shadow: 0 0 18px rgba(42,167,255,.22);}
    100%{color: rgba(255,255,255,.70); text-shadow: 0 0 0 rgba(42,167,255,0);}
  }

  @keyframes cadViewFlash{
    0%{color: rgba(255,255,255,.62); text-shadow: 0 0 0 rgba(255,123,42,0);}
    25%{color: rgba(255,123,42,.92); text-shadow: 0 0 18px rgba(255,123,42,.18);}
    100%{color: rgba(255,255,255,.62); text-shadow: 0 0 0 rgba(255,123,42,0);}
  }

  @keyframes cadMarch{
    0%{
      background-position:
        0 0,
        100% 0,
        0 100%,
        0 0;
    }
    100%{
      background-position:
        48px 0,
        100% 48px,
        -48px 100%,
        0 -48px;
    }
  }

  @keyframes cadMarchPanel{
    0%{
      background-position:
        0 0,
        100% 0,
        0 100%,
        0 0,
        0 0,
        0 0;
    }
    100%{
      background-position:
        48px 0,
        100% 48px,
        -48px 100%,
        0 -48px,
        0 0,
        0 0;
    }
  }

  @keyframes cadIcoNudge{
    0%, 100%{transform: translate3d(0,0,0) scale(1); filter: brightness(1);}
    45%{transform: translate3d(0,-3px,0) scale(1.02); filter: brightness(1.12);}
  }
}

/* Background uniforme e fixo em toda a página */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(42,167,255,.06), rgba(255,123,42,.03) 60%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 20px),
    radial-gradient(1000px 600px at 20% 0%, rgba(42,167,255,.14), transparent 55%),
    radial-gradient(900px 700px at 80% 10%, rgba(255,123,42,.12), transparent 60%);
}

/* Moldura blueprint global (cantos) */
body::after{
  content:"";
  position:fixed;
  inset: 18px;
  pointer-events:none;
  z-index:-1;
  border-radius: 22px;
  border: 1px solid rgba(42,167,255,.10);
  background:
    linear-gradient(90deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left top/140px 2px no-repeat,
    linear-gradient(180deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left top/2px 140px no-repeat,
    linear-gradient(270deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right top/140px 2px no-repeat,
    linear-gradient(180deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right top/2px 140px no-repeat,
    linear-gradient(90deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left bottom/140px 2px no-repeat,
    linear-gradient(0deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left bottom/2px 140px no-repeat,
    linear-gradient(270deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right bottom/140px 2px no-repeat,
    linear-gradient(0deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right bottom/2px 140px no-repeat,
    radial-gradient(10px 10px at 12px 12px, rgba(255,123,42,.55), transparent 70%),
    radial-gradient(10px 10px at calc(100% - 12px) 12px, rgba(255,123,42,.55), transparent 70%),
    radial-gradient(10px 10px at 12px calc(100% - 12px), rgba(255,123,42,.55), transparent 70%),
    radial-gradient(10px 10px at calc(100% - 12px) calc(100% - 12px), rgba(255,123,42,.55), transparent 70%);
  opacity: .7;
}

@media (prefers-reduced-motion: no-preference){
  body::after{animation: cadCornerPulse 4.6s ease-in-out infinite;}
}

@media (max-width: 640px){
  body::after{inset: 10px; opacity: .55;}
}

:where(a, button, [role="button"], summary){
  cursor: var(--cursor-pointer), pointer;
}

:where(input, textarea, select, [contenteditable="true"]){
  cursor: var(--cursor-text), text;
}

/* Cursor halo (subtil, blueprint) */
.cursor-halo{
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  transform: translate3d(-9999px, -9999px, 0);
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
  opacity: .0;
  transition: opacity 180ms ease, width 180ms ease, height 180ms ease;
  background:
    radial-gradient(circle at 50% 50%, rgba(42,167,255,.14), rgba(42,167,255,0) 55%),
    radial-gradient(circle at 55% 45%, rgba(255,123,42,.10), rgba(255,123,42,0) 60%);
  filter: blur(0.2px);
  mix-blend-mode: screen;
}

.cursor-halo.is-visible{opacity: .9;}
.cursor-halo.is-click{
  width: 170px;
  height: 170px;
  opacity: .95;
}

@media (hover: none){
  .cursor-halo{display:none;}
}

@media (prefers-reduced-motion: reduce){
  .cursor-halo{display:none;}
}

/* Acessibilidade: âncoras com header sticky */
:where(section[id]){scroll-margin-top: 92px;}

/* Smooth scroll (respeita reduced motion abaixo) */
html{scroll-behavior:smooth;}

/* Focus visível consistente */
:where(a, button, input, textarea, select, summary):focus{outline:none;}
:where(a, button, input, textarea, select, summary):focus-visible{
  outline: 2px solid rgba(42,167,255,.75);
  outline-offset: 2px;
  border-radius: 12px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link{
  position:absolute;
  left:12px;
  top:12px;
  z-index:999;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible{transform: translateY(0);}

a{color:inherit}

.container{
  width:min(1100px, calc(100% - 40px));
  margin-inline:auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px),
    rgba(18,20,23,.34);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.topbar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(42,167,255,.0), rgba(42,167,255,.35), rgba(255,123,42,.22), rgba(42,167,255,0));
  opacity:.55;
  pointer-events:none;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
  position: relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.brand-logo{
  width:24px;
  height:24px;
  border:1px solid rgba(42,167,255,.55);
  border-radius: 6px;
  display:grid;
  place-items:center;
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.04em;
  color: var(--accent);
  background: rgba(0,0,0,.22);
}

.brand-ver{
  font-size:12px;
  color: var(--muted-2);
}

.nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.nav-mobile-head,
.nav-mobile-foot{display:none;}

.nav-links{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.nav-toggle{
  display:none;
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  cursor: var(--cursor-pointer), pointer;
  position: relative;
}

.nav-toggle-ico{
  position:absolute;
  left:50%;
  top:50%;
  width: 18px;
  height: 12px;
  transform: translate(-50%,-50%);
}

.nav-toggle-ico::before,
.nav-toggle-ico::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
}

.nav-toggle-ico::before{top:0; box-shadow: 0 5px 0 rgba(42,167,255,.85), 0 10px 0 rgba(255,123,42,.80);}
.nav-toggle-ico::after{display:none;}

@media (prefers-reduced-motion: no-preference){
  .nav-toggle{transition: background 180ms ease, border-color 180ms ease;}
}

.nav-toggle:hover,
.nav-toggle:focus-visible{
  border-color: rgba(42,167,255,.28);
  background: rgba(42,167,255,.05);
}

@media (max-width: 860px){
  .nav-toggle{display:block;}

  /* Full-screen overlay (como a imagem) */
  .topbar[data-nav-open="0"] .nav{display:none;}
  .topbar[data-nav-open="1"] .nav{display:block;}

  .nav{
    position: fixed;
    inset: 0;
    z-index: 60;
    padding: 18px 20px 26px;
    background:
      radial-gradient(900px 620px at 20% 0%, rgba(42,167,255,.14), transparent 58%),
      radial-gradient(900px 620px at 80% 10%, rgba(255,123,42,.10), transparent 58%),
      repeating-linear-gradient(0deg, rgba(42,167,255,.06) 0 1px, transparent 1px 24px),
      repeating-linear-gradient(90deg, rgba(42,167,255,.06) 0 1px, transparent 1px 24px),
      rgba(18,20,23,.90);
    backdrop-filter: blur(10px);
  }

  .nav-mobile-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
  }

  .nav-close{
    appearance:none;
    border: 1px solid rgba(255,123,42,.70);
    background: rgba(0,0,0,.18);
    border-radius: 10px;
    width: 46px;
    height: 42px;
    cursor: var(--cursor-pointer), pointer;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
  }

  .nav-close-ico{
    position:absolute;
    left:50%;
    top:50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%,-50%);
  }

  .nav-close-ico::before,
  .nav-close-ico::after{
    content:"";
    position:absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    transform-origin:center;
  }

  .nav-close-ico::before{transform: translate(-50%,-50%) rotate(45deg);}
  .nav-close-ico::after{transform: translate(-50%,-50%) rotate(-45deg);}

  .nav-toggle{position: relative; z-index: 61;}
  .topbar[data-nav-open="1"] .nav-toggle{display:none;}

  .nav-links{
    margin-top: 22px;
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    width: min(560px, 100%);
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background:
      linear-gradient(180deg, rgb(255 255 255 / 43%), rgb(0 0 0 / 76%)),
      rgb(0 0 0 / 93%);
    box-shadow:
      0 18px 36px rgba(0,0,0,.35),
      0 0 0 1px rgba(255,255,255,.03) inset;
  }

  .nav-links::before{
    content:"";
    position:absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(42,167,255,.0), rgba(42,167,255,.35), rgba(255,123,42,.20), rgba(42,167,255,0));
    opacity: .65;
  }

  .nav a{
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 0;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 13px;
    color: rgba(255,255,255,.58);
    letter-spacing: .02em;
    position: relative;
  }

  .nav a::before{
    content:"//";
    color: rgba(42,167,255,.85);
    margin-right: 10px;
    letter-spacing: .10em;
  }

  .nav a:hover,
  .nav a:focus-visible{
    color: rgba(255,255,255,.88);
  }

  .nav-mobile-foot{
    display:block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background:
      linear-gradient(90deg, rgba(42,167,255,.0), rgba(42,167,255,.42), rgba(255,123,42,.28), rgba(42,167,255,0));
    opacity: .85;
  }
}

body.nav-open{overflow:hidden;}

.nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:12px;
  padding:8px 10px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference){
  .nav a{transition: background 180ms ease, border-color 180ms ease, color 180ms ease;}
}

.nav a[aria-current="true"],
.nav a.is-active{
  color: var(--text);
  border-color: rgba(42,167,255,.35);
  background: rgba(42,167,255,.06);
}

.nav a[aria-current="true"]::after,
.nav a.is-active::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(42,167,255,0), rgba(42,167,255,.65), rgba(255,123,42,.40), rgba(42,167,255,0));
  opacity: .55;
  transform: translate3d(-120%,0,0);
}

@media (prefers-reduced-motion: no-preference){
  .nav a[aria-current="true"]::after,
  .nav a.is-active::after{
    animation: cadScan 2.2s ease-in-out infinite;
  }
}


.nav a:hover{
  color:var(--text);
  border-color: rgba(42,167,255,.28);
  background: rgba(42,167,255,.05);
}


.badge{
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.02);
  position:relative;
  overflow:hidden;
}

.badge::after{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(42,167,255,.18), rgba(255,123,42,.14), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .badge:hover::after,
  .badge:focus-visible::after{opacity:.55; animation: cadSheen 820ms ease-out 1;}
}

/* Extra bottom padding so fixed footer never overlaps content */
main{padding:28px 0 118px}

@media (max-width: 860px){
  main{padding-bottom: 164px;}
}

.section{
  margin-top:28px;
  padding:22px;
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10)),
    var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

/* CAD “docked panel” — stroke interno e highlight suave */
.section::before{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  border: 1px solid rgba(255,255,255,.06);
  pointer-events:none;
}

.section::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background:
    linear-gradient(180deg, rgba(42,167,255,.10), rgba(0,0,0,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px);
  opacity: .32;
  pointer-events:none;
}

.section-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  position:relative;
  padding: 10px 12px 12px;
  margin: -8px -10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.10);
  border-radius: 12px;
}

.section-header::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(42,167,255,0), rgba(42,167,255,.55), rgba(255,123,42,.40), rgba(42,167,255,0));
  background-size: 220% 100%;
  opacity: .18;
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .section-header::after{animation: cadScan 2.8s ease-in-out infinite;}
}

.h2{
  margin:0;
  font-size:20px;
  letter-spacing:.02em;
  font-family: var(--mono);
  text-transform: uppercase;
}

.kicker{
  margin:0;
  font-family:var(--mono);
  color:var(--muted-2);
  font-size:12px;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.hero{
  position:relative;
  padding:56px 22px 44px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  overflow:hidden;
  min-height: min(74vh, 640px);
}

.hero-grid{
  position:absolute;
  inset:0;
  display:block;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(42,167,255,.20), transparent 55%),
    radial-gradient(900px 700px at 70% 20%, rgba(255,123,42,.14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(42,167,255,.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(42,167,255,.07) 0 1px, transparent 1px 26px);
  opacity: .75;
}

@media (prefers-reduced-motion: no-preference){
  .hero-grid{animation: cadGridDrift 10s linear infinite;}
}

.hero-frame{
  position:absolute;
  inset:14px;
  border:1px solid rgba(42,167,255,.14);
  border-radius: 18px;
  pointer-events:none;
}

.hero-frame::before,
.hero-frame::after{
  content:"";
  position:absolute;
  inset:-14px;
  border-radius: 22px;
  pointer-events:none;
}

.hero-frame::before{
  background:
    linear-gradient(90deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left top/120px 2px no-repeat,
    linear-gradient(180deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left top/2px 120px no-repeat,
    linear-gradient(270deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right top/120px 2px no-repeat,
    linear-gradient(180deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right top/2px 120px no-repeat,
    linear-gradient(90deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left bottom/120px 2px no-repeat,
    linear-gradient(0deg, rgba(42,167,255,.55), rgba(42,167,255,0)) left bottom/2px 120px no-repeat,
    linear-gradient(270deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right bottom/120px 2px no-repeat,
    linear-gradient(0deg, rgba(42,167,255,.55), rgba(42,167,255,0)) right bottom/2px 120px no-repeat;
  opacity:.6;
}

.hero-frame::after{
  background:
    radial-gradient(10px 10px at 10px 10px, rgba(255,123,42,.55), transparent 70%),
    radial-gradient(10px 10px at calc(100% - 10px) 10px, rgba(255,123,42,.55), transparent 70%),
    radial-gradient(10px 10px at 10px calc(100% - 10px), rgba(255,123,42,.55), transparent 70%),
    radial-gradient(10px 10px at calc(100% - 10px) calc(100% - 10px), rgba(255,123,42,.55), transparent 70%);
  opacity:.55;
}

@media (prefers-reduced-motion: no-preference){
  .hero-frame::before{animation: cadCornerPulse 3.8s ease-in-out infinite;}
  .hero-frame::after{animation: cadCornerPulse 5.2s ease-in-out infinite;}
}

.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}

@media (max-width: 860px){
  .hero-inner{grid-template-columns:1fr;}
}

.hero-title{
  margin:0;
  font-size:42px;
  line-height:1.04;
  letter-spacing:.01em;
}

.hero-title span{
  color:var(--accent);
}

.hero-kicker{
  margin:0;
  font-family: var(--mono);
  color: rgba(42,167,255,.85);
  font-size:12px;
  letter-spacing:.12em;
}

.hero-title--bp{
  margin-top:12px;
  font-size:56px;
  letter-spacing:.01em;
}

@media (max-width: 860px){
  .hero-title--bp{font-size:44px;}
}

.hero-subtitle{
  margin: 10px 0 0;
  color: rgba(255,255,255,.75);
  font-size:16px;
}

.hero-areas{
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.06em;
  color: rgba(42,167,255,.75);
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.hero-area{color: rgba(42,167,255,.78);}
.hero-area--cad{color: rgba(255,123,42,.92);}
.hero-area--design{color: rgba(42,167,255,.92);}
.hero-dot{color: rgba(255,255,255,.35);}

.hero-sub{
  margin:12px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}

.hero-meta{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}

.button{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-size:14px;
  display:inline-flex;
  gap:10px;
  align-items:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

.button::after{
  content:"";
  position:absolute;
  top:-1px;
  bottom:-1px;
  left:-40%;
  width: 40%;
  background:
    linear-gradient(90deg, rgba(42,167,255,0), rgba(42,167,255,.35), rgba(255,123,42,.28), rgba(42,167,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .button{transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;}
  .button:hover{transform: translateY(-1px);}
  .button:hover::after{opacity:.55; animation: cadSheen 780ms ease-out 1;}
}

.button:hover{border-color: rgba(42,167,255,.35); background: rgba(42,167,255,.06)}
.button.primary{border-color: rgba(42,167,255,.55); background: rgba(42,167,255,.10)}
.button.primary:hover{background: rgba(42,167,255,.14)}
.button.warn:hover{border-color: rgba(255,123,42,.45); background: rgba(255,123,42,.08)}

.mono{font-family:var(--mono)}

.hero-drawing{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.10);
  overflow:hidden;
  position:relative;
  align-self:center;
}

.hero-drawing .canvas{
  padding:16px;
}

.hero-scroll{
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .08em;
}

svg.blueprint{
  width:100%;
  height:auto;
  display:block;
}

.bp-line{stroke: rgba(42,167,255,.95); stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round}
.bp-aux{stroke: rgba(255,255,255,.55); stroke-width:1.2; fill:none; stroke-dasharray: 5 6}
.bp-dim{stroke: rgba(255,123,42,.9); stroke-width:1.6; fill:none;}

/* Hero CAD plot (desenho a ser criado “do zero”) */
.hero-drawing .bp-plot{
  stroke: rgba(255,255,255,.48);
  stroke-width: 1.2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hero-drawing .bp-final,
.hero-drawing .bp-label{
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference){
  /* Animated draw (scoped to hero) */
  .hero-drawing .draw{
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    transition: stroke-dashoffset 2400ms cubic-bezier(.2,.8,.2,1);
  }

  .hero-drawing.is-drawn .draw{stroke-dashoffset: 0}

  /* Sequência de plot (delays) */
  .hero-drawing .d1{transition-delay: 200ms;}
  .hero-drawing .d2{transition-delay: 1800ms;}
  .hero-drawing .d3{transition-delay: 3400ms;}
  .hero-drawing .d4{transition-delay: 5200ms;}
  .hero-drawing .d5{transition-delay: 6800ms;}
  .hero-drawing .d6{transition-delay: 8200ms;}
  .hero-drawing .d7{transition-delay: 9800ms;}
  .hero-drawing .d8{transition-delay: 11400ms;}
  .hero-drawing .d9{transition-delay: 13000ms;}
  .hero-drawing .d10{transition-delay: 14600ms;}
  .hero-drawing .d11{transition-delay: 16200ms;}
  .hero-drawing .d12{transition-delay: 17600ms;}

  /* Auxiliares tracejados + labels entram no fim (sem “marcha” contínua) */
  .hero-drawing .bp-final{
    transition: opacity 420ms ease;
    transition-delay: 15200ms;
  }
  .hero-drawing.is-drawn .bp-final{opacity: .92;}

  .hero-drawing .bp-label{
    transform: translate3d(0,4px,0);
    transition: opacity 420ms ease, transform 420ms ease;
    transition-delay: 18400ms;
  }
  .hero-drawing.is-drawn .bp-label{
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

@media (max-width: 860px){
  .grid-2{grid-template-columns:1fr;}
}

/* Sobre Mim (conforme referência) */
.about-underline{
  height: 1px;
  width: min(520px, 100%);
  margin: 10px 0 18px;
  background: linear-gradient(90deg, rgba(42,167,255,.55), rgba(42,167,255,.12), rgba(0,0,0,0));
}

.about-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px){
  .about-grid{grid-template-columns: 1fr;}
}

.about-card,
.about-mini{
  position:relative;
  border: 1px solid rgba(42,167,255,.18);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 18px;
  overflow:hidden;
  box-shadow:
    0 14px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 26px 0 rgba(42,167,255,.03);
}

.about-card::before,
.about-card::after,
.about-mini::before,
.about-mini::after{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(42,167,255,.45);
  opacity: .55;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .about-card::before,
  .fade-in.is-visible .about-card::after,
  .fade-in.is-visible .about-mini::before,
  .fade-in.is-visible .about-mini::after{animation: cadCornerPulse 4.2s ease-in-out infinite;}
}

.about-card::before,
.about-mini::before{
  left: 10px;
  top: 10px;
  border-right: none;
  border-bottom: none;
}

.about-card::after,
.about-mini::after{
  right: 10px;
  bottom: 10px;
  border-left: none;
  border-top: none;
}

.about-text{
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.65;
}

.about-facts{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  color: rgba(255,255,255,.62);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 540px){
  .about-facts{grid-template-columns: 1fr;}
}

.about-fact{display:flex; align-items:center; gap:10px;}

.about-ico{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(42,167,255,.35);
  display:grid;
  place-items:center;
  color: rgba(42,167,255,.9);
  background: rgba(0,0,0,.18);
}

.about-side{display:flex; flex-direction:column; gap: 16px;}

.about-mini-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 650;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
}

.about-mini-bullet{color: rgba(255,123,42,.9); font-family: var(--mono);}

.about-mini-rows{display:flex; flex-direction:column; gap: 10px;}

.about-mini-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.about-mini-row:last-child{border-bottom:none;}

.about-mini-name{
  font-family: var(--mono);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.about-mini-badge{
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(42,167,255,.35);
  color: rgba(42,167,255,.9);
  background: rgba(42,167,255,.06);
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 980px){
  .cards{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media (max-width: 640px){
  .cards{grid-template-columns: 1fr;}
}

.card{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10)),
    rgba(255,255,255,.02);
  padding:14px;
  min-height: 120px;
  display:flex;
  flex-direction:column;
  gap:10px;
  position:relative;
  overflow:hidden;
  box-shadow:
    0 14px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 26px 0 rgba(42,167,255,.03);
}

.card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(42,167,255,.10), rgba(0,0,0,0));
  opacity: .28;
  pointer-events:none;
}

.card > *{position:relative;}

.card .title{margin:0; font-weight:650}
.card .desc{margin:0; color:var(--muted); font-size:14px; line-height:1.45}

.tag-row{display:flex; gap:8px; flex-wrap:wrap}
.tag{
  font-family:var(--mono);
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  position:relative;
  overflow:hidden;
}

.tag::after{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(42,167,255,.16), rgba(255,123,42,.12), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .tag:hover::after,
  .tag:focus-visible::after{opacity:.50; animation: cadSheen 820ms ease-out 1;}
}

.tag.accent{border-color: rgba(42,167,255,.5); color: rgba(42,167,255,.95)}
.tag.accent2{border-color: rgba(255,123,42,.5); color: rgba(255,123,42,.95)}

/* Formação Académica (cards horizontais, ícone + link externo) */
.edu-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 860px){
  .edu-grid{grid-template-columns: 1fr;}
}

.edu-card{
  position:relative;
  border: 1px solid rgba(42,167,255,.16);
  border-radius: 14px;
  background-color: rgba(0,0,0,.16);
  padding: 18px 52px 18px 18px;
  display:grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items:center;
  overflow:hidden;
  box-shadow:
    0 14px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 26px 0 rgba(42,167,255,.03);
}

/* Cursos — animações estilo AutoCAD (plot/select) */
@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .edu-card{
    animation: cadOutlinePulse 920ms ease-out 1;
  }

  .edu-card:hover,
  .edu-card:focus-within{
    border-color: rgba(42,167,255,.26);
  }
}

@media (prefers-reduced-motion: reduce){
  .edu-card:hover,
  .edu-card:focus-within{border-color: rgba(42,167,255,.28);}
}

.edu-card::before,
.edu-card::after{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(42,167,255,.45);
  opacity: .5;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .edu-card::before,
  .fade-in.is-visible .edu-card::after{animation: cadCornerPulse 4.2s ease-in-out infinite;}
}

.edu-card::before{
  left: 10px;
  top: 10px;
  border-right:none;
  border-bottom:none;
}

.edu-card::after{
  right: 10px;
  bottom: 10px;
  border-left:none;
  border-top:none;
}

.edu-ico{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,123,42,.55);
  background: rgba(0,0,0,.18);
  box-shadow: .0 0 0 1px rgba(255,255,255,.04) inset;
  position:relative;
}

@media (prefers-reduced-motion: no-preference){
  .edu-card:hover .edu-ico,
  .edu-card:focus-within .edu-ico{
    animation: cadIcoNudge 1.6s ease-in-out infinite;
  }
}

.edu-ico::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%,-50%);
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  opacity:.95;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M2.5 6.5 9 3l6.5 3.5L9 10 2.5 6.5Z' fill='none' stroke='%23ff7b2a' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M2.5 6.5V12L9 15l6.5-3V6.5' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.edu-title{
  margin: 0;
  font-size: 16px;
  letter-spacing: .01em;
}

.edu-body{position:relative; min-width:0;}

.edu-body::after{
  content:"";
  position:absolute;
  left: -20%;
  top: -12px;
  width: 65%;
  height: calc(100% + 24px);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .edu-card:hover .edu-body::after,
  .edu-card:focus-within .edu-body::after{
    opacity: .55;
    animation: cadSheen 1.25s ease-in-out infinite;
  }
}

.edu-inst{
  margin: 6px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.edu-meta{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.edu-date{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(42,167,255,.9);
}

.edu-badge{
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,123,42,.45);
  color: rgba(255,123,42,.95);
  background: rgba(255,123,42,.08);
}

.edu-out{
  position:absolute;
  right: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow:hidden;
}

.edu-out::before{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(42,167,255,.18), rgba(255,123,42,.12), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

.edu-out::after{
  content:"";
  position:absolute;
  inset: 0;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 14px 14px;
  opacity: .65;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M8 2h4v4' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6 8 12 2' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6 2H3.2A1.2 1.2 0 0 0 2 3.2v7.6A1.2 1.2 0 0 0 3.2 12H10.8A1.2 1.2 0 0 0 12 10.8V8' fill='none' stroke='%232aa7ff' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference){
  .edu-out:hover::before,
  .edu-out:focus-visible::before{opacity:.55; animation: cadSheen 900ms ease-out 1;}
}

.edu-out:hover{border-color: rgba(42,167,255,.35); background: rgba(42,167,255,.06)}

/* Portfólio (conforme referência) */
.portfolio-tabs{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 6px;
}

.tab{
  appearance:none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.72);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-family: var(--mono);
  cursor: var(--cursor-pointer), pointer;
}

.tab{position:relative;}

.tab{overflow:hidden;}

.tab::before{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(42,167,255,.18), rgba(255,123,42,.12), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

.tab::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1px;
  background: rgba(42,167,255,.55);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .0;
}

.tab.is-active::after{
  transform: scaleX(1);
  opacity: .9;
}

@media (prefers-reduced-motion: no-preference){
  .tab::after{transition: transform 260ms ease, opacity 260ms ease;}
  .tab{transition: background 180ms ease, border-color 180ms ease, color 180ms ease;}
  .tab:hover::before,
  .tab:focus-visible::before{opacity:.55; animation: cadSheen 820ms ease-out 1;}
}

.tab:hover{border-color: rgba(42,167,255,.35); background: rgba(42,167,255,.06); color: rgba(255,255,255,.88)}

.tab.is-active{
  border-color: rgba(42,167,255,.55);
  background: rgba(42,167,255,.12);
  color: rgba(42,167,255,.95);
}

.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){
  .portfolio-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media (max-width: 640px){
  .portfolio-grid{grid-template-columns: 1fr;}
}

.p-card{
  border: 1px solid rgba(42,167,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 320px;
  position:relative;
  box-shadow:
    0 16px 28px rgba(0,0,0,.26),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 26px 0 rgba(42,167,255,.03);
}

.p-card::before,
.p-card::after{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(42,167,255,.42);
  opacity:.45;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .p-card::before,
  .fade-in.is-visible .p-card::after{animation: cadCornerPulse 4.2s ease-in-out infinite;}
}

.p-card::before{left: 10px; top: 10px; border-right:none; border-bottom:none;}
.p-card::after{right: 10px; bottom: 10px; border-left:none; border-top:none;}

.p-top{
  position:relative;
  flex: 1 1 auto;
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(650px 220px at 50% 20%, rgba(255,255,255,.06), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px);
}

@media (prefers-reduced-motion: no-preference){
  .p-top{animation: cadGridDrift 12s linear infinite;}
}

.p-pill{
  position:absolute;
  left: 14px;
  top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(42,167,255,.40);
  color: rgba(42,167,255,.92);
  background: rgba(42,167,255,.06);
  overflow:hidden;
}

.p-pill::after{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.16), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .p-card:hover .p-pill::after{opacity:.55; animation: cadSheen 900ms ease-out 1;}
}

.p-icon{
  width: 64px;
  height: 64px;
  opacity: .55;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 64px 64px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .p-icon{animation: cadIconFloat 5.2s ease-in-out infinite;}
}

.p-icon--industrial{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M14 48V22.5L32 12l18 10.5V48L32 58 14 48Z' fill='none' stroke='%232aa7ff' stroke-opacity='.9' stroke-width='3.2' stroke-linejoin='round'/%3E%3Cpath d='M32 12v46' stroke='%23ffffff' stroke-opacity='.28' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M14 22.5 32 33l18-10.5' fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.p-icon--graphics{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 14c12.2 0 22 8.8 22 19.6 0 7.8-5 11-9.3 11-3 0-4.7-1.8-4.7-4.1 0-1.7.9-3.4 1.2-5.1.5-2.7-1.2-5.2-4.6-5.2-4.3 0-7.6 4-7.6 9.1 0 4.8 2.4 9.1 6.8 12.6C22.5 50.5 12 42 12 31.7 12 21.9 20.8 14 32 14Z' fill='none' stroke='%232aa7ff' stroke-opacity='.9' stroke-width='3.2' stroke-linejoin='round'/%3E%3Ccircle cx='41.5' cy='24.8' r='2.2' fill='%23ff7b2a' fill-opacity='.85'/%3E%3Ccircle cx='24.5' cy='24.5' r='2.2' fill='%23ff7b2a' fill-opacity='.65'/%3E%3Ccircle cx='20.8' cy='34.2' r='2.2' fill='%23ff7b2a' fill-opacity='.55'/%3E%3C/svg%3E");
}

.p-icon--tech{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M24 18h16v28H24V18Z' fill='none' stroke='%232aa7ff' stroke-opacity='.9' stroke-width='3.2'/%3E%3Cpath d='M18 26h-6M18 38h-6M52 26h-6M52 38h-6' stroke='%23ffffff' stroke-opacity='.24' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M28 26h8M28 32h8M28 38h8' stroke='%23ff7b2a' stroke-opacity='.85' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.p-body{
  padding: 16px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.12);
}

.p-title{margin:0; font-size:14px; letter-spacing:.01em;}

.p-desc{
  margin: 10px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
  line-height: 1.55;
}

.p-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(42,167,255,.92);
  text-decoration:none;
}

.p-out{
  width: 14px;
  height: 14px;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 14px 14px;
  opacity:.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M8 2h4v4' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6 8 12 2' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6 2H3.2A1.2 1.2 0 0 0 2 3.2v7.6A1.2 1.2 0 0 0 3.2 12H10.8A1.2 1.2 0 0 0 12 10.8V8' fill='none' stroke='%232aa7ff' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

.p-card:hover{border-color: rgba(42,167,255,.30);}
.p-card:hover .p-icon{opacity:.75;}

/* Contacto (conforme referência final) */
.contact-wrap{padding: 24px 8px 8px;}

.contact-head{text-align:center; margin-bottom: 22px;}

.contact-title{
  margin: 8px 0 0;
  font-size: 40px;
  letter-spacing: .01em;
}

.contact-title span{color: var(--accent);}

@media (max-width: 640px){
  .contact-title{font-size: 30px;}
}

.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 820px){
  .contact-grid{grid-template-columns: 1fr;}
}

.contact-card{
  position:relative;
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(42,167,255,.18);
  background: rgba(0,0,0,.16);
  text-decoration:none;
  color: inherit;
  min-height: 86px;
  overflow:hidden;
  box-shadow:
    0 14px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 26px 0 rgba(42,167,255,.03);
}

.contact-card::before,
.contact-card::after{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(42,167,255,.45);
  opacity: .55;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .contact-card::before,
  .fade-in.is-visible .contact-card::after{animation: cadCornerPulse 4.2s ease-in-out infinite;}
}

.contact-card::before{left: 10px; top: 10px; border-right:none; border-bottom:none;}
.contact-card::after{right: 10px; bottom: 10px; border-left:none; border-top:none;}

.contact-card:hover{border-color: rgba(42,167,255,.32); background: rgba(42,167,255,.04);}

.contact-ico{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(42,167,255,.55);
  background: rgba(0,0,0,.18);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  position:relative;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .contact-ico{animation: cadIconFloat 6.2s ease-in-out infinite;}
  .contact-card:nth-child(2) .contact-ico{animation-duration: 6.8s;}
  .contact-card:nth-child(3) .contact-ico{animation-duration: 5.9s;}
  .contact-card:nth-child(4) .contact-ico{animation-duration: 7.3s;}
}

.contact-ico::after{
  content:"";
  width: 18px;
  height: 18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 18px 18px;
  opacity:.95;
}

.contact-ico--mail::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 5.5h12v7H3v-7Z' fill='none' stroke='%232aa7ff' stroke-width='1.4'/%3E%3Cpath d='M3.5 6l5.5 4 5.5-4' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-ico--phone::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M6.2 3.2 4.9 4.5c-.7.7-.7 1.9 0 2.9 1.3 2 3.7 4.4 5.7 5.7 1 .7 2.2.7 2.9 0l1.3-1.3c.5-.5.5-1.4-.1-1.9l-1.8-1.3c-.5-.4-1.2-.3-1.7.1l-.6.6c-1-.5-2.8-2.2-3.3-3.3l.6-.6c.4-.5.5-1.2.1-1.7L8 3.3c-.5-.6-1.4-.6-1.8-.1Z' fill='none' stroke='%232aa7ff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-ico--pin::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 16s5-4.3 5-8.2A5 5 0 0 0 4 7.8C4 11.7 9 16 9 16Z' fill='none' stroke='%232aa7ff' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='9' cy='7.8' r='1.6' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.1'/%3E%3C/svg%3E");
}

.contact-ico--ig::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M6 3.5h6A2.5 2.5 0 0 1 14.5 6v6A2.5 2.5 0 0 1 12 14.5H6A2.5 2.5 0 0 1 3.5 12V6A2.5 2.5 0 0 1 6 3.5Z' fill='none' stroke='%232aa7ff' stroke-width='1.2'/%3E%3Ccircle cx='9' cy='9' r='2.2' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.1'/%3E%3Ccircle cx='12.7' cy='5.4' r='0.7' fill='%23ff7b2a' fill-opacity='.9'/%3E%3C/svg%3E");
}

.contact-meta{display:flex; flex-direction:column; gap: 6px;}

.contact-label{
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.48);
  letter-spacing: .06em;
}

.contact-value{font-size: 13px; color: rgba(255,255,255,.82);}

.music-row{text-align:center; margin-top: 20px;}

.music-kicker{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .10em;
  margin-bottom: 12px;
}

.music-buttons{display:flex; justify-content:center; gap: 14px; flex-wrap:wrap;}

.music-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration:none;
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.86);
}

.music-btn--spotify{border-color: rgba(255,123,42,.55); color: rgba(255,123,42,.95); background: rgba(255,123,42,.06);}
.music-btn--apple{border-color: rgba(42,167,255,.55); color: rgba(42,167,255,.95); background: rgba(42,167,255,.06);}

.music-btn:hover{filter: brightness(1.06);}

.music-ico{
  width: 14px;
  height: 14px;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 14px 14px;
  opacity: .9;
}

.music-ico--note{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M6 3v7.2A2.1 2.1 0 1 1 4.6 8.2V3l7-1.2v6.7A2.1 2.1 0 1 1 10.2 6.5V2.5L6 3Z' fill='none' stroke='%23ffffff' stroke-opacity='.65' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Footer bar */
.site-footer{
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.57);
  background: rgba(0,0,0,.50);
  box-shadow: 1px -1px 20px rgba(42, 167, 255, .40);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}

.footer-right [data-footer-cmd]{
  position: relative;
}

@media (prefers-reduced-motion: no-preference){
  .footer-right [data-footer-cmd]::after{
    content:" _";
    display:inline-block;
    color: rgba(42,167,255,.75);
    animation: cadCaretBlink 1.05s steps(1, end) infinite;
  }

  .footer-right.is-cmd-flash [data-footer-cmd]{
    animation: cadCmdFlash 520ms ease-out 1;
  }

  .footer-right.is-view-flash [data-footer-view]{
    animation: cadViewFlash 520ms ease-out 1;
  }
}

.section.is-current{
  border-color: rgba(42,167,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10)),
    var(--panel);
}

@media (prefers-reduced-motion: no-preference){
  .section.is-current{
    animation: cadOutlinePulse 920ms ease-out 1;
  }
  .section.is-current{
    animation: cadOutlinePulse 920ms ease-out 1;
  }
  .section.is-current .section-header::after{
    opacity: .28;
    animation: cadScan 2.4s ease-in-out infinite;
  }
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px 0;
}

.footer-left{display:flex; align-items:center; gap: 12px;}

.footer-name{color: rgba(255,255,255,.62); font-size: 12px; font-family: var(--mono);}

.footer-mid{color: rgba(255,255,255,.45); font-size: 12px; font-family: var(--mono);}

.footer-right{color: rgba(255,255,255,.35); font-size: 12px; text-align:right;}

.footer-sep{margin: 0 8px; color: rgba(255,255,255,.22);}

.footer-admin{
  color: rgba(255,255,255,.35);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.18);
  padding-bottom: 1px;
}

.footer-admin:hover,
.footer-admin:focus-visible{
  color: rgba(255,255,255,.60);
  border-bottom-color: rgba(255,255,255,.35);
}

@media (max-width: 860px){
  .footer-inner{flex-direction:column; align-items:flex-start;}
  .footer-right{text-align:left;}
}

/* Skills (Competências Técnicas) — cards com barras percentuais */
.skills-cards{align-items:stretch;}

.skill-card{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10)),
    rgba(255,255,255,.02);
  padding:14px;
  min-height: 160px;
  display:flex;
  flex-direction:column;
  gap:12px;
  position:relative;
  overflow:hidden;
  box-shadow:
    0 14px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.03) inset,
    inset 0 26px 0 rgba(42,167,255,.03);
}

.skill-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(42,167,255,.10), rgba(0,0,0,0));
  opacity: .26;
  pointer-events:none;
}

.skill-card > *{position:relative;}

.skill-card-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.skill-card-title{
  margin:0;
  font-weight:700;
  letter-spacing:.02em;
}

.skill-ico{
  width:34px;
  height:34px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
  position:relative;
  flex: 0 0 auto;
}

.skill-ico::before{
  content:"";
  position:absolute;
  inset:7px;
  border-radius: 7px;
  border:1px solid rgba(42,167,255,.55);
}

.skill-ico--design::before{border-color: rgba(255,123,42,.6);}
.skill-ico--audio::before{border-color: rgba(255,123,42,.45);}
.skill-ico--systems::before{border-color: rgba(42,167,255,.45);}
.skill-ico--dev::before{border-color: rgba(42,167,255,.6);}

.skill-ico::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:16px;
  height:16px;
  transform: translate(-50%,-50%);
  opacity: .95;
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
}

.skill-ico--cad::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 12.5V6.3L8 3.2l5.5 3.1v6.2L8 15.2 2.5 12.5Z' fill='none' stroke='%232aa7ff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M8 3.2v12' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.skill-ico--design::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 12.5h10' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M4.2 11.6 11.9 3.9a1.2 1.2 0 0 1 1.7 0l.5.5a1.2 1.2 0 0 1 0 1.7L6.4 13.8 3.5 14.5l.7-2.9Z' fill='none' stroke='%23ff7b2a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.skill-ico--dev::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 4.2 2.8 8l3.4 3.8' fill='none' stroke='%232aa7ff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.8 4.2 13.2 8l-3.4 3.8' fill='none' stroke='%232aa7ff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.4 13h1.2' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.skill-ico--systems::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 6.2h9.6' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M4 3.6h8a1.2 1.2 0 0 1 1.2 1.2v6.4A1.2 1.2 0 0 1 12 12.4H4A1.2 1.2 0 0 1 2.8 11.2V4.8A1.2 1.2 0 0 1 4 3.6Z' fill='none' stroke='%232aa7ff' stroke-width='1.2'/%3E%3Ccircle cx='5.1' cy='10.2' r='0.8' fill='%23ff7b2a'/%3E%3C/svg%3E");
}

.skill-ico--audio::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 6.2v5.4a1.6 1.6 0 1 1-1.2-1.5V6.2l7-1.7v4.7a1.6 1.6 0 1 1-1.2-1.5V3.6L6.2 6.2Z' fill='none' stroke='%23ff7b2a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.skill-list{display:flex; flex-direction:column; gap:10px;}

.skill-item-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.skill-name{color: var(--text); font-size:14px;}
.skill-pct{font-family: var(--mono); color: var(--muted); font-size:12px;}

.skill-track{
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  overflow:hidden;
}

.skill-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42,167,255,.9), rgba(255,123,42,.85));
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
  position:relative;
  overflow:hidden;
}

.skill-fill::after{
  content:"";
  position:absolute;
  inset:0;
  width: 45%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

.fade-in.is-visible .skill-fill{
  width: calc(var(--p) * 1%);
  transition: width 900ms cubic-bezier(.2,.8,.2,1);
}

/* Skills — resumo técnico (OS/STORAGE/NETWORK/CNC) */
.skills-legend{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.42);
  font-size: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.skills-legend-item{white-space:nowrap;}

.skills-legend-key{
  color: rgba(42,167,255,.85);
  letter-spacing: .08em;
  margin-right: 6px;
}

@media (prefers-reduced-motion: no-preference){
  .fade-in.is-visible .skill-fill::after{animation: cadSheen 1.2s ease-out 450ms 1;}
}

@media (prefers-reduced-motion: reduce){
  .fade-in.is-visible .skill-fill{transition:none;}
}

.timeline{
  display:grid;
  gap:18px;
}

/* Timeline (conforme blueprint screenshot) */
.t-row{
  display:grid;
  grid-template-columns: 52px 1fr;
  gap:14px;
  align-items:stretch;
}

.t-rail{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-top:18px;
}

.t-node{
  width:28px;
  height:28px;
  border:1px solid rgba(42,167,255,.55);
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  position:relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
  display:grid;
  place-items:center;
}

.t-node::before{
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid rgba(255,123,42,.55);
  border-radius: 5px;
  opacity:.9;
}

.t-ico{
  width:14px;
  height:14px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:14px 14px;
  opacity:.95;
  filter: drop-shadow(0 0 8px rgba(42,167,255,.18));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 7h8M7 3v8' stroke='%232aa7ff' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M1.5 1.5h3M9.5 1.5h3M1.5 12.5h3M9.5 12.5h3' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.t-line{
  flex:1;
  width:2px;
  margin-top:12px;
  background: linear-gradient(180deg, rgba(42,167,255,.28), rgba(255,255,255,.06));
  background-size: 100% 220%;
}

@media (prefers-reduced-motion: no-preference){
  .t-line{animation: cadFlowY 3.6s linear infinite;}
  .t-row:hover .t-card{transform: translateY(-2px);}
}

.timeline > .t-row:last-child .t-line{opacity:0;}

.t-card{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10));
  box-shadow:
    0 14px 26px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.03) inset;
  padding:16px 16px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.t-row:hover .t-card{
  border-color: rgba(42,167,255,.22);
  box-shadow:
    0 14px 26px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 0 1px rgba(42,167,255,.10);
}

.t-row[aria-expanded="true"] .t-card{
  border-color: rgba(42,167,255,.32);
  background:
    linear-gradient(180deg, rgba(42,167,255,.05), rgba(0,0,0,.10));
}

.t-row[aria-expanded="true"] .t-node{
  border-color: rgba(255,123,42,.55);
}

.t-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.t-head{min-width:0}

.t-role{margin:0; font-size:16px; letter-spacing:.01em}
.t-company{margin:6px 0 0; color: rgba(42,167,255,.92); font-family: var(--mono); font-size:12px}
.t-loc{margin:8px 0 0; color: var(--muted-2); font-family: var(--mono); font-size:12px}

.t-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.t-date{
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(42,167,255,.95);
  border: 1px solid rgba(42,167,255,.30);
  background: rgba(42,167,255,.05);
  padding: 6px 10px;
  border-radius: 10px;
  position:relative;
  overflow:hidden;
}

.t-date::after{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

@media (prefers-reduced-motion: no-preference){
  .t-row:hover .t-date::after{opacity:.55; animation: cadSheen 900ms ease-out 1;}
}

.t-toggle{
  appearance:none;
  width:32px;
  height:32px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  color: var(--text);
  display:inline-grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}

.t-toggle::after{
  content:"";
  position:absolute;
  inset:0;
  width: 55%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(42,167,255,.18), rgba(255,123,42,.12), rgba(255,255,255,0));
  opacity: 0;
  transform: translate3d(-140%,0,0);
  pointer-events:none;
}

.t-toggle:hover{border-color: rgba(42,167,255,.35); background: rgba(42,167,255,.06)}

@media (prefers-reduced-motion: no-preference){
  .t-toggle{transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;}
  .t-toggle:hover{transform: translateY(-1px);}
  .t-toggle:hover::after,
  .t-toggle:focus-visible::after{opacity:.55; animation: cadSheen 820ms ease-out 1;}
}

.t-chevron{
  width:10px;
  height:10px;
  border-right:2px solid rgba(255,255,255,.70);
  border-bottom:2px solid rgba(255,255,255,.70);
  transform: rotate(45deg);
  transition: transform 220ms ease;
}

.t-row[aria-expanded="true"] .t-chevron{transform: rotate(-135deg)}

.t-bullets{
  list-style:none;
  padding: 12px 0 0;
  margin: 0;
  display:grid;
  gap: 8px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.5;
}

.t-bullets li{
  position:relative;
  padding-left: 18px;
}

.t-bullets li::before{
  content:"";
  position:absolute;
  left:0;
  top: 0.55em;
  width: 0;
  height: 0;
  border-left: 6px solid rgba(42,167,255,.9);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.t-details{
  margin-top:10px;
  border-top:1px dashed rgba(255,255,255,.14);
  padding-top:10px;
  display:none;
}

.t-row[aria-expanded="true"] .t-details{display:block}

@media (max-width: 720px){
  .t-row{grid-template-columns: 40px 1fr;}
  .t-rail{padding-top: 14px;}
  .t-node{width:24px; height:24px; border-radius: 7px;}
  .t-node::before{inset:6px;}
  .t-ico{width:12px; height:12px; background-size:12px 12px;}
  .t-meta{gap:8px;}
}

/* (Legacy timeline classes removidas/substituídas por .t-row/.t-card/.t-bullets) */

.filterbar{display:flex; gap:10px; flex-wrap:wrap}
.filterbar .button{font-family:var(--mono)}
.button.is-active{border-color: rgba(42,167,255,.65); background: rgba(42,167,255,.12)}

.count-pill{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

.fade-in{
  opacity:0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.is-visible{
  opacity:1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .fade-in{opacity:1; transform:none; transition:none;}
}

/* CAD selection/highlight states (hover + keyboard focus) */
:where(.section, .card, .skill-card, .about-card, .about-mini, .edu-card, .p-card, .contact-card, .t-card){
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

/* AutoCAD-style "marching ants" selection (only on components with free ::after) */
:where(.card, .skill-card, .t-card){
  position: relative;
}

:where(.card, .skill-card, .t-card)::after{
  content:"";
  position:absolute;
  inset: 8px;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference){
  :where(.card, .skill-card):hover::after,
  :where(.card, .skill-card):focus-within::after,
  :where(.card, .skill-card).is-selected::after,
  .t-row:hover .t-card::after,
  .t-row:focus-within .t-card::after,
  .t-row.is-selected .t-card::after,
  .t-row[aria-expanded="true"] .t-card::after{
    opacity: 0;
  }
}

.skill-card.is-selected{
  border-color: rgba(42,167,255,.32);
}

.t-row.is-selected .t-card{
  border-color: rgba(42,167,255,.32);
}

.t-row.is-selected .t-node{
  border-color: rgba(42,167,255,.70);
}

:where(.section, .card, .skill-card, .about-card, .about-mini, .edu-card, .p-card, .contact-card, .t-card):hover{
  border-color: rgba(42,167,255,.26);
  box-shadow:
    0 16px 30px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 0 1px rgba(42,167,255,.10);
}

:where(.section, .card, .skill-card, .about-card, .about-mini, .edu-card, .p-card, .contact-card, .t-card):focus-within{
  border-color: rgba(42,167,255,.38);
  box-shadow:
    0 18px 34px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 0 1px rgba(42,167,255,.18),
    inset 0 0 0 1px rgba(42,167,255,.10);
}

/* Timeline row also behaves like a selectable item */
.t-row:focus-within .t-card{
  border-color: rgba(42,167,255,.32);
  transform: translateY(-2px);
}

.footer{
  margin-top:24px;
  color:var(--muted-2);
  font-family:var(--mono);
  font-size:12px;
  text-align:center;
}

/* Admin */
.admin-shell{
  display:grid;
  gap:14px;
}

.form-row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 720px){.form-row{grid-template-columns:1fr;}}

.label{display:block; font-size:12px; color:var(--muted); font-family:var(--mono); margin-bottom:6px}

.input, .textarea, select{
  width:100%;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color:var(--text);
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}

.textarea{min-height: 92px; resize:vertical; font-family: var(--sans)}

.notice{
  border:1px solid var(--border);
  border-radius: 12px;
  padding:12px 14px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
}

.notice.ok{border-color: rgba(51,209,122,.35); color: rgba(51,209,122,.92)}
.notice.bad{border-color: rgba(255,77,77,.35); color: rgba(255,77,77,.9)}

.table{
  width:100%;
  border-collapse: collapse;
  font-size:14px;
}
.table th, .table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
}
.table th{color:var(--muted); font-family:var(--mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase}
.small{font-size:12px; color:var(--muted)}

.actions{display:flex; gap:8px; flex-wrap:wrap}
.actions form{display:inline}

hr.sep{border:0; border-top:1px solid rgba(255,255,255,.10); margin:8px 0}
