/* Portfólio Caio Goia: visual "ninja" (out/2026), usado pelas duas páginas (PT e EN).
   Valores tirados do handoff em ideias/ninja-prototipo/. */
/* fontes servidas pelo próprio site (antes vinham do Google Fonts): só os estilos e subconjuntos usados */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400i-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-600-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-600-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-600-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/noto-serif-jp-900-kanji.woff2') format('woff2');
  unicode-range: U+4eba, U+4f5c, U+5f71, U+5fcd, U+9023, U+9053;
}

:root {
  --red: #F51A33;
  --ink: #120709;
  --card: rgba(16, 6, 8, .9);
  --term: #0c0405;
  --card-ink: #f3e8e2;
  --light: #f6ece6;
  --accent: #ff5c6c;
  --rule: rgba(18, 7, 9, .35);
  --gutter: clamp(20px, 4vw, 56px);
  --cut: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  --scan: repeating-linear-gradient(0deg, rgba(18, 7, 9, .05) 0 1px, transparent 1px 3px);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Anton', Impact, sans-serif;
  --kanji: 'Noto Serif JP', serif;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--red); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff4ec; }
::selection { background: var(--ink); color: var(--red); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- fundo fixo: ilustração, ninja respirando, scanlines e canvas (rede + fumaça) ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene > div { position: absolute; inset: 0; background: var(--red) url('../img/ninja-bg.webp') no-repeat right bottom / cover; }
/* respiração: escala a partir dos pés (transform-origin vem do JS) */
.scene-ninja { will-change: transform; animation: breathe 2.1s linear infinite alternate; }
@keyframes breathe {
  0% { transform: scale(1.00000, 1.00000); }
  8.33% { transform: scale(1.00000, 1.00001); }
  16.67% { transform: scale(1.00005, 1.00014); }
  25% { transform: scale(1.00023, 1.00064); }
  33.33% { transform: scale(1.00063, 1.00172); }
  41.67% { transform: scale(1.00124, 1.00341); }
  50% { transform: scale(1.00200, 1.00550); }
  58.33% { transform: scale(1.00276, 1.00759); }
  66.67% { transform: scale(1.00337, 1.00928); }
  75% { transform: scale(1.00377, 1.01036); }
  83.33% { transform: scale(1.00395, 1.01086); }
  91.67% { transform: scale(1.00400, 1.01099); }
  100% { transform: scale(1.00400, 1.01100); }
}
/* quando o ninja ficaria atrás do texto (telas estreitas), ele vira marca-d'água; o JS lê esta opacidade */
.ninja-faint .scene { opacity: .26; }
.scanlines { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--scan); }
.fx { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- cabeçalho ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
/* depois de rolar, o cabeçalho ganha fundo (o vermelho da página), para o texto não passar por baixo */
.scrolled .top { background: var(--scan), var(--red); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo .kanji { font-family: var(--kanji); font-size: 20px; font-weight: 900; }
.top nav { display: flex; flex-wrap: wrap; gap: 22px; }
.lang { display: flex; gap: 10px; }
.lang b { font-weight: 600; }
.lang a { opacity: .6; }

/* ---------- coluna de conteúdo ---------- */
main { position: relative; z-index: 2; padding: 0 var(--gutter); }
.col { max-width: 660px; }

.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 120px 0 80px; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(96px, 15vw, 210px); line-height: .84; letter-spacing: -.01em; text-transform: uppercase; }
.intro { display: flex; gap: 22px; align-items: flex-start; }
.me { margin: 0; flex: none; display: flex; flex-direction: column; gap: 6px; }
.me img { width: 112px; height: 136px; object-fit: cover; filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; clip-path: polygon(0 0, 82% 0, 100% 14%, 100% 100%, 0 100%); }
.me figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.intro p { margin: 0; font-size: 19px; line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.btn-solid { padding: 14px 22px; background: var(--ink); color: var(--light); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.btn-line { padding: 13px 21px; border: 1px solid var(--ink); }

/* cartão escuro com o canto cortado */
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; background: var(--card); color: var(--card-ink); clip-path: var(--cut); }
.card-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.tools { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; opacity: .65; }

.resumo { padding: 40px 0 100px; }
.resumo .card { padding: 30px 32px; }
.resumo .card-meta { letter-spacing: .14em; }
.resumo .card p { font-size: 16px; }

/* ---------- seções ---------- */
.sec { padding: 80px 0; display: flex; flex-direction: column; gap: 32px; }
.sec-h { display: flex; align-items: flex-end; gap: 20px; }
.sec-h .kanji { font-family: var(--kanji); font-weight: 900; font-size: 88px; line-height: .9; }
.sec-h div { display: flex; flex-direction: column; gap: 6px; }
.sec-h .num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 64px; line-height: .9; text-transform: uppercase; }
.sub { margin: 0; font-size: 18px; font-style: italic; text-wrap: pretty; }

.facts { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 500; }

.cards { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.job .card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.job h3 { letter-spacing: .01em; }
.proj-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.links { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); }

.term { background: var(--term); color: var(--card-ink); padding: 22px 24px; overflow-x: auto; }
.term pre { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.term .prompt { color: var(--accent); }
.term .note { opacity: .6; }

.lessons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.lessons li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.6; }
.lessons .eps { font-family: var(--mono); font-size: 12px; padding-top: 3px; }
.lessons a { font-family: var(--mono); font-size: 12px; text-decoration: underline; }

.contact { padding-bottom: 160px; }
.contact-p { margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.email { font-family: var(--display); font-size: clamp(30px, 5vw, 52px); line-height: 1; text-transform: uppercase; word-break: break-all; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tiles a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); color: var(--card-ink); }
.foot { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding-top: 40px; }

/* ---------- telas menores (o handoff só define o desktop) ---------- */
@media (max-width: 900px) {
  .top nav { display: none; }
}
@media (max-width: 560px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .hero { gap: 24px; padding: 96px 0 72px; }
  .intro { gap: 16px; }
  .me img { width: 84px; height: 102px; }
  .intro p { font-size: 17px; }
  .card, .resumo .card { padding: 24px 20px; }
  .sec { padding: 64px 0; gap: 26px; }
  .sec-h { gap: 14px; }
  .sec-h .kanji { font-size: 60px; }
  h2 { font-size: clamp(34px, 11vw, 64px); }
  .sub, .contact-p { font-size: 17px; }
  .facts { grid-template-columns: 116px minmax(0, 1fr); }
  .facts dd { padding-left: 4px; }
  .lessons li { grid-template-columns: 34px minmax(0, 1fr); }
  .term { padding: 18px 16px; }
  .contact { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-ninja { animation: none; }
}
