/* =========================================================
   löwna studio
   Tokens vindos das variáveis do Figma (coleção "löwna / Brand")
   ========================================================= */
:root {
  --space-blue: #01203f;
  --horizon-red: #ff0000;
  --flight-blue: #0344dc;
  --shuttle-white: #ffffff;
  --frontier-gray: #babaca;

  --ink: #08080a;
  --studio-gray: #ededf2;

  --font-display: 'Badeen Display', 'Arial Black', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: clamp(20px, 4.44vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--space-blue);
  background: var(--shuttle-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--flight-blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Chip de tagline (componente "Chip / Dark" e "Chip / Light") ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 8px 14px 8px 12px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.1px;
  line-height: normal;
  white-space: nowrap;
}
.chip i { width: 6px; height: 6px; background: var(--horizon-red); flex: none; }
.chip--dark { color: var(--shuttle-white); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .28); }
.chip--light { color: var(--space-blue); border: 1px solid var(--space-blue); }

/* ---------- Botões quadrados com seta ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 15px 18px 15px 22px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .96px;
  line-height: normal;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .45s var(--ease-out);
  will-change: transform;
}
.btn--light { background: var(--shuttle-white); color: var(--space-blue); }
.btn--light:hover { background: #e6e9f0; }
.btn--blue { background: var(--flight-blue); color: var(--shuttle-white); }
.btn--blue:hover { background: #0a52ff; }
.btn--outline { border: 1px solid var(--space-blue); color: var(--space-blue); }
.btn--outline:hover { background: rgba(1, 32, 63, .06); }

.btn__icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  overflow: hidden;
  flex: none;
}
.btn__icon img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s var(--ease-out); }
.btn__icon img + img { transform: translate(-110%, 110%); }
a:hover .btn__icon img:first-child,
a:focus-visible .btn__icon img:first-child { transform: translate(110%, -110%); }
a:hover .btn__icon img + img,
a:focus-visible .btn__icon img + img { transform: translate(0, 0); }

/* ---------- Shader host ---------- */
.fx { position: absolute; }
.fx > img, .fx > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx--live > img { visibility: hidden; }
.fx--pixel > canvas { image-rendering: pixelated; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(720px, 100svh, 880px);
  display: flex;
  color: var(--shuttle-white);
  background: #08080b;
  overflow: hidden;
  isolation: isolate;
  z-index: 20; /* a navbar fixa mora dentro da hero; precisa ficar acima das seções seguintes */
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero__grad {
  position: absolute;
  left: 0;
  width: 100%;
  height: max(131.98vw, 140%);
  top: calc((100% - max(131.98vw, 140%)) * .35);
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0) scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .75) 100%);
}

.hero__frame {
  position: relative;
  flex: 1;
  margin: 24px;
  display: flex;
  flex-direction: column;
  padding-top: 77px;
}
.hero__outline {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  pointer-events: none;
}

/* cantos em mira, linhas para fora */
.tick { position: absolute; width: 0; height: 0; }
.tick::before, .tick::after { content: ''; position: absolute; background: rgba(255, 255, 255, .85); }
.tick::before { width: 16px; height: 1.5px; }
.tick::after { width: 1.5px; height: 16px; }
.tick--tl { left: 0; top: 0; }
.tick--tl::before { right: 0; top: -.75px; }
.tick--tl::after { left: -.75px; bottom: 0; }
.tick--tr { right: 0; top: 0; }
.tick--tr::before { left: 0; top: -.75px; }
.tick--tr::after { left: -.75px; bottom: 0; }
.tick--bl { left: 0; bottom: 0; }
.tick--bl::before { right: 0; top: -.75px; }
.tick--bl::after { left: -.75px; top: 0; }
.tick--br { right: 0; bottom: 0; }
.tick--br::before { left: 0; top: -.75px; }
.tick--br::after { left: -.75px; top: 0; }

