/* 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") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* paleta rR */
  --noite: #0B1638;
  --noite-2: #101E4A;
  --rr: #1F3A7A;
  --play: #3D6FFF;
  --ceu: #CFDBFF;
  --nevoa: #F3F5FA;
  --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%; }
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% - 1000px) / 2)); padding-right: max(var(--gut-r), calc((100% - 1000px) / 2));
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid { background: rgba(11, 22, 56, .78); border-bottom-color: var(--line-night); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.lite .topbar.is-solid { background: rgba(11, 22, 56, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }

.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(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted-night); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cue-track { width: 2px; height: 44px; border-radius: 2px; background: var(--line-night); position: relative; overflow: hidden; }
.cue-track b { position: absolute; left: -4px; top: 0; width: 10px; height: 10px; background: var(--play); clip-path: polygon(0 0, 100% 0, 50% 100%); }


.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 span { 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: 2.4% 2.4% 3%;
  border-radius: 4.2% / 6.6%;
  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: 16 / 10; 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: 11%; height: 3.6%; 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: contain; 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.is-on { width: 34px; background: var(--branca); }
.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; }

/* 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); }

/* ---------- 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-track b { animation: drip 2.2s var(--ease-io) 4s infinite; transform: translateY(-12px); }
@keyframes drip { 0% { transform: translateY(-12px); } 60%, 100% { transform: translateY(46px); } }
.motion .stage.flowing .cue-track b, .motion .stage.flowed .cue-track b { 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; }
  .menu-btn { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; background: transparent; border: 0; cursor: pointer; color: var(--branca); }
  .menu-btn span { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-list {
    position: fixed; left: 0; right: 0; top: calc(var(--top) + var(--head)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px max(28px, var(--gut-r)) 40px max(28px, var(--gut));
    background: var(--noite);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .topbar:has(.nav-list.open) { background: var(--noite); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-list.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s; }
  .nav-list .nav-a { font-size: 1.75rem; font-weight: 700; padding: 12px 0; color: var(--branca); }
  .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(3rem, 15vw, 4rem); }
  .reveal-title span { 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 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .slider-bar { flex-direction: column; gap: 10px; }
  .shot-title { text-align: center; }
  .case-desc { font-size: var(--t-m); }
}


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