/* ============================================================
   THIAGO A. NUNES — home (versão com movimento)
   Tela cheia, tipografia grande, scroll como narrativa.
   Tudo respeita prefers-reduced-motion.
   ============================================================ */
:root {
  --ink: #0B1220; --ink-2: #111A2C; --ink-3: #1A2540;
  --paper: #F5F3EF; --paper-2: #ECE9E3; --white: #fff;
  --text: #121826; --muted: #5B6475; --muted-d: rgba(245,243,239,.62);
  --line: rgba(11,18,32,.12); --line-d: rgba(245,243,239,.14);
  --accent: #FF6A1F; --accent-ink: #C2410C;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'Chivo Mono', ui-monospace, 'Courier New', monospace;
  --pad: clamp(20px, 4.2vw, 80px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
.wrap { width: 100%; padding-left: var(--pad); padding-right: var(--pad); max-width: 1760px; margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
em.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.07em; line-height: inherit; }
.mk { fill: currentColor; }

/* ---------- Camadas globais ---------- */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }
.cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; display: none; }
.cursor .dot { position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cursor .ring { position: fixed; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,106,31,.7); display: grid; place-items: center; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background .3s, border-color .3s; }
.cursor.hov .ring { width: 84px; height: 84px; left: -42px; top: -42px; background: var(--accent); border-color: var(--accent); }
.cursor.hov .dot { opacity: 0; }
.cursor.on-accent .dot { background: var(--ink); }
.cursor.on-accent:not(.hov) .ring { border-color: var(--ink); }
.cursor.on-accent.hov .ring { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } .has-cursor body, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; } }

/* ---------- Abertura ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; color: var(--paper); transition: transform 1s var(--ease-io); }
.loader .l-mark { width: clamp(72px, 10vw, 128px); height: auto; clip-path: inset(0 0 100% 0); animation: lm 1s var(--ease-io) .15s forwards; color: var(--accent); }
.loader .l-txt { position: absolute; left: var(--pad); bottom: 28px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.loader .l-pct { position: absolute; right: var(--pad); bottom: 22px; font: 700 clamp(2rem, 5vw, 4rem)/1 var(--sans); letter-spacing: -.04em; }
@keyframes lm { to { clip-path: inset(0 0 0 0); } }
body.loaded .loader { transform: translateY(-100%); pointer-events: none; }
body.skipload .loader { display: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11,18,32,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-d); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.brand svg { width: 30px; height: 30px; flex: none; color: var(--paper); transition: color .3s, transform .6s var(--ease); }
.brand:hover svg { color: var(--accent); transform: rotate(-8deg) scale(1.08); }
.brand span { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.pill) { position: relative; color: var(--muted-d); text-decoration: none; font-size: 14px; padding: 6px 0; transition: color .2s; }
.nav-links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav-links a:not(.pill):hover, .nav-links a.act { color: var(--paper); }
.nav-links a:not(.pill):hover::after, .nav-links a.act::after { transform: scaleX(1); }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--ink) !important; font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 0; transition: background .25s, box-shadow .3s; will-change: transform; }
.pill:hover { background: #ff8142; box-shadow: 0 10px 34px rgba(255,106,31,.35); }
.pill svg { width: 16px; height: 16px; }
.pill.ghost { background: transparent; color: var(--paper) !important; border: 1px solid var(--line-d); }
.pill.ghost:hover { background: rgba(245,243,239,.08); border-color: rgba(245,243,239,.45); box-shadow: none; }

/* ---------- Hero (tela cheia) ---------- */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 700px at var(--gx, 70%) var(--gy, 30%), rgba(255,106,31,.28), transparent 60%); transition: background .15s linear; }
.hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: min(52vw, 980px); z-index: -1; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.hero-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 18%; transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--sy, 0) * 1px), 0) scale(1.04); filter: saturate(.9) contrast(1.05); will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 2%, transparent 40%); }
.wm { position: absolute; left: -6vw; bottom: -14vh; width: min(62vw, 880px); height: auto; z-index: -1; color: transparent; fill: none; stroke: rgba(245,243,239,.12); stroke-width: .35; stroke-dasharray: 1; stroke-dashoffset: 1; transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 26px), 0); transition: stroke-dashoffset 2.6s var(--ease-io) .4s; }
body.loaded .wm { stroke-dashoffset: 0; }
.hero-in { position: relative; padding-top: 110px; padding-bottom: clamp(24px, 4vh, 56px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--accent); margin-bottom: clamp(16px, 3vh, 36px); }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(4.4rem, 17.6vw, 19rem); line-height: .82; letter-spacing: -.055em; }
.hero h1 .ln { display: block; }
.hero h1 .ln.o { color: transparent; -webkit-text-stroke: 2px var(--accent); transition: color .5s; }
.hero h1 .ln.o:hover { color: var(--accent); }
.hero-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; margin-top: clamp(28px, 6vh, 72px); padding-top: 28px; border-top: 1px solid var(--line-d); }
.lead { grid-column: 1 / span 5; margin: 0; font-size: clamp(1.02rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--muted-d); }
.lead strong { color: var(--paper); font-weight: 500; }
.cta-row { grid-column: 6 / span 5; display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }
.meta { grid-column: 11 / span 2; justify-self: end; text-align: right; display: grid; gap: 6px; color: var(--muted-d); }
.meta b { color: var(--paper); font-weight: 500; }
.scroll-hint { position: absolute; right: var(--pad); top: 50%; z-index: 2; writing-mode: vertical-rl; color: var(--muted-d); display: flex; align-items: center; gap: 12px; }
.scroll-hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); animation: sh 2s ease-in-out infinite; transform-origin: top; }
@keyframes sh { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(0); transform-origin: bottom} }