/* ---------- Navbar quadrada ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 14px 0 32px;
  background: rgba(13, 13, 18, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--shuttle-white);
}
.nav__logo { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.3; padding-top: 2px; white-space: nowrap; }
.nav__links { display: flex; gap: 36px; font-weight: 600; font-size: 12px; letter-spacing: 1.2px; }
.nav__links a { position: relative; opacity: .8; transition: opacity .3s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { align-self: center; }
.nav__toggle { display: none; }

.nav.is-stuck {
  position: fixed;
  top: 12px;
  left: 50%;
  right: auto;
  width: min(1392px, calc(100% - 24px));
  transform: translateX(-50%);
  background: rgba(10, 10, 14, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  outline: 1px solid rgba(255, 255, 255, .14);
  animation: navIn .6s var(--ease-out);
}
@keyframes navIn { from { transform: translate(-50%, -140%); } to { transform: translate(-50%, 0); } }

.hero__navline {
  position: absolute;
  top: 76px; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .22);
  transform-origin: left;
}

.hero__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 59px 40px 0;
}
.hero__intro { display: flex; flex-direction: column; gap: 24px; max-width: 453px; }
.hero__lead { font-size: 17px; line-height: 1.55; opacity: .85; }
.hero__services { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 6px; font-weight: 500; font-size: 16px; text-align: right; }
.hero__services li { opacity: .85; }

.hero__bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 40px 40px 36px 32px;
}
.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 20.84vw, 300px);
  line-height: .82;
  white-space: nowrap;
}
/* folga acima e abaixo para a máscara da animação não cortar os acentos nem a base das letras */
.wm { display: inline-flex; overflow: hidden; padding: .12em 0 .16em; margin: -.12em 0 -.16em; }
.wm > span { display: inline-block; transition: transform 1.2s var(--ease-out); transition-delay: calc(.85s + var(--i, 0) * .07s); }

