/* Raniel Reis — site pessoal
   Layout: uma folha azul-noite rasgada pelo play revela a página clara por baixo;
   depois, faixas alternando noite e névoa. Só transform e opacity nas animações. */

@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Light.woff2?v=2.6") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Regular.woff2?v=2.6") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Medium.woff2?v=2.6") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Bold.woff2?v=2.6") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* paleta rR */
  --noite: #0B1638;
  --noite-2: #101E4A;
  --rr: #1F3A7A;
  --play: #3D6FFF;
  --ceu: #CFDBFF;
  --nevoa: #ECEEF3;
  --tinta: #0B0D14;
  --branca: #FFFFFF;
  --muted-night: rgba(207, 219, 255, .72);
  --line-night: rgba(207, 219, 255, .14);
  --muted-light: #4A5472;
  --line-light: rgba(11, 22, 56, .12);
  --play-ink: #2447C9;           /* play legível em texto pequeno sobre fundo claro */

  --f: "RR Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --t-xxl: clamp(2.5rem, 1.4rem + 5vw, 5.25rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --top: env(safe-area-inset-top, 0px);
  --head: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--branca);
  font-family: var(--f);
  font-size: var(--t-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--top); z-index: 70; background: var(--noite); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--play); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: var(--gut); top: calc(var(--top) + 8px); z-index: 100; padding: 10px 14px; background: var(--branca); color: var(--tinta); border-radius: 10px; transform: translateY(-160%); transition: transform .2s; text-decoration: none; }
.skip:focus { transform: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* ---------- barra de progresso */
.progress { position: fixed; left: 0; right: 0; top: var(--top); height: 2px; z-index: 61; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--play); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* ---------- topo (barra fina, links à vista, no espírito do apple.com) */
.topbar {
  position: fixed; z-index: 60; left: 0; right: 0; top: var(--top);
  height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: max(var(--gut), calc((100% - 1148px) / 2)); padding-right: max(var(--gut-r), calc((100% - 1148px) / 2));
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background-color: rgba(13, 25, 64, .93); }
.topbar { -webkit-user-select: none; user-select: none; }
/* barra de vidro líquido: desfoque + brilho no topo + reflexo que segue a luz (cursor) */
.topbar {
  --lx: 50%;
  background:
    radial-gradient(240px 120% at var(--lx) 0%, rgba(160, 185, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  background-color: rgba(13, 25, 64, .93);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(255, 255, 255, .06);
  border-bottom: 0;
  transition: background-color .35s var(--ease);
}
.lite .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgb(13, 25, 64); }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--branca); padding: 6px 0; }
.brand-mark { width: 24px; height: 23px; display: block; overflow: visible; }
.brand-play { transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .2s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.topbar.plane-out .brand-play { opacity: 0; transform: scale(.4); transition: none; }
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.nav { display: flex; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); }
.nav-a { font: 400 .8125rem/1 var(--f); letter-spacing: .01em; color: rgba(255, 255, 255, .82); text-decoration: none; padding: 8px 0; display: inline-block; transition: color .2s; }
.nav-a:hover { color: var(--branca); }
.menu-btn { display: none; }

/* ---------- palco (folha + página revelada) */
.stage { position: relative; }
.stage-sticky { position: relative; }
.sheet { position: relative; background: var(--noite); }
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 3vh, 32px);
  padding: calc(var(--head) + 24px) var(--gut-r) 96px var(--gut);
  background:
    radial-gradient(55% 45% at 50% 47%, rgba(61, 111, 255, .2), transparent 72%),
    radial-gradient(38% 42% at 82% 14%, rgba(31, 58, 122, .7), transparent 70%),
    radial-gradient(30% 34% at 12% 88%, rgba(31, 58, 122, .55), transparent 70%),
    var(--noite);
  position: relative;
}
.word { width: min(90vw, 1040px); height: auto; display: block; overflow: visible; }
.ipl { fill: var(--play); transform-box: fill-box; transform-origin: 35% 50%; }

