/* ============================================================
   RAFAEL NASSIF — PORTFÓLIO 2026
   dark editorial · blueprint de design system · accent laranja
   ============================================================ */

:root {
  --bg: #0d0b09;
  --bg-2: #161210;
  --dark: #0a0806;
  --ink: #f0e9dd;
  --muted: #988d7e;
  --line: rgba(240, 233, 221, 0.13);
  --line-soft: rgba(240, 233, 221, 0.07);
  --accent: #ff4d00;
  --accent-2: #ff6a26;

  --font-d: "Archivo", sans-serif;
  --font-m: "Fragment Mono", monospace;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --sec-gap: clamp(6rem, 14vh, 11rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 233, 221, 0.25) var(--dark);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}

/* grain global */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 2000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
}

::selection { background: var(--accent); color: var(--dark); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(240, 233, 221, 0.22); border-radius: 99px; border: 2px solid var(--dark); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 650; color: var(--ink); }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 99999;
  background: var(--accent); color: var(--dark);
  padding: 0.6rem 1rem; font-family: var(--font-m); font-size: 0.8rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- utilidades ---------- */
.label {
  font-family: var(--font-m);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
}

.tick { display: inline-block; width: 9px; height: 9px; border: 1px solid currentColor; position: relative; margin-inline: 0.55em; transform: translateY(1px); }
.tick::before, .tick::after { content: ""; position: absolute; background: currentColor; }
.tick::before { width: 1px; height: 5px; left: 50%; top: -7px; }
.tick::after { height: 1px; width: 5px; top: 50%; left: -7px; }

/* anti-FOUC: revelados via GSAP */
.js [data-reveal] { opacity: 0; }
.js.no-anim [data-reveal] { opacity: 1; }

.char { display: inline-block; will-change: transform; }
.word { display: inline-block; }
.word-in { display: inline-block; will-change: transform; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: var(--dark);
  place-items: center;
}
.js .preloader { display: grid; }

/* failsafe: some o preloader mesmo se o JS travar */
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.js .preloader { animation: preloader-failsafe 0.5s 5s forwards; }

.preloader__inner { display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.preloader__count {
  font-family: var(--font-d);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.preloader__count::after { content: "%"; font-size: 0.3em; color: var(--accent); margin-left: 0.1em; font-stretch: 100%; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-soft); }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ============================================================
   CURSOR (somente ponteiro fino)
   ============================================================ */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
  .cursor__dot {
    position: fixed; top: -3px; left: -3px; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
  }
  .cursor__ring {
    position: fixed; top: -17px; left: -17px; width: 34px; height: 34px;
    border: 1px solid rgba(240, 233, 221, 0.45); border-radius: 50%;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, background-color 0.3s;
  }
  .cursor.is-active .cursor__ring {
    transform: scale(1.9);
    border-color: var(--accent);
    background: rgba(255, 77, 0, 0.08);
  }
  .cursor.is-down .cursor__ring { transform: scale(0.8); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(13, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-block: 0.8rem;
}

.header__logo { font-family: var(--font-m); font-size: 0.95rem; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 0.15rem; }
.header__logo-mark { font-weight: 400; color: var(--ink); }
.header__logo-c { font-size: 0.62rem; color: var(--accent); }

.header__nav { display: flex; gap: clamp(1.2rem, 2.5vw, 2.6rem); }
.header__nav a {
  font-family: var(--font-m); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); position: relative; padding-block: 0.2rem;
  transition: color 0.3s;
}
.header__nav a sup { font-size: 0.6em; color: var(--accent); margin-left: 0.25em; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__meta { display: flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.header__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.header__burger { display: none; position: relative; z-index: 6001; width: 42px; height: 42px; }
.header__burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.header__burger span:nth-child(1) { top: 16px; }
.header__burger span:nth-child(2) { top: 25px; }
.header__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.header__burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ============================================================
   MENU MOBILE
   ============================================================ */
.menu { position: fixed; inset: 0; z-index: 6000; visibility: hidden; pointer-events: none; }
.menu.is-open { pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: var(--dark); transform: translateY(-101%); }
.menu__nav {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad); gap: 0.4rem;
}
.menu__nav a {
  font-size: clamp(1.8rem, 7.1vw, 4.2rem);
  font-weight: 750; font-stretch: 118%; text-transform: uppercase; line-height: 1.12;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(40px);
  transition: color 0.3s;
}
.menu__nav a em { font-family: var(--font-m); font-style: normal; font-size: 0.85rem; color: var(--accent); }
.menu__nav a:hover { color: var(--accent); }
.menu__foot {
  position: absolute; bottom: 2rem; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  opacity: 0;
}
.menu__foot a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--pad) + 4rem) var(--pad) clamp(4.5rem, 9vh, 6.5rem);
  overflow: clip;
}