.showreel { width: 260px; flex: none; }
.showreel__card { position: relative; width: 260px; height: 158px; background: #0d0d12; overflow: hidden; }
.showreel__bars { display: flex; gap: 10px; margin-top: 12px; }
.showreel__bars span { position: relative; width: 80px; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.showreel__bars span::after { content: ''; position: absolute; inset: 0; background: var(--shuttle-white); transform-origin: left; transform: scaleX(0); }
.showreel__bars span.is-done::after { transform: scaleX(1); }
.is-loaded .showreel__bars span.is-run::after { animation: barFill var(--slide-ms, 4500ms) linear forwards; }
@keyframes barFill { to { transform: scaleX(1); } }

/* slides empilhados (carrossel da hero e imagem da seção O que fazemos) */
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.slide.is-active { opacity: 1; transform: none; }
.slide > img,
.slide > video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Animação de entrada da hero ---------- */
.hero__outline { transition: clip-path 1.4s var(--ease-in-out) .1s; }
.tick { transition: opacity .8s var(--ease-out) .9s, transform 1s var(--ease-out) .9s; }
.nav { transition: opacity .9s var(--ease-out) .35s, transform .9s var(--ease-out) .35s; }
.hero__navline { transition: transform 1.2s var(--ease-in-out) .55s; }
.hero__in { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(.7s + var(--i, 0) * .08s); }
.showreel { transition: opacity 1s var(--ease-out) 1.25s; }
.showreel__card { transition: clip-path 1.2s var(--ease-in-out) 1.1s; }

html.js body:not(.is-loaded) .hero__outline { clip-path: inset(0 50% 0 50%); }
html.js body:not(.is-loaded) .tick--tl { opacity: 0; transform: translate(-14px, -14px); }
html.js body:not(.is-loaded) .tick--tr { opacity: 0; transform: translate(14px, -14px); }
html.js body:not(.is-loaded) .tick--bl { opacity: 0; transform: translate(-14px, 14px); }
html.js body:not(.is-loaded) .tick--br { opacity: 0; transform: translate(14px, 14px); }
html.js body:not(.is-loaded) .nav { opacity: 0; transform: translateY(-16px); }
html.js body:not(.is-loaded) .hero__navline { transform: scaleX(0); }
html.js body:not(.is-loaded) .hero__in { opacity: 0; transform: translateY(24px); }
html.js body:not(.is-loaded) .wm > span { transform: translateY(105%); }
html.js body:not(.is-loaded) .showreel { opacity: 0; }
html.js body:not(.is-loaded) .showreel__card { clip-path: inset(100% 0 0 0); }
.hero__outline { clip-path: inset(0 0 0 0); }
.showreel__card { clip-path: inset(0 0 0 0); }

/* =========================================================
   O QUE FAZEMOS
   ========================================================= */
.services {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 110px var(--pad-x);
  background: var(--shuttle-white);
}
.services__detail { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.services__desc { max-width: 420px; font-size: 16px; line-height: 1.55; opacity: .6; transition: opacity .35s, transform .45s var(--ease-out); }
.services__desc.is-swapping { opacity: 0; transform: translateY(8px); }

.services__stack { position: relative; }
.services__pin { display: contents; }
.services__list { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.svc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--frontier-gray);
  opacity: .85;
  white-space: nowrap;
  transition: color .5s var(--ease-out), opacity .5s var(--ease-out);
}
.svc__label {
  font-size: clamp(34px, 4.86vw, 70px);
  font-weight: 200;
  line-height: 1;
  transition: font-weight .5s var(--ease-out), letter-spacing .5s var(--ease-out);
}
.svc sup { font-size: 16px; font-weight: 400; line-height: normal; top: 0; vertical-align: baseline; }
.svc.is-active { color: var(--space-blue); opacity: 1; }
.svc.is-active .svc__label { font-weight: 300; }
.svc.is-active sup { opacity: .6; }

.services__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 279px;
  height: 182px;
  background: #0d0d12;
  overflow: hidden;
  transform: translate(var(--img-x, 85px), var(--img-y, -56px)) scale(var(--img-s, 1));
  transform-origin: 0 0;
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.services__visual { position: absolute; inset: 0; overflow: hidden; background: #0d0d12; }
.services__mdesc { display: none; }
.services__caption {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  padding: 4px 6px;
  background: rgba(13, 13, 18, .82);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #fff;
  white-space: pre;
  transition: opacity .3s;
}

/* Sites: a página inteira passa devagar dentro da moldura */
.slide--scroll > img { object-position: 50% 0; }
.slide--scroll.is-active > img { animation: sitePan 9s ease-in-out .6s infinite alternate; }
@keyframes sitePan { 0%, 10% { object-position: 50% 0; } 90%, 100% { object-position: 50% 100%; } }

/* Reels: três vídeos verticais lado a lado */
.slide--reels { display: flex; justify-content: center; align-items: center; gap: 4%; padding: 7% 0; background: #0d0d12; }
.slide--reels .reel { border-radius: 6px; box-shadow: none; }

/* Kit de social media: grade 3x3, os blocos vazios mostram o gradiente animado por trás */
.slide--kit { background: var(--studio-gray); }
.kit { position: absolute; inset: 0; display: grid; place-items: center; padding: 7% 0; }
.kit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
  aspect-ratio: 1;
  container-type: size;
  box-shadow: 0 0 0 100vmax var(--studio-gray);
}
.kit__tile {
  display: flex;
  align-items: flex-end;
  padding: 0 0 9% 11%;
  border: 3px solid var(--studio-gray);
  font-weight: 600;
  font-size: 4.6cqw;
  letter-spacing: .06em;
  color: #fff;
}
.kit__tile--red { background: var(--horizon-red); }
.kit__tile--white { background: #fff; color: var(--space-blue); }
.services__caption.is-swapping { opacity: 0; }

/* =========================================================
   SOBRE
   ========================================================= */
.about {
  position: relative;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: 100px var(--pad-x) 80px;
  color: var(--shuttle-white);
  background: var(--space-blue);
  overflow: hidden;
  isolation: isolate;
}
.about__bg {
  position: absolute;
  inset: -80px 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15)),
    linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
    url('../assets/about-bg.jpg') center / cover no-repeat;
  transform: translate3d(0, var(--about-y, 0px), 0);
}
.about__top { display: flex; flex-direction: column; gap: 44px; }
.about__manifesto { display: flex; flex-direction: column; gap: 6px; font-weight: 300; font-size: clamp(40px, 6.39vw, 92px); line-height: 1.08; letter-spacing: -.03em; }
.mline { display: block; overflow: hidden; padding-left: calc(var(--indent) * min(180px, 12.5vw)); padding-bottom: .04em; }
.mline > span { display: inline-block; color: rgba(255, 255, 255, .6); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--indent) * .12s); }
.mline strong { color: var(--shuttle-white); font-weight: 700; }
html.js .about__manifesto:not(.is-in) .mline > span { transform: translateY(115%); }

.about__bottom { display: flex; flex-direction: column; gap: 28px; }
.rule { display: block; height: 1px; background: rgba(255, 255, 255, .2); }
.about__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.about__text { max-width: 460px; font-size: 16px; line-height: 1.6; opacity: .75; }
.about__facts { display: flex; gap: 64px; }
.about__facts dt { font-weight: 700; font-size: 11px; letter-spacing: 1.54px; opacity: .5; margin-bottom: 10px; }
.about__facts dd { font-weight: 500; font-size: 17px; }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.work { display: flex; flex-direction: column; gap: 56px; padding: 120px var(--pad-x); background: var(--shuttle-white); }
.work__head, .contact__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.work__title, .contact__title { display: flex; flex-direction: column; gap: 16px; }
.work h2, .contact h2 { font-weight: 300; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -1.44px; }
.work h2 sup { font-weight: 400; font-size: 18px; letter-spacing: 0; opacity: .5; margin-left: 8px; vertical-align: top; position: relative; top: 4px; }
.work__intro, .contact__intro { max-width: 360px; font-size: 15px; line-height: 1.5; opacity: .55; }