.hero-sub { font-size: var(--t-s); color: var(--muted-night); letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-sub i, .topics i { display: inline-block; width: .5em; height: .56em; background: var(--play); clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 1px; }

.cue { position: absolute; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); text-decoration: none; border-radius: 999px; }
.cue-glass {
  --lx: 50%;
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(70px 80% at var(--lx) 0%, rgba(160, 185, 255, .24), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02));
  background-color: rgba(11, 22, 56, .45);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 24px -12px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease);
}
.lite .cue-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(16, 30, 74, .9); }
.cue-glass::after { content: ""; position: absolute; left: -10%; right: -10%; height: 40%; top: -60%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent); pointer-events: none; }
.cue-glass svg { width: 16px; height: 16px; position: relative; margin-top: 2px; filter: drop-shadow(0 2px 4px rgba(61, 111, 255, .55)); }
.cue:hover .cue-glass { transform: translateY(2px); }


.reveal { background: var(--nevoa); color: var(--tinta); }
.reveal-in {
  min-height: 100vh; min-height: 100svh; max-width: 1120px; margin: 0 auto;
  padding: calc(var(--head) + 48px) var(--gut-r) 64px var(--gut);
  display: grid; align-content: center; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px clamp(32px, 7vw, 104px);
}
.intro { display: grid; gap: 20px; justify-items: start; }
.memoji { width: clamp(150px, 17vw, 230px); aspect-ratio: 374 / 330; max-width: 100%; }
.memoji img, .memoji video { width: 100%; height: 100%; object-fit: contain; display: block; }
.reveal-title { font-weight: 700; font-size: var(--t-xxl); line-height: .95; letter-spacing: -.025em; }
.reveal-title .name { display: block; margin-left: -.06em; }
.reveal-title span:not(.name) { display: block; font-size: var(--t-l); font-weight: 500; letter-spacing: 0; color: var(--muted-light); margin-bottom: .45em; line-height: 1.2; }
.reveal-body { display: grid; gap: 18px; align-content: start; min-width: 0; }
.reveal-body p { font-size: 1.125rem; line-height: 1.62; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.linkedin {
  justify-self: start; margin-top: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 22px; border-radius: 999px;
  background: var(--tinta); color: var(--nevoa); text-decoration: none; font-weight: 500; font-size: var(--t-s);
  transition: background-color .25s;
}
.linkedin svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.linkedin:hover { background: var(--play-ink); }
.linkedin:hover svg { transform: translate(2px, -2px); }

/* ---------- faixas */
.band { padding-block: clamp(72px, 12vh, 140px); position: relative; }
.band-night { background: var(--noite); }
.band-trilha { padding-top: 0; }
.band-light { background: var(--nevoa); color: var(--tinta); }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 48px); }
.sec-head h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.01em; }
.sec-head p { color: var(--muted-night); max-width: 40ch; }