.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease 0.2s;
}
.hero__canvas.is-ready { opacity: 1; }

.hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(115% 80% at 70% 15%, rgba(255, 77, 0, 0.075), transparent 55%),
    radial-gradient(80% 60% at 15% 90%, rgba(255, 77, 0, 0.05), transparent 60%);
}

.hero__frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__frame-item { position: absolute; display: inline-flex; align-items: center; }
.hero__frame-item--tl { top: calc(1.1rem + 4.2rem); left: var(--pad); }
.hero__frame-item--tr { top: calc(1.1rem + 4.2rem); right: var(--pad); }

.hero__content { position: relative; z-index: 3; }

.hero__kicker { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: clamp(1rem, 3vh, 2rem); color: var(--ink); }
.hero__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #38d168; box-shadow: 0 0 12px rgba(56, 209, 104, 0.8); animation: blink 2s infinite; }

.hero__title {
  font-size: clamp(3.2rem, 16.8vw, 15.5rem);
  line-height: 0.84;
  font-weight: 820;
  font-stretch: 125%;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero__line { display: block; overflow: hidden; padding-block: 0.04em; white-space: nowrap; }
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.22vw, 2.5px) var(--ink);
}
.hero__star {
  display: inline-block;
  font-size: 0.16em;
  color: var(--accent);
  vertical-align: super;
  margin-left: 0.3em;
  -webkit-text-stroke: 0;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__sub {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-top: clamp(1.6rem, 4vh, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.1rem, 2.5vh, 1.8rem);
}
.hero__role {
  font-size: clamp(1.25rem, 2.7vw, 2.1rem);
  font-weight: 620; font-stretch: 112%;
  line-height: 1.1;
}
.hero__role em { color: var(--accent); font-weight: 400; }
.hero__desc { max-width: 34ch; color: var(--muted); font-size: clamp(0.92rem, 1.1vw, 1.05rem); text-align: right; }

.hero__bottom {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__scroll-line { display: inline-block; width: 56px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%); animation: scroll-line 2.2s var(--ease-out) infinite;
}
@keyframes scroll-line { 40% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding: clamp(1.1rem, 2.4vh, 1.7rem) 0;
  overflow: clip;
  background: var(--bg-2);
}
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700; font-stretch: 120%; text-transform: uppercase;
  letter-spacing: 0.01em; white-space: nowrap; line-height: 1;
}
.marquee__track i { font-style: normal; color: var(--accent); font-size: 0.6em; vertical-align: 0.25em; margin: 0 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SEÇÕES — base
   ============================================================ */
.section { padding: var(--sec-gap) var(--pad) 0; max-width: 100rem; margin-inline: auto; }
.section:last-of-type { padding-bottom: var(--sec-gap); }

.sec-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.sec-head__index { color: var(--accent); }
.sec-head__title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 740; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}
.sec-head__rule { flex: 1; }
.sec-head__meta { white-space: nowrap; }

/* ============================================================
   SOBRE
   ============================================================ */
.about__statement {
  font-size: clamp(1.65rem, 3.9vw, 3.3rem);
  font-weight: 600; font-stretch: 106%;
  line-height: 1.18; letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: clamp(2.8rem, 7vh, 5rem);
}
.about__statement strong { color: var(--accent); font-weight: 750; }
.about__statement .word { overflow: hidden; vertical-align: top; }

.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(3rem, 7vh, 5.5rem);
}
.about__col p { color: var(--muted); max-width: 58ch; }
.about__col p + p { margin-top: 1.2rem; }