/* ---------- Marquee ---------- */
.mq { background: var(--accent); color: var(--ink); overflow: hidden; padding: 20px 0; border-block: 1px solid rgba(11,18,32,.2); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-item { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 4.4rem); letter-spacing: -.04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.mq-item i { width: .5em; height: .5em; flex: none; background: var(--ink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.mq.alt { background: var(--ink); color: var(--paper); border-color: var(--line-d); }
.mq.alt .mq-item { color: var(--paper); font-weight: 200; letter-spacing: -.035em; -webkit-text-stroke: 0; }
.mq.alt .mq-item i { background: var(--accent); }

/* ---------- Números ---------- */
.nums { background: var(--ink-2); color: var(--paper); }
.nums-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.num { container-type: inline-size; position: relative; padding: clamp(40px, 8vw, 120px) clamp(20px, 3vw, 56px) clamp(40px, 8vw, 120px) 0; border-right: 1px solid var(--line-d); overflow: hidden; }
.num + .num { padding-left: clamp(20px, 3vw, 56px); }
.num:last-child { border-right: 0; }
.num::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx2, 50%) var(--my2, 50%), rgba(255,106,31,.16), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.num:hover::before { opacity: 1; }
.num b { display: block; white-space: nowrap; font-size: clamp(2.4rem, 4.8vw, 7rem); font-size: clamp(2.6rem, 17cqw, 8.6rem); font-weight: 700; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.num b i { font-family: var(--serif); font-weight: 400; color: var(--accent); padding: 0 .04em; }
.num p { margin: 22px 0 0; max-width: 30ch; font-size: 15px; line-height: 1.5; color: var(--muted-d); }
.num .bar { display: block; height: 2px; width: 100%; margin-top: 28px; background: var(--line-d); position: relative; overflow: hidden; }
.num .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease) .3s; }
.num.on .bar::after { transform: scaleX(1); }

/* ---------- Seções ---------- */
.sec { padding: clamp(90px, 12vw, 190px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin-bottom: clamp(48px, 7vw, 110px); }
.sec-head .mono { grid-column: 1 / span 2; color: var(--accent-ink); padding-top: 18px; }
.sec-head h2 { grid-column: 3 / span 10; margin: 0; font-size: clamp(2.6rem, 7.4vw, 8rem); line-height: .92; letter-spacing: -.05em; font-weight: 700; }
.sec-head p { grid-column: 3 / span 5; margin: 32px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }

/* Foco: painéis que empilham no scroll */
.focus { background: var(--paper); }
.stack { position: relative; }
.panel { position: sticky; top: calc(92px + var(--i) * 104px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; min-height: min(40vh, 380px); margin-bottom: 28px; padding: clamp(28px, 3.4vw, 56px); border-radius: 28px; overflow: hidden; background: var(--bg); color: var(--fg); box-shadow: 0 -20px 60px rgba(11,18,32,.08); transform-origin: 50% 0; transition: transform .2s linear; }
.panel .n { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 10px; padding-top: .6em; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.panel h3 { grid-column: 3 / span 6; margin: 0; font-size: clamp(2.2rem, 5vw, 5.6rem); line-height: .92; letter-spacing: -.05em; font-weight: 700; }
.panel p { grid-column: 9 / span 4; margin: .5em 0 0; font-size: 1.12rem; line-height: 1.55; opacity: .82; }
.panel .big { position: absolute; right: -2vw; top: -3vw; width: clamp(160px, 24vw, 420px); height: auto; opacity: .09; color: currentColor; pointer-events: none; transform: translate3d(0, calc(var(--sp, 0) * 40px), 0) rotate(calc(var(--sp, 0) * 8deg)); }
.panel.p1 { --bg: var(--ink); --fg: var(--paper); }
.panel.p2 { --bg: var(--accent); --fg: var(--ink); }
.panel.p3 { --bg: var(--white); --fg: var(--ink); }

/* Cases */
.cases { background: var(--ink); color: var(--paper); }
.cases .sec-head .mono { color: var(--accent); }
.cases .sec-head p { color: var(--muted-d); }
.case-list { border-top: 1px solid var(--line-d); }
.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: clamp(28px, 4vw, 60px) 0; border-bottom: 1px solid var(--line-d); text-decoration: none; position: relative; align-items: center; }
.case::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); z-index: 0; }
.case:hover::before { transform: scaleY(1); }
.case > * { position: relative; z-index: 1; transition: color .3s; }
.case:hover > * { color: var(--ink); }
.case .n { grid-column: 1 / span 1; font: 500 13px/1 var(--mono); color: var(--muted-d); }
.case h3 { grid-column: 2 / span 8; margin: 0; font-size: clamp(1.7rem, 4.1vw, 4.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 700; transition: transform .6s var(--ease), color .3s; }
.case:hover h3 { transform: translateX(clamp(8px, 1.4vw, 24px)); }
.case .who { grid-column: 10 / span 2; display: grid; gap: 6px; justify-items: start; }
.case .who b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.case .who span { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case:hover .who span { color: var(--ink); }
.case .go { grid-column: 12 / span 1; justify-self: end; width: clamp(44px, 4.4vw, 64px); height: clamp(44px, 4.4vw, 64px); border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.case:hover .go { border-color: var(--ink); transform: rotate(-45deg); background: var(--ink); color: var(--paper) !important; }
.case .go svg { width: 40%; height: 40%; }
.peek { position: fixed; left: 0; top: 0; z-index: 110; width: clamp(260px, 24vw, 420px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-9999px, 0, 0) scale(.8); transition: opacity .3s, scale .3s; background: var(--bgp, var(--ink-3)); box-shadow: 0 30px 80px rgba(0,0,0,.45); display: none; }
@media (hover: hover) and (pointer: fine) { .js .peek { display: block; } }
.peek.on { opacity: 1; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.peek img.show { opacity: 1; }
.peek .metric { position: absolute; inset: 0; display: grid; align-content: end; padding: 22px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%); }
.peek .metric b { font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.peek .metric span { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-top: 6px; }
.peek .logo { position: absolute; inset: 0; display: grid; place-items: center; padding: 14%; opacity: 0; transition: opacity .3s; }
.peek .logo.show { opacity: 1; }
.peek .logo img { position: static; width: 100%; height: auto; opacity: 1; object-fit: contain; }

/* Sobre */
.about { background: var(--paper); }
.statement { margin: 0 0 clamp(56px, 8vw, 130px); font-size: clamp(2.4rem, 6.6vw, 7.4rem); line-height: .98; letter-spacing: -.05em; font-weight: 700; max-width: 21ch; }
.statement .w { display: inline-block; color: rgba(11,18,32,.16); transition: color .5s; }
.statement .w.lit { color: var(--ink); }
.statement em.it .w.lit { color: var(--accent-ink); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.about-cols { grid-column: 5 / span 8; columns: 2; column-gap: 40px; }
.about-cols p { margin: 0 0 1.4em; font-size: 1.08rem; line-height: 1.7; color: #2B3345; break-inside: avoid; }
.about-cols strong { color: var(--text); font-weight: 600; }
.quote { grid-column: 1 / span 4; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.3; align-self: start; }
.quote cite { display: block; margin-top: 14px; font: 500 12px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Competências */
.skills { background: var(--ink-2); color: var(--paper); overflow: hidden; }
.skills .sec-head .mono { color: var(--accent); }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 24px; overflow: hidden; }
.skill { position: relative; background: var(--ink-2); padding: clamp(28px, 2.6vw, 44px) clamp(22px, 2.2vw, 36px) clamp(32px, 3vw, 52px); overflow: hidden; }
.skill::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx2, 50%) var(--my2, 50%), rgba(255,106,31,.18), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.skill:hover::before { opacity: 1; }
.skill h3 { position: relative; margin: 0 0 24px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.skill h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,31,.2); }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; line-height: 1; padding: 9px 13px; border: 1px solid var(--line-d); border-radius: 999px; color: var(--muted-d); transition: border-color .25s, color .25s, background .25s, transform .3s var(--ease); }
.chips li:hover { border-color: var(--accent); color: var(--ink); background: var(--accent); transform: translateY(-2px); }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 6vw, 90px); }
.edu div { border-top: 1px solid var(--line-d); padding-top: 22px; }
.edu b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.edu span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted-d); line-height: 1.55; }