/* Linhas justificadas: cada card cresce na proporção da peça (--r = largura / altura),
   então todos da linha ficam com a mesma altura e nada é cortado. */
.work__grid { display: flex; flex-direction: column; gap: 56px; }
.work__row { display: flex; align-items: flex-start; gap: 28px; }
.card { flex: var(--r, 1) 1 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card__media {
  position: relative;
  aspect-ratio: var(--r, 1);
  background: var(--studio-gray);
  overflow: hidden;
}
.card__media--dark { background: #0d0d12; }
.card__media > img,
.card__media > video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media > img,
.card:hover .card__media > video { transform: scale(1.03); }

/* três reels lado a lado */
.card__media--reels { display: flex; justify-content: center; align-items: center; gap: 20px; background: #0d0d12; padding: 28px; }
.reel {
  height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: transform .8s var(--ease-out);
}
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.card:hover .reel:nth-child(1) { transform: translateY(-6px) rotate(-2deg); }
.card:hover .reel:nth-child(2) { transform: translateY(-12px); }
.card:hover .reel:nth-child(3) { transform: translateY(-6px) rotate(2deg); }

.card__caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; white-space: nowrap; }
.card__caption h3 { font-weight: 500; font-size: 20px; }
.card__caption span { font-size: 11px; letter-spacing: .44px; opacity: .5; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact { display: flex; flex-direction: column; gap: 56px; padding: 120px var(--pad-x); background: var(--ink); color: var(--shuttle-white); }
.contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ccard {
  position: relative;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 32px;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .5s var(--ease-out);
}
.ccard:hover { border-color: rgba(255, 255, 255, .28); }
.ccard__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ccard__top { display: flex; justify-content: space-between; align-items: center; }
.ccard__arrow {
  padding: 13px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .4s var(--ease-out);
}
.ccard__arrow .btn__icon { width: 16px; height: 16px; }
.ccard:hover .ccard__arrow { background: var(--flight-blue); border-color: var(--flight-blue); }
.ccard__text { display: flex; flex-direction: column; gap: 10px; }
.ccard__value { font-weight: 300; font-size: clamp(24px, 2.36vw, 34px); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ccard__label { font-weight: 500; font-size: 12px; letter-spacing: .05em; opacity: .55; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { padding: 40px; background: var(--ink); }
.footer__card {
  position: relative;
  height: 460px;
  display: flex;
  flex-direction: column;
  padding: 40px 48px 0;
  border-radius: 24px;
  overflow: hidden;
  color: var(--shuttle-white);
  background: linear-gradient(to bottom, #0d0808 0%, #001341 55%, #0344dc 100%);
  isolation: isolate;
}
.footer__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px circle at var(--mx, 50%) 110%, rgba(255, 255, 255, .16), transparent 60%);
  opacity: 0;
  transition: opacity .6s;
}
.footer__card:hover::before { opacity: 1; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer__nav { display: flex; flex-direction: column; gap: 14px; font-weight: 500; font-size: 16px; }
.footer__nav a, .footer__info > a { opacity: .85; transition: opacity .3s; }
.footer__nav a:hover, .footer__info > a:hover { opacity: 1; }
.footer__info { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px; }
.footer__info > a { opacity: .8; }
.footer__social { display: flex; gap: 10px; }
.icon-btn { padding: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); transition: background-color .35s var(--ease-out), transform .45s var(--ease-out); }
.icon-btn:hover { background: rgba(255, 255, 255, .22); transform: translateY(-3px); }
.footer__word {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(120px, 19.45vw, 280px);
  line-height: normal;
  color: rgba(255, 255, 255, .4);
  white-space: nowrap;
}
/* ligado à rolagem nos dois sentidos (main.js define --fw-y) */
.footer__word span { display: block; transform: translate3d(0, var(--fw-y, 0%), 0); will-change: transform; }
.footer__base {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
}
.footer__base span { opacity: .6; }
.footer__tag { font-weight: 700; font-size: 11px; letter-spacing: .33px; }

/* =========================================================
   Revelação no scroll
   ========================================================= */
[data-reveal] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(32px); }
html.js [data-reveal="line"] { transform-origin: left; }
html.js [data-reveal="line"]:not(.is-in) { opacity: 1; transform: scaleX(0); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .work__row { gap: 20px; }
}
@media (max-width: 1024px) {
  /* scroll fixado: imagem + lista ficam presas na tela e a rolagem dentro da seção troca a categoria */
  .services__desc { display: none; }
  .services__stack { height: 280svh; }
  .services__pin {
    position: sticky;
    top: 76px;
    height: calc(100svh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding-block: 12px;
  }
  .services__image {
    position: relative;
    order: -1;
    width: 100%;
    height: auto;
    overflow: visible;
    transform: none;
    background: none;
  }
  .services__visual { position: relative; inset: auto; aspect-ratio: 279 / 182; }
  .services__visual .fx { left: -28% !important; top: -105.67% !important; width: 180% !important; height: 364.18% !important; }
  .services__caption { top: auto; bottom: 14px; }
  .services__mdesc {
    display: block;
    padding: 16px 0 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--space-blue);
    transition: opacity .35s, transform .45s var(--ease-out);
  }
  .services__mdesc.is-swapping { opacity: 0; transform: translateY(8px); }
  .services__list { gap: 12px; }
  .svc__label { font-size: clamp(26px, 7.2vw, 46px); }
  .svc sup { font-size: 13px; }
}

@media (max-width: 860px) {
  .hero__frame { margin: 16px; }
  .nav { padding: 0 10px 0 20px; height: 64px; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .28);
  }
  .nav__toggle-bar { display: block; height: 1.5px; background: #fff; transition: transform .4s var(--ease-out); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #0a0a0e;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, .14);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease-in-out);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); }
  .nav__links a { display: block; padding: 18px 20px; font-size: 13px; opacity: 1; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__links a::after { display: none; }
  .hero__frame { padding-top: 65px; }
  .hero__navline { top: 64px; }

  .hero__body { flex-direction: column; align-items: center; gap: 32px; padding: 40px 20px 0; text-align: center; }
  .hero__intro { align-items: center; width: 100%; }
  .hero__intro .chip { align-self: center; }
  .hero__services { align-items: center; text-align: center; }
  .hero__bottom { flex-direction: column; align-items: center; padding: 48px 20px 24px; }
  .hero__wordmark { font-size: min(24vw, 180px); }
  .hero__frame, .hero__body, .hero__bottom, .hero__intro { min-width: 0; }

  /* showreel na largura toda, mantendo a proporção do Figma (260 x 158) */
  .showreel { width: 100%; }
  .showreel__card { width: 100%; height: auto; aspect-ratio: 260 / 158; }
  .showreel__bars span { flex: 1; width: auto; }

  .services { gap: 48px; padding-block: 80px; }
  .services__detail { flex-direction: column; }
  .services__list { align-items: flex-start; }
  .svc { white-space: normal; text-align: left; }

  .about { min-height: 0; padding-block: 80px 64px; }
  .about__row { flex-direction: column; }
  .about__facts { gap: 40px; }

  .work, .contact { padding-block: 80px; }
  .work__head, .contact__head { flex-direction: column; align-items: flex-start; }
  .contact__cards { grid-template-columns: 1fr; }
  .ccard { height: 280px; }

  .btn { align-self: stretch; justify-content: center; }

  .footer { padding: 16px; }
  .footer__card { height: auto; min-height: 520px; padding: 32px 24px 0; text-align: center; }
  .footer__top { flex-direction: column; align-items: center; }
  .footer__nav { align-items: center; }
  .footer__info { align-items: center; }
  .footer__card { min-height: 0; }
  .footer__word { align-items: flex-end; padding-top: 40px; line-height: .9; }
  .footer__base { position: static; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 24px; }
}

/* Portfólio no celular/tablet: um card embaixo do outro, e os reels também empilhados */
@media (max-width: 860px) {
  .work__row { flex-direction: column; align-items: stretch; gap: 56px; }
  .work__grid { gap: 56px; }
  .card { flex: none; }
  .card__media--reels { aspect-ratio: auto; gap: 10px; padding: 16px; }
  .card__media--reels .reel { flex: 1 1 0; min-width: 0; height: auto; border-radius: 8px; }
  .card:hover .card__media--reels .reel { transform: none; }
}

@media (max-width: 600px) {
  .about__manifesto { font-size: 8.2vw; }
  .mline { padding-left: calc(var(--indent) * 9vw); }
  .about__facts { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html.js body:not(.is-loaded) *, html.js [data-reveal]:not(.is-in), html.js .about__manifesto:not(.is-in) .mline > span, html.js .footer__word:not(.is-in) span {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
}