.about__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.about__facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.about__facts span { color: var(--accent); }
.about__facts b { font-family: var(--font-d); font-weight: 500; color: var(--ink); font-size: 0.92rem; letter-spacing: 0.01em; text-transform: none; text-align: right; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.stats__item { border-right: 1px solid var(--line); padding: 0.4rem clamp(1rem, 2.4vw, 2.2rem) 1rem; display: grid; gap: 0.5rem; align-content: start; }
.stats__num {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 820; font-stretch: 125%; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stats__num::first-letter { color: var(--ink); }
.stats__item:nth-child(odd) .stats__num { color: var(--accent); }

/* ============================================================
   EXPERIÊNCIA
   ============================================================ */
.xp__list { border-top: 1px solid var(--line); }
.xp__row {
  --row-ink: var(--ink);
  --row-muted: var(--muted);
  position: relative;
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) auto 2.5rem;
  align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.4rem, 3.2vh, 2.1rem) 0.9rem;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.xp__row::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.42s var(--ease-out);
}
.xp__row:hover::before { transform: scaleY(1); }
.xp__row > * { position: relative; z-index: 1; }
.xp__row:hover { --row-ink: var(--dark); --row-muted: rgba(10, 8, 6, 0.72); }

.xp__period { color: var(--row-muted); transition: color 0.25s; }
.xp__role {
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 680; font-stretch: 114%; line-height: 1.12;
  color: var(--row-ink); transition: color 0.25s;
}
.xp__desc { color: var(--row-muted); font-size: 0.9rem; margin-top: 0.35rem; max-width: 52ch; transition: color 0.25s; }
.xp__company {
  font-family: var(--font-m); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--row-muted); white-space: nowrap; transition: color 0.25s;
}
.xp__arrow {
  font-size: 1.4rem; color: var(--row-ink);
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s, color 0.25s;
}
.xp__row:hover .xp__arrow { transform: translateX(0) rotate(-45deg); opacity: 1; }

/* ============================================================
   CASES
   ============================================================ */
.cases__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}
.cases__grid .case:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }

.case {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.4s, transform 0.4s;
  will-change: transform;
}
.case:hover { border-color: rgba(255, 77, 0, 0.55); }

.case__visual {
  position: relative;
  height: clamp(230px, 24vw, 330px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line-soft) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line-soft) 39px 40px);
}
.case__num { position: absolute; top: 0.9rem; left: 1rem; color: var(--accent); }

.case__info { padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.case__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.case__title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; font-stretch: 115%; line-height: 1.1; }
.case__year { color: var(--accent); }
.case__desc { color: var(--muted); font-size: 0.93rem; max-width: 48ch; margin-bottom: 1.1rem; }
.case__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case__tags li { border: 1px solid var(--line); padding: 0.3rem 0.7rem; border-radius: 99px; font-size: 0.62rem; }

/* ---- arte CSS dos cases ---- */
.case-art { position: relative; display: grid; place-items: center; }
.art-stroke { stroke: var(--ink); stroke-width: 2.5; opacity: 0.85; }
.art-route { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 7 7; animation: route-dash 1.6s linear infinite; }
@keyframes route-dash { to { stroke-dashoffset: -28; } }
.art-dot-a { fill: var(--ink); }
.art-dot-b { fill: var(--accent); }
.art-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; animation: pulse 2s ease-out infinite; transform-origin: 96px 48px; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.case-art--route svg { width: clamp(110px, 11vw, 150px); height: auto; display: block; }