.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-night); }
.projects li { border-bottom: 1px solid var(--line-night); }
.project {
  display: grid; align-items: center; text-decoration: none;
  grid-template-columns: 22px minmax(0, 11rem) minmax(0, 8rem) minmax(0, 1fr) auto;
  gap: 8px 20px; padding: 26px 8px;
  position: relative; isolation: isolate;
}
.project::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: rgba(61, 111, 255, .1); opacity: 0; transform: scaleY(.85); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.project:hover::before, .project:focus-visible::before { opacity: 1; transform: none; }
.pj-play { width: 14px; height: 16px; background: var(--play); clip-path: polygon(0 0, 100% 50%, 0 100%); align-self: center; transform: translateX(-6px) scale(.7); opacity: .35; transition: transform .45s var(--ease), opacity .3s; }
.project:hover .pj-play, .project:focus-visible .pj-play { transform: none; opacity: 1; }
.pj-name { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.pj-kind { font-size: var(--t-xs); font-weight: 500; color: var(--ceu); letter-spacing: .08em; text-transform: uppercase; }
.pj-desc { color: var(--muted-night); max-width: 48ch; }
.pj-url { font-size: var(--t-s); color: var(--ceu); white-space: nowrap; transition: color .2s; }
.project:hover .pj-url { color: var(--branca); }

.trilha { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.trilha-text { display: grid; gap: 24px; min-width: 0; }
.kicker { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted-night); }
.kicker-dark { color: var(--muted-light); }
.topics { font-size: clamp(1.75rem, 1rem + 3.2vw, 3.5rem); font-weight: 300; line-height: 1.18; display: flex; flex-wrap: wrap; align-items: center; gap: .1em .4em; }
.topics i { width: .32em; height: .36em; opacity: .9; }
.font-note { color: var(--muted-night); max-width: 46ch; }

.now {
  display: grid; gap: 6px; padding: 28px; border-radius: 24px; text-decoration: none;
  background: linear-gradient(160deg, var(--rr), var(--noite-2) 70%);
  border: 1px solid var(--line-night);
  transition: transform .4s var(--ease);
}
.now:hover { transform: translateY(-3px); }
.now-eq { display: flex; align-items: end; gap: 4px; height: 28px; margin-bottom: 14px; }
.now-eq b { width: 5px; height: 100%; border-radius: 3px; background: var(--play); transform-origin: 50% 100%; transform: scaleY(.35); }
.now-eq b:nth-child(2) { transform: scaleY(.7); } .now-eq b:nth-child(3) { transform: scaleY(.5); } .now-eq b:nth-child(4) { transform: scaleY(.85); } .now-eq b:nth-child(5) { transform: scaleY(.4); }
.now-label { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ceu); }
.now-title { font-size: var(--t-l); font-weight: 700; }
.now-meta { color: var(--muted-night); font-size: var(--t-s); }

.contato { display: grid; gap: 22px; }
.contato-lede { font-size: var(--t-l); max-width: 36ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mail-link { font-size: clamp(1.6rem, .6rem + 4.6vw, 4.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--play), var(--play)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.mail-link:hover { background-size: 100% 3px; }
.copy { font: 500 var(--t-s)/1 var(--f); color: var(--tinta); background: transparent; border: 1px solid var(--line-light); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.copy:hover { background: var(--tinta); color: var(--nevoa); }
.copy.done { background: var(--play-ink); border-color: var(--play-ink); color: var(--branca); }
.social { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-light); text-decoration: none; font-weight: 500; font-size: var(--t-s); transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--play-ink); color: var(--play-ink); }

.foot { background: var(--noite); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-night); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; color: var(--muted-night); font-size: var(--t-s); }
.foot-logo { width: 170px; }
.top-link { text-decoration: none; }
.top-link:hover { color: var(--branca); }