/* Contato */
.contact { background: var(--accent); color: var(--ink); padding: clamp(90px, 13vw, 200px) 0 0; overflow: hidden; position: relative; isolation: isolate; }
.contact .cm { position: absolute; right: -16vw; top: -4vw; width: min(52vw, 820px); height: auto; color: var(--ink); opacity: .07; z-index: -1; transform: rotate(calc(var(--sp, 0) * -10deg)); }
.contact h2 { margin: 0; font-size: clamp(3.4rem, 15.4vw, 17rem); line-height: .84; letter-spacing: -.06em; font-weight: 700; }
.contact-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px 24px; margin-top: clamp(48px, 7vw, 100px); align-items: end; }
.contact-row .l { grid-column: 1 / span 5; }
.contact-row .l p { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.5rem); max-width: 30ch; line-height: 1.4; }
.contact-row .r { grid-column: 7 / span 6; display: flex; flex-direction: column; }
.contact a.big { font-size: clamp(1.5rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -.04em; text-decoration: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(11,18,32,.28); transition: padding .4s var(--ease); }
.contact a.big:hover { padding-left: 16px; }
.contact a.big svg { width: 1em; height: 1em; transition: transform .4s var(--ease); }
.contact a.big:hover svg { transform: rotate(45deg); }
.btn-dark { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; padding: 20px 32px; border-radius: 999px; text-decoration: none; margin-top: 36px; will-change: transform; }
.btn-dark svg { width: 20px; height: 20px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(72px, 10vw, 150px); padding: 26px 0 30px; border-top: 1px solid rgba(11,18,32,.28); font-size: 13px; }
.wa-sticky { display: none; }

/* ---------- Reveal / split ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.on { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; } .js .rv.d2 { transition-delay: .2s; } .js .rv.d3 { transition-delay: .3s; }
.sp-w { display: inline-block; vertical-align: baseline; line-height: inherit; clip-path: inset(-.6em -.35em -.7em -.35em); }
.sp-w > span { display: inline-block; }
.js .sp-w > span { transform: translateY(240%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--k) * 45ms + var(--base, 0ms)); }
.js .in .sp-w > span, .js .sp-w.on > span { transform: none; }
.hero h1.sp-c .ch { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .sp-w > span { transform: none; transition: none; }
  .grain, .scroll-hint::after { animation: none; }
  .wm { stroke-dashoffset: 0; transition: none; }
  .mq-track { width: 100%; flex-wrap: wrap; justify-content: center; transform: none !important; }
  .mq-track .mq-item:nth-child(2) { display: none; }
  .mq-item { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-right: 0; white-space: normal; font-size: clamp(1.4rem, 3.4vw, 3rem); }
  .mq { padding: 22px var(--pad); }
  html { scroll-behavior: auto; }
  .loader { display: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hero-photo { width: 70vw; opacity: .6; }
  .lead { grid-column: 1 / span 12; } .cta-row { grid-column: 1 / span 12; margin-top: 24px; } .meta { display: none; }
  .scroll-hint { display: none; }
  .sec-head .mono { grid-column: 1 / -1; margin-bottom: 16px; padding: 0; } .sec-head h2, .sec-head p { grid-column: 1 / -1; }
  .case h3 { grid-column: 2 / span 11; } .case .who { grid-column: 2 / span 8; margin-top: 16px; } .case .go { position: absolute; right: 0; top: 28px; }
  .panel .n { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 0 0 24px; } .panel h3 { grid-column: 1 / -1; } .panel p { grid-column: 1 / -1; margin-top: 20px; }
  .about-cols { grid-column: 1 / -1; columns: 1; } .quote { grid-column: 1 / -1; margin-bottom: 40px; order: 2; margin-top: 24px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); } .edu { grid-template-columns: 1fr; }
  .contact-row .l, .contact-row .r { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links a:not(.pill) { display: none; } .nav-links .pill { display: none; }
  .hero-photo { width: 100%; height: 72%; bottom: auto; opacity: .5; -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%); mask-image: linear-gradient(to bottom, #000 25%, transparent 92%); } .hero-photo::after { display: none; } .hero-photo img { height: 100%; object-position: 50% 12%; }
  .hero h1 { font-size: clamp(3.8rem, 21vw, 8rem); } .hero h1 .ln.o { -webkit-text-stroke-width: 1.5px; }
  .nums-grid { grid-template-columns: 1fr; } .num, .num + .num { padding: 40px 0; border-right: 0; border-bottom: 1px solid var(--line-d); } .num:last-child { border-bottom: 0; }
  .skill-grid { grid-template-columns: 1fr; }
  .panel { position: relative; top: 0 !important; min-height: 0; padding-top: 72px; }
  .case { padding: 28px 0; } .case .n { grid-column: 1 / -1; margin-bottom: 14px; } .case h3 { grid-column: 1 / -1; } .case .who { grid-column: 1 / -1; } .case .go { top: 24px; }
  .wa-sticky { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; justify-content: center; align-items: center; gap: 10px; background: var(--accent); color: var(--ink); font-weight: 700; padding: 16px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 36px rgba(0,0,0,.4); }
  .wa-sticky svg { width: 20px; height: 20px; }
  .foot { padding-bottom: 96px; }
}

/* ---------- Acessibilidade / SEO ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { border-top: 1px solid var(--line); max-width: 1100px; margin-left: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2.4vw, 34px) 0; font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; cursor: pointer; transition: padding .35s var(--ease), color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { padding-left: 12px; color: var(--accent-ink); }
.faq summary i { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: transform .4s var(--ease), background .25s, border-color .25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 0 clamp(22px, 2.6vw, 36px); max-width: 70ch; animation: faqIn .5s var(--ease); }
.faq .ans p { margin: 0; font-size: 1.1rem; line-height: 1.7; color: #2B3345; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .faq-list { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .faq .ans { animation: none; } }

/* ---------- Rede de segurança: se o JS não rodar, nada fica escondido ---------- */
.js:not(.ready) .loader { animation: ldFb .01s 3.5s forwards; }
.js:not(.ready) .rv { animation: rvFb .01s 2.5s forwards; }
.js:not(.ready) .sp-w > span { animation: rvFb .01s 2.5s forwards; }
@keyframes ldFb { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes rvFb { to { opacity: 1; transform: none; } }

.foot .credit { flex-basis: 100%; opacity: .75; }
.foot .credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