.case-art--os { width: min(70%, 260px); height: 150px; }
.art-card {
  position: absolute; left: 50%; top: 50%;
  width: 170px; height: 64px;
  background: #1d1712;
  border: 1px solid rgba(240, 233, 221, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  display: grid; align-content: center; gap: 6px;
  transition: transform 0.5s var(--ease-out);
}
.art-card i { display: block; height: 4px; background: rgba(240, 233, 221, 0.3); width: 80%; }
.art-card i:last-of-type { width: 55%; }
.art-card b { position: absolute; right: 10px; top: 8px; font-family: var(--font-m); font-weight: 400; font-size: 0.55rem; color: rgba(240, 233, 221, 0.75); letter-spacing: 0.1em; }
.art-card--1 { transform: translate(-62%, -78%) rotate(-5deg); }
.art-card--2 { transform: translate(-50%, -50%) rotate(1.5deg); border-color: rgba(255, 77, 0, 0.6); }
.art-card--3 { transform: translate(-38%, -16%) rotate(6deg); }
.case:hover .art-card--1 { transform: translate(-68%, -88%) rotate(-8deg); }
.case:hover .art-card--3 { transform: translate(-32%, -8%) rotate(9deg); }
.art-check {
  position: absolute; right: -6px; top: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}

.case-art--score svg { width: clamp(150px, 14vw, 200px); height: auto; display: block; }
.art-arc-bg { stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.art-arc-fg {
  stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 62 100;
  transition: stroke-dasharray 0.9s var(--ease-out);
}
.case:hover .art-arc-fg { stroke-dasharray: 78 100; }
.art-needle { stroke: var(--ink); stroke-width: 2.5; transform-origin: 100px 110px; transition: transform 0.9s var(--ease-out); }
.case:hover .art-needle { transform: rotate(18deg); }
.art-bars { position: absolute; right: 8%; bottom: 10%; display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.art-bars i { width: 7px; background: var(--line); }
.art-bars i:nth-child(1) { height: 30%; }
.art-bars i:nth-child(2) { height: 55%; }
.art-bars i:nth-child(3) { height: 40%; background: var(--accent); }
.art-bars i:nth-child(4) { height: 80%; }
.art-bars i:nth-child(5) { height: 62%; }

.case-art--kanban { display: flex; gap: 12px; align-items: flex-start; }
.art-col { width: 64px; display: grid; gap: 7px; }
.art-col span { height: 5px; width: 60%; background: var(--accent); margin-bottom: 3px; }
.art-col i { display: block; height: 30px; border: 1px solid var(--line); background: var(--bg); transition: transform 0.45s var(--ease-out); }
.art-col:nth-child(2) i:nth-child(3) { border-color: rgba(255, 77, 0, 0.7); background: rgba(255, 77, 0, 0.12); }
.case:hover .art-col:nth-child(2) i:nth-child(3) { transform: translateY(-6px); }
.art-clock { position: absolute; bottom: -28px; left: 0; font-family: var(--font-m); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--muted); }
.case-art--kanban { position: relative; }

/* ---- arte case 01: comparativo de linhas de crédito ---- */
.case-art--credit { display: flex; gap: 12px; align-items: flex-start; }
.cc-card {
  position: relative;
  width: clamp(48px, 5vw, 60px); min-height: 112px;
  background: #1d1712;
  border: 1px solid rgba(240, 233, 221, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  padding: 9px; display: grid; gap: 7px; align-content: start;
  transition: transform 0.45s var(--ease-out), border-color 0.45s;
}
.cc-card .cc-bar { height: 7px; width: 72%; background: rgba(240, 233, 221, 0.32); }
.cc-card i { display: block; height: 4px; background: rgba(240, 233, 221, 0.18); }
.cc-card i:last-child { width: 58%; }
.cc-card--b {
  border-color: rgba(255, 77, 0, 0.65);
  background: rgba(255, 77, 0, 0.1);
  transform: translateY(-10px);
}
.cc-card--b .cc-bar { background: var(--accent); }
.cc-card--b i { background: rgba(255, 77, 0, 0.3); }
.case:hover .cc-card--b { transform: translateY(-16px); }
.case:hover .cc-card--a { transform: translateY(3px); }
.case:hover .cc-card--c { transform: translateY(3px); }
.cc-seal {
  position: absolute; top: -12px; right: -10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.45);
}

/* ---- card de case clicável (link p/ página interna) ---- */
.case--link { cursor: pointer; }
.case__stretch { position: absolute; inset: 0; z-index: 6; }
.case__stretch:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.case__more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--accent); margin-top: 1.1rem;
  transition: gap 0.3s var(--ease-out);
}
.case--link:hover .case__more { gap: 0.85rem; }

/* ============================================================
   SKILLS — tokens
   ============================================================ */
.skills__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3.5rem, 8vh, 6rem);
}
.skills__cat { margin-bottom: 1.1rem; color: var(--accent); }
.tokens { border-top: 1px dashed var(--line); }
.token {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.72rem 0.5rem;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-m); font-size: clamp(0.78rem, 1vw, 0.92rem);
  transition: background-color 0.25s, padding-left 0.3s var(--ease-out);
}
.token__key { color: var(--ink); }
.token__val { color: var(--muted); text-align: right; }
.token:hover { background: var(--bg-2); padding-left: 1rem; }
.token:hover .token__key { color: var(--accent); }