/* ---------- projetos pessoais: MacBook com as telas do projeto */
.case { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 88px); align-items: center; }
.case-media { min-width: 0; display: grid; gap: 28px; justify-items: center; }
.mac { width: 100%; max-width: 720px; padding: 0 5.5%; position: relative; }
.mac::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -22px; height: 26px; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 70%); z-index: -1; }
.mac-lid {
  position: relative; background: #08080A; padding: 1.6% 1.6% 2%;
  border-radius: 3.4% / 6.4%;
  box-shadow: 0 0 0 1.5px #9EA4AE, 0 0 0 3px #C9CED6, inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.mac-screen { position: relative; aspect-ratio: 1600 / 827; overflow: hidden; border-radius: 1.2% / 1.9%; background: var(--nevoa); cursor: zoom-in; isolation: isolate; outline: none; transition: background-color .7s var(--ease); }
.mac-screen.dark { background: #0D0E12; }
.mac-screen:focus-visible { box-shadow: 0 0 0 3px var(--play); }
.mac-cam { position: absolute; z-index: 3; top: 0; left: 50%; width: 10%; height: 4.2%; transform: translateX(-50%); background: #08080A; border-radius: 0 0 9px 9px; }
.mac-cam::after { content: ""; position: absolute; left: 50%; top: 35%; width: 7px; height: 7px; max-width: 18%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2B3550, #0B0D14 70%); }
.shot { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.035); transition: opacity .7s var(--ease), transform 1s var(--ease); pointer-events: none; }
.shot.is-on { opacity: 1; transform: none; }
.shot.is-out { opacity: 0; transform: scale(.985); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mac-base {
  position: relative; margin: 0 -5.5%; aspect-ratio: 100 / 3.1;
  background: linear-gradient(180deg, #E9ECF0 0%, #C8CDD5 38%, #A2A8B2 78%, #7E848E 100%);
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.mac-base span { position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #8F959F, #B9BEC6); }

.slider-bar { display: flex; align-items: center; justify-content: center; gap: 16px 20px; flex-wrap: wrap; }
.shot-title { font-size: var(--t-s); color: var(--muted-night); min-width: 10ch; text-align: right; }
.dots { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: rgba(207, 219, 255, .1); }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .42); cursor: pointer; transition: width .45s var(--ease), background-color .3s; }
.dot:hover { background: rgba(255, 255, 255, .7); }
.dot { position: relative; overflow: hidden; }
.dot.is-on { width: 34px; background: rgba(255, 255, 255, .42); }
.dot.is-on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--branca); transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); }
.dots.auto .dot.is-on::after { animation: fill var(--auto, 5s) linear forwards; }
.dots.paused .dot.is-on::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dot:focus-visible { outline-offset: 4px; }

.case-text { display: grid; gap: 14px; min-width: 0; }
.case-text h3 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.015em; line-height: 1.05; }
.case-desc { color: var(--muted-night); font-size: 1.0625rem; line-height: 1.65; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }


/* ---------- iPhone */
.case + .case { margin-top: clamp(96px, 14vh, 160px); }
.case-alt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.case-alt .case-media { order: 2; }
.case-alt .case-text { order: 1; }
.phone { position: relative; width: min(300px, 74vw); }
/* RR Finança: o print já ocupa a tela inteira; a barra de status fica por cima dele */
.case-fin { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.case-fin .phone-screen { background: #0C1430; }
.case-full .phone-screen { background: #000; }
.case-fin .phone-status, .case-full .phone-status { position: absolute; inset: 0 0 auto; z-index: 3; }
.case-fin .phone-view { aspect-ratio: 1080 / 2349; }
.case-full .phone-view { aspect-ratio: 1184 / 2576; }
.phone-frame {
  position: relative; padding: 3.3%; border-radius: 15.5% / 7.4%;
  background: #050506;
  box-shadow: 0 0 0 2px #2A2C30, 0 0 0 4.5px #6E737B, 0 0 0 6px #3B3E44, 0 40px 70px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 26px; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .5), transparent 70%); z-index: -1; }
.phone-screen { position: relative; border-radius: 12.6% / 5.9%; overflow: hidden; background: #101010; cursor: zoom-in; container-type: inline-size; isolation: isolate; outline: none; }
.phone-screen:focus-visible { box-shadow: 0 0 0 3px var(--play); }
.phone-status { position: relative; aspect-ratio: 1080 / 130; display: flex; align-items: center; justify-content: space-between; padding: 2.4cqw 7cqw 0 9cqw; color: #FFFFFF; font-family: -apple-system, "SF Pro Text", var(--f); font-weight: 600; font-size: 4.6cqw; letter-spacing: -.01em; }
.island { position: absolute; left: 50%; top: 3.2cqw; width: 30cqw; height: 8.6cqw; transform: translateX(-50%); border-radius: 999px; background: #000; }
.ps-icons { display: inline-flex; align-items: center; gap: 1.6cqw; }
.ps-icons svg { height: 3.4cqw; width: auto; fill: currentColor; }
.ps-icons svg:last-child { height: 3.6cqw; }
.phone-view { position: relative; aspect-ratio: 1080 / 2219; }
.phone-view .shot img { object-fit: cover; object-position: top center; }
.home-bar { position: absolute; z-index: 3; left: 50%; bottom: 2.4cqw; width: 36cqw; height: 1.4cqw; transform: translateX(-50%); border-radius: 999px; background: rgba(255, 255, 255, .85); }
.ph-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #3B3E44, #7A7F87); }
.ph-action { left: -6px; top: 17%; height: 5%; }
.ph-vol1 { left: -6px; top: 25%; height: 9%; }
.ph-vol2 { left: -6px; top: 36%; height: 9%; }
.ph-power { right: -6px; top: 27%; height: 13%; background: linear-gradient(270deg, #3B3E44, #7A7F87); }
.ph-cam { right: -6px; top: 58%; height: 9%; background: linear-gradient(270deg, #3B3E44, #7A7F87); }


/* ---------- iMac */
.imac { width: min(540px, 88vw); position: relative; }
.imac-body { background: #F4F5F8; border-radius: 3.2% / 4.1%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 70px -34px rgba(0, 0, 0, .75); }
.imac-bezel { padding: 3% 3% 2.4%; }
.imac-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0B0F20; cursor: zoom-in; border-radius: 3px; outline: none; isolation: isolate; box-shadow: 0 0 0 2px #0B0D14; }
.imac-screen:focus-visible { box-shadow: 0 0 0 3px var(--play); }
.imac-screen .shot img { object-fit: cover; }
.imac-chin { aspect-ratio: 100 / 9.5; background: linear-gradient(180deg, #7E9DFF 0%, #5B82FF 55%, #3D6FFF 100%); }
.imac-neck { width: 23%; aspect-ratio: 100 / 82; margin: 0 auto; background: linear-gradient(90deg, #3159D9 0%, #5B82FF 30%, #7E9DFF 52%, #4A74F2 78%, #2E56D4 100%); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); }
.imac-foot { width: 31%; height: 9px; margin: 0 auto; border-radius: 3px 3px 8px 8px; background: linear-gradient(180deg, #8AA6FF, #3D6FFF); box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .6); }


/* ---------- veja mais (menu lateral) */
.more-btn { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .8125rem; color: rgba(255, 255, 255, .82); }
.more-btn { gap: 5px !important; }
.grid-ic { width: 12px; height: 12px; fill: currentColor; transition: transform .35s var(--ease); }
.grid-ic rect { transform-box: fill-box; transform-origin: center; animation: sq 3.6s ease-in-out infinite; }
.grid-ic rect:nth-child(2) { animation-delay: .15s; } .grid-ic rect:nth-child(3) { animation-delay: .3s; } .grid-ic rect:nth-child(4) { animation-delay: .45s; }
@keyframes sq { 0%, 70%, 100% { transform: none; opacity: 1; } 80% { transform: scale(.6); opacity: .55; } }
.more-btn:hover .grid-ic, .more-btn[aria-expanded="true"] .grid-ic { transform: rotate(45deg); }
.more-btn[aria-expanded="true"] .grid-ic rect { animation-play-state: paused; }
.drawer { position: fixed; inset: 0; z-index: 55; }
.drawer[hidden] { display: none !important; }
.drawer-backdrop { position: absolute; inset: calc(var(--top) + var(--head)) 0 0; background: rgba(5, 10, 28, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.lite .drawer-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 10, 28, .6); }
.drawer.on .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; left: 0; right: 0; top: calc(var(--top) + var(--head));
  background: rgba(11, 22, 56, .9); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .6);
  clip-path: inset(0 0 100% 0); transition: clip-path .45s cubic-bezier(.2, .8, .2, 1);
}
.lite .drawer-panel { background: var(--noite-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.drawer.on .drawer-panel { clip-path: inset(0 0 0 0); }
.drawer-in { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 28px max(var(--gut-r), calc((100% - 1148px) / 2)) 40px max(var(--gut), calc((100% - 1148px) / 2)); }
.drawer-label { font-size: var(--t-xs); color: var(--muted-night); margin-bottom: 10px; }
.drawer-panel a { color: var(--branca); text-decoration: none; font-weight: 700; font-size: 1.75rem; letter-spacing: -.01em; line-height: 1.2; padding: 6px 0; opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .4s var(--ease), color .2s; }
.drawer.on .drawer-panel a { opacity: 1; transform: none; }
.drawer.on .drawer-panel a:nth-of-type(1) { transition-delay: .06s; }
.drawer.on .drawer-panel a:nth-of-type(2) { transition-delay: .1s; }
.drawer.on .drawer-panel a:nth-of-type(3) { transition-delay: .14s; }
.drawer.on .drawer-panel a:nth-of-type(4) { transition-delay: .18s; }
.drawer.on .drawer-panel a:nth-of-type(5) { transition-delay: .22s; }
.drawer-panel a:hover { color: var(--ceu); }
@media (max-width: 760px) { .drawer-panel a { font-size: 1.5rem; } .drawer-in { padding-top: 20px; padding-bottom: 28px; } }

/* ---------- reconhecimento */
section[id] { scroll-margin-top: calc(var(--top) + var(--head) + 8px); }
.band-award .award { background: #FFFFFF; border-color: var(--line-light); box-shadow: 0 24px 50px -32px rgba(11, 22, 56, .35); }
.band-award .award-text h3 { color: var(--tinta); }
.band-award .award-text p:not(.award-since) { color: var(--muted-light); }
.band-award .award-text .award-since { background: none; color: #6A0BB0; }
.award { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: start; max-width: 860px; padding: 32px; border-radius: 24px; background: linear-gradient(160deg, rgba(31, 58, 122, .55), rgba(16, 30, 74, .4)); border: 1px solid var(--line-night); }
.award-icon { width: 64px; height: 64px; }
.award-icon img { width: 64px; height: 64px; display: block; border-radius: 50%; box-shadow: 0 10px 24px -10px rgba(130, 10, 209, .7); }
.award-text { display: grid; gap: 10px; min-width: 0; }
.award-text h3 { font-size: var(--t-l); font-weight: 700; }
.award-text .award-since { justify-self: start; margin-top: -4px; padding: 0; border-radius: 0; background: none; color: #D9B8FF; font-size: var(--t-xs); font-weight: 500; letter-spacing: .02em; text-align: left; }
.award-text p:not(.award-since) { color: var(--muted-night); line-height: 1.65; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }


/* frase abaixo do Boas-vindas, aparece quando a escrita termina */
.hero-lede { max-width: 620px; margin: clamp(18px, 3.5vh, 36px) 0 0; color: var(--muted-night); font-size: 1.125rem; line-height: 1.65; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.motion .hero-lede { opacity: 0; }
.motion.write .hero-lede { animation: fade-up 1s var(--ease) 3.95s forwards; }
@media (max-width: 760px) { .hero-lede { font-size: .9375rem; max-width: 100%; } }


/* Veja mais em colunas por categoria (como no site da Apple) */
.drawer-in { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start !important; gap: 20px clamp(40px, 7vw, 96px) !important; }
.dgrp { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.dgrp .drawer-label { margin-bottom: 8px; }
.drawer.on .dgrp:nth-child(2) a { transition-delay: .12s; }
.drawer.on .dgrp:nth-child(3) a { transition-delay: .18s; }
@media (max-width: 760px) { .drawer-in { gap: 22px 36px !important; } .dgrp a { font-size: 1.375rem !important; } }

/* tela ampliada */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.lb[hidden] { display: none !important; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 28, .82); opacity: 0; transition: opacity .4s var(--ease); cursor: zoom-out; }
.lb.on .lb-backdrop { opacity: 1; }
.lb-img { position: fixed; left: 0; top: 0; transform-origin: 0 0; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); will-change: transform; transition: transform .55s cubic-bezier(.2, .8, .2, 1), border-radius .55s; }
.lb-close {
  position: fixed; z-index: 2; top: calc(var(--top) + 16px); right: max(16px, env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: var(--branca);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease), background-color .2s;
}
.lb-close svg { width: 20px; height: 20px; }
.lb-close:hover { background: rgba(255, 255, 255, .24); }
.lb.on .lb-close { opacity: 1; transform: none; transition-delay: .15s; }
.lite .lb-backdrop { background: rgba(5, 10, 28, .92); }


/* ---------- entre em contato */
.band-light .sec-head h2 { color: var(--tinta); }
.band-contact .contact-text { color: rgba(255, 255, 255, .9); }
.band-contact .contact-text s { color: var(--muted-night); }
.band-contact .social .soc { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.band-contact .soc-th { background: #000000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(0, 0, 0, .6); }
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 80px); align-items: start; }
.contact-emoji { width: clamp(130px, 13vw, 180px); aspect-ratio: 296 / 339; }
.contact-emoji img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-body { display: grid; gap: 28px; min-width: 0; max-width: 680px; }
.contact-text { font-size: 1.125rem; line-height: 1.65; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.contact-text s { color: var(--muted-light); text-decoration-thickness: 1.5px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social .soc {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 0;
  color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: var(--t-s); line-height: 1;
  box-shadow: 0 8px 20px -10px rgba(11, 22, 56, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .2s;
}
.social .soc svg { width: 20px; height: 20px; flex: none; }
.social .soc:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(11, 22, 56, .55); filter: brightness(1.06); color: #FFFFFF; }
.soc-ig { background: #E4405F; }
.soc-th { background: #000000; }
.soc-mail { background: var(--play); }
.soc-am { background: #FA233B; }

/* rodapé */
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot .foot-logo { width: 30px; height: 28px; display: block; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal a { color: var(--muted-night); text-decoration: none; font-size: var(--t-xs); transition: color .2s; }
.legal a:hover { color: var(--branca); text-decoration: underline; text-underline-offset: 3px; }
.copy-note { font-size: var(--t-xs); color: var(--muted-night); }

/* ---------- avião (play) e transição de projeto */
.plane { position: fixed; left: 0; top: 0; width: 46px; height: 46px; z-index: 65; pointer-events: none; visibility: hidden; will-change: transform; }
.plane svg { width: 100%; height: 100%; display: block; overflow: visible; }
.plane.on { visibility: visible; }

.warp { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.warp.on { visibility: visible; pointer-events: auto; }
.warp-tri { position: absolute; inset: 0; background: var(--play); clip-path: polygon(50% 50%, 50% 50%, 50% 50%); transition: clip-path .8s cubic-bezier(.76, 0, .16, 1); }
.warp-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 14px)); opacity: 0; display: grid; justify-items: center; gap: 6px; color: var(--branca); text-align: center; transition: opacity .3s, transform .5s var(--ease); width: max-content; max-width: calc(100vw - 32px); }
.warp-label span { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.warp-label strong { font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem); font-weight: 700; overflow-wrap: anywhere; }
.warp-label i { display: block; width: 120px; height: 2px; margin-top: 10px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.warp-label i::after { content: ""; position: absolute; inset: 0; background: var(--branca); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease-io); }
.warp.on .warp-label { opacity: 1; transform: translate(-50%, -50%); transition-delay: .42s; }
.warp.on .warp-label i::after { transform: scaleX(1); transition-delay: .5s; }

/* ---------- com movimento */
.motion { scroll-behavior: smooth; }
.motion .stage { min-height: 100vh; min-height: 100svh; }
.motion .stage-sticky { position: relative; overflow: hidden; }
.motion .sheet { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; background: var(--noite); }
.motion .sheet .hero { position: absolute; inset: 0; min-height: 0; transform-origin: 50% 45%; }
.motion .reveal { position: relative; z-index: 2; clip-path: path("M0 0Z"); }
.motion .stage.flowing .hero, .motion .stage.flowing .reveal-in { will-change: transform, opacity; }
.motion .stage.flowed .sheet { visibility: hidden; }
.liquid-edge { display: none; }
.motion .liquid-edge { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100svh; z-index: 3; pointer-events: none; overflow: visible; }
.motion .liquid-edge path { fill: none; stroke: var(--play); stroke-width: 2; stroke-opacity: .55; }

/* escrita líquida */
.motion .ink path { will-change: auto; }
.motion.write .ink path { animation-name: ink; animation-timing-function: cubic-bezier(.45, .05, .55, .95); animation-fill-mode: forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
html:not(.motion) .ink path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.motion .ipl { transform: scale(0); }
.motion.write .ipl { animation: pop .55s cubic-bezier(.3, 1.7, .5, 1) 3.6s forwards; }
@keyframes pop { to { transform: scale(1); } }
.motion .hero-sub, .motion .cue { opacity: 0; }
.motion.write .hero-sub { animation: fade-up .9s var(--ease) 3.1s forwards; }
.motion.write .cue { animation: fade-in .9s var(--ease) 3.9s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
.motion .cue-glass svg { animation: nudge 1.6s var(--ease-io) 4s infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-4px); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }
.motion .cue-glass::after { animation: sheen 3.6s var(--ease-io) 4.4s infinite; }
@keyframes sheen { 0% { transform: translateY(0); } 45%, 100% { transform: translateY(380%); } }
.motion .stage.flowing .cue-glass svg, .motion .stage.flowed .cue-glass svg, .motion .stage.flowing .cue-glass::after, .motion .stage.flowed .cue-glass::after { animation-play-state: paused; }

/* entrada das seções */
.motion [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.motion [data-rise].in { opacity: 1; transform: none; }
.motion .projects li:nth-child(2) { transition-delay: .07s; }
.motion .projects li:nth-child(3) { transition-delay: .14s; }

.now-eq.on b { animation: eq 1.1s ease-in-out infinite alternate; }
.now-eq.on b:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.now-eq.on b:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.now-eq.on b:nth-child(4) { animation-duration: .9s; animation-delay: -.2s; }
.now-eq.on b:nth-child(5) { animation-duration: 1.2s; animation-delay: -.8s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- celular */
@media (max-width: 760px) {
  :root { --head: 52px; }
  .topbar { gap: 12px; }
  .nav-list { gap: clamp(10px, 3.6vw, 18px); }
  .nav-a { font-size: .75rem; letter-spacing: 0; white-space: nowrap; padding: 10px 0; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-emoji { width: 110px; }
  .award { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .contact-text { font-size: var(--t-m); }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .reveal-in { grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: center; padding-top: calc(var(--head) + 32px); padding-bottom: 48px; }
  .intro { justify-items: start; }
  .memoji { width: 132px; }
  .reveal-title { font-size: clamp(3.75rem, 20vw, 5.25rem); }
  .reveal-title span:not(.name) { font-size: var(--t-m); }
  .reveal-body p { font-size: var(--t-m); }
  .project { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name kind" "desc desc" "url url"; padding: 22px 4px; gap: 8px 12px; }
  .pj-play { display: none; }
  .pj-name { grid-area: name; }
  .pj-kind { grid-area: kind; justify-self: end; }
  .pj-desc { grid-area: desc; }
  .pj-url { grid-area: url; }
  .trilha { grid-template-columns: minmax(0, 1fr); }
  .case, .case-alt, .case-fin { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .case-alt .case-media { order: 1; }
  .case-alt .case-text { order: 2; }
  .case-desc { font-size: var(--t-m); }
}


/* "reduzir movimento": sem loops e sem rolagem suave; o resto continua */
.calm { scroll-behavior: auto; }
.calm .cue-glass::after, .calm .now-eq b { animation: none !important; }