/* ---- formação ---- */
.edu__title { color: var(--accent); margin-bottom: 1.4rem; }
.edu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2.5rem); margin-bottom: 2rem; }
.edu__card {
  border: 1px solid var(--line); padding: clamp(1.3rem, 2.5vw, 2rem);
  display: grid; gap: 0.6rem; align-content: start;
  background: var(--bg-2);
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.edu__card:hover { border-color: rgba(255, 77, 0, 0.5); transform: translateY(-4px); }
.edu__card h4 { font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-weight: 680; font-stretch: 112%; line-height: 1.15; }
.edu__card p { color: var(--muted); font-size: 0.92rem; }
.edu__period { color: var(--accent); }

.edu__certs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.edu__certs li {
  border: 1px solid var(--line); border-radius: 99px;
  padding: 0.45rem 0.95rem; font-size: 0.66rem;
  transition: border-color 0.3s, color 0.3s;
}
.edu__certs li:hover { border-color: var(--accent); color: var(--ink); }

/* ============================================================
   CONTATO
   ============================================================ */
.contact { text-align: left; }
.contact__kicker { margin-bottom: 1.6rem; }

.contact__cta { display: inline-block; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.contact__cta-line {
  display: block; overflow: hidden; white-space: nowrap;
  font-size: clamp(1.6rem, 9vw, 8.6rem);
  font-weight: 820; font-stretch: 125%;
  text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em;
}
.contact__cta-line--accent { color: var(--accent); }
.contact__cta-arrow {
  display: inline-block; margin-left: 0.12em;
  transition: transform 0.45s var(--ease-out);
}
.contact__cta:hover .contact__cta-arrow { transform: translateX(0.12em) rotate(-45deg); }
.contact__cta:hover .contact__cta-line--accent { color: var(--accent-2); }

.contact__row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.contact__email { letter-spacing: 0.08em; text-transform: lowercase; display: inline-flex; gap: 0.8rem; align-items: baseline; transition: color 0.3s; }
.contact__email:hover { color: var(--ink); }
.contact__copy-hint { color: var(--accent); opacity: 0; transition: opacity 0.3s; }
.contact__email:hover .contact__copy-hint { opacity: 1; }
.contact__links { display: flex; gap: 1.8rem; }
.contact__links a { transition: color 0.3s; padding: 0.4rem 0; display: inline-block; }
.contact__links a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.6rem var(--pad);
  margin-top: var(--sec-gap);
}
.footer .label { font-size: 0.64rem; }
.footer__top { transition: color 0.3s; }
.footer__top:hover { color: var(--accent); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 8000;
  transform: translate(-50%, calc(100% + 2.5rem));
  visibility: hidden;
  background: var(--accent); color: var(--dark);
  padding: 0.8rem 1.4rem; border-radius: 99px;
  font-size: 0.72rem; letter-spacing: 0.12em;
  transition: transform 0.45s var(--ease-out), visibility 0s 0.45s;
  pointer-events: none;
}
.toast.is-on {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.45s var(--ease-out), visibility 0s;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .xp__row { grid-template-columns: 8.5rem minmax(0, 1fr) 2rem; }
  .xp__company { display: none; }
}

@media (max-width: 880px) {
  .header__nav, .header__meta { display: none; }
  .header__burger { display: block; }

  .hero__sub { flex-direction: column; align-items: flex-start; }
  .hero__desc { text-align: left; }
  .hero__frame-item--tr { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .stats__item { padding-top: 1rem; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .cases__grid { grid-template-columns: 1fr; }
  .cases__grid .case:nth-child(even) { margin-top: 0; }

  .skills__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .edu__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .xp__row { grid-template-columns: 1fr 2rem; }
  .xp__period { grid-column: 1 / -1; margin-bottom: 0.2rem; }
  .sec-head__meta { display: none; }
  .contact__row { flex-direction: column; align-items: flex-start; }
  .hero__bottom .hero__coords { display: none; }
}

/* ============================================================
   MOVIMENTO REDUZIDO — opt-in explícito via ?motion=off
   (o hint do SO não é usado como gate; ver comentário no index)
   ============================================================ */
html.motion-off *,
html.motion-off *::before,
html.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
html.motion-off .hero__canvas,
html.motion-off .hero__canvas.is-ready { opacity: 0.4; }
